|
@@ -67,6 +67,9 @@ public class TmContractorServiceImpl extends ServiceImpl<ITmContractorMapper, Tm
|
|
|
if(contractorUser == null){
|
|
|
throw new BusinessException(ResultCode.CONTRACTOR_USER_ERROR);
|
|
|
}
|
|
|
+ if(mainContractorUser.getId().equals(contractorUser.getId()) || mainContractorUser.getCompanyId().equals(contractorUser.getCompanyId())){
|
|
|
+ throw new BusinessException(ResultCode.CONTRACTOR_ERROR);
|
|
|
+ }
|
|
|
|
|
|
TmContractor tmContractor = this.getByMainContractor(mainContractorUser.getId(),contractorUser.getId());
|
|
|
if(tmContractor == null){
|