| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?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">
- <!-- namespace必须指向DAO接口 -->
- <mapper namespace="com.jpsoft.employment.modules.base.dao.InstallationRequirementDAO">
- <resultMap id="InstallationRequirementMap" type="com.jpsoft.employment.modules.base.entity.InstallationRequirement">
- <id property="id" column="id_" />
- <result property="title" column="title_" />
- <result property="address" column="address_" />
- <result property="image" column="image_" />
- <result property="location" column="location_" />
- <result property="material" column="material_" />
- <result property="size" column="size_" />
- <result property="numerical" column="numerical_" />
- <result property="isIrregular" column="is_irregular" />
- <result property="amount" column="amount_" />
- <result property="difficulty" column="difficulty_" />
- <result property="isSubsidy" column="is_subsidy" />
- <result property="subsidyType" column="subsidy_type" />
- <result property="budget" column="budget_" />
- <result property="period" column="period_" />
- <result property="terminationPeriod" column="termination_period" />
- <result property="completionPayProp" column="completion_pay_prop" />
- <result property="requirement" column="requirement" />
- <result property="stageRequirements" column="stage_requirements" />
- <result property="acceptanceCriteria" column="acceptance_criteria" />
- <result property="salesRequirement" column="sales_requirement" />
- <result property="workOrderId" column="work_order_id" />
- <result property="createTime" column="create_time" />
- <result property="updateTime" column="update_time" />
- <result property="delFlag" column="del_flag" />
- <result property="createBy" column="create_by" />
- <result property="updateBy" column="update_by" />
- <result property="map" column="map_" />
- <result property="constructionLocation" column="construction_location" />
- <result property="environment" column="environment" />
- <result property="volume" column="volume_" />
- <result property="material" column="material_" />
- <result property="subsidyAmount" column="subsidy_amount" />
- </resultMap>
- <insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.InstallationRequirement">
- <!--
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
- select sys_guid() from dual
- </selectKey>
- -->
- <![CDATA[
- insert into base_installation_requirement
- (id_,title_,address_,image_,location_,material_,size_,numerical_,is_irregular,amount_,difficulty_,is_subsidy,subsidy_type,budget_,period_,termination_period,completion_pay_prop,requirement,stage_requirements,acceptance _criteria,sales_requirement,work_order_id,create_time,update_time,del_flag,create_by,update_by,
- map_,construction_location,environment,volume_,subsidy_amount)
- values
- (
- #{id,jdbcType=VARCHAR}
- ,#{title,jdbcType=VARCHAR}
- ,#{address,jdbcType=VARCHAR}
- ,#{image,jdbcType=VARCHAR}
- ,#{location,jdbcType=VARCHAR}
- ,#{material,jdbcType=VARCHAR}
- ,#{size,jdbcType= NUMERIC }
- ,#{numerical,jdbcType= NUMERIC }
- ,#{isIrregular,jdbcType= NUMERIC }
- ,#{amount,jdbcType= NUMERIC }
- ,#{difficulty,jdbcType=VARCHAR}
- ,#{isSubsidy,jdbcType= NUMERIC }
- ,#{subsidyType,jdbcType=VARCHAR}
- ,#{budget,jdbcType= NUMERIC }
- ,#{period,jdbcType=VARCHAR}
- ,#{terminationPeriod,jdbcType= NUMERIC }
- ,#{completionPayProp,jdbcType= NUMERIC }
- ,#{requirement,jdbcType=VARCHAR}
- ,#{stageRequirements,jdbcType=VARCHAR}
- ,#{acceptance Criteria,jdbcType=VARCHAR}
- ,#{salesRequirement,jdbcType=VARCHAR}
- ,#{workOrderId,jdbcType=VARCHAR}
- ,#{createTime,jdbcType= TIMESTAMP }
- ,#{updateTime,jdbcType= TIMESTAMP }
- ,#{delFlag,jdbcType= NUMERIC }
- ,#{createBy,jdbcType=VARCHAR}
- ,#{updateBy,jdbcType=VARCHAR}
- ,#{map,jdbcType=VARCHAR}
- ,#{constructionLocation,jdbcType=VARCHAR}
- ,#{environment,jdbcType=VARCHAR}
- ,#{volume,jdbcType= NUMERIC }
- ,#{subsidyAmount,jdbcType= NUMERIC }
- )
- ]]>
- </insert>
- <delete id="delete" parameterType="string">
- delete from base_installation_requirement where id_=#{id,jdbcType=VARCHAR}
- </delete>
- <update id="update" parameterType="com.jpsoft.employment.modules.base.entity.InstallationRequirement">
- update base_installation_requirement
- <set>
- <if test="title!=null">
- title_=#{title,jdbcType=VARCHAR},
- </if>
- <if test="address!=null">
- address_=#{address,jdbcType=VARCHAR},
- </if>
- <if test="image!=null">
- image_=#{image,jdbcType=VARCHAR},
- </if>
- <if test="location!=null">
- location_=#{location,jdbcType=VARCHAR},
- </if>
- <if test="material!=null">
- material_=#{material,jdbcType=VARCHAR},
- </if>
- <if test="size!=null">
- size_=#{size,jdbcType= NUMERIC },
- </if>
- <if test="numerical!=null">
- numerical_=#{numerical,jdbcType= NUMERIC },
- </if>
- <if test="isIrregular!=null">
- is_irregular=#{isIrregular,jdbcType= NUMERIC },
- </if>
- <if test="amount!=null">
- amount_=#{amount,jdbcType= NUMERIC },
- </if>
- <if test="difficulty!=null">
- difficulty_=#{difficulty,jdbcType=VARCHAR},
- </if>
- <if test="isSubsidy!=null">
- is_subsidy=#{isSubsidy,jdbcType= NUMERIC },
- </if>
- <if test="subsidyType!=null">
- subsidy_type=#{subsidyType,jdbcType=VARCHAR},
- </if>
- <if test="budget!=null">
- budget_=#{budget,jdbcType= NUMERIC },
- </if>
- <if test="period!=null">
- period_=#{period,jdbcType=VARCHAR},
- </if>
- <if test="terminationPeriod!=null">
- termination_period=#{terminationPeriod,jdbcType= NUMERIC },
- </if>
- <if test="completionPayProp!=null">
- completion_pay_prop=#{completionPayProp,jdbcType= NUMERIC },
- </if>
- <if test="requirement!=null">
- requirement=#{requirement,jdbcType=VARCHAR},
- </if>
- <if test="stageRequirements!=null">
- stage_requirements=#{stageRequirements,jdbcType=VARCHAR},
- </if>
- <if test="acceptance Criteria!=null">
- acceptance _criteria=#{acceptance Criteria,jdbcType=VARCHAR},
- </if>
- <if test="salesRequirement!=null">
- sales_requirement=#{salesRequirement,jdbcType=VARCHAR},
- </if>
- <if test="workOrderId!=null">
- work_order_id=#{workOrderId,jdbcType=VARCHAR},
- </if>
- <if test="createTime!=null">
- create_time=#{createTime,jdbcType= TIMESTAMP },
- </if>
- <if test="updateTime!=null">
- update_time=#{updateTime,jdbcType= TIMESTAMP },
- </if>
- <if test="delFlag!=null">
- del_flag=#{delFlag,jdbcType= NUMERIC },
- </if>
- <if test="createBy!=null">
- create_by=#{createBy,jdbcType=VARCHAR},
- </if>
- <if test="updateBy!=null">
- update_by=#{updateBy,jdbcType=VARCHAR},
- </if>
- <if test="map!=null">
- map_=#{map,jdbcType=VARCHAR},
- </if>
- <if test="constructionLocation!=null">
- construction_location=#{constructionLocation,jdbcType=VARCHAR},
- </if>
- <if test="environment!=null">
- environment=#{environment,jdbcType=VARCHAR},
- </if>
- <if test="volume!=null">
- volume_=#{volume,jdbcType= NUMERIC },
- </if>
- <if test="subsidyAmount!=null">
- subsidy_amount=#{subsidyAmount,jdbcType= NUMERIC },
- </if>
- </set>
- where id_=#{id}
- </update>
- <select id="get" parameterType="string" resultMap="InstallationRequirementMap">
- select * from base_installation_requirement where id_=#{0}
- </select>
- <select id="exist" parameterType="string" resultType="int">
- select count(*) from base_installation_requirement where id_=#{0}
- </select>
- <select id="list" resultMap="InstallationRequirementMap">
- select * from base_installation_requirement
- </select>
- <select id="findByWorkOrderId" resultMap="InstallationRequirementMap">
- select * from base_installation_requirement where del_flag=false and work_order_id=#{0}
- </select>
- <select id="search" parameterType="hashmap" resultMap="InstallationRequirementMap">
- <![CDATA[
- select * from base_installation_requirement
- ]]>
- <where>
- <if test="searchParams.id != null">
- and ID_ like #{searchParams.id}
- </if>
- </where>
- <foreach item="sort" collection="sortList" open="order by" separator=",">
- ${sort.name} ${sort.order}
- </foreach>
- </select>
- </mapper>
|