| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <?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.BisInspWiujsUnitDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWiujsUnit" id="bisInspWiujsUnitResultMap">
- <result property="mainProd" column="MAIN_PROD"/>
- <result property="isAccount" column="IS_ACCOUNT"/>
- <result property="isByndQuota" column="IS_BYND_QUOTA"/>
- <result property="isByndLic" column="IS_BYND_LIC"/>
- <result property="isByndYrpln" column="IS_BYND_YRPLN"/>
- <result property="isInstall" column="IS_INSTALL"/>
- <result property="isCheck" column="IS_CHECK"/>
- <result property="isSpotChk" column="IS_SPOT_CHK"/>
- <result property="isRectSpotChk" column="IS_RECT_SPOT_CHK"/>
- <result property="isAbnormEqpt" column="IS_ABNORM_EQPT"/>
- <result property="isBuildBook" column="IS_BUILD_BOOK"/>
- <result property="isPay" column="IS_PAY"/>
- <result property="isInfo" column="IS_INFO"/>
- <result property="isBuildNorm" column="IS_BUILD_NORM"/>
- <result property="isBhvrNorm" column="IS_BHVR_NORM"/>
- <result property="isBookNorm" column="IS_BOOK_NORM"/>
- <result property="isMeasNorm" column="IS_MEAS_NORM"/>
- <result property="isMontNorm" column="IS_MONT_NORM"/>
- <result property="isMarkNorm" column="IS_MARK_NORM"/>
- <result property="isApprAbnorm" column="IS_APPR_ABNORM"/>
- <result property="isReport" column="IS_REPORT"/>
- <result property="isIssuYrpln" column="IS_ISSU_YRPLN"/>
- <result property="isConsist" column="IS_CONSIST"/>
- <result property="isEntry" column="IS_ENTRY"/>
- <result property="isFill" column="IS_FILL"/>
- <result property="isMakeInfo" column="IS_MAKE_INFO"/>
- <result property="isOversight" column="IS_OVERSIGHT"/>
- <result property="isDailyChk" column="IS_DAILY_CHK"/>
- <result property="id" column="ID"/>
- <result property="persId" column="PERS_ID"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="wintName" column="WINT_NAME"/>
- <result property="wintNm" column="WINT_NM"/>
- <result property="watLicCode" column="WAT_LIC_CODE"/>
- <result property="wintCntctPer" column="WINT_CNTCT_PER"/>
- <result property="apprDeptPer" column="APPR_DEPT_PER"/>
- <result property="isAccept" column="IS_ACCEPT"/>
- <result property="isIssueCert" column="IS_ISSUE_CERT"/>
- <result property="isEffeCert" column="IS_EFFE_CERT"/>
- <result property="isMeas" column="IS_MEAS"/>
- <result property="isAccdLaw" column="IS_ACCD_LAW"/>
- <result property="isTmCancel" column="IS_TM_CANCEL"/>
- <result property="isGetWater" column="IS_GET_WATER"/>
- <result property="actualWater" column="ACTUAL_WATER"/>
- </resultMap>
- <sql id="table_columns">
- MAIN_PROD,
- IS_ACCOUNT,
- IS_BYND_QUOTA,
- IS_BYND_LIC,
- IS_BYND_YRPLN,
- IS_INSTALL,
- IS_CHECK,
- IS_SPOT_CHK,
- IS_RECT_SPOT_CHK,
- IS_ABNORM_EQPT,
- IS_BUILD_BOOK,
- IS_PAY,
- IS_INFO,
- IS_BUILD_NORM,
- IS_BHVR_NORM,
- IS_BOOK_NORM,
- IS_MEAS_NORM,
- IS_MONT_NORM,
- IS_MARK_NORM,
- IS_APPR_ABNORM,
- IS_REPORT,
- IS_ISSU_YRPLN,
- IS_CONSIST,
- IS_ENTRY,
- IS_FILL,
- IS_MAKE_INFO,
- IS_OVERSIGHT,
- IS_DAILY_CHK,
- ID,
- PERS_ID,
- DATA_STAT,
- INTM,
- UPTM,
- RGSTR_ID,
- WINT_NAME,
- WINT_NM,
- WAT_LIC_CODE,
- WINT_CNTCT_PER,
- APPR_DEPT_PER,
- IS_ACCEPT,
- IS_ISSUE_CERT,
- IS_EFFE_CERT,
- IS_MEAS,
- IS_ACCD_LAW,
- IS_TM_CANCEL,
- IS_GET_WATER,
- ACTUAL_WATER
- </sql>
- <sql id="entity_properties">
- #{mainProd},
- #{isAccount},
- #{isByndQuota},
- #{isByndLic},
- #{isByndYrpln},
- #{isInstall},
- #{isCheck},
- #{isSpotChk},
- #{isRectSpotChk},
- #{isAbnormEqpt},
- #{isBuildBook},
- #{isPay},
- #{isInfo},
- #{isBuildNorm},
- #{isBhvrNorm},
- #{isBookNorm},
- #{isMeasNorm},
- #{isMontNorm},
- #{isMarkNorm},
- #{isApprAbnorm},
- #{isReport},
- #{isIssuYrpln},
- #{isConsist},
- #{isEntry},
- #{isFill},
- #{isMakeInfo},
- #{isOversight},
- #{isDailyChk},
- #{id},
- #{persId},
- #{dataStat},
- #{intm},
- #{uptm},
- #{rgstrId},
- #{wintName},
- #{wintNm},
- #{watLicCode},
- #{wintCntctPer},
- #{apprDeptPer},
- #{isAccept},
- #{isIssueCert},
- #{isEffeCert},
- #{isMeas},
- #{isAccdLaw},
- #{isTmCancel},
- #{isGetWater},
- #{actualWater}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="mainProd != null and mainProd != ''">and MAIN_PROD = #{mainProd}</if>
- <if test="isAccount != null and isAccount != ''">and IS_ACCOUNT = #{isAccount}</if>
- <if test="isByndQuota != null and isByndQuota != ''">and IS_BYND_QUOTA = #{isByndQuota}</if>
- <if test="isByndLic != null and isByndLic != ''">and IS_BYND_LIC = #{isByndLic}</if>
- <if test="isByndYrpln != null and isByndYrpln != ''">and IS_BYND_YRPLN = #{isByndYrpln}</if>
- <if test="isInstall != null and isInstall != ''">and IS_INSTALL = #{isInstall}</if>
- <if test="isCheck != null and isCheck != ''">and IS_CHECK = #{isCheck}</if>
- <if test="isSpotChk != null and isSpotChk != ''">and IS_SPOT_CHK = #{isSpotChk}</if>
- <if test="isRectSpotChk != null and isRectSpotChk != ''">and IS_RECT_SPOT_CHK = #{isRectSpotChk}</if>
- <if test="isAbnormEqpt != null and isAbnormEqpt != ''">and IS_ABNORM_EQPT = #{isAbnormEqpt}</if>
- <if test="isBuildBook != null and isBuildBook != ''">and IS_BUILD_BOOK = #{isBuildBook}</if>
- <if test="isPay != null and isPay != ''">and IS_PAY = #{isPay}</if>
- <if test="isInfo != null and isInfo != ''">and IS_INFO = #{isInfo}</if>
- <if test="isBuildNorm != null and isBuildNorm != ''">and IS_BUILD_NORM = #{isBuildNorm}</if>
- <if test="isBhvrNorm != null and isBhvrNorm != ''">and IS_BHVR_NORM = #{isBhvrNorm}</if>
- <if test="isBookNorm != null and isBookNorm != ''">and IS_BOOK_NORM = #{isBookNorm}</if>
- <if test="isMeasNorm != null and isMeasNorm != ''">and IS_MEAS_NORM = #{isMeasNorm}</if>
- <if test="isMontNorm != null and isMontNorm != ''">and IS_MONT_NORM = #{isMontNorm}</if>
- <if test="isMarkNorm != null and isMarkNorm != ''">and IS_MARK_NORM = #{isMarkNorm}</if>
- <if test="isApprAbnorm != null and isApprAbnorm != ''">and IS_APPR_ABNORM = #{isApprAbnorm}</if>
- <if test="isReport != null and isReport != ''">and IS_REPORT = #{isReport}</if>
- <if test="isIssuYrpln != null and isIssuYrpln != ''">and IS_ISSU_YRPLN = #{isIssuYrpln}</if>
- <if test="isConsist != null and isConsist != ''">and IS_CONSIST = #{isConsist}</if>
- <if test="isEntry != null and isEntry != ''">and IS_ENTRY = #{isEntry}</if>
- <if test="isFill != null and isFill != ''">and IS_FILL = #{isFill}</if>
- <if test="isMakeInfo != null and isMakeInfo != ''">and IS_MAKE_INFO = #{isMakeInfo}</if>
- <if test="isOversight != null and isOversight != ''">and IS_OVERSIGHT = #{isOversight}</if>
- <if test="isDailyChk != null and isDailyChk != ''">and IS_DAILY_CHK = #{isDailyChk}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="wintName != null and wintName != ''">and WINT_NAME = #{wintName}</if>
- <if test="wintNm != null and wintNm != ''">and WINT_NM = #{wintNm}</if>
- <if test="watLicCode != null and watLicCode != ''">and WAT_LIC_CODE = #{watLicCode}</if>
- <if test="wintCntctPer != null and wintCntctPer != ''">and WINT_CNTCT_PER = #{wintCntctPer}</if>
- <if test="apprDeptPer != null and apprDeptPer != ''">and APPR_DEPT_PER = #{apprDeptPer}</if>
- <if test="isAccept != null and isAccept != ''">and IS_ACCEPT = #{isAccept}</if>
- <if test="isIssueCert != null and isIssueCert != ''">and IS_ISSUE_CERT = #{isIssueCert}</if>
- <if test="isEffeCert != null and isEffeCert != ''">and IS_EFFE_CERT = #{isEffeCert}</if>
- <if test="isMeas != null and isMeas != ''">and IS_MEAS = #{isMeas}</if>
- <if test="isAccdLaw != null and isAccdLaw != ''">and IS_ACCD_LAW = #{isAccdLaw}</if>
- <if test="isTmCancel != null and isTmCancel != ''">and IS_TM_CANCEL = #{isTmCancel}</if>
- <if test="isGetWater != null and isGetWater != ''">and IS_GET_WATER = #{isGetWater}</if>
- <if test="actualWater != null and actualWater != ''">and ACTUAL_WATER = #{actualWater}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWiujsUnitResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WIUJS_UNIT where RGSTR_ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWiujsUnitResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WIUJS_UNIT
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspWiujsUnitResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WIUJS_UNIT
- </select>
- <select id="findList" resultMap="bisInspWiujsUnitResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WIUJS_UNIT
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_WIUJS_UNIT
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiujsUnit">
- insert into BIS_INSP_WIUJS_UNIT(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_WIUJS_UNIT set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiujsUnit">
- update BIS_INSP_WIUJS_UNIT set DATA_STAT='9'
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WIUJS_UNIT set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiujsUnit">
- update BIS_INSP_WIUJS_UNIT
- <trim prefix="set" suffixOverrides=",">
- <if test="mainProd != null and mainProd != ''">MAIN_PROD = #{mainProd},</if>
- <if test="isAccount != null and isAccount != ''">IS_ACCOUNT = #{isAccount},</if>
- <if test="isByndQuota != null and isByndQuota != ''">IS_BYND_QUOTA = #{isByndQuota},</if>
- <if test="isByndLic != null and isByndLic != ''">IS_BYND_LIC = #{isByndLic},</if>
- <if test="isByndYrpln != null and isByndYrpln != ''">IS_BYND_YRPLN = #{isByndYrpln},</if>
- <if test="isInstall != null and isInstall != ''">IS_INSTALL = #{isInstall},</if>
- <if test="isCheck != null and isCheck != ''">IS_CHECK = #{isCheck},</if>
- <if test="isSpotChk != null and isSpotChk != ''">IS_SPOT_CHK = #{isSpotChk},</if>
- <if test="isRectSpotChk != null and isRectSpotChk != ''">IS_RECT_SPOT_CHK = #{isRectSpotChk},</if>
- <if test="isAbnormEqpt != null and isAbnormEqpt != ''">IS_ABNORM_EQPT = #{isAbnormEqpt},</if>
- <if test="isBuildBook != null and isBuildBook != ''">IS_BUILD_BOOK = #{isBuildBook},</if>
- <if test="isPay != null and isPay != ''">IS_PAY = #{isPay},</if>
- <if test="isInfo != null and isInfo != ''">IS_INFO = #{isInfo},</if>
- <if test="isBuildNorm != null and isBuildNorm != ''">IS_BUILD_NORM = #{isBuildNorm},</if>
- <if test="isBhvrNorm != null and isBhvrNorm != ''">IS_BHVR_NORM = #{isBhvrNorm},</if>
- <if test="isBookNorm != null and isBookNorm != ''">IS_BOOK_NORM = #{isBookNorm},</if>
- <if test="isMeasNorm != null and isMeasNorm != ''">IS_MEAS_NORM = #{isMeasNorm},</if>
- <if test="isMontNorm != null and isMontNorm != ''">IS_MONT_NORM = #{isMontNorm},</if>
- <if test="isMarkNorm != null and isMarkNorm != ''">IS_MARK_NORM = #{isMarkNorm},</if>
- <if test="isApprAbnorm != null and isApprAbnorm != ''">IS_APPR_ABNORM = #{isApprAbnorm},</if>
- <if test="isReport != null and isReport != ''">IS_REPORT = #{isReport},</if>
- <if test="isIssuYrpln != null and isIssuYrpln != ''">IS_ISSU_YRPLN = #{isIssuYrpln},</if>
- <if test="isConsist != null and isConsist != ''">IS_CONSIST = #{isConsist},</if>
- <if test="isEntry != null and isEntry != ''">IS_ENTRY = #{isEntry},</if>
- <if test="isFill != null and isFill != ''">IS_FILL = #{isFill},</if>
- <if test="isMakeInfo != null and isMakeInfo != ''">IS_MAKE_INFO = #{isMakeInfo},</if>
- <if test="isOversight != null and isOversight != ''">IS_OVERSIGHT = #{isOversight},</if>
- <if test="isDailyChk != null and isDailyChk != ''">IS_DAILY_CHK = #{isDailyChk},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wintName != null and wintName != ''">WINT_NAME = #{wintName},</if>
- <if test="wintNm != null and wintNm != ''">WINT_NM = #{wintNm},</if>
- <if test="watLicCode != null and watLicCode != ''">WAT_LIC_CODE = #{watLicCode},</if>
- <if test="wintCntctPer != null and wintCntctPer != ''">WINT_CNTCT_PER = #{wintCntctPer},</if>
- <if test="apprDeptPer != null and apprDeptPer != ''">APPR_DEPT_PER = #{apprDeptPer},</if>
- <if test="isAccept != null and isAccept != ''">IS_ACCEPT = #{isAccept},</if>
- <if test="isIssueCert != null and isIssueCert != ''">IS_ISSUE_CERT = #{isIssueCert},</if>
- <if test="isEffeCert != null and isEffeCert != ''">IS_EFFE_CERT = #{isEffeCert},</if>
- <if test="isMeas != null and isMeas != ''">IS_MEAS = #{isMeas},</if>
- <if test="isAccdLaw != null and isAccdLaw != ''">IS_ACCD_LAW = #{isAccdLaw},</if>
- <if test="isTmCancel != null and isTmCancel != ''">IS_TM_CANCEL = #{isTmCancel},</if>
- <if test="isGetWater != null and isGetWater != ''">IS_GET_WATER = #{isGetWater},</if>
- <if test="actualWater != null and actualWater != ''">ACTUAL_WATER = #{actualWater},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWiujsUnit">
- update BIS_INSP_WIUJS_UNIT
- <trim prefix="set" suffixOverrides=",">
- <if test="mainProd != null and mainProd != ''">MAIN_PROD = #{mainProd},</if>
- <if test="isAccount != null and isAccount != ''">IS_ACCOUNT = #{isAccount},</if>
- <if test="isByndQuota != null and isByndQuota != ''">IS_BYND_QUOTA = #{isByndQuota},</if>
- <if test="isByndLic != null and isByndLic != ''">IS_BYND_LIC = #{isByndLic},</if>
- <if test="isByndYrpln != null and isByndYrpln != ''">IS_BYND_YRPLN = #{isByndYrpln},</if>
- <if test="isInstall != null and isInstall != ''">IS_INSTALL = #{isInstall},</if>
- <if test="isCheck != null and isCheck != ''">IS_CHECK = #{isCheck},</if>
- <if test="isSpotChk != null and isSpotChk != ''">IS_SPOT_CHK = #{isSpotChk},</if>
- <if test="isRectSpotChk != null and isRectSpotChk != ''">IS_RECT_SPOT_CHK = #{isRectSpotChk},</if>
- <if test="isAbnormEqpt != null and isAbnormEqpt != ''">IS_ABNORM_EQPT = #{isAbnormEqpt},</if>
- <if test="isBuildBook != null and isBuildBook != ''">IS_BUILD_BOOK = #{isBuildBook},</if>
- <if test="isPay != null and isPay != ''">IS_PAY = #{isPay},</if>
- <if test="isInfo != null and isInfo != ''">IS_INFO = #{isInfo},</if>
- <if test="isBuildNorm != null and isBuildNorm != ''">IS_BUILD_NORM = #{isBuildNorm},</if>
- <if test="isBhvrNorm != null and isBhvrNorm != ''">IS_BHVR_NORM = #{isBhvrNorm},</if>
- <if test="isBookNorm != null and isBookNorm != ''">IS_BOOK_NORM = #{isBookNorm},</if>
- <if test="isMeasNorm != null and isMeasNorm != ''">IS_MEAS_NORM = #{isMeasNorm},</if>
- <if test="isMontNorm != null and isMontNorm != ''">IS_MONT_NORM = #{isMontNorm},</if>
- <if test="isMarkNorm != null and isMarkNorm != ''">IS_MARK_NORM = #{isMarkNorm},</if>
- <if test="isApprAbnorm != null and isApprAbnorm != ''">IS_APPR_ABNORM = #{isApprAbnorm},</if>
- <if test="isReport != null and isReport != ''">IS_REPORT = #{isReport},</if>
- <if test="isIssuYrpln != null and isIssuYrpln != ''">IS_ISSU_YRPLN = #{isIssuYrpln},</if>
- <if test="isConsist != null and isConsist != ''">IS_CONSIST = #{isConsist},</if>
- <if test="isEntry != null and isEntry != ''">IS_ENTRY = #{isEntry},</if>
- <if test="isFill != null and isFill != ''">IS_FILL = #{isFill},</if>
- <if test="isMakeInfo != null and isMakeInfo != ''">IS_MAKE_INFO = #{isMakeInfo},</if>
- <if test="isOversight != null and isOversight != ''">IS_OVERSIGHT = #{isOversight},</if>
- <if test="isDailyChk != null and isDailyChk != ''">IS_DAILY_CHK = #{isDailyChk},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wintName != null and wintName != ''">WINT_NAME = #{wintName},</if>
- <if test="wintNm != null and wintNm != ''">WINT_NM = #{wintNm},</if>
- <if test="watLicCode != null and watLicCode != ''">WAT_LIC_CODE = #{watLicCode},</if>
- <if test="wintCntctPer != null and wintCntctPer != ''">WINT_CNTCT_PER = #{wintCntctPer},</if>
- <if test="apprDeptPer != null and apprDeptPer != ''">APPR_DEPT_PER = #{apprDeptPer},</if>
- <if test="isAccept != null and isAccept != ''">IS_ACCEPT = #{isAccept},</if>
- <if test="isIssueCert != null and isIssueCert != ''">IS_ISSUE_CERT = #{isIssueCert},</if>
- <if test="isEffeCert != null and isEffeCert != ''">IS_EFFE_CERT = #{isEffeCert},</if>
- <if test="isMeas != null and isMeas != ''">IS_MEAS = #{isMeas},</if>
- <if test="isAccdLaw != null and isAccdLaw != ''">IS_ACCD_LAW = #{isAccdLaw},</if>
- <if test="isTmCancel != null and isTmCancel != ''">IS_TM_CANCEL = #{isTmCancel},</if>
- <if test="isGetWater != null and isGetWater != ''">IS_GET_WATER = #{isGetWater},</if>
- <if test="actualWater != null and actualWater != ''">ACTUAL_WATER = #{actualWater},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|