Browse Source

resultName

master
yinzuomei 3 years ago
parent
commit
47b85ac7f8
  1. 5
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/EnterprisePatrolResultDTO.java
  2. 7
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcEnterprisePatrolRecordDao.xml

5
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/EnterprisePatrolResultDTO.java

@ -45,6 +45,11 @@ public class EnterprisePatrolResultDTO implements Serializable {
*/
private String result;
/**
* 检查结果0:合格 1:不合格
*/
private String resultName;
/**
* 隐患明细
*/

7
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcEnterprisePatrolRecordDao.xml

@ -11,6 +11,7 @@
<result property="staffName" column="STAFF_NAME"/>
<result property="mobile" column="MOBILE"/>
<result property="result" column="RESULT"/>
<result property="resultName" column="RESULT_NAME"/>
<result property="detailed" column="DETAILED"/>
<result property="reviewTime" column="REVIEW_TIME"/>
<collection property="imgList" column="ID" ofType="java.lang.String" select="com.epmet.dao.IcEnterprisePatrolAttachmentDao.selectAtt">
@ -26,6 +27,12 @@
r.STAFF_NAME,
r.MOBILE,
r.RESULT,
(
case when r.RESULT ='0'then '合格'
when r.RESULT='1' then '不合格'
else ''
end
)as RESULT_NAME,
IFNULL( r.DETAILED, '' ) AS DETAILED,
r.REVIEW_TIME
FROM

Loading…
Cancel
Save