甘肃外包商评价bug修复
This commit is contained in:
parent
d013e08327
commit
4c0e27a663
|
|
@ -38,7 +38,7 @@ import java.util.regex.Pattern;
|
|||
@Controller
|
||||
@RequestMapping("/backstage/violations/")
|
||||
public class ViolationController extends BaseController<ViolationBean> {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ViolationService service;
|
||||
@Autowired
|
||||
|
|
@ -252,7 +252,7 @@ public class ViolationController extends BaseController<ViolationBean> {
|
|||
return ar;
|
||||
}
|
||||
}else {
|
||||
ar.setFailMsg("第" + errorNum + "行数据有误字段不能为空,导入失败");
|
||||
ar.setFailMsg("第" + (errorNum-1) + "行数据有误字段不能为空,导入失败");
|
||||
}
|
||||
}
|
||||
if (wb != null) {
|
||||
|
|
@ -276,7 +276,7 @@ public class ViolationController extends BaseController<ViolationBean> {
|
|||
String idCard = getValue(sheetRow.getCell(4)).trim();
|
||||
String phone = translateToPlainStr(getValue(sheetRow.getCell(5)).trim());
|
||||
if (StringUtils.isBlank(enterpriseName) || StringUtils.isBlank(socialCreditCode) || StringUtils.isBlank(setTime) || StringUtils.isBlank(corporateName) || StringUtils.isBlank(idCard) || StringUtils.isBlank(phone)) {
|
||||
ar.setFailMsg("第" + rownum + "行数据有误字段不能为空,导入失败");
|
||||
ar.setFailMsg("第" + (rownum-1) + "行数据有误字段不能为空,导入失败");
|
||||
ar.setRes(2);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -299,11 +299,21 @@
|
|||
// 告诉jQuery不要去设置Content-Type请求头
|
||||
contentType: false,
|
||||
success: function (data) {
|
||||
layer.close(idx);
|
||||
/* layer.close(idx);
|
||||
layer.msg('导入成功', {icon: 1, time: 2000});
|
||||
search(1)
|
||||
search(1)*/
|
||||
if (data.res === 0) {
|
||||
layer.close(idx);
|
||||
layer.msg('导入失败' + data.resMsg, { icon: 1, time: 2000 });
|
||||
} else {
|
||||
layer.close(idx);
|
||||
layer.msg('导入成功', { icon: 1, time: 2000 });
|
||||
search(1)
|
||||
}
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
error: function (data) {
|
||||
alert(data);
|
||||
console.log("我不好",data)
|
||||
layer.close(idx);
|
||||
layer.msg('导入成功', {icon: 2, time: 2000});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue