|
|
@ -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;
|
|
|
@ -38,15 +39,29 @@ public class ApplyInfoListManager {
|
|
|
|
private TdFileRelationService fileRelationService;
|
|
|
|
private TdFileRelationService fileRelationService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 人员登记
|
|
|
|
|
|
|
|
* @param applyInfoListDTO
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public List<TdApplyInfoList> selectTdApplyInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
|
|
|
public List<TdApplyInfoList> selectTdApplyInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
|
|
|
return applyInfoListService.selectTdApplyInfoListList(applyInfoListDTO);
|
|
|
|
return applyInfoListService.selectTdApplyInfoListList(applyInfoListDTO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 培训教育
|
|
|
|
|
|
|
|
* @param applyInfoListDTO
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public List<TdApplyInfoList> selectTdApplyInfoListListByApplyStatus(TdApplyInfoListDTO applyInfoListDTO) {
|
|
|
|
public List<TdApplyInfoList> selectTdApplyInfoListListByApplyStatus(TdApplyInfoListDTO applyInfoListDTO) {
|
|
|
|
return applyInfoListService.selectTdApplyInfoListListByApplyStatus(applyInfoListDTO);
|
|
|
|
return applyInfoListService.selectTdApplyInfoListListByApplyStatus(applyInfoListDTO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 人员审查
|
|
|
|
|
|
|
|
* @param applyInfoListDTO
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
public List<TdApplyInfoList> selectTdAuditInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
|
|
|
public List<TdApplyInfoList> selectTdAuditInfoListList(TdApplyInfoListDTO applyInfoListDTO) {
|
|
|
|
return applyInfoListService.selectTdAuditInfoListList(applyInfoListDTO);
|
|
|
|
return applyInfoListService.selectTdAuditInfoListList(applyInfoListDTO);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -101,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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -125,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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -136,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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -148,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();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -160,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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|