|
@@ -561,9 +561,12 @@ public class UserController {
|
|
|
newUser.setCompanyName(companyName);*/
|
|
|
|
|
|
/*2023年8月4日16:29:14,修改需求,匹配到对应合同段中去*/
|
|
|
+ /*2023年10月13日13:43:26,修改需求,增加:中国水利水电第八工程局有限公司-属于二期合同段、重庆市交通工程监理咨询有限责任公司-属于一监办*/
|
|
|
if (companyName.contains("重庆白马航运发展有限公司")
|
|
|
|| companyName.contains("四川二滩国际工程咨询有限责任公司")
|
|
|
|| companyName.contains("中国水利水电第四工程局中电建路桥集团联合体")
|
|
|
+ || companyName.contains("中国水利水电第八工程局有限公司")
|
|
|
+ || companyName.contains("重庆市交通工程监理咨询有限责任公司")
|
|
|
|| companyName.contains("中铁长江交通设计集团有限公司")
|
|
|
|| companyName.contains("中铁八局集团有限公司")) {
|
|
|
Long sysUser = userService.getBaseMapper().selectCount(Wrappers.<User>lambdaQuery().eq(User::getSysId, id).eq(User::getSysType, 2));
|
|
@@ -604,8 +607,9 @@ public class UserController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //二期合同段(八局、二滩、长江设计单位)
|
|
|
- if (companyName.contains("中铁八局集团有限公司") || companyName.contains("四川二滩国际工程咨询有限责任公司") || companyName.contains("中铁长江交通设计集团有限公司")) {
|
|
|
+ //二期合同段(八局、二滩、长江设计单位、中国水利水电第八工程局有限公司)
|
|
|
+ if (companyName.contains("中铁八局集团有限公司") || companyName.contains("四川二滩国际工程咨询有限责任公司")
|
|
|
+ || companyName.contains("中铁长江交通设计集团有限公司") || companyName.contains("中国水利水电第八工程局有限公司")) {
|
|
|
Long count = jdbcTemplate.queryForObject("select count(1) from m_project_assignment_user where user_id = " + newUser.getId() + " and project_id = 1612329251049537537 and contract_id = 1612335077269143554 and post_id is null and status = 1 and is_deleted = 0", Long.class);
|
|
|
if (count == null || count == 0L) {
|
|
|
//绑定项目,设置默认角色信息 白马项目id:1612329251049537537;第二期合同段id:1612335077269143554;角色施工-资料员id:1537249581371707394
|
|
@@ -634,6 +638,16 @@ public class UserController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //一监办合同段(重庆市交通工程监理咨询有限责任公司)
|
|
|
+ if (companyName.contains("重庆市交通工程监理咨询有限责任公司")) {
|
|
|
+ Long count = jdbcTemplate.queryForObject("select count(1) from m_project_assignment_user where user_id = " + newUser.getId() + " and project_id = 1612329251049537537 and contract_id = 1687370014959017986 and post_id is null and status = 1 and is_deleted = 0", Long.class);
|
|
|
+ if (count == null || count == 0L) {
|
|
|
+ //绑定项目,设置默认角色信息 白马项目id:1612329251049537537;一监办合同段id:1687370014959017986;角色施工-资料员id:1537249581371707394
|
|
|
+ saveUserInfoByProjectClient.saveInfoRelation(newUser.getId(), 1612329251049537537L, 1687370014959017986L, 1537249581371707394L);
|
|
|
+ newUser.setRoleId("1537249581371707394");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/*修改需求前*/
|
|
|
/*Long count = jdbcTemplate.queryForObject("select count(1) from m_project_assignment_user where user_id = " + newUser.getId() + " and project_id = 1612329251049537537 and contract_id = 1612335077269143554 and post_id is null and status = 1 and is_deleted = 0", Long.class);
|
|
|
if (count == null || count == 0L) {
|