123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785 |
- <?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" >
- <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" />
- <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
- <result column="htbh" property="htbh" jdbcType="VARCHAR" />
- <result column="grain_annual" property="grainAnnual" jdbcType="INTEGER" />
- <result column="productive_year" property="productiveYear" jdbcType="INTEGER" />
- <result column="grain_producing_area" property="grainProducingArea" jdbcType="INTEGER" />
-
- <result column="lsxzzbdh" property="lsxzzbdh" jdbcType="VARCHAR" />
- <result column="lssl" property="lssl" jdbcType="VARCHAR" />
- <result column="hzqlsxzdm" property="hzqlsxzdm" jdbcType="INTEGER" />
- <result column="hzrq" property="hzrq" jdbcType="TIMESTAMP" />
- <result column="ccshr" property="ccshr" jdbcType="VARCHAR" />
- <result column="zjshr" property="zjshr" jdbcType="VARCHAR" />
- <result column="tjshr" property="tjshr" jdbcType="VARCHAR" />
- <result column="kjshr" property="kjshr" jdbcType="VARCHAR" />
- <result column="ldshr" property="ldshr" jdbcType="VARCHAR" />
- <result column="bz" property="bz" jdbcType="VARCHAR" />
- <result column="audit_state" property="auditState" jdbcType="INTEGER" />
- <result column="is_notice" property="isNotice" jdbcType="INTEGER" />
- <result column="pzmc" property="pzmc" jdbcType="VARCHAR" />
- <result column="is_sheet" property="isSheet" jdbcType="INTEGER" />
- <result column="cblx" property="cblx" jdbcType="VARCHAR" />
- <result column="ysid" property="ysid" jdbcType="VARCHAR" />
-
- </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" >
- 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,input_time,grain_annual,productive_year,grain_producing_area,
- lsxzzbdh,lssl,hzqlsxzdm,hzrq,ccshr,zjshr,tjshr,kjshr,ldshr,bz,audit_state,is_notice,pzmc,is_sheet,htbh,cblx,ysid
- </sql>
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
- 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" >
- select
- <include refid="Base_Column_List" />
- from business_notice_receive
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from business_notice_receive
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
- 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" >
- 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,input_time,grain_annual,productive_year,grain_producing_area,
- lsxzzbdh,lssl,hzqlsxzdm,hzrq,ccshr,zjshr,tjshr,kjshr,ldshr,bz,audit_state,is_notice,pzmc,is_sheet,htbh,cblx,ysid)
- 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},#{inputTime,jdbcType=TIMESTAMP},#{grainAnnual,jdbcType=INTEGER},
- #{productiveYear,jdbcType=INTEGER},#{grainProducingArea,jdbcType=INTEGER},
- #{lsxzzbdh,jdbcType=VARCHAR},#{lssl,jdbcType=VARCHAR},#{hzqlsxzdm,jdbcType=INTEGER},
- #{hzrq,jdbcType=TIMESTAMP},#{ccshr,jdbcType=VARCHAR},#{zjshr,jdbcType=VARCHAR},
- #{tjshr,jdbcType=VARCHAR},#{kjshr,jdbcType=VARCHAR},#{ldshr,jdbcType=VARCHAR},
- #{bz,jdbcType=VARCHAR},#{auditState,jdbcType=INTEGER},#{isNotice,jdbcType=INTEGER},#{pzmc,jdbcType=VARCHAR}
- ,#{isSheet,jdbcType=INTEGER},#{htbh,jdbcType=VARCHAR},#{cblx,jdbcType=VARCHAR},#{ysid,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
- 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>
- <if test="inputTime != null" >
- input_time,
- </if>
- <if test="grainAnnual != null" >
- grain_annual,
- </if>
- <if test="productiveYear != null" >
- productive_year,
- </if>
- <if test="grainProducingArea != null" >
- grain_producing_area,
- </if>
- <if test="lsxzzbdh != null" >
- lsxzzbdh,
- </if>
- <if test="lssl != null" >
- lssl,
- </if>
- <if test="hzqlsxzdm != null" >
- hzqlsxzdm,
- </if>
- <if test="hzrq != null" >
- hzrq,
- </if>
- <if test="ccshr != null" >
- ccshr,
- </if>
- <if test="zjshr != null" >
- zjshr,
- </if>
- <if test="tjshr != null" >
- tjshr,
- </if>
- <if test="kjshr != null" >
- kjshr,
- </if>
- <if test="ldshr != null" >
- ldshr,
- </if>
- <if test="bz != null" >
- bz,
- </if>
- <if test="auditState != null" >
- audit_state,
- </if>
- <if test="isNotice != null" >
- is_notice,
- </if>
- <if test="pzmc != null" >
- pzmc,
- </if>
- <if test="isSheet != null" >
- is_sheet,
- </if>
- <if test="htbh != null">
- htbh,
- </if>
- <if test="cblx != null">
- cblx,
- </if>
- <if test="ysid != null">
- ysid,
- </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>
- <if test="inputTime != null" >
- #{inputTime,jdbcType=TIMESTAMP},
- </if>
- <if test="grainAnnual != null" >
- #{grainAnnual,jdbcType=INTEGER},
- </if>
- <if test="productiveYear != null" >
- #{productiveYear,jdbcType=INTEGER},
- </if>
- <if test="grainProducingArea != null" >
- #{grainProducingArea,jdbcType=INTEGER},
- </if>
- <if test="lsxzzbdh != null" >
- #{lsxzzbdh,jdbcType=VARCHAR},
- </if>
- <if test="lssl != null" >
- #{lssl,jdbcType=VARCHAR},
- </if>
- <if test="hzqlsxzdm != null" >
- #{hzqlsxzdm,jdbcType=INTEGER},
- </if>
- <if test="hzrq != null" >
- #{hzrq,jdbcType=TIMESTAMP},
- </if>
- <if test="ccshr != null" >
- #{ccshr,jdbcType=VARCHAR},
- </if>
- <if test="zjshr != null" >
- #{zjshr,jdbcType=VARCHAR},
- </if>
- <if test="tjshr != null" >
- #{tjshr,jdbcType=VARCHAR},
- </if>
- <if test="kjshr != null" >
- #{kjshr,jdbcType=VARCHAR},
- </if>
- <if test="ldshr != null" >
- #{ldshr,jdbcType=VARCHAR},
- </if>
- <if test="bz != null" >
- #{bz,jdbcType=VARCHAR},
- </if>
- <if test="auditState != null" >
- #{auditState,jdbcType=INTEGER},
- </if>
- <if test="isNotice != null" >
- #{isNotice,jdbcType=INTEGER},
- </if>
- <if test="pzmc != null" >
- #{pzmc,jdbcType=VARCHAR},
- </if>
- <if test="isSheet != null" >
- #{isSheet,jdbcType=INTEGER},
- </if>
- <if test="htbh != null">
- #{htbh,jdbcType=VARCHAR},
- </if>
- <if test="cblx != null">
- #{cblx,jdbcType=VARCHAR},
- </if>
- <if test="ysid != null">
- #{ysid,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" resultType="java.lang.Integer" >
- select count(*) from business_notice_receive
- <if test="_parameter != null" >
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map" >
- 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>
- <if test="record.inputTime != null" >
- input_time = #{record.inputTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.grainAnnual != null" >
- grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
- </if>
- <if test="record.productiveYear!= null" >
- productive_year = #{record.productiveYear,jdbcType=INTEGER},
- </if>
- <if test="record.grainProducingArea != null" >
- grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
- </if>
- <if test="record.lsxzzbdh != null" >
- lsxzzbdh = #{record.lsxzzbdh,jdbcType=VARCHAR},
- </if>
- <if test="record.lssl != null" >
- lssl = #{record.lssl,jdbcType=VARCHAR},
- </if>
- <if test="record.hzqlsxzdm != null" >
- hzqlsxzdm = #{record.hzqlsxzdm,jdbcType=INTEGER},
- </if>
- <if test="record.hzrq != null" >
- hzrq = #{record.hzrq,jdbcType=TIMESTAMP},
- </if>
- <if test="record.ccshr != null" >
- ccshr = #{record.ccshr,jdbcType=VARCHAR},
- </if>
- <if test="record.zjshr != null" >
- zjshr = #{record.zjshr,jdbcType=VARCHAR},
- </if>
- <if test="record.tjshr != null" >
- tjshr = #{record.tjshr,jdbcType=VARCHAR},
- </if>
- <if test="record.kjshr != null" >
- kjshr = #{record.kjshr,jdbcType=VARCHAR},
- </if>
- <if test="record.ldshr != null" >
- ldshr = #{record.ldshr,jdbcType=VARCHAR},
- </if>
- <if test="record.bz != null" >
- bz = #{record.bz,jdbcType=VARCHAR},
- </if>
- <if test="record.auditState != null" >
- audit_state = #{record.auditState,jdbcType=INTEGER},
- </if>
- <if test="record.isNotice != null" >
- is_notice = #{record.isNotice,jdbcType=INTEGER},
- </if>
- <if test="record.pzmc != null" >
- pzmc = #{record.pzmc,jdbcType=VARCHAR},
- </if>
- <if test="record.isSheet != null" >
- is_sheet = #{record.isSheet,jdbcType=INTEGER},
- </if>
- <if test="record.htbh != null">
- htbh = #{record.htbh,jdbcType=VARCHAR},
- </if>
- <if test="record.cblx != null">
- cblx = #{record.cblx,jdbcType=VARCHAR},
- </if>
- <if test="record.ysid != null">
- ysid = #{record.ysid,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map" >
- 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},
- input_time = #{record.inputTime,jdbcType=TIMESTAMP},
- grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
- productive_year = #{record.productiveYear,jdbcType=INTEGER},
- grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
- lsxzzbdh = #{record.lsxzzbdh,jdbcType=VARCHAR},
- lssl = #{record.lssl,jdbcType=VARCHAR},
- hzqlsxzdm = #{record.hzqlsxzdm,jdbcType=INTEGER},
- hzrq = #{record.hzrq,jdbcType=TIMESTAMP},
- ccshr = #{record.ccshr,jdbcType=VARCHAR},
- zjshr = #{record.zjshr,jdbcType=VARCHAR},
- tjshr = #{record.tjshr,jdbcType=VARCHAR},
- kjshr = #{record.kjshr,jdbcType=VARCHAR},
- ldshr = #{record.ldshr,jdbcType=VARCHAR},
- bz = #{record.bz,jdbcType=VARCHAR},
- audit_state = #{record.auditState,jdbcType=INTEGER},
- is_notice = #{record.isNotice,jdbcType=INTEGER},
- pzmc = #{record.pzmc,jdbcType=VARCHAR},
- is_sheet = #{record.isSheet,jdbcType=INTEGER},
- htbh = #{record.htbh,jdbcType=VARCHAR},
- cblx = #{record.cblx,jdbcType=VARCHAR},
- ysid = #{record.ysid,jdbcType=VARCHAR}
-
- <if test="_parameter != null" >
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
- 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>
- <if test="receiveTime != null" >
- input_time = #{inputTime,jdbcType=TIMESTAMP},
- </if>
- <if test="grainAnnual != null" >
- grain_annual = #{grainAnnual,jdbcType=INTEGER},
- </if>
- <if test="productiveYear != null" >
- productive_year = #{productiveYear,jdbcType=INTEGER},
- </if>
- <if test="grainProducingArea != null" >
- grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
- </if>
- <if test="lsxzzbdh != null" >
- lsxzzbdh = #{lsxzzbdh,jdbcType=VARCHAR},
- </if>
- <if test="lssl != null" >
- lssl = #{lssl,jdbcType=VARCHAR},
- </if>
- <if test="hzqlsxzdm != null" >
- hzqlsxzdm = #{hzqlsxzdm,jdbcType=INTEGER},
- </if>
- <if test="hzrq != null" >
- hzrq = #{hzrq,jdbcType=TIMESTAMP},
- </if>
- <if test="ccshr != null" >
- ccshr = #{ccshr,jdbcType=VARCHAR},
- </if>
- <if test="zjshr != null" >
- zjshr = #{zjshr,jdbcType=VARCHAR},
- </if>
- <if test="tjshr != null" >
- tjshr = #{tjshr,jdbcType=VARCHAR},
- </if>
- <if test="kjshr != null" >
- kjshr = #{kjshr,jdbcType=VARCHAR},
- </if>
- <if test="ldshr != null" >
- ldshr = #{ldshr,jdbcType=VARCHAR},
- </if>
- <if test="bz != null" >
- bz = #{bz,jdbcType=VARCHAR},
- </if>
- <if test="auditState != null" >
- audit_state = #{auditState,jdbcType=INTEGER},
- </if>
- <if test="isNotice != null" >
- is_notice = #{isNotice,jdbcType=INTEGER},
- </if>
- <if test="pzmc != null" >
- pzmc = #{pzmc,jdbcType=VARCHAR},
- </if>
- <if test="isSheet != null" >
- is_sheet = #{isSheet,jdbcType=INTEGER},
- </if>
- <if test="htbh != null">
- htbh = #{htbh,jdbcType=VARCHAR},
- </if>
- <if test="cblx != null">
- cblx = #{cblx,jdbcType=VARCHAR},
- </if>
- <if test="ysid != null">
- ysid = #{ysid,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
- 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},
- input_time = #{inputTime,jdbcType=TIMESTAMP},
- grain_annual = #{grainAnnual,jdbcType=INTEGER},
- productive_year = #{productiveYear,jdbcType=INTEGER},
- grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
- lsxzzbdh = #{lsxzzbdh,jdbcType=VARCHAR},
- lssl = #{lssl,jdbcType=VARCHAR},
- hzqlsxzdm = #{hzqlsxzdm,jdbcType=INTEGER},
- hzrq = #{hzrq,jdbcType=TIMESTAMP},
- ccshr = #{ccshr,jdbcType=VARCHAR},
- zjshr = #{zjshr,jdbcType=VARCHAR},
- tjshr = #{tjshr,jdbcType=VARCHAR},
- kjshr = #{kjshr,jdbcType=VARCHAR},
- ldshr = #{ldshr,jdbcType=VARCHAR},
- bz = #{bz,jdbcType=VARCHAR},
- audit_state = #{auditState,jdbcType=INTEGER},
- is_notice = #{isNotice,jdbcType=INTEGER},
- pzmc = #{pzmc,jdbcType=VARCHAR},
- is_sheet = #{isSheet,jdbcType=INTEGER},
- htbh = #{htbh,jdbcType=VARCHAR},
- cblx = #{cblx,jdbcType=VARCHAR},
- ysid = #{ysid,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
-
- <select id="getUserRole" parameterType="java.lang.Integer" resultType="java.util.HashMap">
- SELECT
- role_name
- FROM
- role_info
- WHERE
- role_id IN (
- SELECT
- role_id
- FROM
- user_role
- WHERE
- user_id = #{userId,jdbcType=INTEGER}
- )
- </select>
- </mapper>
|