|
|
@ -2,6 +2,7 @@ package com.ruoyi.web.controller.manager;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
|
import cn.hutool.core.text.CharSequenceUtil;
|
|
|
|
import cn.hutool.core.text.CharSequenceUtil;
|
|
|
|
|
|
|
|
import com.ruoyi.common.enums.ApplyListStatusEnum;
|
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
|
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
|
|
|
import com.ruoyi.system.domain.apply.TdApplyInfoList;
|
|
|
|
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
|
|
|
import com.ruoyi.system.domain.apply.dto.TdApplyInfoListDTO;
|
|
|
@ -115,7 +116,7 @@ public class ApplyInfoListManager {
|
|
|
|
applyInfoList.setCreateBy(ShiroUtils.getSysUser().getUserName());
|
|
|
|
applyInfoList.setCreateBy(ShiroUtils.getSysUser().getUserName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
applyInfoList.setDeptId(ShiroUtils.getSysUser().getDeptId());
|
|
|
|
applyInfoList.setDeptId(ShiroUtils.getSysUser().getDeptId());
|
|
|
|
applyInfoList.setApplyStatus("0");
|
|
|
|
applyInfoList.setApplyStatus(ApplyListStatusEnum.NEWSAVE.getStatus());
|
|
|
|
return applyInfoListService.saveOrUpdate(applyInfoList);
|
|
|
|
return applyInfoListService.saveOrUpdate(applyInfoList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -139,7 +140,7 @@ public class ApplyInfoListManager {
|
|
|
|
public boolean submit(String applyId) {
|
|
|
|
public boolean submit(String applyId) {
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
.eq(TdApplyInfoList::getApplyId,applyId)
|
|
|
|
.eq(TdApplyInfoList::getApplyId,applyId)
|
|
|
|
.set(TdApplyInfoList::getApplyStatus,"1")
|
|
|
|
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.SUBMIT.getStatus())
|
|
|
|
.set(TdApplyInfoList::getAppTime,new Date()).update();
|
|
|
|
.set(TdApplyInfoList::getAppTime,new Date()).update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -150,7 +151,7 @@ public class ApplyInfoListManager {
|
|
|
|
public boolean submitAudit(String applyId) {
|
|
|
|
public boolean submitAudit(String applyId) {
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
.eq(TdApplyInfoList::getApplyId,applyId)
|
|
|
|
.eq(TdApplyInfoList::getApplyId,applyId)
|
|
|
|
.set(TdApplyInfoList::getApplyStatus,"2")
|
|
|
|
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.AUDITED.getStatus())
|
|
|
|
.set(TdApplyInfoList::getAuthTime,new Date()).update();
|
|
|
|
.set(TdApplyInfoList::getAuthTime,new Date()).update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -162,7 +163,7 @@ public class ApplyInfoListManager {
|
|
|
|
public boolean goBack(String applyId,String applyMsg) {
|
|
|
|
public boolean goBack(String applyId,String applyMsg) {
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
.eq(TdApplyInfoList::getApplyId,applyId)
|
|
|
|
.eq(TdApplyInfoList::getApplyId,applyId)
|
|
|
|
.set(TdApplyInfoList::getApplyStatus,"3")
|
|
|
|
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.GOBACK.getStatus())
|
|
|
|
.set(Objects.nonNull(applyMsg), TdApplyInfoList::getApplyMsg, applyMsg)
|
|
|
|
.set(Objects.nonNull(applyMsg), TdApplyInfoList::getApplyMsg, applyMsg)
|
|
|
|
.update();
|
|
|
|
.update();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -174,7 +175,7 @@ public class ApplyInfoListManager {
|
|
|
|
public boolean submitPromise(String applyId) {
|
|
|
|
public boolean submitPromise(String applyId) {
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
return applyInfoListService.lambdaUpdate()
|
|
|
|
.eq(TdApplyInfoList::getApplyId,applyId)
|
|
|
|
.eq(TdApplyInfoList::getApplyId,applyId)
|
|
|
|
.set(TdApplyInfoList::getApplyStatus,"5").update();
|
|
|
|
.set(TdApplyInfoList::getApplyStatus,ApplyListStatusEnum.PROMISE.getStatus()).update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|