5 changed files with 149 additions and 3 deletions
@ -0,0 +1,46 @@ |
|||||
|
package com.kms.warn.domain.dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.jianwei.common.annotation.Excel; |
||||
|
import com.kms.warn.domain.BsSgcJsjdBuiRectification; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class RectificationDto implements Serializable { |
||||
|
|
||||
|
private String id; |
||||
|
|
||||
|
@Excel(name = "发文单位") |
||||
|
@ApiModelProperty("发文单位") |
||||
|
private String issuingUnit; |
||||
|
|
||||
|
/** 文号 */ |
||||
|
@Excel(name = "文号") |
||||
|
@ApiModelProperty("文号") |
||||
|
private String documentNumber; |
||||
|
|
||||
|
/** 通知生效时间 */ |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
|
@Excel(name = "通知生效时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
|
@ApiModelProperty("通知生效时间") |
||||
|
private Date noticeBegainTime; |
||||
|
|
||||
|
/** 整改通知书 */ |
||||
|
@Excel(name = "整改通知书") |
||||
|
@ApiModelProperty("整改通知书") |
||||
|
private String rectificationAttachment; |
||||
|
|
||||
|
private String unit; |
||||
|
|
||||
|
private List<String> unitArray; |
||||
|
|
||||
|
private String isFinish; |
||||
|
|
||||
|
private String rectificationSituation; |
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper |
||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.kms.warn.mapper.BsSgcJsjdBuiRectificationMapper"> |
||||
|
<sql id="info"> |
||||
|
SELECT |
||||
|
br.id, |
||||
|
br.issuing_unit, |
||||
|
br.document_number, |
||||
|
br.notice_begain_time, |
||||
|
br.rectification_attachment, |
||||
|
GROUP_CONCAT(bz.rectification_situation) rectification_situation, |
||||
|
GROUP_CONCAT(bz.unit_id) unit_id |
||||
|
FROM |
||||
|
bs_sgc_jsjd_bui_rectification br |
||||
|
LEFT JOIN bs_sgc_jsjd_bui_zrdw bz ON br.id = bz.rectification_id |
||||
|
</sql> |
||||
|
|
||||
|
<resultMap id="RectificationDto" type="RectificationDto"> |
||||
|
<id property="id" column="id"/> |
||||
|
<result property="unit" column="unit_id"/> |
||||
|
<result property="rectificationAttachment" column="rectification_attachment"/> |
||||
|
<result property="documentNumber" column="document_number"/> |
||||
|
<result property="noticeBegainTime" column="notice_begain_time"/> |
||||
|
<result property="issuingUnit" column="issuing_unit"/> |
||||
|
|
||||
|
</resultMap> |
||||
|
|
||||
|
<select id="select" resultMap="RectificationDto"> |
||||
|
<include refid="info"></include> |
||||
|
|
||||
|
</select> |
||||
|
</mapper> |
Loading…
Reference in new issue