| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?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="cn.com.goldenwater.dcproj.dao.TacPageOfficePblmListDao">
- <select id="getPblmList" resultType="java.util.HashMap">
- select a.ID,
- a.OBJ_TYPE,
- a.OBJ_ID,
- (case a.PBLM_PASI when '0' then '一般' when '1' then '较重' when '2' then '严重' end) PBLM_PASI,
- a.IF_CASE_PBLM,
- a.SUBJECT_IDS,
- a.PBLM_DESC,
- a.PBLM_REASON,
- a.PBLM_SGGTN,
- a.PBLM_SN,
- a.PBLMSTD_ID,
- a.RECT_ID,
- a.RGSTR_ID,
- a.LIST_TYPE,
- a.LIST_ID,
- a.GROUP_ID,
- a.PERS_ID,
- a.PERS_NM,
- DATE_FORMAT(a.INTM,'%Y-%m-%d') intm,
- a.SPCL_ID,
- a.SPCL_NM,
- a.SPCL_RVW_OPTN,
- DATE_FORMAT(a.SPCL_TM,'%Y-%m-%d') spcl_tm,
- a.UPTM,
- CONCAT('(', a.sn, ')' , a.PBLM_NM PBLM_NM),
- a.HAS_VEDIO,
- a.subject_Names,
- a.NOTE,
- b.PBLMS_DESC,
- b.RELATIVE_LAW,
- b.LAW_CONTENT,
- a.PBLM_REASON_DETAIL,
- a.PBLM_MEASURE
- from TAC_PBLM_INFO a
- left join TAC_OBJ_PBLMSTB b on a.pblmstd_id = b.id
- where a.id in
- (select id from TAC_PBLM_INFO WHERE RGSTR_ID = #{rgstrId}
- AND LIST_TYPE = substr(#{type},3,1) )
- <if test="pblmId !=null and pblmId !='' ">
- and a.id in (${pblmId})
- </if>
- <if test="reasonState != null and reasonState != ''">
- and a.REASON_STATE = #{reasonState}
- </if>
- order by a.sn
- </select>
- <select id="getFileList" resultType="java.util.HashMap" >
- select BIZ_ID,FILE_PATH AS FILE_PATH FROM gw_com_file where BIZ_ID in
- (select id from TAC_PBLM_INFO WHERE RGSTR_ID = #{rgstrId}
- AND LIST_TYPE = SUBSTRING(#{type},4,1) )
- and UPPER(file_ext) in('JPEG','JPG','PNG')
- and BIZ_ID = #{id}
- <if test="bizType != null and bizType != ''">
- and BIZ_TYPE = #{bizType}
- </if>
- order by SN ASC
- </select>
- <select id="getRgstrName" resultType="java.util.HashMap">
- SELECT
- DISTINCT T.OJB_NM AS RGSTR_NM
- FROM
- TAC_INSP_YEAR_BATCH_OBJ T
- LEFT JOIN
- TAC_PAWP_RGSTR R ON T.ID = R.OBJ_ID WHERE
- R.ID IN
- <foreach collection="rgstrId.split(',')" index="index" item="item" separator="," open="(" close=")">
- #{item}
- </foreach>
- </select>
- </mapper>
|