Commit 25ab9591 authored by tianyiming's avatar tianyiming

启用停用列表修改

parent d7126361
...@@ -18,7 +18,8 @@ public interface JgEnableDisableMapper extends BaseMapper<JgEnableDisable> { ...@@ -18,7 +18,8 @@ public interface JgEnableDisableMapper extends BaseMapper<JgEnableDisable> {
Page<Map<String, Object>> pageList(@Param("page") Page<Map<String, Object>> page, Page<Map<String, Object>> pageList(@Param("page") Page<Map<String, Object>> page,
@Param("dto") JgEnableDisableDto dto, @Param("dto") JgEnableDisableDto dto,
@Param("type") String type); @Param("type") String type,
@Param("userId") String userId);
Map<String, Object> getDetail(@Param("sequenceNbr") Long sequenceNbr); Map<String, Object> getDetail(@Param("sequenceNbr") Long sequenceNbr);
} }
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
jed.promoter, jed.promoter,
jed.next_execute_user_ids as nextExecuteUserIds, jed.next_execute_user_ids as nextExecuteUserIds,
jed.create_user_id as createUserId, jed.create_user_id as createUserId,
jed.next_task_id as nextTaskId,
oi.SUPERVISORY_CODE as supervisoryCode oi.SUPERVISORY_CODE as supervisoryCode
FROM tzs_jg_enable_disable jed FROM tzs_jg_enable_disable jed
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
LEFT JOIN idx_biz_jg_use_info use on jri.RECORD = use.RECORD LEFT JOIN idx_biz_jg_use_info use on jri.RECORD = use.RECORD
LEFT JOIN idx_biz_jg_other_info oi on jri.RECORD = oi.RECORD LEFT JOIN idx_biz_jg_other_info oi on jri.RECORD = oi.RECORD
<where> <where>
jed.is_delete = 0
<if test="dto.applyNo != null and dto.applyNo != '' "> <if test="dto.applyNo != null and dto.applyNo != '' ">
and jed.apply_no like concat('%',#{dto.applyNo},'%') and jed.apply_no like concat('%',#{dto.applyNo},'%')
</if> </if>
...@@ -53,6 +55,7 @@ ...@@ -53,6 +55,7 @@
<if test="dto.applyType != null and dto.applyType != ''"> <if test="dto.applyType != null and dto.applyType != ''">
and jed.apply_type = #{dto.applyType} and jed.apply_type = #{dto.applyType}
</if> </if>
or jed.transfer_to_user_ids like concat('%',#{userId},'%')
</where> </where>
order by jed.rec_date desc order by jed.rec_date desc
</select> </select>
......
...@@ -232,8 +232,8 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto, ...@@ -232,8 +232,8 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
//摘要 按原有规则组装 //摘要 按原有规则组装
dto.setTaskContent( dto.setTaskContent(
String.format("来自%s【%s】的业务办理,【申请单号:%s】", String.format("来自%s【%s】的业务办理,【申请单号:%s】",
ObjectUtils.isEmpty(jgEnableDisable.getEquList()) ? "null" : jgEnableDisable.getEquList(), ObjectUtils.isEmpty(jgEnableDisable.getEquList()) ? "" : jgEnableDisable.getEquList(),
ObjectUtils.isEmpty(jgEnableDisable.getSupervisoryCode()) ? "null" : jgEnableDisable.getSupervisoryCode(), ObjectUtils.isEmpty(jgEnableDisable.getSupervisoryCode()) ? "" : jgEnableDisable.getSupervisoryCode(),
jgEnableDisable.getApplyNo())); jgEnableDisable.getApplyNo()));
//申请单号 //申请单号
dto.setTaskCode(jgEnableDisable.getApplyNo()); dto.setTaskCode(jgEnableDisable.getApplyNo());
...@@ -334,7 +334,8 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto, ...@@ -334,7 +334,8 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
dto.setReceiveCompanyCode(reginParams.getCompany().getCompanyCode()); dto.setReceiveCompanyCode(reginParams.getCompany().getCompanyCode());
} }
String level = reginParams.getCompany().getLevel(); String level = reginParams.getCompany().getLevel();
return this.baseMapper.pageList(page, dto, level); String userId = reginParams.getUserModel().getUserId();
return this.baseMapper.pageList(page, dto, level,userId);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment