多工程入场限制黑名单
This commit is contained in:
parent
857af6e4cd
commit
65a41635e2
|
|
@ -265,6 +265,11 @@ public class PmWorkerServiceImpl implements PmWorkerService{
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult insertProEin(PmWorker o) {
|
public AjaxResult insertProEin(PmWorker o) {
|
||||||
|
//是否失信人员名单
|
||||||
|
PmWorker worker2 = mapper.getBlackWorkerByNumber(o.getIdNumber());
|
||||||
|
if(worker2 != null && worker2.getName() != null){
|
||||||
|
return new AjaxResult(500, worker2.getName()+"施工人员在失信人员名单,无法入场");
|
||||||
|
}
|
||||||
//先查到现在的合同id
|
//先查到现在的合同id
|
||||||
Integer contractId = mapper.getContractIdByWorkerId(o.getId());
|
Integer contractId = mapper.getContractIdByWorkerId(o.getId());
|
||||||
o.setContractId(contractId);
|
o.setContractId(contractId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue