|
|
@ -16,7 +16,7 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Author: sy
|
|
|
|
* @Author: sy
|
|
|
|
* @Description: 撤销请假
|
|
|
|
* @Description: 撤销出差
|
|
|
|
* @Date: 2024/3/15
|
|
|
|
* @Date: 2024/3/15
|
|
|
|
**/
|
|
|
|
**/
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
@ -38,6 +38,7 @@ public class RevokeLeaveAction implements Action {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
DetailTable[] detailTable = requestInfo.getDetailTableInfo().getDetailTable();
|
|
|
|
DetailTable[] detailTable = requestInfo.getDetailTableInfo().getDetailTable();
|
|
|
|
|
|
|
|
log.info("RevokeLeaveAction detailTable : [{}]",detailTable);
|
|
|
|
List<Map<String, String>> updateList = new ArrayList<>();
|
|
|
|
List<Map<String, String>> updateList = new ArrayList<>();
|
|
|
|
if (detailTable.length > 0) {
|
|
|
|
if (detailTable.length > 0) {
|
|
|
|
for (DetailTable dt : detailTable) {
|
|
|
|
for (DetailTable dt : detailTable) {
|
|
|
@ -60,6 +61,7 @@ public class RevokeLeaveAction implements Action {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
log.info("RevokeLeaveAction updateList : [{}]",updateList);
|
|
|
|
if (updateList.size() > 0) {
|
|
|
|
if (updateList.size() > 0) {
|
|
|
|
updateList.forEach(f -> {
|
|
|
|
updateList.forEach(f -> {
|
|
|
|
if (StringUtils.isNotBlank(f.get("cxlyid"))) {
|
|
|
|
if (StringUtils.isNotBlank(f.get("cxlyid"))) {
|
|
|
@ -77,7 +79,7 @@ public class RevokeLeaveAction implements Action {
|
|
|
|
e.printStackTrace(new PrintWriter(errorsWriter));
|
|
|
|
e.printStackTrace(new PrintWriter(errorsWriter));
|
|
|
|
log.info(errorsWriter.toString());
|
|
|
|
log.info(errorsWriter.toString());
|
|
|
|
requestInfo.getRequestManager().setMessageid("11111" + requestInfo.getRequestid() + "22222");
|
|
|
|
requestInfo.getRequestManager().setMessageid("11111" + requestInfo.getRequestid() + "22222");
|
|
|
|
requestInfo.getRequestManager().setMessagecontent("【撤销请假更改请假撤销状态action】报错,请联系管理员!");
|
|
|
|
requestInfo.getRequestManager().setMessagecontent("【更改出差撤销状态action】报错,请联系管理员!");
|
|
|
|
return Action.FAILURE_AND_CONTINUE;
|
|
|
|
return Action.FAILURE_AND_CONTINUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|