| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508 |
- <?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.chinaitop.depot.business.mapper.BusinessNoticeReceiveMapper" >
- <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- <id column="id" property="id" jdbcType="INTEGER" />
- <result column="notice_number" property="noticeNumber" jdbcType="VARCHAR" />
- <result column="crktype" property="crktype" jdbcType="VARCHAR" />
- <result column="contract_number" property="contractNumber" jdbcType="VARCHAR" />
- <result column="ywtype" property="ywtype" jdbcType="VARCHAR" />
- <result column="house_id" property="houseId" jdbcType="INTEGER" />
- <result column="ware_house_id" property="wareHouseId" jdbcType="INTEGER" />
- <result column="grain_kind" property="grainKind" jdbcType="INTEGER" />
- <result column="grain_grade" property="grainGrade" jdbcType="INTEGER" />
- <result column="count" property="count" jdbcType="VARCHAR" />
- <result column="outgoing_period" property="outgoingPeriod" jdbcType="VARCHAR" />
- <result column="forwarding_unit" property="forwardingUnit" jdbcType="VARCHAR" />
- <result column="receive_unit" property="receiveUnit" jdbcType="VARCHAR" />
- <result column="resion" property="resion" jdbcType="VARCHAR" />
- <result column="in_application" property="inApplication" jdbcType="INTEGER" />
- <result column="org_id" property="orgId" jdbcType="INTEGER" />
- <result column="grain_attribute" property="grainAttribute" jdbcType="INTEGER" />
- <result column="grain_detail_kind" property="grainDetailKind" jdbcType="INTEGER" />
- <result column="receive_time" property="receiveTime" jdbcType="TIMESTAMP" />
- </resultMap>
- <sql id="Example_Where_Clause" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- <where >
- <foreach collection="oredCriteria" item="criteria" separator="or" >
- <if test="criteria.valid" >
- <trim prefix="(" suffix=")" prefixOverrides="and" >
- <foreach collection="criteria.criteria" item="criterion" >
- <choose >
- <when test="criterion.noValue" >
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue" >
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue" >
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue" >
- and ${criterion.condition}
- <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- <where >
- <foreach collection="example.oredCriteria" item="criteria" separator="or" >
- <if test="criteria.valid" >
- <trim prefix="(" suffix=")" prefixOverrides="and" >
- <foreach collection="criteria.criteria" item="criterion" >
- <choose >
- <when test="criterion.noValue" >
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue" >
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue" >
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue" >
- and ${criterion.condition}
- <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- id, notice_number, crktype, contract_number, ywtype, house_id, ware_house_id, grain_kind,
- grain_grade, count, outgoing_period, forwarding_unit, receive_unit, resion, in_application,
- org_id, grain_attribute, grain_detail_kind, receive_time
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- select
- <if test="distinct" >
- distinct
- </if>
- <include refid="Base_Column_List" />
- from business_notice_receive
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null" >
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- select
- <include refid="Base_Column_List" />
- from business_notice_receive
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- delete from business_notice_receive
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- delete from business_notice_receive
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- insert into business_notice_receive (id, notice_number, crktype,
- contract_number, ywtype, house_id,
- ware_house_id, grain_kind, grain_grade,
- count, outgoing_period, forwarding_unit,
- receive_unit, resion, in_application,
- org_id, grain_attribute, grain_detail_kind,
- receive_time)
- values (#{id,jdbcType=INTEGER}, #{noticeNumber,jdbcType=VARCHAR}, #{crktype,jdbcType=VARCHAR},
- #{contractNumber,jdbcType=VARCHAR}, #{ywtype,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER},
- #{wareHouseId,jdbcType=INTEGER}, #{grainKind,jdbcType=INTEGER}, #{grainGrade,jdbcType=INTEGER},
- #{count,jdbcType=VARCHAR}, #{outgoingPeriod,jdbcType=VARCHAR}, #{forwardingUnit,jdbcType=VARCHAR},
- #{receiveUnit,jdbcType=VARCHAR}, #{resion,jdbcType=VARCHAR}, #{inApplication,jdbcType=INTEGER},
- #{orgId,jdbcType=INTEGER}, #{grainAttribute,jdbcType=INTEGER}, #{grainDetailKind,jdbcType=INTEGER},
- #{receiveTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- insert into business_notice_receive
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="noticeNumber != null" >
- notice_number,
- </if>
- <if test="crktype != null" >
- crktype,
- </if>
- <if test="contractNumber != null" >
- contract_number,
- </if>
- <if test="ywtype != null" >
- ywtype,
- </if>
- <if test="houseId != null" >
- house_id,
- </if>
- <if test="wareHouseId != null" >
- ware_house_id,
- </if>
- <if test="grainKind != null" >
- grain_kind,
- </if>
- <if test="grainGrade != null" >
- grain_grade,
- </if>
- <if test="count != null" >
- count,
- </if>
- <if test="outgoingPeriod != null" >
- outgoing_period,
- </if>
- <if test="forwardingUnit != null" >
- forwarding_unit,
- </if>
- <if test="receiveUnit != null" >
- receive_unit,
- </if>
- <if test="resion != null" >
- resion,
- </if>
- <if test="inApplication != null" >
- in_application,
- </if>
- <if test="orgId != null" >
- org_id,
- </if>
- <if test="grainAttribute != null" >
- grain_attribute,
- </if>
- <if test="grainDetailKind != null" >
- grain_detail_kind,
- </if>
- <if test="receiveTime != null" >
- receive_time,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=INTEGER},
- </if>
- <if test="noticeNumber != null" >
- #{noticeNumber,jdbcType=VARCHAR},
- </if>
- <if test="crktype != null" >
- #{crktype,jdbcType=VARCHAR},
- </if>
- <if test="contractNumber != null" >
- #{contractNumber,jdbcType=VARCHAR},
- </if>
- <if test="ywtype != null" >
- #{ywtype,jdbcType=VARCHAR},
- </if>
- <if test="houseId != null" >
- #{houseId,jdbcType=INTEGER},
- </if>
- <if test="wareHouseId != null" >
- #{wareHouseId,jdbcType=INTEGER},
- </if>
- <if test="grainKind != null" >
- #{grainKind,jdbcType=INTEGER},
- </if>
- <if test="grainGrade != null" >
- #{grainGrade,jdbcType=INTEGER},
- </if>
- <if test="count != null" >
- #{count,jdbcType=VARCHAR},
- </if>
- <if test="outgoingPeriod != null" >
- #{outgoingPeriod,jdbcType=VARCHAR},
- </if>
- <if test="forwardingUnit != null" >
- #{forwardingUnit,jdbcType=VARCHAR},
- </if>
- <if test="receiveUnit != null" >
- #{receiveUnit,jdbcType=VARCHAR},
- </if>
- <if test="resion != null" >
- #{resion,jdbcType=VARCHAR},
- </if>
- <if test="inApplication != null" >
- #{inApplication,jdbcType=INTEGER},
- </if>
- <if test="orgId != null" >
- #{orgId,jdbcType=INTEGER},
- </if>
- <if test="grainAttribute != null" >
- #{grainAttribute,jdbcType=INTEGER},
- </if>
- <if test="grainDetailKind != null" >
- #{grainDetailKind,jdbcType=INTEGER},
- </if>
- <if test="receiveTime != null" >
- #{receiveTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" resultType="java.lang.Integer" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- select count(*) from business_notice_receive
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- update business_notice_receive
- <set >
- <if test="record.id != null" >
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.noticeNumber != null" >
- notice_number = #{record.noticeNumber,jdbcType=VARCHAR},
- </if>
- <if test="record.crktype != null" >
- crktype = #{record.crktype,jdbcType=VARCHAR},
- </if>
- <if test="record.contractNumber != null" >
- contract_number = #{record.contractNumber,jdbcType=VARCHAR},
- </if>
- <if test="record.ywtype != null" >
- ywtype = #{record.ywtype,jdbcType=VARCHAR},
- </if>
- <if test="record.houseId != null" >
- house_id = #{record.houseId,jdbcType=INTEGER},
- </if>
- <if test="record.wareHouseId != null" >
- ware_house_id = #{record.wareHouseId,jdbcType=INTEGER},
- </if>
- <if test="record.grainKind != null" >
- grain_kind = #{record.grainKind,jdbcType=INTEGER},
- </if>
- <if test="record.grainGrade != null" >
- grain_grade = #{record.grainGrade,jdbcType=INTEGER},
- </if>
- <if test="record.count != null" >
- count = #{record.count,jdbcType=VARCHAR},
- </if>
- <if test="record.outgoingPeriod != null" >
- outgoing_period = #{record.outgoingPeriod,jdbcType=VARCHAR},
- </if>
- <if test="record.forwardingUnit != null" >
- forwarding_unit = #{record.forwardingUnit,jdbcType=VARCHAR},
- </if>
- <if test="record.receiveUnit != null" >
- receive_unit = #{record.receiveUnit,jdbcType=VARCHAR},
- </if>
- <if test="record.resion != null" >
- resion = #{record.resion,jdbcType=VARCHAR},
- </if>
- <if test="record.inApplication != null" >
- in_application = #{record.inApplication,jdbcType=INTEGER},
- </if>
- <if test="record.orgId != null" >
- org_id = #{record.orgId,jdbcType=INTEGER},
- </if>
- <if test="record.grainAttribute != null" >
- grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
- </if>
- <if test="record.grainDetailKind != null" >
- grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
- </if>
- <if test="record.receiveTime != null" >
- receive_time = #{record.receiveTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- update business_notice_receive
- set id = #{record.id,jdbcType=INTEGER},
- notice_number = #{record.noticeNumber,jdbcType=VARCHAR},
- crktype = #{record.crktype,jdbcType=VARCHAR},
- contract_number = #{record.contractNumber,jdbcType=VARCHAR},
- ywtype = #{record.ywtype,jdbcType=VARCHAR},
- house_id = #{record.houseId,jdbcType=INTEGER},
- ware_house_id = #{record.wareHouseId,jdbcType=INTEGER},
- grain_kind = #{record.grainKind,jdbcType=INTEGER},
- grain_grade = #{record.grainGrade,jdbcType=INTEGER},
- count = #{record.count,jdbcType=VARCHAR},
- outgoing_period = #{record.outgoingPeriod,jdbcType=VARCHAR},
- forwarding_unit = #{record.forwardingUnit,jdbcType=VARCHAR},
- receive_unit = #{record.receiveUnit,jdbcType=VARCHAR},
- resion = #{record.resion,jdbcType=VARCHAR},
- in_application = #{record.inApplication,jdbcType=INTEGER},
- org_id = #{record.orgId,jdbcType=INTEGER},
- grain_attribute = #{record.grainAttribute,jdbcType=INTEGER},
- grain_detail_kind = #{record.grainDetailKind,jdbcType=INTEGER},
- receive_time = #{record.receiveTime,jdbcType=TIMESTAMP}
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- update business_notice_receive
- <set >
- <if test="noticeNumber != null" >
- notice_number = #{noticeNumber,jdbcType=VARCHAR},
- </if>
- <if test="crktype != null" >
- crktype = #{crktype,jdbcType=VARCHAR},
- </if>
- <if test="contractNumber != null" >
- contract_number = #{contractNumber,jdbcType=VARCHAR},
- </if>
- <if test="ywtype != null" >
- ywtype = #{ywtype,jdbcType=VARCHAR},
- </if>
- <if test="houseId != null" >
- house_id = #{houseId,jdbcType=INTEGER},
- </if>
- <if test="wareHouseId != null" >
- ware_house_id = #{wareHouseId,jdbcType=INTEGER},
- </if>
- <if test="grainKind != null" >
- grain_kind = #{grainKind,jdbcType=INTEGER},
- </if>
- <if test="grainGrade != null" >
- grain_grade = #{grainGrade,jdbcType=INTEGER},
- </if>
- <if test="count != null" >
- count = #{count,jdbcType=VARCHAR},
- </if>
- <if test="outgoingPeriod != null" >
- outgoing_period = #{outgoingPeriod,jdbcType=VARCHAR},
- </if>
- <if test="forwardingUnit != null" >
- forwarding_unit = #{forwardingUnit,jdbcType=VARCHAR},
- </if>
- <if test="receiveUnit != null" >
- receive_unit = #{receiveUnit,jdbcType=VARCHAR},
- </if>
- <if test="resion != null" >
- resion = #{resion,jdbcType=VARCHAR},
- </if>
- <if test="inApplication != null" >
- in_application = #{inApplication,jdbcType=INTEGER},
- </if>
- <if test="orgId != null" >
- org_id = #{orgId,jdbcType=INTEGER},
- </if>
- <if test="grainAttribute != null" >
- grain_attribute = #{grainAttribute,jdbcType=INTEGER},
- </if>
- <if test="grainDetailKind != null" >
- grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
- </if>
- <if test="receiveTime != null" >
- receive_time = #{receiveTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- This element was generated on Wed Jul 08 09:57:43 CST 2020.
- -->
- update business_notice_receive
- set notice_number = #{noticeNumber,jdbcType=VARCHAR},
- crktype = #{crktype,jdbcType=VARCHAR},
- contract_number = #{contractNumber,jdbcType=VARCHAR},
- ywtype = #{ywtype,jdbcType=VARCHAR},
- house_id = #{houseId,jdbcType=INTEGER},
- ware_house_id = #{wareHouseId,jdbcType=INTEGER},
- grain_kind = #{grainKind,jdbcType=INTEGER},
- grain_grade = #{grainGrade,jdbcType=INTEGER},
- count = #{count,jdbcType=VARCHAR},
- outgoing_period = #{outgoingPeriod,jdbcType=VARCHAR},
- forwarding_unit = #{forwardingUnit,jdbcType=VARCHAR},
- receive_unit = #{receiveUnit,jdbcType=VARCHAR},
- resion = #{resion,jdbcType=VARCHAR},
- in_application = #{inApplication,jdbcType=INTEGER},
- org_id = #{orgId,jdbcType=INTEGER},
- grain_attribute = #{grainAttribute,jdbcType=INTEGER},
- grain_detail_kind = #{grainDetailKind,jdbcType=INTEGER},
- receive_time = #{receiveTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|