Commit 8b84cffc authored by huyuchen's avatar huyuchen

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

parents 74e50788 1753507b
...@@ -51,7 +51,7 @@ import java.util.List; ...@@ -51,7 +51,7 @@ import java.util.List;
*/ */
@RestController @RestController
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("/temployeecontractinfo") @RequestMapping("/getListByParam")
@Tag(name = "员工合同管理") @Tag(name = "员工合同管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION) @SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TEmployeeContractInfoController { public class TEmployeeContractInfoController {
......
...@@ -351,8 +351,15 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr ...@@ -351,8 +351,15 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
} }
if (tEmployeeContractInfo.getAuditStatus() == CommonConstants.dingleDigitIntArray[2]) { if (tEmployeeContractInfo.getAuditStatus() == CommonConstants.dingleDigitIntArray[2]) {
TEmployeeContractInfo contractInfo = this.getById(tEmployeeContractInfo.getId()); TEmployeeContractInfo contractInfo = this.getById(tEmployeeContractInfo.getId());
// 作废、终止,不变为在用
if (Common.isEmpty(contractInfo.getSituation())
|| (!CommonConstants.dingleDigitStrArray[6].equals(contractInfo.getSituation())
&& !CommonConstants.dingleDigitStrArray[7].equals(contractInfo.getSituation()))) {
tEmployeeContractInfo.setInUse(CommonConstants.ZERO_STRING); tEmployeeContractInfo.setInUse(CommonConstants.ZERO_STRING);
}
tEmployeeContractInfo.setAuditTimeLast(LocalDateTime.now()); tEmployeeContractInfo.setAuditTimeLast(LocalDateTime.now());
//先停用项目内的其他的员工合同 //先停用项目内的其他的员工合同
baseMapper.updateInUseStatusById(contractInfo.getEmpId(), contractInfo.getSettleDomain() baseMapper.updateInUseStatusById(contractInfo.getEmpId(), contractInfo.getSettleDomain()
, contractInfo.getId(), CommonConstants.ONE_STRING); , contractInfo.getId(), CommonConstants.ONE_STRING);
......
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