Commit 7d64b6b3 authored by tianyiming's avatar tianyiming

维修告知修改

parent 9346c2c0
...@@ -214,4 +214,7 @@ public class JgMaintainNoticeDto extends BaseDto { ...@@ -214,4 +214,7 @@ public class JgMaintainNoticeDto extends BaseDto {
private String equList; private String equList;
private String supervisoryCode; private String supervisoryCode;
@ApiModelProperty(value = "下一节点可执行人逗号分割")
private String nextExecuteUserIds;
} }
...@@ -39,10 +39,9 @@ public interface IJgMaintainNoticeService extends IService<JgMaintainNotice> { ...@@ -39,10 +39,9 @@ public interface IJgMaintainNoticeService extends IService<JgMaintainNotice> {
* *
* @param page 分页对象 * @param page 分页对象
* @param model 查询参数 * @param model 查询参数
* @param type 类型:enterprise-企业端、supervision-监管端
* @return 维修告知列表 * @return 维修告知列表
*/ */
Page<JgMaintainNoticeDto> queryForJgMaintainNoticePage(Page<JgMaintainNotice> page, JgMaintainNoticeDto model, String type, ReginParams reginParams); Page<JgMaintainNoticeDto> queryForJgMaintainNoticePage(Page<JgMaintainNotice> page, JgMaintainNoticeDto model, ReginParams reginParams);
/** /**
* 批量删除 * 批量删除
......
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
AND isn.maintain_type = #{param.maintainType} AND isn.maintain_type = #{param.maintainType}
</if> </if>
</if> </if>
<if test="type == 'supervision'"> <if test="type != 'company'">
AND (isn.notice_status in ('6612', '6614', '6616') ) AND isn.instance_id is not null
AND isn.receive_org_code = #{orgCode} AND isn.receive_org_code = #{orgCode}
</if> </if>
<if test="type == 'enterprise'"> <if test="type == 'company'">
AND isn.install_unit_credit_code = #{orgCode} AND isn.install_unit_credit_code = #{orgCode}
</if> </if>
</where> </where>
......
...@@ -128,12 +128,11 @@ public class JgMaintainNoticeController extends BaseController { ...@@ -128,12 +128,11 @@ public class JgMaintainNoticeController extends BaseController {
public ResponseModel<Page<JgMaintainNoticeDto>> queryForPage( public ResponseModel<Page<JgMaintainNoticeDto>> queryForPage(
@ApiParam(value = "当前页码", required = true) @RequestParam(value = "current", defaultValue = "1") int current, @ApiParam(value = "当前页码", required = true) @RequestParam(value = "current", defaultValue = "1") int current,
@ApiParam(value = "每页大小", required = true) @RequestParam(value = "size", defaultValue = "20") int size, @ApiParam(value = "每页大小", required = true) @RequestParam(value = "size", defaultValue = "20") int size,
@ApiParam(value = "类型:enterprise-企业端、supervision-监管端", required = true) @RequestParam(value = "type", defaultValue = "enterprise") String type,
@RequestBody(required = false) JgMaintainNoticeDto model @RequestBody(required = false) JgMaintainNoticeDto model
) { ) {
Page<JgMaintainNotice> page = new Page<>(current, size); Page<JgMaintainNotice> page = new Page<>(current, size);
ReginParams reginParams = getSelectedOrgInfo(); ReginParams reginParams = getSelectedOrgInfo();
return ResponseHelper.buildResponse(iJgMaintainNoticeService.queryForJgMaintainNoticePage(page, model, type, reginParams)); return ResponseHelper.buildResponse(iJgMaintainNoticeService.queryForJgMaintainNoticePage(page, model, reginParams));
} }
/** /**
......
...@@ -24,6 +24,7 @@ import com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum; ...@@ -24,6 +24,7 @@ import com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum;
import com.yeejoin.amos.boot.module.jg.api.enums.WorkFlowStatusEnum; import com.yeejoin.amos.boot.module.jg.api.enums.WorkFlowStatusEnum;
import com.yeejoin.amos.boot.module.jg.api.mapper.JgMaintainNoticeEqMapper; import com.yeejoin.amos.boot.module.jg.api.mapper.JgMaintainNoticeEqMapper;
import com.yeejoin.amos.boot.module.jg.api.mapper.JgMaintainNoticeMapper; import com.yeejoin.amos.boot.module.jg.api.mapper.JgMaintainNoticeMapper;
import com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService;
import com.yeejoin.amos.boot.module.jg.api.service.IJgMaintainNoticeService; import com.yeejoin.amos.boot.module.jg.api.service.IJgMaintainNoticeService;
import com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient; import com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient;
import com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils; import com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils;
...@@ -69,6 +70,9 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -69,6 +70,9 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
private static final String TABLE_PAGE_ID = "maintainInfo"; private static final String TABLE_PAGE_ID = "maintainInfo";
@Autowired @Autowired
IJgInstallationNoticeService iJgInstallationNoticeService;
@Autowired
EquipmentCategoryMapper equipmentCategoryMapper; EquipmentCategoryMapper equipmentCategoryMapper;
@Autowired @Autowired
JgMaintainNoticeEqMapper jgMaintainNoticeEqMapper; JgMaintainNoticeEqMapper jgMaintainNoticeEqMapper;
...@@ -260,12 +264,12 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto ...@@ -260,12 +264,12 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
* *
* @param page 分页对象 * @param page 分页对象
* @param model 查询参数 * @param model 查询参数
* @param type 类型:enterprise-企业端、supervision-监管端
* @return 维修告知列表 * @return 维修告知列表
*/ */
@Override @Override
public Page<JgMaintainNoticeDto> queryForJgMaintainNoticePage(Page<JgMaintainNotice> page, JgMaintainNoticeDto model, String type, ReginParams reginParams) { public Page<JgMaintainNoticeDto> queryForJgMaintainNoticePage(Page<JgMaintainNotice> page, JgMaintainNoticeDto model, ReginParams reginParams) {
String orgCode = reginParams.getCompany().getCompanyCode(); String orgCode = reginParams.getCompany().getCompanyCode();
String type = reginParams.getCompany().getLevel();
List<DataDictionary> dictionaries = dataDictionaryService.getByType("WXLX"); List<DataDictionary> dictionaries = dataDictionaryService.getByType("WXLX");
Page<JgMaintainNotice> noticePage = jgMaintainNoticeMapper.queryForPage(page, model, type, orgCode); Page<JgMaintainNotice> noticePage = jgMaintainNoticeMapper.queryForPage(page, model, type, orgCode);
Page<JgMaintainNoticeDto> noticeDtoPage = new Page<>(); Page<JgMaintainNoticeDto> noticeDtoPage = new Page<>();
......
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