多工程入场限制黑名单

This commit is contained in:
方亮 2025-10-24 10:25:07 +08:00
parent 857af6e4cd
commit 65a41635e2
1 changed files with 5 additions and 0 deletions

View File

@ -265,6 +265,11 @@ public class PmWorkerServiceImpl implements PmWorkerService{
*/
@Override
public AjaxResult insertProEin(PmWorker o) {
//是否失信人员名单
PmWorker worker2 = mapper.getBlackWorkerByNumber(o.getIdNumber());
if(worker2 != null && worker2.getName() != null){
return new AjaxResult(500, worker2.getName()+"施工人员在失信人员名单,无法入场");
}
//先查到现在的合同id
Integer contractId = mapper.getContractIdByWorkerId(o.getId());
o.setContractId(contractId);