Commit f7b78d28 authored by fangxinjiang's avatar fangxinjiang

证明代码优化

parent c518d293
......@@ -118,6 +118,12 @@ public class TCertRecordServiceImpl extends ServiceImpl<TCertRecordMapper, TCert
if (Common.isNotNull(entity.getEmpIdcard())){
wrapper.likeRight(TCertRecord::getEmpIdcard,entity.getEmpIdcard());
}
if (Common.isNotNull(entity.getProjectName())){
wrapper.likeRight(TCertRecord::getProjectName,entity.getProjectName());
}
if (Common.isNotNull(entity.getType())){
wrapper.likeRight(TCertRecord::getType,entity.getType());
}
if (Common.isNotNull(entity.getCreateName())){
wrapper.eq(TCertRecord::getCreateName,entity.getCreateName());
}
......
......@@ -212,7 +212,7 @@ public class TEmpEducationServiceImpl extends ServiceImpl<TEmpEducationMapper, T
if (Common.isEmpty(emp)){
return new ErrorMessage(excel.getRowIndex(),MsgUtils.getMessage(ErrorCodes.ARCHIVES_EMP_NOT_EXIST));
}
if (CommonConstants.ONE_STRING.equals(emp.getFileStatus())){
if (Common.isNotNull(emp.getFileStatus()) && CommonConstants.ONE_STRING.equals(emp.getFileStatus())){
return new ErrorMessage(excel.getRowIndex(),MsgUtils.getMessage(ErrorCodes.ARCHIVES_EMP_REDUCED));
}
// 检查添加是否已经存在
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment