查看bug修复
parent
cd048126c0
commit
5d46fa3c4d
|
@ -68,12 +68,22 @@ public class XgfUserServiceImpl implements XgfUserService {
|
|||
x.put("OPERATOR_TIME", DateUtil.getTime());
|
||||
x.put("IS_DELETE", "0");
|
||||
x.put("CREATE_TIME", DateUtil.getTime());
|
||||
/* 监管部门 */
|
||||
condition.clear();
|
||||
condition.put("DEPARTMENT_ID", x.get("MANAGER_DEPARTMENT_ID"));
|
||||
PageData regDepartmentEntity = departmentService.getCorpDepartment(condition);
|
||||
if (regDepartmentEntity != null && regDepartmentEntity.size() > 0) {
|
||||
x.put("MANAGER_DEPARTMENT_NAME", regDepartmentEntity.get("NAME"));
|
||||
}
|
||||
|
||||
/* 主管部门 */
|
||||
condition.clear();
|
||||
condition.put("DEPARTMENT_ID", x.get("MAIN_DEPARTMENT_ID"));
|
||||
regDepartmentEntity = departmentService.getCorpDepartment(condition);
|
||||
x.put("MAIN_DEPARTMENT_NAME", regDepartmentEntity.get("NAME"));
|
||||
if (regDepartmentEntity.size() > 0) {
|
||||
x.put("MAIN_DEPARTMENT_NAME", regDepartmentEntity.get("NAME"));
|
||||
}
|
||||
xgfUserMapper.save(x);
|
||||
xgfUserDetailsMapper.save(x);
|
||||
} else {
|
||||
|
@ -82,13 +92,23 @@ public class XgfUserServiceImpl implements XgfUserService {
|
|||
x.put("IS_DELETE", "0");
|
||||
x.put("CREATE_TIME", DateUtil.getTime());
|
||||
x.put("OPERATOR_TIME", DateUtil.getTime());
|
||||
/* 监管部门 */
|
||||
condition.clear();
|
||||
condition.put("DEPARTMENT_ID", x.get("MANAGER_DEPARTMENT_ID"));
|
||||
PageData regDepartmentEntity = departmentService.getCorpDepartment(condition);
|
||||
if (regDepartmentEntity != null && regDepartmentEntity.size() > 0) {
|
||||
x.put("MANAGER_DEPARTMENT_NAME", regDepartmentEntity.get("NAME"));
|
||||
}
|
||||
x.put("ISDELETE", "0");
|
||||
/* 主管部门 */
|
||||
condition.clear();
|
||||
condition.put("DEPARTMENT_ID", x.get("MAIN_DEPARTMENT_ID"));
|
||||
regDepartmentEntity = departmentService.getCorpDepartment(condition);
|
||||
x.put("MAIN_DEPARTMENT_NAME", regDepartmentEntity.get("NAME"));
|
||||
if (regDepartmentEntity.size() > 0) {
|
||||
x.put("MAIN_DEPARTMENT_NAME", regDepartmentEntity.get("NAME"));
|
||||
}
|
||||
|
||||
x.put("IS_DELETE", "0");
|
||||
x.put("VALID_FLAG", "1");
|
||||
x.put("STATUS", "2");
|
||||
xgfUserMapper.edit(x);
|
||||
|
|
|
@ -52,6 +52,11 @@
|
|||
f.IS_SPECIAL_JOB,
|
||||
f.CORPINFO_ID,
|
||||
f.MANAGER_DEPARTMENT_ID,
|
||||
f.MANAGER_DEPARTMENT_NAME,
|
||||
f.COMPETENT_DEPARTMENT_ID,
|
||||
f.COMPETENT_DEPARTMENT_NAME,
|
||||
f.MAIN_DEPARTMENT_ID,
|
||||
f.MAIN_DEPARTMENT_NAME,
|
||||
f.CARD_ID,
|
||||
f.DEPARTMENT_ID,
|
||||
f.DEPARTMENT_NAME,
|
||||
|
@ -107,6 +112,10 @@
|
|||
CORPINFO_ID,
|
||||
MANAGER_DEPARTMENT_ID,
|
||||
MANAGER_DEPARTMENT_NAME,
|
||||
COMPETENT_DEPARTMENT_ID,
|
||||
COMPETENT_DEPARTMENT_NAME,
|
||||
MAIN_DEPARTMENT_ID,
|
||||
MAIN_DEPARTMENT_NAME,
|
||||
CARD_ID,
|
||||
DEPARTMENT_ID,
|
||||
DEPARTMENT_NAME,
|
||||
|
@ -162,6 +171,10 @@
|
|||
#{CORPINFO_ID},
|
||||
#{MANAGER_DEPARTMENT_ID},
|
||||
#{MANAGER_DEPARTMENT_NAME},
|
||||
#{COMPETENT_DEPARTMENT_ID},
|
||||
#{COMPETENT_DEPARTMENT_NAME},
|
||||
#{MAIN_DEPARTMENT_ID},
|
||||
#{MAIN_DEPARTMENT_NAME},
|
||||
#{CARD_ID},
|
||||
#{DEPARTMENT_ID},
|
||||
#{DEPARTMENT_NAME},
|
||||
|
@ -241,6 +254,10 @@
|
|||
CORPINFO_ID = #{CORPINFO_ID},
|
||||
MANAGER_DEPARTMENT_ID = #{MANAGER_DEPARTMENT_ID},
|
||||
MANAGER_DEPARTMENT_NAME = #{MANAGER_DEPARTMENT_NAME},
|
||||
COMPETENT_DEPARTMENT_ID = #{COMPETENT_DEPARTMENT_ID},
|
||||
COMPETENT_DEPARTMENT_NAME = #{COMPETENT_DEPARTMENT_NAME},
|
||||
MAIN_DEPARTMENT_ID = #{MAIN_DEPARTMENT_ID},
|
||||
MAIN_DEPARTMENT_NAME = #{MAIN_DEPARTMENT_NAME},
|
||||
CARD_ID = #{CARD_ID},
|
||||
DEPARTMENT_ID = #{DEPARTMENT_ID},
|
||||
DEPARTMENT_NAME = #{DEPARTMENT_NAME},
|
||||
|
|
|
@ -198,7 +198,16 @@
|
|||
</foreach>
|
||||
</select>
|
||||
<select id="flowlistPage" resultType="com.zcloud.entity.PageData">
|
||||
select a.XGF_USER_ID,a.BELONG_TO_CORP,a.BELONG_TO_CORP_NAME,a.USERNAME,a.NAME,b.MANAGER_DEPARTMENT_ID from
|
||||
select a.XGF_USER_ID,
|
||||
a.BELONG_TO_CORP,
|
||||
a.BELONG_TO_CORP_NAME,
|
||||
a.USERNAME,
|
||||
a.NAME,
|
||||
b.MANAGER_DEPARTMENT_ID,
|
||||
b.MANAGER_DEPARTMENT_NAME,
|
||||
b.MAIN_DEPARTMENT_ID,
|
||||
b.MAIN_DEPARTMENT_NAME
|
||||
from
|
||||
xgf_user a
|
||||
left join xgf_user_details b on a.XGF_USER_ID = b.XGF_USER_ID
|
||||
where 1=1
|
||||
|
|
Loading…
Reference in New Issue