Commit 3f843c34 authored by fangxinjiang's avatar fangxinjiang

合同续签-fxj

parent 6c708757
...@@ -350,7 +350,6 @@ public class TEmpContractAlert extends BaseEntity { ...@@ -350,7 +350,6 @@ public class TEmpContractAlert extends BaseEntity {
/** /**
* 前端客服 * 前端客服
*/ */
@TableField(exist = false)
@ExcelAttribute(name = "前端客服" ) @ExcelAttribute(name = "前端客服" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("前端客服") @ExcelProperty("前端客服")
...@@ -360,7 +359,6 @@ public class TEmpContractAlert extends BaseEntity { ...@@ -360,7 +359,6 @@ public class TEmpContractAlert extends BaseEntity {
/** /**
* 前端客服 * 前端客服
*/ */
@TableField(exist = false)
@ExcelAttribute(name = "前端客服" ) @ExcelAttribute(name = "前端客服" )
@HeadFontStyle(fontHeightInPoints = 11) @HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("前端客服") @ExcelProperty("前端客服")
......
package com.yifu.cloud.plus.v1.yifu.archives.vo; package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpContractAlert; import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpContractAlert;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import org.hibernate.validator.constraints.Length;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
...@@ -27,6 +31,12 @@ public class ContractAlertSearchVo extends TEmpContractAlert { ...@@ -27,6 +31,12 @@ public class ContractAlertSearchVo extends TEmpContractAlert {
@Schema(description = "创建时间区间") @Schema(description = "创建时间区间")
private LocalDateTime[] createTimes; private LocalDateTime[] createTimes;
/**
* 预计合同发起时间区间 [开始时间,结束时间]
*/
@Schema(description = "预计合同发起时间区间")
private LocalDateTime[] startEndTimecreate;
/** /**
* @Author fxj * @Author fxj
* 查询数据起 * 查询数据起
...@@ -51,12 +61,12 @@ public class ContractAlertSearchVo extends TEmpContractAlert { ...@@ -51,12 +61,12 @@ public class ContractAlertSearchVo extends TEmpContractAlert {
/** /**
* @Author fxj * @Author fxj
* 合同截止时间区间查询--开始 * 合同预计发起时间区间查询--开始
**/ **/
private LocalDateTime expectedCollectionTimeStart; private LocalDateTime expectedCollectionTimeStart;
/** /**
* @Author fxj * @Author fxj
* 合同截止时间区间查询--截止 * 合同预计发起时间区间查询--截止
**/ **/
private LocalDateTime expectedCollectionTimeEnd; private LocalDateTime expectedCollectionTimeEnd;
...@@ -75,6 +85,15 @@ public class ContractAlertSearchVo extends TEmpContractAlert { ...@@ -75,6 +85,15 @@ public class ContractAlertSearchVo extends TEmpContractAlert {
/** /**
* 合同IDS * 合同IDS
*/ */
@TableField(exist = false)
@Schema(description = "合同IDS") @Schema(description = "合同IDS")
private List<String> idList; private List<String> idList;
@Schema(description = "处理状态数组")
@TableField(exist = false)
private List<String> statusList;
@TableField(exist = false)
@Schema(description = "前端客服")
private String customerUserLoginname;
} }
...@@ -37,7 +37,7 @@ public class TEmployeeContractPreNewSearchVo extends TEmployeeContractPreNew { ...@@ -37,7 +37,7 @@ public class TEmployeeContractPreNewSearchVo extends TEmployeeContractPreNew {
* 多选导出或删除等操作 * 多选导出或删除等操作
*/ */
@Schema(description = "选中ID,多个逗号分割") @Schema(description = "选中ID,多个逗号分割")
private String ids; private List<String> ids;
/** /**
* 创建时间区间 [开始时间,结束时间] * 创建时间区间 [开始时间,结束时间]
......
...@@ -22,10 +22,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -22,10 +22,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractInfo; import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractInfo;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew; import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeContractPreNewService; import com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeContractPreNewService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeAutoRegistRevokeVo; import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewDetailVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewSearchVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog; import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner; import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
...@@ -75,8 +72,8 @@ public class TEmployeeContractPreNewController { ...@@ -75,8 +72,8 @@ public class TEmployeeContractPreNewController {
* @return * @return
*/ */
@Operation(description = "简单分页查询") @Operation(description = "简单分页查询")
@GetMapping("/getDetailList") @PostMapping("/getDetailList")
public R<List<TEmployeeContractPreNewDetailVo>> getDetailList( TEmployeeContractPreNewSearchVo tEmployeeContractPreNew) { public R<List<TEmployeeContractPreNewDetailVo>> getDetailList(@RequestBody ContractAlertSearchVo tEmployeeContractPreNew) {
return tEmployeeContractPreNewService.getDetailList(tEmployeeContractPreNew); return tEmployeeContractPreNewService.getDetailList(tEmployeeContractPreNew);
} }
/** /**
...@@ -87,8 +84,8 @@ public class TEmployeeContractPreNewController { ...@@ -87,8 +84,8 @@ public class TEmployeeContractPreNewController {
* @return * @return
*/ */
@Operation(description = "简单分页查询") @Operation(description = "简单分页查询")
@GetMapping("/getDetailListCount") @PostMapping("/getDetailListCount")
public R<Integer> getDetailListCount( TEmployeeContractPreNewSearchVo tEmployeeContractPreNew) { public R<Integer> getDetailListCount(@RequestBody ContractAlertSearchVo tEmployeeContractPreNew) {
return tEmployeeContractPreNewService.getDetailListCount(tEmployeeContractPreNew); return tEmployeeContractPreNewService.getDetailListCount(tEmployeeContractPreNew);
} }
......
...@@ -21,6 +21,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -21,6 +21,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew; import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew;
import com.yifu.cloud.plus.v1.yifu.archives.vo.ContractAlertSearchVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeContractVO; import com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeContractVO;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewDetailVo; import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewDetailVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewSearchVo; import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewSearchVo;
...@@ -47,9 +48,9 @@ public interface TEmployeeContractPreNewMapper extends BaseMapper<TEmployeeContr ...@@ -47,9 +48,9 @@ public interface TEmployeeContractPreNewMapper extends BaseMapper<TEmployeeContr
List<EmployeeContractVO> getDisPatcherContractListRenew(@Param("idList") List<String> idList,@Param("statusList") List<String> statusList,@Param("type") String type); List<EmployeeContractVO> getDisPatcherContractListRenew(@Param("idList") List<String> idList,@Param("statusList") List<String> statusList,@Param("type") String type);
List<TEmployeeContractPreNewDetailVo> getDetailList(@Param("tEmployeeContractPreNew")TEmployeeContractPreNewSearchVo tEmployeeContractPreNew); List<TEmployeeContractPreNewDetailVo> getDetailList(@Param("tEmpContractAlert") ContractAlertSearchVo tEmployeeContractPreNew);
List<String> getUnDispatchList(); List<String> getUnDispatchList();
int getDetailListCount(@Param("tEmployeeContractPreNew")TEmployeeContractPreNewSearchVo tEmployeeContractPreNew); int getDetailListCount(@Param("tEmpContractAlert") ContractAlertSearchVo tEmployeeContractPreNew);
} }
...@@ -23,12 +23,9 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPre; ...@@ -23,12 +23,9 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPre;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew; import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeAutoRegistRevokeVo; import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewDetailVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage; import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewSearchVo;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.InputStream; import java.io.InputStream;
...@@ -71,7 +68,7 @@ public interface TEmployeeContractPreNewService extends IService<TEmployeeContra ...@@ -71,7 +68,7 @@ public interface TEmployeeContractPreNewService extends IService<TEmployeeContra
R<TEmployeeContractPreNew> getInfoByPreId(String preId); R<TEmployeeContractPreNew> getInfoByPreId(String preId);
R<List<TEmployeeContractPreNewDetailVo>> getDetailList(TEmployeeContractPreNewSearchVo tEmployeeContractPreNew); R<List<TEmployeeContractPreNewDetailVo>> getDetailList(ContractAlertSearchVo tEmployeeContractPreNew);
R<TEmployeeContractInfo> getRenewContractByPreId(String preId); R<TEmployeeContractInfo> getRenewContractByPreId(String preId);
...@@ -79,7 +76,7 @@ public interface TEmployeeContractPreNewService extends IService<TEmployeeContra ...@@ -79,7 +76,7 @@ public interface TEmployeeContractPreNewService extends IService<TEmployeeContra
void pushDisConfrimContracts(); void pushDisConfrimContracts();
R<Integer> getDetailListCount(TEmployeeContractPreNewSearchVo tEmployeeContractPreNew); R<Integer> getDetailListCount(ContractAlertSearchVo tEmployeeContractPreNew);
R getContractTerm(String startDate, String endDate); R getContractTerm(String startDate, String endDate);
} }
...@@ -52,6 +52,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser; ...@@ -52,6 +52,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser;
import com.yifu.cloud.plus.v1.yifu.common.dapr.util.UpmsDaprUtils; import com.yifu.cloud.plus.v1.yifu.common.dapr.util.UpmsDaprUtils;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity; import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils; import com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils;
import com.yifu.cloud.plus.v1.yifu.social.entity.TSocialFundInfo;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -1088,11 +1089,16 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM ...@@ -1088,11 +1089,16 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
@Override @Override
public IPage<ContractAlertAutoVo> getTEmpContractAlertAutoPage(Page<TEmpContractAlert> page, ContractAlertSearchVo tEmpContractAlert){ public IPage<ContractAlertAutoVo> getTEmpContractAlertAutoPage(Page<TEmpContractAlert> page, ContractAlertSearchVo tEmpContractAlert){
// 如果查询条件续签状态为空默认查询 非已完成 状态数据 // 如果查询条件续签状态为空默认查询 非已完成 状态数据
if (Common.isNotNull(tEmpContractAlert.getProcessStatusList())){ if (!Common.isNotNull(tEmpContractAlert.getProcessStatusList())){
tEmpContractAlert.setProcessStatusList(Stream.of("0","1","2","3","4","5","6","7","8","10","11").collect(Collectors.toList())); tEmpContractAlert.setProcessStatusList(Stream.of("0","1","2","3","4","5","6","7","8","10","11").collect(Collectors.toList()));
} }
//初始化客服的项目权限 ,管理员及SSC 全量 //初始化客服的项目权限 ,管理员及SSC 全量
initSearchVo(tEmpContractAlert); initSearchVo(tEmpContractAlert);
if (ArrayUtil.isNotEmpty(tEmpContractAlert.getStartEndTimecreate())
&& tEmpContractAlert.getStartEndTimecreate().length == 2) {
tEmpContractAlert.setExpectedCollectionTimeStart(tEmpContractAlert.getStartEndTimecreate()[0]);
tEmpContractAlert.setExpectedCollectionTimeEnd(tEmpContractAlert.getStartEndTimecreate()[1]);
}
return baseMapper.getTEmpContractAlertAutoPage(page,tEmpContractAlert); return baseMapper.getTEmpContractAlertAutoPage(page,tEmpContractAlert);
} }
......
...@@ -59,6 +59,7 @@ import javax.servlet.ServletOutputStream; ...@@ -59,6 +59,7 @@ import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.text.ParseException;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.ZoneId; import java.time.ZoneId;
import java.util.*; import java.util.*;
...@@ -187,7 +188,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon ...@@ -187,7 +188,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
@Override @Override
public List<TEmployeeContractPreNew> noPageDiy(TEmployeeContractPreNewSearchVo searchVo) { public List<TEmployeeContractPreNew> noPageDiy(TEmployeeContractPreNewSearchVo searchVo) {
LambdaQueryWrapper<TEmployeeContractPreNew> wrapper = buildQueryWrapper(searchVo); LambdaQueryWrapper<TEmployeeContractPreNew> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds()); List<String> idList =searchVo.getIds();
if (Common.isNotNull(idList)) { if (Common.isNotNull(idList)) {
wrapper.in(TEmployeeContractPreNew::getId, idList); wrapper.in(TEmployeeContractPreNew::getId, idList);
} }
...@@ -200,7 +201,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon ...@@ -200,7 +201,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
private Long noPageCountDiy(TEmployeeContractPreNewSearchVo searchVo) { private Long noPageCountDiy(TEmployeeContractPreNewSearchVo searchVo) {
LambdaQueryWrapper<TEmployeeContractPreNew> wrapper = buildQueryWrapper(searchVo); LambdaQueryWrapper<TEmployeeContractPreNew> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds()); List<String> idList = searchVo.getIds();
if (Common.isNotNull(idList)) { if (Common.isNotNull(idList)) {
wrapper.in(TEmployeeContractPreNew::getId, idList); wrapper.in(TEmployeeContractPreNew::getId, idList);
} }
...@@ -405,7 +406,16 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon ...@@ -405,7 +406,16 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
} }
//续签合同发起时间类型 :0 上一份合同到期前一个月 //续签合同发起时间类型 :0 上一份合同到期前一个月
if (null != rule && CommonConstants.ZERO_STRING.equals(rule.getRenewalDateType()) && null != contract.getContractEnd()){ if (null != rule && CommonConstants.ZERO_STRING.equals(rule.getRenewalDateType()) && null != contract.getContractEnd()){
pre.setExpectedCollectionTime(DateUtil.addDayByDate(DateUtil.addMonthByDate(contract.getContractEnd(),-1),-1)); Date dateTemp = null;
try {
dateTemp = DateUtil.parseDate(DateUtil.dateToString(
contract.getContractEnd(), DateUtil.ISO_EXPANDED_DATE_FORMAT) + " 15:20", DateUtil.DATETIME_PATTERN_MINUTE);
} catch (ParseException e) {
dateTemp = new Date();
}
if (null!=dateTemp){
pre.setExpectedCollectionTime(DateUtil.addDayByDate(DateUtil.addMonthByDate(dateTemp,-1),-1));
}
} }
preList.add(pre); preList.add(pre);
} }
...@@ -1508,21 +1518,35 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon ...@@ -1508,21 +1518,35 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
} }
@Override @Override
public R<List<TEmployeeContractPreNewDetailVo>> getDetailList(TEmployeeContractPreNewSearchVo tEmployeeContractPreNew) { public R<List<TEmployeeContractPreNewDetailVo>> getDetailList(ContractAlertSearchVo tEmployeeContractPreNew) {
//系统会自动拉取当前客服且“预计合同发起时间”为空的或为今日及今日之前的,续签状态为“待发起、发起失败、审核不通过、签署失败”的合同信息 //系统会自动拉取当前客服且“预计合同发起时间”为空的或为今日及今日之前的,续签状态为“待发起、发起失败、审核不通过、签署失败”的合同信息
//续签状态,0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署
List<String> statusList = new ArrayList<>(); List<String> statusList = new ArrayList<>();
statusList.add(CommonConstants.FIVE_STRING);
statusList.add(CommonConstants.ONE_STRING); statusList.add(CommonConstants.ONE_STRING);
statusList.add(CommonConstants.FIVE_STRING);
statusList.add(CommonConstants.TEN_STRING);
statusList.add(CommonConstants.ELEVEN_STRING);
statusList.add(CommonConstants.SEVEN_STRING);
statusList.add(CommonConstants.THREE_STRING);
tEmployeeContractPreNew.setStatusList(statusList); tEmployeeContractPreNew.setStatusList(statusList);
initSearchVo(tEmployeeContractPreNew); initSearchVo(tEmployeeContractPreNew);
if (ArrayUtil.isNotEmpty(tEmployeeContractPreNew.getStartEndTimecreate())
&& tEmployeeContractPreNew.getStartEndTimecreate().length == 2) {
tEmployeeContractPreNew.setExpectedCollectionTimeStart(tEmployeeContractPreNew.getStartEndTimecreate()[0]);
tEmployeeContractPreNew.setExpectedCollectionTimeEnd(tEmployeeContractPreNew.getStartEndTimecreate()[1]);
}
return R.ok(baseMapper.getDetailList(tEmployeeContractPreNew)); return R.ok(baseMapper.getDetailList(tEmployeeContractPreNew));
} }
@Override @Override
public R<Integer> getDetailListCount(TEmployeeContractPreNewSearchVo tEmployeeContractPreNew) { public R<Integer> getDetailListCount(ContractAlertSearchVo tEmployeeContractPreNew) {
//系统会自动拉取当前客服且“预计合同发起时间”为空的或为今日及今日之前的,续签状态为“待发起、发起失败、审核不通过、签署失败”的合同信息 //系统会自动拉取当前客服且“预计合同发起时间”为空的或为今日及今日之前的,续签状态为“待发起、发起失败、审核不通过、签署失败”的合同信息
List<String> statusList = new ArrayList<>(); List<String> statusList = new ArrayList<>();
statusList.add(CommonConstants.FIVE_STRING);
statusList.add(CommonConstants.ONE_STRING); statusList.add(CommonConstants.ONE_STRING);
statusList.add(CommonConstants.FIVE_STRING);
statusList.add(CommonConstants.TEN_STRING);
statusList.add(CommonConstants.ELEVEN_STRING);
statusList.add(CommonConstants.SEVEN_STRING);
statusList.add(CommonConstants.THREE_STRING);
tEmployeeContractPreNew.setStatusList(statusList); tEmployeeContractPreNew.setStatusList(statusList);
initSearchVo(tEmployeeContractPreNew); initSearchVo(tEmployeeContractPreNew);
return R.ok(baseMapper.getDetailListCount(tEmployeeContractPreNew)); return R.ok(baseMapper.getDetailListCount(tEmployeeContractPreNew));
...@@ -1537,7 +1561,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon ...@@ -1537,7 +1561,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
return R.ok( term); return R.ok( term);
} }
public void initSearchVo(TEmployeeContractPreNewSearchVo searchVo) { public void initSearchVo(ContractAlertSearchVo searchVo) {
YifuUser user = SecurityUtils.getUser(); YifuUser user = SecurityUtils.getUser();
long roleId = 1839501715787390978L; long roleId = 1839501715787390978L;
boolean isSsc = this.haveRole(user, roleId); boolean isSsc = this.haveRole(user, roleId);
...@@ -1561,6 +1585,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon ...@@ -1561,6 +1585,7 @@ public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeCon
public R<TEmployeeContractInfo> getRenewContractByPreId(String preId) { public R<TEmployeeContractInfo> getRenewContractByPreId(String preId) {
return R.ok(contractInfoMapper.selectOne(Wrappers.<TEmployeeContractInfo>query() return R.ok(contractInfoMapper.selectOne(Wrappers.<TEmployeeContractInfo>query()
.lambda().eq(TEmployeeContractInfo::getPreId, preId) .lambda().eq(TEmployeeContractInfo::getPreId, preId)
.orderByDesc(BaseEntity::getCreateTime)
.last(CommonConstants.LAST_ONE_SQL))); .last(CommonConstants.LAST_ONE_SQL)));
} }
......
...@@ -156,6 +156,8 @@ public class DoFascTask { ...@@ -156,6 +156,8 @@ public class DoFascTask {
|| fddEvent.equals("sign-task-fill-rejected")) { || fddEvent.equals("sign-task-fill-rejected")) {
// 3:签署任务参与方签署失败事件 // 3:签署任务参与方签署失败事件
preNew.setProcessStatus(CommonConstants.dingleDigitStrArray[7]); preNew.setProcessStatus(CommonConstants.dingleDigitStrArray[7]);
preNew.setErrorInfo(terminationNote);
preNew.setErrorTime(new Date());
preNew.setRequestId(""); preNew.setRequestId("");
tEmployeeContractPreNewService.updateById(preNew); tEmployeeContractPreNewService.updateById(preNew);
......
...@@ -347,6 +347,12 @@ ...@@ -347,6 +347,12 @@
<if test="tEmpContractAlert.expectedCollectionTimeEnd != null"> <if test="tEmpContractAlert.expectedCollectionTimeEnd != null">
AND b.EXPECTED_COLLECTION_TIME <![CDATA[ <= ]]> #{tEmpContractAlert.expectedCollectionTimeEnd} AND b.EXPECTED_COLLECTION_TIME <![CDATA[ <= ]]> #{tEmpContractAlert.expectedCollectionTimeEnd}
</if> </if>
<if test="tEmpContractAlert.contractEndStart != null">
AND a.CONTRACT_END <![CDATA[ >= ]]> #{tEmpContractAlert.contractEndStart}
</if>
<if test="tEmpContractAlert.contractEndEnd != null">
AND a.CONTRACT_END <![CDATA[ <= ]]> #{tEmpContractAlert.contractEndEnd}
</if>
<if test="tEmpContractAlert.csLoginName != null and tEmpContractAlert.csLoginName.trim() != ''"> <if test="tEmpContractAlert.csLoginName != null and tEmpContractAlert.csLoginName.trim() != ''">
AND a.CS_LOGIN_NAME = #{tEmpContractAlert.csLoginName} AND a.CS_LOGIN_NAME = #{tEmpContractAlert.csLoginName}
</if> </if>
......
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