Commit d290d0b3 authored by hongguangwu's avatar hongguangwu

Merge remote-tracking branch 'origin/develop' into develop

parents 45e23745 8bd62c86
......@@ -49,7 +49,6 @@ import java.util.Map;
@RequiredArgsConstructor
@RequestMapping("/tempcontractalert" )
@Tag(name = "员工合同续签待办管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TEmpContractAlertController {
private final TEmpContractAlertService tEmpContractAlertService;
......@@ -148,7 +147,8 @@ public class TEmpContractAlertController {
* @Date 2022-07-4
**/
@SysLog("定时任务生成合同续签代码信息")
@Inner
@Operation(description = "定时任务生成合同续签代码信息")
//@Inner
@PostMapping("/inner/taskCreateContractAlert")
public R<Boolean> taskCreateContractAlert() {
return tEmpContractAlertService.taskCreateContractAlert();
......
......@@ -259,20 +259,28 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
alert.setEmpIdcard(contract.getEmpIdcard());
alert.setContractStart(LocalDateTimeUtils.convertLDToDate(contract.getContractStart()));
alert.setContractEnd(LocalDateTimeUtils.convertLDToDate(contract.getContractEnd()));
alert.setFileProvince(Integer.toString(contract.getFileProvince()));
alert.setFileCity(Integer.toString(contract.getFileCity()));
alert.setFileTown(Integer.toString(contract.getFileTown()));
if (Common.isNotNull(contract.getFileProvince())){
alert.setFileProvince(Integer.toString(contract.getFileProvince()));
}
if (Common.isNotNull(contract.getFileCity())){
alert.setFileCity(Integer.toString(contract.getFileCity()));
}
if (Common.isNotNull(contract.getFileTown())){
alert.setFileTown(Integer.toString(contract.getFileTown()));
}
alert.setEmpType(contract.getEmpNatrue());
alert.setContractTerm(contract.getContractType());
alert.setContractTerm(contract.getContractTerm());
if (Common.isNotNull(contract.getContractEnd()) && contract.getContractEnd().isBefore(now)){
alert.setDueFlag(CommonConstants.ONE_STRING);
alert.setDaysOver(DateUtil.daysBetween(nowDate,alert.getContractEnd()));
}else {
alert.setDaysDue(DateUtil.daysBetween(alert.getContractEnd(), nowDate));
alert.setDueFlag(CommonConstants.ZERO_STRING);
if (Common.isNotNull(alert.getContractEnd())){
if (Common.isNotNull(contract.getContractEnd()) && contract.getContractEnd().isBefore(now)){
alert.setDueFlag(CommonConstants.ONE_STRING);
alert.setDaysOver(DateUtil.daysBetween(nowDate,alert.getContractEnd()));
}else {
alert.setDaysDue(DateUtil.daysBetween(alert.getContractEnd(), nowDate));
alert.setDueFlag(CommonConstants.ZERO_STRING);
}
alert.setFirstAlertTime(DateUtil.dateIncreaseByMonth(alert.getContractEnd(),CommonConstants.THREE_INT_NEGATE));
}
alert.setFirstAlertTime(DateUtil.dateIncreaseByMonth(alert.getContractEnd(),CommonConstants.THREE_INT_NEGATE));
alert.setHandleStatus(CommonConstants.ZERO_STRING);
alertMap.put(alert.getEmpIdcard(),alert);
}
......
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