123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <?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.mvc.dao.TStkinMapper">
- <resultMap id="BaseResultMap" type="com.mvc.entity.TStkin">
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="BILL_CODE" jdbcType="VARCHAR" property="billCode" />
- <result column="DAY_BILLY_INDEX" jdbcType="INTEGER" property="dayBillyIndex" />
- <result column="STKIN_NUM" jdbcType="INTEGER" property="stkinNum" />
- <result column="STKROOM_ID" jdbcType="VARCHAR" property="stkroomId" />
- <result column="STKROOM_NAME" jdbcType="VARCHAR" property="stkroomName" />
- <result column="STKIN_TIME" jdbcType="TIMESTAMP" property="stkinTime" />
- <result column="STKIN_MAN" jdbcType="VARCHAR" property="stkinMan" />
- <result column="STKIN_SIGN_IMG" jdbcType="VARCHAR" property="stkinSignImg" />
- <result column="STKIN_MEMO" jdbcType="VARCHAR" property="stkinMemo" />
- <result column="INVAILD_FLAG" jdbcType="CHAR" property="invaildFlag" />
- <result column="INVALID_TIME" jdbcType="TIMESTAMP" property="invalidTime" />
- <result column="INVALID_MAN" jdbcType="VARCHAR" property="invalidMan" />
- <result column="INVALID_BECAUSE" jdbcType="VARCHAR" property="invalidBecause" />
- <result column="TASK_BATCH_ID" jdbcType="VARCHAR" property="taskBatchId" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- id, BILL_CODE, DAY_BILLY_INDEX, STKIN_NUM, STKROOM_ID, STKROOM_NAME, STKIN_TIME,
- STKIN_MAN, STKIN_SIGN_IMG, STKIN_MEMO, INVAILD_FLAG, INVALID_TIME, INVALID_MAN, INVALID_BECAUSE,
- TASK_BATCH_ID
- </sql>
- <select id="selectByExample" parameterType="com.mvc.entity.TStkinExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from t_stkin
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from t_stkin
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- delete from t_stkin
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <delete id="deleteByExample" parameterType="com.mvc.entity.TStkinExample">
- delete from t_stkin
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.mvc.entity.TStkin">
- insert into t_stkin (id, BILL_CODE, DAY_BILLY_INDEX,
- STKIN_NUM, STKROOM_ID, STKROOM_NAME,
- STKIN_TIME, STKIN_MAN, STKIN_SIGN_IMG,
- STKIN_MEMO, INVAILD_FLAG, INVALID_TIME,
- INVALID_MAN, INVALID_BECAUSE, TASK_BATCH_ID
- )
- values (#{id,jdbcType=INTEGER}, #{billCode,jdbcType=VARCHAR}, #{dayBillyIndex,jdbcType=INTEGER},
- #{stkinNum,jdbcType=INTEGER}, #{stkroomId,jdbcType=VARCHAR}, #{stkroomName,jdbcType=VARCHAR},
- #{stkinTime,jdbcType=TIMESTAMP}, #{stkinMan,jdbcType=VARCHAR}, #{stkinSignImg,jdbcType=VARCHAR},
- #{stkinMemo,jdbcType=VARCHAR}, #{invaildFlag,jdbcType=CHAR}, #{invalidTime,jdbcType=TIMESTAMP},
- #{invalidMan,jdbcType=VARCHAR}, #{invalidBecause,jdbcType=VARCHAR}, #{taskBatchId,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.mvc.entity.TStkin">
- insert into t_stkin
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="billCode != null">
- BILL_CODE,
- </if>
- <if test="dayBillyIndex != null">
- DAY_BILLY_INDEX,
- </if>
- <if test="stkinNum != null">
- STKIN_NUM,
- </if>
- <if test="stkroomId != null">
- STKROOM_ID,
- </if>
- <if test="stkroomName != null">
- STKROOM_NAME,
- </if>
- <if test="stkinTime != null">
- STKIN_TIME,
- </if>
- <if test="stkinMan != null">
- STKIN_MAN,
- </if>
- <if test="stkinSignImg != null">
- STKIN_SIGN_IMG,
- </if>
- <if test="stkinMemo != null">
- STKIN_MEMO,
- </if>
- <if test="invaildFlag != null">
- INVAILD_FLAG,
- </if>
- <if test="invalidTime != null">
- INVALID_TIME,
- </if>
- <if test="invalidMan != null">
- INVALID_MAN,
- </if>
- <if test="invalidBecause != null">
- INVALID_BECAUSE,
- </if>
- <if test="taskBatchId != null">
- TASK_BATCH_ID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=INTEGER},
- </if>
- <if test="billCode != null">
- #{billCode,jdbcType=VARCHAR},
- </if>
- <if test="dayBillyIndex != null">
- #{dayBillyIndex,jdbcType=INTEGER},
- </if>
- <if test="stkinNum != null">
- #{stkinNum,jdbcType=INTEGER},
- </if>
- <if test="stkroomId != null">
- #{stkroomId,jdbcType=VARCHAR},
- </if>
- <if test="stkroomName != null">
- #{stkroomName,jdbcType=VARCHAR},
- </if>
- <if test="stkinTime != null">
- #{stkinTime,jdbcType=TIMESTAMP},
- </if>
- <if test="stkinMan != null">
- #{stkinMan,jdbcType=VARCHAR},
- </if>
- <if test="stkinSignImg != null">
- #{stkinSignImg,jdbcType=VARCHAR},
- </if>
- <if test="stkinMemo != null">
- #{stkinMemo,jdbcType=VARCHAR},
- </if>
- <if test="invaildFlag != null">
- #{invaildFlag,jdbcType=CHAR},
- </if>
- <if test="invalidTime != null">
- #{invalidTime,jdbcType=TIMESTAMP},
- </if>
- <if test="invalidMan != null">
- #{invalidMan,jdbcType=VARCHAR},
- </if>
- <if test="invalidBecause != null">
- #{invalidBecause,jdbcType=VARCHAR},
- </if>
- <if test="taskBatchId != null">
- #{taskBatchId,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.mvc.entity.TStkinExample" resultType="java.lang.Long">
- select count(*) from t_stkin
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update t_stkin
- <set>
- <if test="record.id != null">
- id = #{record.id,jdbcType=INTEGER},
- </if>
- <if test="record.billCode != null">
- BILL_CODE = #{record.billCode,jdbcType=VARCHAR},
- </if>
- <if test="record.dayBillyIndex != null">
- DAY_BILLY_INDEX = #{record.dayBillyIndex,jdbcType=INTEGER},
- </if>
- <if test="record.stkinNum != null">
- STKIN_NUM = #{record.stkinNum,jdbcType=INTEGER},
- </if>
- <if test="record.stkroomId != null">
- STKROOM_ID = #{record.stkroomId,jdbcType=VARCHAR},
- </if>
- <if test="record.stkroomName != null">
- STKROOM_NAME = #{record.stkroomName,jdbcType=VARCHAR},
- </if>
- <if test="record.stkinTime != null">
- STKIN_TIME = #{record.stkinTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.stkinMan != null">
- STKIN_MAN = #{record.stkinMan,jdbcType=VARCHAR},
- </if>
- <if test="record.stkinSignImg != null">
- STKIN_SIGN_IMG = #{record.stkinSignImg,jdbcType=VARCHAR},
- </if>
- <if test="record.stkinMemo != null">
- STKIN_MEMO = #{record.stkinMemo,jdbcType=VARCHAR},
- </if>
- <if test="record.invaildFlag != null">
- INVAILD_FLAG = #{record.invaildFlag,jdbcType=CHAR},
- </if>
- <if test="record.invalidTime != null">
- INVALID_TIME = #{record.invalidTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.invalidMan != null">
- INVALID_MAN = #{record.invalidMan,jdbcType=VARCHAR},
- </if>
- <if test="record.invalidBecause != null">
- INVALID_BECAUSE = #{record.invalidBecause,jdbcType=VARCHAR},
- </if>
- <if test="record.taskBatchId != null">
- TASK_BATCH_ID = #{record.taskBatchId,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update t_stkin
- set id = #{record.id,jdbcType=INTEGER},
- BILL_CODE = #{record.billCode,jdbcType=VARCHAR},
- DAY_BILLY_INDEX = #{record.dayBillyIndex,jdbcType=INTEGER},
- STKIN_NUM = #{record.stkinNum,jdbcType=INTEGER},
- STKROOM_ID = #{record.stkroomId,jdbcType=VARCHAR},
- STKROOM_NAME = #{record.stkroomName,jdbcType=VARCHAR},
- STKIN_TIME = #{record.stkinTime,jdbcType=TIMESTAMP},
- STKIN_MAN = #{record.stkinMan,jdbcType=VARCHAR},
- STKIN_SIGN_IMG = #{record.stkinSignImg,jdbcType=VARCHAR},
- STKIN_MEMO = #{record.stkinMemo,jdbcType=VARCHAR},
- INVAILD_FLAG = #{record.invaildFlag,jdbcType=CHAR},
- INVALID_TIME = #{record.invalidTime,jdbcType=TIMESTAMP},
- INVALID_MAN = #{record.invalidMan,jdbcType=VARCHAR},
- INVALID_BECAUSE = #{record.invalidBecause,jdbcType=VARCHAR},
- TASK_BATCH_ID = #{record.taskBatchId,jdbcType=VARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.mvc.entity.TStkin">
- update t_stkin
- <set>
- <if test="billCode != null">
- BILL_CODE = #{billCode,jdbcType=VARCHAR},
- </if>
- <if test="dayBillyIndex != null">
- DAY_BILLY_INDEX = #{dayBillyIndex,jdbcType=INTEGER},
- </if>
- <if test="stkinNum != null">
- STKIN_NUM = #{stkinNum,jdbcType=INTEGER},
- </if>
- <if test="stkroomId != null">
- STKROOM_ID = #{stkroomId,jdbcType=VARCHAR},
- </if>
- <if test="stkroomName != null">
- STKROOM_NAME = #{stkroomName,jdbcType=VARCHAR},
- </if>
- <if test="stkinTime != null">
- STKIN_TIME = #{stkinTime,jdbcType=TIMESTAMP},
- </if>
- <if test="stkinMan != null">
- STKIN_MAN = #{stkinMan,jdbcType=VARCHAR},
- </if>
- <if test="stkinSignImg != null">
- STKIN_SIGN_IMG = #{stkinSignImg,jdbcType=VARCHAR},
- </if>
- <if test="stkinMemo != null">
- STKIN_MEMO = #{stkinMemo,jdbcType=VARCHAR},
- </if>
- <if test="invaildFlag != null">
- INVAILD_FLAG = #{invaildFlag,jdbcType=CHAR},
- </if>
- <if test="invalidTime != null">
- INVALID_TIME = #{invalidTime,jdbcType=TIMESTAMP},
- </if>
- <if test="invalidMan != null">
- INVALID_MAN = #{invalidMan,jdbcType=VARCHAR},
- </if>
- <if test="invalidBecause != null">
- INVALID_BECAUSE = #{invalidBecause,jdbcType=VARCHAR},
- </if>
- <if test="taskBatchId != null">
- TASK_BATCH_ID = #{taskBatchId,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.mvc.entity.TStkin">
- update t_stkin
- set BILL_CODE = #{billCode,jdbcType=VARCHAR},
- DAY_BILLY_INDEX = #{dayBillyIndex,jdbcType=INTEGER},
- STKIN_NUM = #{stkinNum,jdbcType=INTEGER},
- STKROOM_ID = #{stkroomId,jdbcType=VARCHAR},
- STKROOM_NAME = #{stkroomName,jdbcType=VARCHAR},
- STKIN_TIME = #{stkinTime,jdbcType=TIMESTAMP},
- STKIN_MAN = #{stkinMan,jdbcType=VARCHAR},
- STKIN_SIGN_IMG = #{stkinSignImg,jdbcType=VARCHAR},
- STKIN_MEMO = #{stkinMemo,jdbcType=VARCHAR},
- INVAILD_FLAG = #{invaildFlag,jdbcType=CHAR},
- INVALID_TIME = #{invalidTime,jdbcType=TIMESTAMP},
- INVALID_MAN = #{invalidMan,jdbcType=VARCHAR},
- INVALID_BECAUSE = #{invalidBecause,jdbcType=VARCHAR},
- TASK_BATCH_ID = #{taskBatchId,jdbcType=VARCHAR}
- where id = #{id,jdbcType=INTEGER}
- </update>
- </mapper>
|