| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?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,
- to_char(a.INTM,'yyyy-mm-dd') intm,
- a.SPCL_ID,
- a.SPCL_NM,
- a.SPCL_RVW_OPTN,
- to_char(a.SPCL_TM,'yyyy-mm-dd') spcl_tm,
- a.UPTM,
- '('||a.sn||')' ||a.PBLM_NM PBLM_NM,
- a.HAS_VEDIO,
- (select listagg(UNIT_NM,',') within group (order by intm) from TAC_PBLM_SUBJECT SUB where A.ID=SUB.PBLM_ID) subject_Names,
- a.NOTE,
- b.PBLMS_DESC,
- a.RELATIVE_LAW,
- a.LAW_CONTENT,
- a.PBLM_REASON_DETAIL,
- a.PBLM_MEASURE,
- a.PROVINCE
- 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 = substr(#{type},3,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 RGSTR_NM from VIEW_REG_BASE where rgstr_id = #{rgstrId}
- -->
- 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 (SELECT REGEXP_SUBSTR(#{rgstrId},'[^,]+', 1, LEVEL) FROM DUAL CONNECT BY REGEXP_SUBSTR(#{rgstrId}, '[^,]+', 1, LEVEL) IS NOT NULL)
- </select>
- </mapper>
|