查看bug修复

pull/5/head
liujun 2023-12-22 13:39:11 +08:00
parent 644ee59398
commit cd048126c0
3 changed files with 29 additions and 19 deletions

View File

@ -27,7 +27,7 @@ public class ApiXgfUserController extends BaseController {
PageData request = this.getPageData(); PageData request = this.getPageData();
xgfUserService.init(request); xgfUserService.init(request);
Map<String, Object> response = new HashMap<String, Object>(); Map<String, Object> response = new HashMap<String, Object>();
response.put("result", "response"); response.put("result", "success");
return response; return response;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

View File

@ -71,7 +71,9 @@ public class XgfUserServiceImpl implements XgfUserService {
condition.clear(); condition.clear();
condition.put("DEPARTMENT_ID",x.get("MANAGER_DEPARTMENT_ID")); condition.put("DEPARTMENT_ID",x.get("MANAGER_DEPARTMENT_ID"));
PageData regDepartmentEntity = departmentService.getCorpDepartment(condition); PageData regDepartmentEntity = departmentService.getCorpDepartment(condition);
if (regDepartmentEntity != null && regDepartmentEntity.size() > 0) {
x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME")); x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME"));
}
xgfUserMapper.save(x); xgfUserMapper.save(x);
xgfUserDetailsMapper.save(x); xgfUserDetailsMapper.save(x);
} else { } else {
@ -83,8 +85,9 @@ public class XgfUserServiceImpl implements XgfUserService {
condition.clear(); condition.clear();
condition.put("DEPARTMENT_ID",x.get("MANAGER_DEPARTMENT_ID")); condition.put("DEPARTMENT_ID",x.get("MANAGER_DEPARTMENT_ID"));
PageData regDepartmentEntity = departmentService.getCorpDepartment(condition); PageData regDepartmentEntity = departmentService.getCorpDepartment(condition);
if (regDepartmentEntity != null && regDepartmentEntity.size() > 0) {
x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME")); x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME"));
}
x.put("ISDELETE", "0"); x.put("ISDELETE", "0");
x.put("VALID_FLAG", "1"); x.put("VALID_FLAG", "1");
x.put("STATUS", "2"); x.put("STATUS", "2");

View File

@ -74,7 +74,7 @@
update update
<include refid="tableName"></include> <include refid="tableName"></include>
set set
ISDELETE = '1' IS_DELETE = '1'
where where
XGF_USER_ID = #{XGF_USER_ID} XGF_USER_ID = #{XGF_USER_ID}
</delete> </delete>
@ -89,7 +89,7 @@
VALID_FLAG = #{VALID_FLAG}, VALID_FLAG = #{VALID_FLAG},
BELONG_TO_CORP = #{BELONG_TO_CORP}, BELONG_TO_CORP = #{BELONG_TO_CORP},
BELONG_TO_CORP_NAME = #{BELONG_TO_CORP_NAME}, BELONG_TO_CORP_NAME = #{BELONG_TO_CORP_NAME},
ISDELETE = #{ISDELETE}, IS_DELETE = #{IS_DELETE},
CREATE_TIME = #{CREATE_TIME}, CREATE_TIME = #{CREATE_TIME},
CORPINFO_ID = #{CORPINFO_ID}, CORPINFO_ID = #{CORPINFO_ID},
STATUS = #{STATUS}, STATUS = #{STATUS},
@ -151,7 +151,7 @@
from from
<include refid="tableName"></include> <include refid="tableName"></include>
f f
where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID} where f.IS_DELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID}
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 --> <if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
and(f.BELONG_TO_CORP_NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')) and(f.BELONG_TO_CORP_NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%'))
</if> </if>
@ -166,7 +166,7 @@
from from
<include refid="tableName"></include> <include refid="tableName"></include>
f f
where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID} where f.IS_DELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID}
</select> </select>
<!-- 批量删除 --> <!-- 批量删除 -->
@ -174,7 +174,7 @@
update update
<include refid="tableName"></include> <include refid="tableName"></include>
set set
ISDELETE = '1', IS_DELETE = '1',
OPERATOR = #{OPERATOR}, OPERATOR = #{OPERATOR},
OPERATTIME = #{OPERATTIME} OPERATTIME = #{OPERATTIME}
where where
@ -191,14 +191,15 @@
from from
<include refid="tableName"></include> <include refid="tableName"></include>
f f
where f.ISDELETE = '0' where f.IS_DELETE = '0'
and XGF_USER_ID in and f.XGF_USER_ID in
<foreach item="item" index="index" collection="XGF_USER_IDS" open="(" separator="," close=")"> <foreach item="item" index="index" collection="XGF_USER_IDS" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>
</select> </select>
<select id="flowlistPage" resultType="com.zcloud.entity.PageData"> <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 xgf_user a select a.XGF_USER_ID,a.BELONG_TO_CORP,a.BELONG_TO_CORP_NAME,a.USERNAME,a.NAME,b.MANAGER_DEPARTMENT_ID from
xgf_user a
left join xgf_user_details b on a.XGF_USER_ID = b.XGF_USER_ID left join xgf_user_details b on a.XGF_USER_ID = b.XGF_USER_ID
where 1=1 where 1=1
<if test="pd.STATUS != null and pd.STATUS != ''"> <if test="pd.STATUS != null and pd.STATUS != ''">
@ -207,6 +208,12 @@
<if test="pd.UN_STUDY_STATUS != null and pd.UN_STUDY_STATUS != ''"> <if test="pd.UN_STUDY_STATUS != null and pd.UN_STUDY_STATUS != ''">
and a.STUDY_STATUS != #{pd.UN_STUDY_STATUS} and a.STUDY_STATUS != #{pd.UN_STUDY_STATUS}
</if> </if>
<if test="pd.STUDY_STATUS != null and pd.STUDY_STATUS != ''">
and a.STUDY_STATUS = #{pd.STUDY_STATUS}
</if>
<if test="pd.CORPINFO_ID != '' and pd.CORPINFO_ID != null">
and a.CORPINFO_ID = #{pd.CORPINFO_ID}
</if>
</select> </select>
<select id="getInfoById" resultType="com.zcloud.entity.PageData"> <select id="getInfoById" resultType="com.zcloud.entity.PageData">
select a.XGF_USER_ID, select a.XGF_USER_ID,
@ -220,7 +227,7 @@
b.PHONE, b.PHONE,
b.CREATE_TIME, b.CREATE_TIME,
b.DEPART_STATE, b.DEPART_STATE,
b.ISDELETE, b.IS_DELETE,
b.AGE, b.AGE,
b.HKLOCAL, b.HKLOCAL,
b.ADDRESS, b.ADDRESS,