|
|
@@ -1,414 +0,0 @@
|
|
|
-<?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="com.goafanti.common.dao.TaskDetailsSupplementMapper">
|
|
|
-
|
|
|
- <resultMap type="com.goafanti.common.model.TaskDetailsSupplement" id="TaskDetailsSupplementMap">
|
|
|
- <result property="id" column="id" jdbcType="INTEGER"/>
|
|
|
- <result property="ipDeclare" column="ip_declare" jdbcType="INTEGER"/>
|
|
|
- <result property="ipAuthorize" column="ip_authorize" jdbcType="INTEGER"/>
|
|
|
- <result property="ipHt" column="ip_ht" jdbcType="INTEGER"/>
|
|
|
- <result property="ipHtI" column="ip_ht_i" jdbcType="INTEGER"/>
|
|
|
- <result property="ipHtIi" column="ip_ht_ii" jdbcType="INTEGER"/>
|
|
|
- <result property="outsourcingDev" column="outsourcing_dev" jdbcType="INTEGER"/>
|
|
|
- <result property="contractRegistration" column="contract_registration" jdbcType="INTEGER"/>
|
|
|
- <result property="publicReleaseStipulation" column="public_release_stipulation" jdbcType="INTEGER"/>
|
|
|
- <result property="publicReleaseActual" column="public_release_actual" jdbcType="INTEGER"/>
|
|
|
- <result property="trainingStipulation" column="training_stipulation" jdbcType="INTEGER"/>
|
|
|
- <result property="trainingActual" column="training_actual" jdbcType="INTEGER"/>
|
|
|
- <result property="trainingOther" column="training_other" jdbcType="VARCHAR"/>
|
|
|
- <result property="specialInspect" column="special_inspect" jdbcType="INTEGER"/>
|
|
|
- <result property="simulatedAudit" column="simulated_audit" jdbcType="INTEGER"/>
|
|
|
- <result property="featuredWorkOther" column="featured_work_other" jdbcType="VARCHAR"/>
|
|
|
- <result property="htScore" column="ht_score" jdbcType="INTEGER"/>
|
|
|
- <result property="htBatch" column="ht_batch" jdbcType="INTEGER"/>
|
|
|
- <result property="htFocus" column="ht_focus" jdbcType="INTEGER"/>
|
|
|
- <result property="webSubmit" column="web_submit" jdbcType="INTEGER"/>
|
|
|
- <result property="webSubmitOther" column="web_submit_other" jdbcType="VARCHAR"/>
|
|
|
- <result property="paperSubmit" column="paper_submit" jdbcType="INTEGER"/>
|
|
|
- <result property="paperSubmitOther" column="paper_submit_other" jdbcType="VARCHAR"/>
|
|
|
- <result property="reviewProvince" column="review_province" jdbcType="INTEGER"/>
|
|
|
- <result property="reviewCountry" column="review_country" jdbcType="INTEGER"/>
|
|
|
- <result property="reviewProvinceNumber" column="review_province_number" jdbcType="INTEGER"/>
|
|
|
- <result property="reviewCountryNumber" column="review_country_number" jdbcType="INTEGER"/>
|
|
|
- <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <sql id="TaskDetailsSupplementAllSql">
|
|
|
- id, ip_declare, ip_authorize, ip_ht, ip_ht_i, ip_ht_ii, outsourcing_dev, contract_registration, public_release_stipulation, public_release_actual, training_stipulation, training_actual, training_other, special_inspect, simulated_audit, featured_work_other, ht_score, ht_batch, ht_focus, web_submit, web_submit_other, paper_submit, paper_submit_other, review_province, review_country, review_province_number, review_country_number, remarks
|
|
|
- </sql>
|
|
|
-
|
|
|
- <!--查询单个-->
|
|
|
- <select id="selectById" resultMap="TaskDetailsSupplementMap">
|
|
|
- select
|
|
|
- <include refid="TaskDetailsSupplementAllSql"/>
|
|
|
- from task_details_supplement
|
|
|
- where id = #{id}
|
|
|
- </select>
|
|
|
-
|
|
|
- <!--新增所有列-->
|
|
|
- <insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into task_details_supplement(id,ip_declare, ip_authorize, ip_ht, ip_ht_i, ip_ht_ii, outsourcing_dev,
|
|
|
- contract_registration, public_release_stipulation, public_release_actual,
|
|
|
- training_stipulation, training_actual, training_other, special_inspect,
|
|
|
- simulated_audit, featured_work_other, ht_score, ht_batch, ht_focus,
|
|
|
- web_submit, web_submit_other, paper_submit, paper_submit_other,
|
|
|
- review_province, review_country, review_province_number,
|
|
|
- review_country_number, remarks)
|
|
|
- values (#{id},#{ipDeclare}, #{ipAuthorize}, #{ipHt}, #{ipHtI}, #{ipHtIi}, #{outsourcingDev}, #{contractRegistration},
|
|
|
- #{publicReleaseStipulation}, #{publicReleaseActual}, #{trainingStipulation}, #{trainingActual},
|
|
|
- #{trainingOther}, #{specialInspect}, #{simulatedAudit}, #{featuredWorkOther}, #{htScore}, #{htBatch},
|
|
|
- #{htFocus}, #{webSubmit}, #{webSubmitOther}, #{paperSubmit}, #{paperSubmitOther}, #{reviewProvince},
|
|
|
- #{reviewCountry}, #{reviewProvinceNumber}, #{reviewCountryNumber}, #{remarks})
|
|
|
- </insert>
|
|
|
-
|
|
|
- <insert id="insertBatch">
|
|
|
- insert into task_details_supplement(ip_declare, ip_authorize, ip_ht, ip_ht_i, ip_ht_ii, outsourcing_dev,
|
|
|
- contract_registration, public_release_stipulation, public_release_actual, training_stipulation, training_actual,
|
|
|
- training_other, special_inspect, simulated_audit, featured_work_other, ht_score, ht_batch, ht_focus, web_submit,
|
|
|
- web_submit_other, paper_submit, paper_submit_other, review_province, review_country, review_province_number,
|
|
|
- review_country_number, remarks)
|
|
|
- values
|
|
|
- <foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.ipDeclare}, #{entity.ipAuthorize}, #{entity.ipHt}, #{entity.ipHtI}, #{entity.ipHtIi},
|
|
|
- #{entity.outsourcingDev}, #{entity.contractRegistration}, #{entity.publicReleaseStipulation},
|
|
|
- #{entity.publicReleaseActual}, #{entity.trainingStipulation}, #{entity.trainingActual},
|
|
|
- #{entity.trainingOther}, #{entity.specialInspect}, #{entity.simulatedAudit}, #{entity.featuredWorkOther},
|
|
|
- #{entity.htScore}, #{entity.htBatch}, #{entity.htFocus}, #{entity.webSubmit}, #{entity.webSubmitOther},
|
|
|
- #{entity.paperSubmit}, #{entity.paperSubmitOther}, #{entity.reviewProvince}, #{entity.reviewCountry},
|
|
|
- #{entity.reviewProvinceNumber}, #{entity.reviewCountryNumber}, #{entity.remarks})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
-
|
|
|
- <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into task_details_supplement(ip_declare, ip_authorize, ip_ht, ip_ht_i, ip_ht_ii, outsourcing_dev,
|
|
|
- contract_registration, public_release_stipulation, public_release_actual, training_stipulation, training_actual,
|
|
|
- training_other, special_inspect, simulated_audit, featured_work_other, ht_score, ht_batch, ht_focus, web_submit,
|
|
|
- web_submit_other, paper_submit, paper_submit_other, review_province, review_country, review_province_number,
|
|
|
- review_country_number, remarks)
|
|
|
- values
|
|
|
- <foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.ipDeclare}, #{entity.ipAuthorize}, #{entity.ipHt}, #{entity.ipHtI}, #{entity.ipHtIi},
|
|
|
- #{entity.outsourcingDev}, #{entity.contractRegistration}, #{entity.publicReleaseStipulation},
|
|
|
- #{entity.publicReleaseActual}, #{entity.trainingStipulation}, #{entity.trainingActual},
|
|
|
- #{entity.trainingOther}, #{entity.specialInspect}, #{entity.simulatedAudit}, #{entity.featuredWorkOther},
|
|
|
- #{entity.htScore}, #{entity.htBatch}, #{entity.htFocus}, #{entity.webSubmit}, #{entity.webSubmitOther},
|
|
|
- #{entity.paperSubmit}, #{entity.paperSubmitOther}, #{entity.reviewProvince}, #{entity.reviewCountry},
|
|
|
- #{entity.reviewProvinceNumber}, #{entity.reviewCountryNumber}, #{entity.remarks})
|
|
|
- </foreach>
|
|
|
- on duplicate key update
|
|
|
- ip_declare = values(ip_declare),
|
|
|
- ip_authorize = values(ip_authorize),
|
|
|
- ip_ht = values(ip_ht),
|
|
|
- ip_ht_i = values(ip_ht_i),
|
|
|
- ip_ht_ii = values(ip_ht_ii),
|
|
|
- outsourcing_dev = values(outsourcing_dev),
|
|
|
- contract_registration = values(contract_registration),
|
|
|
- public_release_stipulation = values(public_release_stipulation),
|
|
|
- public_release_actual = values(public_release_actual),
|
|
|
- training_stipulation = values(training_stipulation),
|
|
|
- training_actual = values(training_actual),
|
|
|
- training_other = values(training_other),
|
|
|
- special_inspect = values(special_inspect),
|
|
|
- simulated_audit = values(simulated_audit),
|
|
|
- featured_work_other = values(featured_work_other),
|
|
|
- ht_score = values(ht_score),
|
|
|
- ht_batch = values(ht_batch),
|
|
|
- ht_focus = values(ht_focus),
|
|
|
- web_submit = values(web_submit),
|
|
|
- web_submit_other = values(web_submit_other),
|
|
|
- paper_submit = values(paper_submit),
|
|
|
- paper_submit_other = values(paper_submit_other),
|
|
|
- review_province = values(review_province),
|
|
|
- review_country = values(review_country),
|
|
|
- review_province_number = values(review_province_number),
|
|
|
- review_country_number = values(review_country_number),
|
|
|
- remarks = values(remarks)
|
|
|
- </insert>
|
|
|
-
|
|
|
- <!--通过主键修改数据-->
|
|
|
- <update id="update">
|
|
|
- update task_details_supplement
|
|
|
- <set>
|
|
|
- <if test="ipDeclare != null">
|
|
|
- ip_declare = #{ipDeclare},
|
|
|
- </if>
|
|
|
- <if test="ipAuthorize != null">
|
|
|
- ip_authorize = #{ipAuthorize},
|
|
|
- </if>
|
|
|
- <if test="ipHt != null">
|
|
|
- ip_ht = #{ipHt},
|
|
|
- </if>
|
|
|
- <if test="ipHtI != null">
|
|
|
- ip_ht_i = #{ipHtI},
|
|
|
- </if>
|
|
|
- <if test="ipHtIi != null">
|
|
|
- ip_ht_ii = #{ipHtIi},
|
|
|
- </if>
|
|
|
- <if test="outsourcingDev != null">
|
|
|
- outsourcing_dev = #{outsourcingDev},
|
|
|
- </if>
|
|
|
- <if test="contractRegistration != null">
|
|
|
- contract_registration = #{contractRegistration},
|
|
|
- </if>
|
|
|
- <if test="publicReleaseStipulation != null">
|
|
|
- public_release_stipulation = #{publicReleaseStipulation},
|
|
|
- </if>
|
|
|
- <if test="publicReleaseActual != null">
|
|
|
- public_release_actual = #{publicReleaseActual},
|
|
|
- </if>
|
|
|
- <if test="trainingStipulation != null">
|
|
|
- training_stipulation = #{trainingStipulation},
|
|
|
- </if>
|
|
|
- <if test="trainingActual != null">
|
|
|
- training_actual = #{trainingActual},
|
|
|
- </if>
|
|
|
- <if test="trainingOther != null and trainingOther != ''">
|
|
|
- training_other = #{trainingOther},
|
|
|
- </if>
|
|
|
- <if test="specialInspect != null">
|
|
|
- special_inspect = #{specialInspect},
|
|
|
- </if>
|
|
|
- <if test="simulatedAudit != null">
|
|
|
- simulated_audit = #{simulatedAudit},
|
|
|
- </if>
|
|
|
- <if test="featuredWorkOther != null and featuredWorkOther != ''">
|
|
|
- featured_work_other = #{featuredWorkOther},
|
|
|
- </if>
|
|
|
- <if test="htScore != null">
|
|
|
- ht_score = #{htScore},
|
|
|
- </if>
|
|
|
- <if test="htBatch != null">
|
|
|
- ht_batch = #{htBatch},
|
|
|
- </if>
|
|
|
- <if test="htFocus != null">
|
|
|
- ht_focus = #{htFocus},
|
|
|
- </if>
|
|
|
- <if test="webSubmit != null">
|
|
|
- web_submit = #{webSubmit},
|
|
|
- </if>
|
|
|
- <if test="webSubmitOther != null and webSubmitOther != ''">
|
|
|
- web_submit_other = #{webSubmitOther},
|
|
|
- </if>
|
|
|
- <if test="paperSubmit != null">
|
|
|
- paper_submit = #{paperSubmit},
|
|
|
- </if>
|
|
|
- <if test="paperSubmitOther != null and paperSubmitOther != ''">
|
|
|
- paper_submit_other = #{paperSubmitOther},
|
|
|
- </if>
|
|
|
- <if test="reviewProvince != null">
|
|
|
- review_province = #{reviewProvince},
|
|
|
- </if>
|
|
|
- <if test="reviewCountry != null">
|
|
|
- review_country = #{reviewCountry},
|
|
|
- </if>
|
|
|
- <if test="reviewProvinceNumber != null">
|
|
|
- review_province_number = #{reviewProvinceNumber},
|
|
|
- </if>
|
|
|
- <if test="reviewCountryNumber != null">
|
|
|
- review_country_number = #{reviewCountryNumber},
|
|
|
- </if>
|
|
|
- <if test="remarks != null and remarks != ''">
|
|
|
- remarks = #{remarks},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where id = #{id}
|
|
|
- </update>
|
|
|
-
|
|
|
- <!--查询指定行数据-->
|
|
|
- <select id="findTaskDetailsSupplementList" resultMap="TaskDetailsSupplementMap">
|
|
|
- select
|
|
|
- <include refid="TaskDetailsSupplementAllSql"/>
|
|
|
-
|
|
|
- from task_details_supplement
|
|
|
- <where>
|
|
|
- <if test="id != null">
|
|
|
- and id = #{id}
|
|
|
- </if>
|
|
|
- <if test="ipDeclare != null">
|
|
|
- and ip_declare = #{ipDeclare}
|
|
|
- </if>
|
|
|
- <if test="ipAuthorize != null">
|
|
|
- and ip_authorize = #{ipAuthorize}
|
|
|
- </if>
|
|
|
- <if test="ipHt != null">
|
|
|
- and ip_ht = #{ipHt}
|
|
|
- </if>
|
|
|
- <if test="ipHtI != null">
|
|
|
- and ip_ht_i = #{ipHtI}
|
|
|
- </if>
|
|
|
- <if test="ipHtIi != null">
|
|
|
- and ip_ht_ii = #{ipHtIi}
|
|
|
- </if>
|
|
|
- <if test="outsourcingDev != null">
|
|
|
- and outsourcing_dev = #{outsourcingDev}
|
|
|
- </if>
|
|
|
- <if test="contractRegistration != null">
|
|
|
- and contract_registration = #{contractRegistration}
|
|
|
- </if>
|
|
|
- <if test="publicReleaseStipulation != null">
|
|
|
- and public_release_stipulation = #{publicReleaseStipulation}
|
|
|
- </if>
|
|
|
- <if test="publicReleaseActual != null">
|
|
|
- and public_release_actual = #{publicReleaseActual}
|
|
|
- </if>
|
|
|
- <if test="trainingStipulation != null">
|
|
|
- and training_stipulation = #{trainingStipulation}
|
|
|
- </if>
|
|
|
- <if test="trainingActual != null">
|
|
|
- and training_actual = #{trainingActual}
|
|
|
- </if>
|
|
|
- <if test="trainingOther != null and trainingOther != ''">
|
|
|
- and training_other = #{trainingOther}
|
|
|
- </if>
|
|
|
- <if test="specialInspect != null">
|
|
|
- and special_inspect = #{specialInspect}
|
|
|
- </if>
|
|
|
- <if test="simulatedAudit != null">
|
|
|
- and simulated_audit = #{simulatedAudit}
|
|
|
- </if>
|
|
|
- <if test="featuredWorkOther != null and featuredWorkOther != ''">
|
|
|
- and featured_work_other = #{featuredWorkOther}
|
|
|
- </if>
|
|
|
- <if test="htScore != null">
|
|
|
- and ht_score = #{htScore}
|
|
|
- </if>
|
|
|
- <if test="htBatch != null">
|
|
|
- and ht_batch = #{htBatch}
|
|
|
- </if>
|
|
|
- <if test="htFocus != null">
|
|
|
- and ht_focus = #{htFocus}
|
|
|
- </if>
|
|
|
- <if test="webSubmit != null">
|
|
|
- and web_submit = #{webSubmit}
|
|
|
- </if>
|
|
|
- <if test="webSubmitOther != null and webSubmitOther != ''">
|
|
|
- and web_submit_other = #{webSubmitOther}
|
|
|
- </if>
|
|
|
- <if test="paperSubmit != null">
|
|
|
- and paper_submit = #{paperSubmit}
|
|
|
- </if>
|
|
|
- <if test="paperSubmitOther != null and paperSubmitOther != ''">
|
|
|
- and paper_submit_other = #{paperSubmitOther}
|
|
|
- </if>
|
|
|
- <if test="reviewProvince != null">
|
|
|
- and review_province = #{reviewProvince}
|
|
|
- </if>
|
|
|
- <if test="reviewCountry != null">
|
|
|
- and review_country = #{reviewCountry}
|
|
|
- </if>
|
|
|
- <if test="reviewProvinceNumber != null">
|
|
|
- and review_province_number = #{reviewProvinceNumber}
|
|
|
- </if>
|
|
|
- <if test="reviewCountryNumber != null">
|
|
|
- and review_country_number = #{reviewCountryNumber}
|
|
|
- </if>
|
|
|
- <if test="remarks != null and remarks != ''">
|
|
|
- and remarks = #{remarks}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- <if test="page_sql != null">
|
|
|
- ${page_sql}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
-
|
|
|
- <!--统计总行数-->
|
|
|
- <select id="findTaskDetailsSupplementCount" resultType="java.lang.Integer">
|
|
|
- select count(1)
|
|
|
- from task_details_supplement
|
|
|
- <where>
|
|
|
- <if test="id != null">
|
|
|
- and id = #{id}
|
|
|
- </if>
|
|
|
- <if test="ipDeclare != null">
|
|
|
- and ip_declare = #{ipDeclare}
|
|
|
- </if>
|
|
|
- <if test="ipAuthorize != null">
|
|
|
- and ip_authorize = #{ipAuthorize}
|
|
|
- </if>
|
|
|
- <if test="ipHt != null">
|
|
|
- and ip_ht = #{ipHt}
|
|
|
- </if>
|
|
|
- <if test="ipHtI != null">
|
|
|
- and ip_ht_i = #{ipHtI}
|
|
|
- </if>
|
|
|
- <if test="ipHtIi != null">
|
|
|
- and ip_ht_ii = #{ipHtIi}
|
|
|
- </if>
|
|
|
- <if test="outsourcingDev != null">
|
|
|
- and outsourcing_dev = #{outsourcingDev}
|
|
|
- </if>
|
|
|
- <if test="contractRegistration != null">
|
|
|
- and contract_registration = #{contractRegistration}
|
|
|
- </if>
|
|
|
- <if test="publicReleaseStipulation != null">
|
|
|
- and public_release_stipulation = #{publicReleaseStipulation}
|
|
|
- </if>
|
|
|
- <if test="publicReleaseActual != null">
|
|
|
- and public_release_actual = #{publicReleaseActual}
|
|
|
- </if>
|
|
|
- <if test="trainingStipulation != null">
|
|
|
- and training_stipulation = #{trainingStipulation}
|
|
|
- </if>
|
|
|
- <if test="trainingActual != null">
|
|
|
- and training_actual = #{trainingActual}
|
|
|
- </if>
|
|
|
- <if test="trainingOther != null and trainingOther != ''">
|
|
|
- and training_other = #{trainingOther}
|
|
|
- </if>
|
|
|
- <if test="specialInspect != null">
|
|
|
- and special_inspect = #{specialInspect}
|
|
|
- </if>
|
|
|
- <if test="simulatedAudit != null">
|
|
|
- and simulated_audit = #{simulatedAudit}
|
|
|
- </if>
|
|
|
- <if test="featuredWorkOther != null and featuredWorkOther != ''">
|
|
|
- and featured_work_other = #{featuredWorkOther}
|
|
|
- </if>
|
|
|
- <if test="htScore != null">
|
|
|
- and ht_score = #{htScore}
|
|
|
- </if>
|
|
|
- <if test="htBatch != null">
|
|
|
- and ht_batch = #{htBatch}
|
|
|
- </if>
|
|
|
- <if test="htFocus != null">
|
|
|
- and ht_focus = #{htFocus}
|
|
|
- </if>
|
|
|
- <if test="webSubmit != null">
|
|
|
- and web_submit = #{webSubmit}
|
|
|
- </if>
|
|
|
- <if test="webSubmitOther != null and webSubmitOther != ''">
|
|
|
- and web_submit_other = #{webSubmitOther}
|
|
|
- </if>
|
|
|
- <if test="paperSubmit != null">
|
|
|
- and paper_submit = #{paperSubmit}
|
|
|
- </if>
|
|
|
- <if test="paperSubmitOther != null and paperSubmitOther != ''">
|
|
|
- and paper_submit_other = #{paperSubmitOther}
|
|
|
- </if>
|
|
|
- <if test="reviewProvince != null">
|
|
|
- and review_province = #{reviewProvince}
|
|
|
- </if>
|
|
|
- <if test="reviewCountry != null">
|
|
|
- and review_country = #{reviewCountry}
|
|
|
- </if>
|
|
|
- <if test="reviewProvinceNumber != null">
|
|
|
- and review_province_number = #{reviewProvinceNumber}
|
|
|
- </if>
|
|
|
- <if test="reviewCountryNumber != null">
|
|
|
- and review_country_number = #{reviewCountryNumber}
|
|
|
- </if>
|
|
|
- <if test="remarks != null and remarks != ''">
|
|
|
- and remarks = #{remarks}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </select>
|
|
|
-
|
|
|
- <!--通过主键删除-->
|
|
|
- <delete id="deleteById">
|
|
|
- delete
|
|
|
- from task_details_supplement
|
|
|
- where id = #{id}
|
|
|
- </delete>
|
|
|
-
|
|
|
-</mapper>
|
|
|
-
|