guoshuai 2 veckor sedan
förälder
incheckning
b7cf687cee
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/main/java/com/qmrb/system/service/impl/ContractServiceImpl.java

+ 1 - 0
src/main/java/com/qmrb/system/service/impl/ContractServiceImpl.java

@@ -114,6 +114,7 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract> i
             roles = roleService.list(new LambdaQueryWrapper<SysRole>().eq(SysRole::getCode, "SCAN_CONTRACT"));// 协议用户角色
 
         }
+        user.setDeptId(1L);//默认部门
         user.setMobile(form.getContactPhone());
         user.setNickname(form.getContractName());
         if (CollectionUtil.isNotEmpty(roles)) {