Commit 51398205 authored by 韩桐桐's avatar 韩桐桐

feat(设备注销):新加转办人字段,修改列表查询接口

parent d648553f
...@@ -86,35 +86,29 @@ public class JgScrapCancelDto extends BaseDto { ...@@ -86,35 +86,29 @@ public class JgScrapCancelDto extends BaseDto {
@ApiModelProperty(value = "下一步任务ID") @ApiModelProperty(value = "下一步任务ID")
private String nextTaskId; private String nextTaskId;
private List<String> roleIds; private List<String> roleIds;
@ApiModelProperty(value = "区分监管和企业")
// 区分监管和企业
private String type; private String type;
/** @ApiModelProperty(value = "使用单位编码")
* 使用单位编码
*/
private String useUnitCode; private String useUnitCode;
@ApiModelProperty(value = "使用单位名称")
/**
* 使用单位名称
*/
private String useUnitName; private String useUnitName;
@ApiModelProperty(value = "设备监管码") @ApiModelProperty(value = "设备监管码")
private String supervisoryCode; private String supervisoryCode;
/** @ApiModelProperty(value = "设备ID")
* 设备ID
*/
private String record; private String record;
@ApiModelProperty(value = "下一节点可执行人") @ApiModelProperty(value = "下一节点可执行人")
private String nextExecuteUserIds; private String nextExecuteUserIds;
@ApiModelProperty(value = "转办后执行人的Id逗号分割")
private String transferToUserIds;
@ApiModelProperty(value = "设备代号") @ApiModelProperty(value = "设备代号")
private String equList; private String equList;
......
...@@ -148,6 +148,12 @@ public class JgScrapCancel extends BaseEntity { ...@@ -148,6 +148,12 @@ public class JgScrapCancel extends BaseEntity {
@TableField("next_execute_user_ids") @TableField("next_execute_user_ids")
private String nextExecuteUserIds; private String nextExecuteUserIds;
/**
* 转办后执行人的Id逗号分割
*/
@TableField("transfer_to_user_ids")
private String transferToUserIds;
@TableField(exist = false) @TableField(exist = false)
private String equList; private String equList;
......
package com.yeejoin.amos.boot.module.jg.api.mapper; package com.yeejoin.amos.boot.module.jg.api.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jg.api.dto.JgScrapCancelDto; import com.yeejoin.amos.boot.module.jg.api.dto.JgScrapCancelDto;
import com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationDto;
import com.yeejoin.amos.boot.module.jg.api.entity.JgScrapCancel; import com.yeejoin.amos.boot.module.jg.api.entity.JgScrapCancel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
...@@ -19,17 +17,22 @@ import java.util.Map; ...@@ -19,17 +17,22 @@ import java.util.Map;
*/ */
public interface JgScrapCancelMapper extends BaseMapper<JgScrapCancel> { public interface JgScrapCancelMapper extends BaseMapper<JgScrapCancel> {
Page<Map<String, Object>> getListPage(@Param("page")Page<Map<String, Object>> page, @Param("dto") JgScrapCancelDto dto , @Param("roleIds") List<String> roleIds, @Param("orgCode") String orgCode); Page<Map<String, Object>> getListPage(@Param("page") Page<Map<String, Object>> page,
@Param("dto") JgScrapCancelDto dto,
@Param("roleIds") List<String> roleIds,
@Param("orgCode") String orgCode,
@Param("currentUserId") String currentUserId
);
Map<String, Object> getDetail(@Param("id")String id); Map<String, Object> getDetail(@Param("id") String id);
Map<String, Object> getInspectDetail(@Param("id")String id); Map<String, Object> getInspectDetail(@Param("id") String id);
Map<String, Object> getUseDetail(@Param("id")String id); Map<String, Object> getUseDetail(@Param("id") String id);
Page<Map<String, Object>> getEquipListPage(@Param("page")Page<Map<String, Object>> page,@Param("factoryNum") String factoryNum,@Param("equList")String equList,@Param("equCategory")String equCategory); Page<Map<String, Object>> getEquipListPage(@Param("page") Page<Map<String, Object>> page, @Param("factoryNum") String factoryNum, @Param("equList") String equList, @Param("equCategory") String equCategory);
void updatePromoter(@Param("id")Long id); void updatePromoter(@Param("id") Long id);
/** /**
* 根据安装告知编号查询设备、设计、制造等信息 * 根据安装告知编号查询设备、设计、制造等信息
......
...@@ -48,9 +48,6 @@ ...@@ -48,9 +48,6 @@
LEFT JOIN idx_biz_jg_use_info use on re.equ_id = use.RECORD LEFT JOIN idx_biz_jg_use_info use on re.equ_id = use.RECORD
<where> <where>
and ur.is_delete = 0 and ur.is_delete = 0
<!-- <if test="dto.equCategory != null and dto.equCategory != ''">-->
<!-- and jri.EQU_CATEGORY = #{dto.equCategory}-->
<!-- </if>-->
<if test="dto.auditStatus != null and dto.auditStatus != ''"> <if test="dto.auditStatus != null and dto.auditStatus != ''">
and ur.audit_status = #{dto.auditStatus} and ur.audit_status = #{dto.auditStatus}
</if> </if>
...@@ -68,14 +65,11 @@ ...@@ -68,14 +65,11 @@
</foreach> </foreach>
</if> </if>
<if test="dto.type == 'supervision'"> <if test="dto.type == 'supervision'">
AND ur.receive_org_code = #{orgCode} and ( ur.receive_org_code = #{orgCode} or ur.transfer_to_user_ids like concat('%',#{currentUserId},'%'))
</if> </if>
<if test="dto.type == 'company' "> <if test="dto.type == 'company' ">
and ur.use_unit_code = #{orgCode} and (ur.use_unit_code = #{orgCode} or ur.transfer_to_user_ids like concat('%',#{currentUserId},'%'))
</if> </if>
<!-- <if test="dto.type == 'enterprise'">-->
<!-- AND use.USE_UNIT_CREDIT_CODE = #{orgCode}-->
<!-- </if>-->
</where> </where>
order by ur.rec_date desc order by ur.rec_date desc
</select> </select>
......
...@@ -107,7 +107,8 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc ...@@ -107,7 +107,8 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
ReginParams reginParams = this.getSelectedOrgInfo(); ReginParams reginParams = this.getSelectedOrgInfo();
String orgCode = reginParams.getCompany().getCompanyCode(); String orgCode = reginParams.getCompany().getCompanyCode();
dto.setCreateUserId(reginParams.getUserModel().getUserId()); dto.setCreateUserId(reginParams.getUserModel().getUserId());
Page<Map<String, Object>> listPage = this.baseMapper.getListPage(page, dto, roleIds, orgCode); String currentUserId = reginParams.getUserModel().getUserId();
Page<Map<String, Object>> listPage = this.baseMapper.getListPage(page, dto, roleIds, orgCode, currentUserId);
listPage.getRecords().forEach(item -> { listPage.getRecords().forEach(item -> {
if (item.containsKey("auditStatus") && Objects.nonNull(item.get("auditStatus"))) { if (item.containsKey("auditStatus") && Objects.nonNull(item.get("auditStatus"))) {
item.put("auditStatusDesc", item.get("auditStatus").toString()); item.put("auditStatusDesc", item.get("auditStatus").toString());
......
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