| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547 |
- <?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.ImpPblmDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspPblm" id="bisInspPblmResultMap">
- <result property="defectTypeId" column="DEFECT_TYPE_ID"/>
- <result property="fdbkId" column="FDBK_ID"/>
- <result property="itemId" column="ITEM_ID"/>
- <result property="waterUserId" column="WATER_USER_ID"/>
- <result property="pblmId" column="PBLM_ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="objType" column="OBJ_TYPE"/>
- <result property="inspGroupId" column="INSP_GROUP_ID"/>
- <result property="pguid" column="PGUID"/>
- <result property="inspPblmType" column="INSP_PBLM_TYPE"/>
- <result property="inspPblmCode" column="INSP_PBLM_CODE"/>
- <result property="inspPblmName" column="INSP_PBLM_NAME"/>
- <result property="inspPblmDesc" column="INSP_PBLM_DESC"/>
- <result property="inspAddDesc" column="INSP_ADD_DESC"/>
- <result property="pblmLong" column="PBLM_LONG"/>
- <result property="pblmLat" column="PBLM_LAT"/>
- <result property="ifCasePblm" column="IF_CASE_PBLM"/>
- <result property="inspPblmOrgName" column="INSP_PBLM_ORG_NAME"/>
- <result property="pblmPersName" column="PBLM_PERS_NAME"/>
- <result property="inspPblmCate" column="INSP_PBLM_CATE"/>
- <result property="pblmStat" column="PBLM_STAT"/>
- <result property="reviOpin" column="REVI_OPIN"/>
- <result property="reviConc" column="REVI_CONC"/>
- <result property="reviOrgGuid" column="REVI_ORG_GUID"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="collTime" column="COLL_TIME"/>
- <result property="recPers" column="REC_PERS"/>
- <result property="note" column="NOTE"/>
- <result property="regid" column="REGID"/>
- <result property="commonFileIds" column="COMMON_FILE_IDS"/>
- <result property="fileNo" column="FILE_NO"/>
- <result property="fileNoNumber" column="FILE_NO_NUMBER"/>
- <result property="pblmsId" column="PBLMS_ID"/>
- <result property="pblmsTypeId" column="PBLMS_TYPE_ID"/>
- <result property="villType" column="VILL_TYPE"/>
- <result property="cwsCode" column="CWS_CODE"/>
- <result property="villageCode" column="VILLAGE_CODE"/>
- <result property="hasVedio" column="HAS_VEDIO"/>
- <result property="problemType" column="PROBLEM_TYPE"/>
- <result property="qualityTypeId" column="QUALITY_TYPE_ID"/>
- <result property="quote" column="QUOTE"/>
- <result property="gongdiBzId" column="GONGDI_BZ_ID"/>
- </resultMap>
- <sql id="table_columns">
- DEFECT_TYPE_ID,GONGDI_BZ_ID,
- FDBK_ID,
- ITEM_ID,
- WATER_USER_ID,
- PBLM_ID,
- OBJ_ID,
- OBJ_TYPE,
- INSP_GROUP_ID,
- PGUID,
- INSP_PBLM_TYPE,
- INSP_PBLM_CODE,
- INSP_PBLM_NAME,
- INSP_PBLM_DESC,
- INSP_ADD_DESC,
- PBLM_LONG,
- PBLM_LAT,
- IF_CASE_PBLM,
- INSP_PBLM_ORG_NAME,
- PBLM_PERS_NAME,
- INSP_PBLM_CATE,
- PBLM_STAT,
- REVI_OPIN,
- REVI_CONC,
- REVI_ORG_GUID,
- DATA_STAT,
- COLL_TIME,
- REC_PERS,
- NOTE,
- REGID,
- COMMON_FILE_IDS,
- FILE_NO,
- FILE_NO_NUMBER,
- PBLMS_ID,
- PBLMS_TYPE_ID,
- VILL_TYPE,
- CWS_CODE,
- VILLAGE_CODE,
- HAS_VEDIO,
- PROBLEM_TYPE,
- QUALITY_TYPE_ID,
- QUOTE
- </sql>
- <sql id="entity_properties">
- #{defectTypeId},#{gongdiBzId},
- #{fdbkId},
- #{itemId},
- #{waterUserId},
- #{pblmId},
- #{objId},
- #{objType},
- #{inspGroupId},
- #{pguid},
- #{inspPblmType},
- #{inspPblmCode},
- #{inspPblmName},
- #{inspPblmDesc},
- #{inspAddDesc},
- #{pblmLong},
- #{pblmLat},
- #{ifCasePblm},
- #{inspPblmOrgName},
- #{pblmPersName},
- #{inspPblmCate},
- #{pblmStat},
- #{reviOpin},
- #{reviConc},
- #{reviOrgGuid},
- #{dataStat},
- #{collTime},
- #{recPers},
- #{note},
- #{regid},
- #{commonFileIds},
- #{fileNo},
- #{fileNoNumber},
- #{pblmsId},
- #{pblmsTypeId},
- #{villType},
- #{cwsCode},
- #{villageCode},
- #{hasVedio},
- #{problemType},
- #{qualityTypeId}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="fdbkId != null and fdbkId != ''">and FDBK_ID = #{fdbkId}</if>
- <if test="gongdiBzId != null and gongdiBzId != ''">and gongdi_Bz_Id = #{gongdiBzId}</if>
- <if test="itemId != null and itemId != ''">and ITEM_ID = #{itemId}</if>
- <if test="waterUserId != null and waterUserId != ''">and WATER_USER_ID = #{waterUserId}</if>
- <if test="pblmId != null and pblmId != ''">and PBLM_ID = #{pblmId}</if>
- <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
- <if test="objType != null and objType != ''">and OBJ_TYPE = #{objType}</if>
- <if test="inspGroupId != null and inspGroupId != ''">and INSP_GROUP_ID = #{inspGroupId}</if>
- <if test="pguid != null and pguid != ''">and PGUID = #{pguid}</if>
- <if test="inspPblmType != null and inspPblmType != ''">and INSP_PBLM_TYPE = #{inspPblmType}</if>
- <if test="inspPblmCode != null and inspPblmCode != ''">and INSP_PBLM_CODE = #{inspPblmCode}</if>
- <if test="inspPblmName != null and inspPblmName != ''">and INSP_PBLM_NAME = #{inspPblmName}</if>
- <if test="inspPblmDesc != null and inspPblmDesc != ''">and INSP_PBLM_DESC = #{inspPblmDesc}</if>
- <if test="inspAddDesc != null and inspAddDesc != ''">and INSP_ADD_DESC = #{inspAddDesc}</if>
- <if test="pblmLong != null and pblmLong != ''">and PBLM_LONG = #{pblmLong}</if>
- <if test="pblmLat != null and pblmLat != ''">and PBLM_LAT = #{pblmLat}</if>
- <if test="ifCasePblm != null and ifCasePblm != ''">and IF_CASE_PBLM = #{ifCasePblm}</if>
- <if test="inspPblmOrgName != null and inspPblmOrgName != ''">and INSP_PBLM_ORG_NAME = #{inspPblmOrgName}</if>
- <if test="pblmPersName != null and pblmPersName != ''">and PBLM_PERS_NAME = #{pblmPersName}</if>
- <if test="inspPblmCate != null and inspPblmCate != ''">and INSP_PBLM_CATE = #{inspPblmCate}</if>
- <if test="pblmStat != null and pblmStat != ''">and PBLM_STAT = #{pblmStat}</if>
- <if test="reviOpin != null and reviOpin != ''">and REVI_OPIN = #{reviOpin}</if>
- <if test="reviConc != null and reviConc != ''">and REVI_CONC = #{reviConc}</if>
- <if test="reviOrgGuid != null and reviOrgGuid != ''">and REVI_ORG_GUID = #{reviOrgGuid}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="collTime != null">and COLL_TIME = #{collTime}</if>
- <if test="recPers != null and recPers != ''">and REC_PERS = #{recPers}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="regid != null and regid != ''">and REGID = #{regid}</if>
- <if test="commonFileIds != null and commonFileIds != ''">and COMMON_FILE_IDS = #{commonFileIds}</if>
- <if test="fileNo != null and fileNo != ''">and FILE_NO = #{fileNo}</if>
- <if test="fileNoNumber != null and fileNoNumber != ''">and FILE_NO_NUMBER = #{fileNoNumber}</if>
- <if test="pblmsId != null and pblmsId != ''">and PBLMS_ID = #{pblmsId}</if>
- <if test="pblmsTypeId != null and pblmsTypeId != ''">and PBLMS_TYPE_ID = #{pblmsTypeId}</if>
- <if test="villType != null and villType != ''">and VILL_TYPE = #{villType}</if>
- <if test="cwsCode != null and cwsCode != ''">and CWS_CODE = #{cwsCode}</if>
- <if test="villageCode != null and villageCode != ''">and VILLAGE_CODE = #{villageCode}</if>
- <if test="hasVedio != null and hasVedio != ''">and HAS_VEDIO = #{hasVedio}</if>
- <if test="problemType != null and problemType != ''">and PROBLEM_TYPE = #{problemType}</if>
- <if test="qualityTypeId != null and qualityTypeId != ''">and QUALITY_TYPE_ID = #{qualityTypeId}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspPblmResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_PBLM where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspPblmResultMap">
- select <include refid="table_columns" /> from BIS_INSP_PBLM <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspPblmResultMap">
- select <include refid="table_columns" /> from BIS_INSP_PBLM
- </select>
- <select id="findList" resultMap="bisInspPblmResultMap">
- select <include refid="table_columns" /> from BIS_INSP_PBLM <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_PBLM <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspPblm">
- insert into BIS_INSP_PBLM( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_PBLM where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspPblm">
- delete from BIS_INSP_PBLM <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_PBLM set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspPblm">
- update BIS_INSP_PBLM
- <trim prefix="set" suffixOverrides=",">
- <if test="fdbkId != null and fdbkId != ''">FDBK_ID = #{fdbkId},</if>
- <if test="itemId != null and itemId != ''">ITEM_ID = #{itemId},</if>
- <if test="gongdiBzId != null and gongdiBzId != ''"> gongdi_Bz_Id = #{gongdiBzId},</if>
- <if test="waterUserId != null and waterUserId != ''">WATER_USER_ID = #{waterUserId},</if>
- <if test="pblmId != null and pblmId != ''">PBLM_ID = #{pblmId},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="objType != null and objType != ''">OBJ_TYPE = #{objType},</if>
- <if test="inspGroupId != null and inspGroupId != ''">INSP_GROUP_ID = #{inspGroupId},</if>
- <if test="pguid != null and pguid != ''">PGUID = #{pguid},</if>
- <if test="inspPblmType != null and inspPblmType != ''">INSP_PBLM_TYPE = #{inspPblmType},</if>
- <if test="inspPblmCode != null and inspPblmCode != ''">INSP_PBLM_CODE = #{inspPblmCode},</if>
- <if test="inspPblmName != null and inspPblmName != ''">INSP_PBLM_NAME = #{inspPblmName},</if>
- <if test="inspPblmDesc != null and inspPblmDesc != ''">INSP_PBLM_DESC = #{inspPblmDesc},</if>
- <if test="inspAddDesc != null and inspAddDesc != ''">INSP_ADD_DESC = #{inspAddDesc},</if>
- <if test="pblmLong != null and pblmLong != ''">PBLM_LONG = #{pblmLong},</if>
- <if test="pblmLat != null and pblmLat != ''">PBLM_LAT = #{pblmLat},</if>
- <if test="ifCasePblm != null and ifCasePblm != ''">IF_CASE_PBLM = #{ifCasePblm},</if>
- <if test="inspPblmOrgName != null and inspPblmOrgName != ''">INSP_PBLM_ORG_NAME = #{inspPblmOrgName},</if>
- <if test="pblmPersName != null and pblmPersName != ''">PBLM_PERS_NAME = #{pblmPersName},</if>
- <if test="inspPblmCate != null and inspPblmCate != ''">INSP_PBLM_CATE = #{inspPblmCate},</if>
- <if test="pblmStat != null and pblmStat != ''">PBLM_STAT = #{pblmStat},</if>
- <if test="reviOpin != null and reviOpin != ''">REVI_OPIN = #{reviOpin},</if>
- <if test="reviConc != null and reviConc != ''">REVI_CONC = #{reviConc},</if>
- <if test="reviOrgGuid != null and reviOrgGuid != ''">REVI_ORG_GUID = #{reviOrgGuid},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="collTime != null">COLL_TIME = #{collTime},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="regid != null and regid != ''">REGID = #{regid},</if>
- <if test="commonFileIds != null and commonFileIds != ''">COMMON_FILE_IDS = #{commonFileIds},</if>
- <if test="fileNo != null and fileNo != ''">FILE_NO = #{fileNo},</if>
- <if test="fileNoNumber != null and fileNoNumber != ''">FILE_NO_NUMBER = #{fileNoNumber},</if>
- <if test="pblmsId != null and pblmsId != ''">PBLMS_ID = #{pblmsId},</if>
- <if test="pblmsTypeId != null and pblmsTypeId != ''">PBLMS_TYPE_ID = #{pblmsTypeId},</if>
- <if test="villType != null and villType != ''">VILL_TYPE = #{villType},</if>
- <if test="cwsCode != null and cwsCode != ''">CWS_CODE = #{cwsCode},</if>
- <if test="villageCode != null and villageCode != ''">VILLAGE_CODE = #{villageCode},</if>
- <if test="hasVedio != null and hasVedio != ''">HAS_VEDIO = #{hasVedio},</if>
- <if test="problemType != null and problemType != ''">PROBLEM_TYPE = #{problemType},</if>
- <if test="qualityTypeId != null and qualityTypeId != ''">QUALITY_TYPE_ID = #{qualityTypeId},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspPblm">
- update BIS_INSP_PBLM
- <trim prefix="set" suffixOverrides=",">
- <if test="fdbkId != null and fdbkId != ''">FDBK_ID = #{fdbkId},</if>
- <if test="gongdiBzId != null and gongdiBzId != ''"> gongdi_Bz_Id = #{gongdiBzId},</if>
- <if test="itemId != null and itemId != ''">ITEM_ID = #{itemId},</if>
- <if test="waterUserId != null and waterUserId != ''">WATER_USER_ID = #{waterUserId},</if>
- <if test="pblmId != null and pblmId != ''">PBLM_ID = #{pblmId},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="objType != null and objType != ''">OBJ_TYPE = #{objType},</if>
- <if test="inspGroupId != null and inspGroupId != ''">INSP_GROUP_ID = #{inspGroupId},</if>
- <if test="pguid != null and pguid != ''">PGUID = #{pguid},</if>
- <if test="inspPblmType != null and inspPblmType != ''">INSP_PBLM_TYPE = #{inspPblmType},</if>
- <if test="inspPblmCode != null and inspPblmCode != ''">INSP_PBLM_CODE = #{inspPblmCode},</if>
- <if test="inspPblmName != null and inspPblmName != ''">INSP_PBLM_NAME = #{inspPblmName},</if>
- <if test="inspPblmDesc != null and inspPblmDesc != ''">INSP_PBLM_DESC = #{inspPblmDesc},</if>
- <if test="inspAddDesc != null and inspAddDesc != ''">INSP_ADD_DESC = #{inspAddDesc},</if>
- <if test="pblmLong != null and pblmLong != ''">PBLM_LONG = #{pblmLong},</if>
- <if test="pblmLat != null and pblmLat != ''">PBLM_LAT = #{pblmLat},</if>
- <if test="ifCasePblm != null and ifCasePblm != ''">IF_CASE_PBLM = #{ifCasePblm},</if>
- <if test="inspPblmOrgName != null and inspPblmOrgName != ''">INSP_PBLM_ORG_NAME = #{inspPblmOrgName},</if>
- <if test="pblmPersName != null and pblmPersName != ''">PBLM_PERS_NAME = #{pblmPersName},</if>
- <if test="inspPblmCate != null and inspPblmCate != ''">INSP_PBLM_CATE = #{inspPblmCate},</if>
- <if test="pblmStat != null and pblmStat != ''">PBLM_STAT = #{pblmStat},</if>
- <if test="reviOpin != null and reviOpin != ''">REVI_OPIN = #{reviOpin},</if>
- <if test="reviConc != null and reviConc != ''">REVI_CONC = #{reviConc},</if>
- <if test="reviOrgGuid != null and reviOrgGuid != ''">REVI_ORG_GUID = #{reviOrgGuid},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="collTime != null">COLL_TIME = #{collTime},</if>
- <if test="recPers != null and recPers != ''">REC_PERS = #{recPers},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="regid != null and regid != ''">REGID = #{regid},</if>
- <if test="commonFileIds != null and commonFileIds != ''">COMMON_FILE_IDS = #{commonFileIds},</if>
- <if test="fileNo != null and fileNo != ''">FILE_NO = #{fileNo},</if>
- <if test="fileNoNumber != null and fileNoNumber != ''">FILE_NO_NUMBER = #{fileNoNumber},</if>
- <if test="pblmsId != null and pblmsId != ''">PBLMS_ID = #{pblmsId},</if>
- <if test="pblmsTypeId != null and pblmsTypeId != ''">PBLMS_TYPE_ID = #{pblmsTypeId},</if>
- <if test="villType != null and villType != ''">VILL_TYPE = #{villType},</if>
- <if test="cwsCode != null and cwsCode != ''">CWS_CODE = #{cwsCode},</if>
- <if test="villageCode != null and villageCode != ''">VILLAGE_CODE = #{villageCode},</if>
- <if test="hasVedio != null and hasVedio != ''">HAS_VEDIO = #{hasVedio},</if>
- <if test="problemType != null and problemType != ''">PROBLEM_TYPE = #{problemType},</if>
- <if test="qualityTypeId != null and qualityTypeId != ''">QUALITY_TYPE_ID = #{qualityTypeId},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- <sql id="entity_properties_item">
- #{item.defectTypeId} as DEFECT_TYPE_ID,
- #{item.fdbkId} as FDBK_ID,
- #{item.itemId} as ITEM_ID,
- #{item.waterUserId} as WATER_USER_ID,
- #{item.pblmId} as PBLM_ID,
- #{item.objId} as OBJ_ID,
- #{item.objType} as OBJ_TYPE,
- #{item.inspGroupId} as INSP_GROUP_ID,
- #{item.pguid} as PGUID,
- #{item.inspPblmType} as INSP_PBLM_TYPE,
- #{item.inspPblmCode} as INSP_PBLM_CODE,
- #{item.inspPblmName} as INSP_PBLM_NAME,
- #{item.inspPblmDesc} as INSP_PBLM_DESC,
- #{item.inspAddDesc} as INSP_ADD_DESC,
- #{item.pblmLong} as PBLM_LONG,
- #{item.pblmLat} as PBLM_LAT,
- #{item.ifCasePblm} as IF_CASE_PBLM,
- #{item.inspPblmOrgName} as INSP_PBLM_ORG_NAME,
- #{item.pblmPersName} as PBLM_PERS_NAME,
- #{item.inspPblmCate} as INSP_PBLM_CATE,
- #{item.pblmStat} as PBLM_STAT,
- #{item.reviOpin} as REVI_OPIN,
- #{item.reviConc} as REVI_CONC,
- #{item.reviOrgGuid} as REVI_ORG_GUID,
- #{item.dataStat} as DATA_STAT,
- #{item.collTime} as COLL_TIME,
- #{item.recPers} as REC_PERS,
- #{item.note} as NOTE,
- #{item.regid} as REGID,
- #{item.commonFileIds} as COMMON_FILE_IDS,
- #{item.fileNo} as FILE_NO,
- #{item.fileNoNumber} as FILE_NO_NUMBER,
- #{item.pblmsId} as PBLMS_ID,
- #{item.pblmsTypeId} as PBLMS_TYPE_ID,
- #{item.villType} as VILL_TYPE,
- #{item.cwsCode} as CWS_CODE,
- #{item.villageCode} as VILLAGE_CODE,
- #{item.hasVedio} as HAS_VEDIO,
- #{item.problemType} as PROBLEM_TYPE,
- #{item.qualityTypeId} as QUALITY_TYPE_I,
- #{item.quote} as QUOTE
- </sql>
- <sql id="table_columns_gw">
- ID,
- FILE_TITLE,
- KEY_WORD,
- FILE_TYPE,
- ABS,
- FILE_NAME,
- FILE_SIZE,
- FILE_EXT,
- FILE_PATH,
- THUMBNAIL_URL,
- BIZ_TYPE,
- BIZ_ID,
- LONGITUDE,
- LATITUDE,
- CREATE_BY,
- CREATE_DATE,
- UPDATE_BY,
- UPDATE_DATE
- </sql>
- <sql id="entity_properties_item_tw">
- #{item.id},
- #{item.fileTitle},
- #{item.keyWord},
- #{item.fileType},
- #{item.abs},
- #{item.fileName},
- #{item.fileSize},
- #{item.fileExt},
- #{item.filePath},
- #{item.thumbnailUrl},
- #{item.bizType},
- #{item.bizId},
- #{item.longitude},
- #{item.latitude},
- #{item.createBy},
- #{item.createDate},
- #{item.updateBy},
- #{item.updateDate}
- </sql>
- <sql id="table_columns_update">
- DEFECT_TYPE_ID,
- FDBK_ID,
- ITEM_ID,
- WATER_USER_ID,
- INSP_GROUP_ID,
- PGUID,
- INSP_PBLM_TYPE,
- INSP_PBLM_CODE,
- INSP_PBLM_NAME,
- INSP_PBLM_DESC,
- INSP_ADD_DESC,
- PBLM_LONG,
- PBLM_LAT,
- IF_CASE_PBLM,
- INSP_PBLM_ORG_NAME,
- PBLM_PERS_NAME,
- INSP_PBLM_CATE,
- PBLM_STAT,
- REVI_OPIN,
- REVI_CONC,
- REVI_ORG_GUID,
- DATA_STAT,
- COLL_TIME,
- REC_PERS,
- NOTE,
- REGID,
- COMMON_FILE_IDS,
- FILE_NO,
- FILE_NO_NUMBER,
- PBLMS_ID,
- PBLMS_TYPE_ID,
- VILL_TYPE,
- CWS_CODE,
- VILLAGE_CODE,
- HAS_VEDIO,
- PROBLEM_TYPE,
- QUALITY_TYPE_ID
- </sql>
- <!--批量导入-->
- <insert id="batchInsert" parameterType="java.util.List" useGeneratedKeys="false">
- insert into bis_insp_pblm( <include refid="table_columns" /> )
- select t.* from (
- <foreach collection="list" item="item" index="index" separator="union all">
- select <include refid="entity_properties_item"/> from dual
- </foreach>
- ) t
- </insert>
- <insert id="batchInsertGwFile" parameterType="java.util.List" useGeneratedKeys="false">
- insert into gw_com_file( <include refid="table_columns_gw" /> )
- select t.* from (
- <foreach collection="list" item="item" index="index" separator="union all">
- select <include refid="entity_properties_item_tw"/> from dual
- </foreach>
- ) t
- </insert>
- <select id="getGroupList" resultType="cn.com.goldenwater.dcproj.model.BisInspAll">
- select id,pid,concat((select pnm from BIS_INSP_ALL where id = t.pid), pnm ) pnm,sttm,entm from
- BIS_INSP_ALL t where
- id in (${inIdsSql})
- AND length(id) = 12
- <if test="orgType !=null and orgType != ''">
- and ID LIKE concat(#{orgType},'%')
- </if>
- order by id
- </select>
- <!--获取regid-->
- <select id="getRegId" resultType="java.lang.String">
- select id from BIS_INSP_KEY_REG_SEC_UNIT where sec_id = (
- select id from BIS_INSP_KEY_REGISTER_SECTION where obj_id = #{objId} and nm = #{bdNm}
- )
- </select>
- <select id="getRegIdByNm" resultType="java.lang.String">
- select id from
- <choose>
- <when test="orgType == '004' ">
- BIS_INSP_KEY_REG_SEC_UNIT
- </when>
- <otherwise>
- ATT_MAMPU_INFO
- </otherwise>
- </choose>
- where nm = #{dwNm}
- </select>
- <select id="getNmByRegId" resultType="java.lang.String">
- select nm from
- <choose>
- <when test="orgType == '004' ">
- BIS_INSP_KEY_REG_SEC_UNIT
- </when>
- <otherwise>
- ATT_MAMPU_INFO
- </otherwise>
- </choose>
- where id = #{regId}
- </select>
- <select id="getImpKeyRegList2" resultType="cn.com.goldenwater.dcproj.model.ImpPblmKeyReg">
- select distinct p.OBJ_ID,mo.ID as regid,j.nm as gcnm,mo.nm as glnm from
- (select * from BIS_INSP_PBLM pb where pb.obj_type = #{objType}) p
- join
- (select * from BIS_INSP_ALL_OBJ bj where bj.pType = #{objType}) j on p.obj_id = j.obj_id
- <if test="objType == '7'.toString() ">
- left join ATT_MAMPU_INFO mo on p.regid = mo.id where j.nm = #{gcNm} and mo.nm = #{dwNm}
- </if>
- <if test="objType == '4'.toString() ">
- left join BIS_INSP_KEY_REG_SEC_UNIT mo on p.regid = mo.id where j.nm = #{gcNm} and mo.nm = #{dwNm}
- and sec_id in (select id from BIS_INSP_KEY_REGISTER_SECTION where nm = #{bdNm})
- </if>
- </select>
- <select id="getImpKeyRegList" resultType="cn.com.goldenwater.dcproj.model.ImpPblmKeyReg">
- select distinct p.OBJ_ID, mo.id as REG_ID, p.nm as gcnm, mo.nm as glnm
- from BIS_INSP_KEY_REGISTER p INNER JOIN BIS_INSP_ALL_OBJ A ON A.OBJ_ID= p.OBJ_ID
- <if test="objType == '7'.toString() ">
- left join ATT_MAMPU_INFO mo on p.id = mo.reg_id where p.nm = #{gcNm} and mo.nm = #{dwNm}
- </if>
- <if test="objType == '4'.toString() ">
- , BIS_INSP_KEY_REG_SEC_UNIT mo
- where p.nm = #{gcNm}
- and mo.nm = #{dwNm}
- and mo.sec_id in (select id from BIS_INSP_KEY_REGISTER_SECTION where nm = #{bdNm})
- </if>
- <if test="groupId != null and groupId != '' ">
- AND A.id like concat(#{groupId},'%')
- </if>
- </select>
- <!--批量更新-->
- </mapper>
|