Browse Source

添加查看详情字段

master
HAHA 3 years ago
parent
commit
4b9464eb2f
  1. 4
      epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/form/NewWghSjxxFormDTO.java
  2. 7
      epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/result/NewWghSjxxResultDTO.java
  3. 98
      epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/result/WghSjxxDetailResultDto.java
  4. 3
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSjxxController.java
  5. 3
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSjxxDao.java
  6. 3
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSjxxService.java
  7. 3
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSjxxServiceImpl.java
  8. 25
      epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSjxxDao.xml

4
epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/form/NewWghSjxxFormDTO.java

@ -9,10 +9,6 @@ public class NewWghSjxxFormDTO implements Serializable {
private static final long serialVersionUID = -4846956644682609996L; private static final long serialVersionUID = -4846956644682609996L;
/**
* 网格员名称
*/
private String wgymc;
/** /**
* 街道标签 * 街道标签

7
epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/result/NewWghSjxxResultDTO.java

@ -34,12 +34,13 @@ public class NewWghSjxxResultDTO implements Serializable {
/** /**
* 核查时间 * 核查时间
*/ */
private Date hcsj; private Date createdate;
/** /**
* 事件描述 * 所属市标签
*/ */
private String sjms; private String ssqsbq;
/** /**
* 唯一标识 * 唯一标识

98
epmet-module/open-data-worker/open-data-worker-client/src/main/java/com/epmet/opendata/dto/result/WghSjxxDetailResultDto.java

@ -0,0 +1,98 @@
package com.epmet.opendata.dto.result;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class WghSjxxDetailResultDto implements Serializable {
private static final long serialVersionUID = -1339322272385084037L;
/**
* 网格员标签
*/
private String wgymc;
/**
* 所属街道标签
*/
private String ssjdbq;
/**
* 所属社区标签
*/
private String sssqbq;
/**
* 核查意见
*/
private String hcyj;
/**
* 核查时间
*/
private Date createdate;
/**
* 事件地址
*/
private String sjdz;
/**
* 事件描述
*/
private String sjms;
/**
* 所属部门
*/
private String ssbm;
/**
* 事件领域标签
*/
private String sjlyubq;
/**
* 事件小类标签
*/
private String sjdlbq;
/**
* 事件细类标签
*/
private String sjxlbq;
/**
* 所属市标签
*/
private String ssqsbq;
/**
* 处置结果
*/
private String czjg;
/**
* 处置单位标签
*/
private String czdwbq;
/**
* 事件来源标签
*/
private String sjlybq;
/**
* 应结办时间
*/
private Date ybjsj;
/**
* 到期时间
*/
private Date dqsj;
}

3
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/controller/WghSjxxController.java

@ -16,6 +16,7 @@ import com.epmet.opendata.dto.form.NewWghSjxxFormDTO;
import com.epmet.opendata.dto.form.PreserVationFormDTO; import com.epmet.opendata.dto.form.PreserVationFormDTO;
import com.epmet.opendata.dto.form.WghSjxxDetailFormDto; import com.epmet.opendata.dto.form.WghSjxxDetailFormDto;
import com.epmet.opendata.dto.result.NewWghSjxxResultDTO; import com.epmet.opendata.dto.result.NewWghSjxxResultDTO;
import com.epmet.opendata.dto.result.WghSjxxDetailResultDto;
import com.epmet.opendata.dto.result.WghSjxxResultDTO; import com.epmet.opendata.dto.result.WghSjxxResultDTO;
import com.epmet.opendata.dto.wgh.WghSjxxDTO; import com.epmet.opendata.dto.wgh.WghSjxxDTO;
import com.epmet.opendata.excel.WghSjxxExcel; import com.epmet.opendata.excel.WghSjxxExcel;
@ -124,7 +125,7 @@ public class WghSjxxController {
*/ */
@PostMapping("getWghSjxxDetail") @PostMapping("getWghSjxxDetail")
public Result getWghSjxxDetail(@RequestBody WghSjxxDetailFormDto dto){ public Result getWghSjxxDetail(@RequestBody WghSjxxDetailFormDto dto){
NewWghSjxxResultDTO result = wghSjxxService.getWghSjxxDetail(dto); WghSjxxDetailResultDto result = wghSjxxService.getWghSjxxDetail(dto);
return new Result().ok(result); return new Result().ok(result);
} }
} }

3
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/dao/WghSjxxDao.java

@ -5,6 +5,7 @@ import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.opendata.dto.form.NewWghSjxxFormDTO; import com.epmet.opendata.dto.form.NewWghSjxxFormDTO;
import com.epmet.opendata.dto.form.WghSjxxDetailFormDto; import com.epmet.opendata.dto.form.WghSjxxDetailFormDto;
import com.epmet.opendata.dto.result.NewWghSjxxResultDTO; import com.epmet.opendata.dto.result.NewWghSjxxResultDTO;
import com.epmet.opendata.dto.result.WghSjxxDetailResultDto;
import com.epmet.opendata.entity.WghSjxxEntity; import com.epmet.opendata.entity.WghSjxxEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
@ -48,5 +49,5 @@ public interface WghSjxxDao extends BaseDao<WghSjxxEntity> {
* @author LZN * @author LZN
* @date 2022/7/5 16:15 * @date 2022/7/5 16:15
*/ */
NewWghSjxxResultDTO getWghSjxxDetail(@Param("dto") WghSjxxDetailFormDto dto); WghSjxxDetailResultDto getWghSjxxDetail(@Param("dto") WghSjxxDetailFormDto dto);
} }

3
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/WghSjxxService.java

@ -6,6 +6,7 @@ import com.epmet.opendata.dto.form.NewWghSjxxFormDTO;
import com.epmet.opendata.dto.form.PreserVationFormDTO; import com.epmet.opendata.dto.form.PreserVationFormDTO;
import com.epmet.opendata.dto.form.WghSjxxDetailFormDto; import com.epmet.opendata.dto.form.WghSjxxDetailFormDto;
import com.epmet.opendata.dto.result.NewWghSjxxResultDTO; import com.epmet.opendata.dto.result.NewWghSjxxResultDTO;
import com.epmet.opendata.dto.result.WghSjxxDetailResultDto;
import com.epmet.opendata.dto.result.WghSjxxResultDTO; import com.epmet.opendata.dto.result.WghSjxxResultDTO;
import com.epmet.opendata.dto.wgh.WghSjxxDTO; import com.epmet.opendata.dto.wgh.WghSjxxDTO;
import com.epmet.opendata.entity.WghSjxxEntity; import com.epmet.opendata.entity.WghSjxxEntity;
@ -110,5 +111,5 @@ public interface WghSjxxService extends BaseService<WghSjxxEntity> {
* @author LZN * @author LZN
* @date 2022/7/5 16:15 * @date 2022/7/5 16:15
*/ */
NewWghSjxxResultDTO getWghSjxxDetail(WghSjxxDetailFormDto dto); WghSjxxDetailResultDto getWghSjxxDetail(WghSjxxDetailFormDto dto);
} }

3
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/WghSjxxServiceImpl.java

@ -17,6 +17,7 @@ import com.epmet.opendata.dto.form.NewWghSjxxFormDTO;
import com.epmet.opendata.dto.form.PreserVationFormDTO; import com.epmet.opendata.dto.form.PreserVationFormDTO;
import com.epmet.opendata.dto.form.WghSjxxDetailFormDto; import com.epmet.opendata.dto.form.WghSjxxDetailFormDto;
import com.epmet.opendata.dto.result.NewWghSjxxResultDTO; import com.epmet.opendata.dto.result.NewWghSjxxResultDTO;
import com.epmet.opendata.dto.result.WghSjxxDetailResultDto;
import com.epmet.opendata.dto.result.WghSjxxResultDTO; import com.epmet.opendata.dto.result.WghSjxxResultDTO;
import com.epmet.opendata.dto.wgh.WghSjxxDTO; import com.epmet.opendata.dto.wgh.WghSjxxDTO;
import com.epmet.opendata.entity.WghSjxxEntity; import com.epmet.opendata.entity.WghSjxxEntity;
@ -161,7 +162,7 @@ public class WghSjxxServiceImpl extends BaseServiceImpl<WghSjxxDao, WghSjxxEntit
* @date 2022/7/5 16:15 * @date 2022/7/5 16:15
*/ */
@Override @Override
public NewWghSjxxResultDTO getWghSjxxDetail(WghSjxxDetailFormDto dto) { public WghSjxxDetailResultDto getWghSjxxDetail(WghSjxxDetailFormDto dto) {
return baseDao.getWghSjxxDetail(dto); return baseDao.getWghSjxxDetail(dto);
} }

25
epmet-module/open-data-worker/open-data-worker-server/src/main/resources/mapper/WghSjxxDao.xml

@ -76,16 +76,13 @@
ssjdbq, ssjdbq,
sssqbq, sssqbq,
hcyj, hcyj,
hcsj, createdate,
sjms, ssqsbq,
recid recid
FROM FROM
wgh_sjxx wgh_sjxx
<where> <where>
1=1 1=1
<if test="form.wgymc != null and form.wgymc != ''">
AND wgymc like '%${form.wgymc}%'
</if>
<if test="form.ssjdbq != null and form.ssjdbq != ''"> <if test="form.ssjdbq != null and form.ssjdbq != ''">
AND ssjdbq like '%${form.ssjdbq}%' AND ssjdbq like '%${form.ssjdbq}%'
</if> </if>
@ -98,14 +95,26 @@
</where> </where>
order by czsj desc order by czsj desc
</select> </select>
<select id="getWghSjxxDetail" resultType="com.epmet.opendata.dto.result.NewWghSjxxResultDTO"> <select id="getWghSjxxDetail" resultType="com.epmet.opendata.dto.result.WghSjxxDetailResultDto">
select select
wgymc, wgymc,
ssjdbq, ssjdbq,
sssqbq, sssqbq,
hcyj, hcyj,
hcsj, hcsj,
sjms sjms,
ssbm,
sjlyubq,
sjdlbq,
ssqsbq,
czjg,
czdwbq,
sjlybq,
ybjsj,
dqsj,
sjdz,
createdate,
sjxlbq
FROM FROM
wgh_sjxx wgh_sjxx
where recid = #{dto.recid} where recid = #{dto.recid}

Loading…
Cancel
Save