批量调薪流程附件没传时,则跳过action执行
This commit is contained in:
parent
76fcd3c69d
commit
7cb2c3670f
|
|
@ -7,6 +7,7 @@ import com.engine.salary.enums.salaryarchive.SalaryArchiveListTypeEnum;
|
|||
import com.engine.salary.service.SalaryArchiveExcelService;
|
||||
import com.engine.salary.service.impl.SalaryArchiveExcelServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import weaver.conn.RecordSet;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.User;
|
||||
|
|
@ -54,7 +55,10 @@ public class BatEditSalaryExcelAction implements Action {
|
|||
property -> Util.null2String(property.getValue())));
|
||||
|
||||
String docId = fieldMap.get(batSalaryExcelField);
|
||||
|
||||
if (StringUtils.isBlank(docId)) {
|
||||
log.error("批量调薪检查附件id为null");
|
||||
return SUCCESS;
|
||||
}
|
||||
RecordSet rs = new RecordSet();
|
||||
String queryImageId = "select imagefileid from docimagefile where docid = ?";
|
||||
rs.executeQuery(queryImageId, docId);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import com.engine.salary.enums.salaryarchive.SalaryArchiveListTypeEnum;
|
|||
import com.engine.salary.service.SalaryArchiveExcelService;
|
||||
import com.engine.salary.service.impl.SalaryArchiveExcelServiceImpl;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import weaver.conn.RecordSet;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.User;
|
||||
|
|
@ -54,7 +55,10 @@ public class CheckBatEditSalaryExcelAction implements Action {
|
|||
property -> Util.null2String(property.getValue())));
|
||||
|
||||
String docId = fieldMap.get(batSalaryExcelField);
|
||||
|
||||
if (StringUtils.isBlank(docId)) {
|
||||
log.error("批量调薪检查附件id为null");
|
||||
return SUCCESS;
|
||||
}
|
||||
RecordSet rs = new RecordSet();
|
||||
String queryImageId = "select imagefileid from docimagefile where docid = ?";
|
||||
rs.executeQuery(queryImageId, docId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue