|
@@ -0,0 +1,867 @@
|
|
|
+<?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.gyee.frame.mapper.auto.PolineMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.gyee.frame.model.auto.Poline">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <id column="ID" jdbcType="NUMERIC" property="id" />
|
|
|
+ <result column="PONUM" jdbcType="NVARCHAR" property="ponum" />
|
|
|
+ <result column="POLINENUM" jdbcType="NUMERIC" property="polinenum" />
|
|
|
+ <result column="ITEMNUM" jdbcType="NVARCHAR" property="itemnum" />
|
|
|
+ <result column="DESCRIPTION" jdbcType="NVARCHAR" property="description" />
|
|
|
+ <result column="WAREHOUSE" jdbcType="NVARCHAR" property="warehouse" />
|
|
|
+ <result column="ORDERQTY" jdbcType="NUMERIC" property="orderqty" />
|
|
|
+ <result column="ORDERUNIT" jdbcType="NVARCHAR" property="orderunit" />
|
|
|
+ <result column="CONVERSION" jdbcType="NUMERIC" property="conversion" />
|
|
|
+ <result column="UNITCOST" jdbcType="NUMERIC" property="unitcost" />
|
|
|
+ <result column="TAXUNITCOST" jdbcType="NUMERIC" property="taxunitcost" />
|
|
|
+ <result column="LINECOST" jdbcType="NUMERIC" property="linecost" />
|
|
|
+ <result column="TAXLINECOST" jdbcType="NUMERIC" property="taxlinecost" />
|
|
|
+ <result column="RECEIVEDQTY" jdbcType="NUMERIC" property="receivedqty" />
|
|
|
+ <result column="RECEIVEDUNITCOST" jdbcType="NUMERIC" property="receivedunitcost" />
|
|
|
+ <result column="RECEIVEDTOTALCOST" jdbcType="NUMERIC" property="receivedtotalcost" />
|
|
|
+ <result column="TAXCODE" jdbcType="NVARCHAR" property="taxcode" />
|
|
|
+ <result column="TAXRATE" jdbcType="NUMERIC" property="taxrate" />
|
|
|
+ <result column="TAX" jdbcType="NUMERIC" property="tax" />
|
|
|
+ <result column="REJECTEDQTY" jdbcType="NUMERIC" property="rejectedqty" />
|
|
|
+ <result column="VENDELIVERYDATE" jdbcType="TIMESTAMP" property="vendeliverydate" />
|
|
|
+ <result column="ENTERDATE" jdbcType="TIMESTAMP" property="enterdate" />
|
|
|
+ <result column="ENTERBY" jdbcType="NVARCHAR" property="enterby" />
|
|
|
+ <result column="REQUESTEDBY" jdbcType="NVARCHAR" property="requestedby" />
|
|
|
+ <result column="REQDELIVERYDATE" jdbcType="TIMESTAMP" property="reqdeliverydate" />
|
|
|
+ <result column="MANUFACTURER" jdbcType="NVARCHAR" property="manufacturer" />
|
|
|
+ <result column="MODELNUM" jdbcType="NVARCHAR" property="modelnum" />
|
|
|
+ <result column="SERVICE" jdbcType="NVARCHAR" property="service" />
|
|
|
+ <result column="STOCKTYPE" jdbcType="NVARCHAR" property="stocktype" />
|
|
|
+ <result column="REMARK" jdbcType="NVARCHAR" property="remark" />
|
|
|
+ <result column="LOCATION" jdbcType="NVARCHAR" property="location" />
|
|
|
+ <result column="RECEIPTSCOMPLETE" jdbcType="NVARCHAR" property="receiptscomplete" />
|
|
|
+ <result column="INSPECTION" jdbcType="NVARCHAR" property="inspection" />
|
|
|
+ <result column="LOADEDCOST" jdbcType="NUMERIC" property="loadedcost" />
|
|
|
+ <result column="PRORATED" jdbcType="NVARCHAR" property="prorated" />
|
|
|
+ <result column="PRORATECOST" jdbcType="NUMERIC" property="proratecost" />
|
|
|
+ <result column="WONUM" jdbcType="NVARCHAR" property="wonum" />
|
|
|
+ <result column="TASKNUM" jdbcType="NVARCHAR" property="tasknum" />
|
|
|
+ <result column="BUDNUM" jdbcType="NVARCHAR" property="budnum" />
|
|
|
+ <result column="BUDITEM" jdbcType="NVARCHAR" property="buditem" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <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">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ <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">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ ID, PONUM, POLINENUM, ITEMNUM, DESCRIPTION, WAREHOUSE, ORDERQTY, ORDERUNIT, CONVERSION,
|
|
|
+ UNITCOST, TAXUNITCOST, LINECOST, TAXLINECOST, RECEIVEDQTY, RECEIVEDUNITCOST, RECEIVEDTOTALCOST,
|
|
|
+ TAXCODE, TAXRATE, TAX, REJECTEDQTY, VENDELIVERYDATE, ENTERDATE, ENTERBY, REQUESTEDBY,
|
|
|
+ REQDELIVERYDATE, MANUFACTURER, MODELNUM, SERVICE, STOCKTYPE, REMARK, LOCATION, RECEIPTSCOMPLETE,
|
|
|
+ INSPECTION, LOADEDCOST, PRORATED, PRORATECOST, WONUM, TASKNUM, BUDNUM, BUDITEM
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.gyee.frame.model.auto.PolineExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from POLINE
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from POLINE
|
|
|
+ where ID = #{id,jdbcType=NUMERIC}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from POLINE
|
|
|
+ where ID = #{id,jdbcType=NUMERIC}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.gyee.frame.model.auto.PolineExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ delete from POLINE
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.gyee.frame.model.auto.Poline">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into POLINE (ID, PONUM, POLINENUM,
|
|
|
+ ITEMNUM, DESCRIPTION, WAREHOUSE,
|
|
|
+ ORDERQTY, ORDERUNIT, CONVERSION,
|
|
|
+ UNITCOST, TAXUNITCOST, LINECOST,
|
|
|
+ TAXLINECOST, RECEIVEDQTY, RECEIVEDUNITCOST,
|
|
|
+ RECEIVEDTOTALCOST, TAXCODE, TAXRATE,
|
|
|
+ TAX, REJECTEDQTY, VENDELIVERYDATE,
|
|
|
+ ENTERDATE, ENTERBY, REQUESTEDBY,
|
|
|
+ REQDELIVERYDATE, MANUFACTURER, MODELNUM,
|
|
|
+ SERVICE, STOCKTYPE, REMARK,
|
|
|
+ LOCATION, RECEIPTSCOMPLETE, INSPECTION,
|
|
|
+ LOADEDCOST, PRORATED, PRORATECOST,
|
|
|
+ WONUM, TASKNUM, BUDNUM,
|
|
|
+ BUDITEM)
|
|
|
+ values (#{id,jdbcType=NUMERIC}, #{ponum,jdbcType=NVARCHAR}, #{polinenum,jdbcType=NUMERIC},
|
|
|
+ #{itemnum,jdbcType=NVARCHAR}, #{description,jdbcType=NVARCHAR}, #{warehouse,jdbcType=NVARCHAR},
|
|
|
+ #{orderqty,jdbcType=NUMERIC}, #{orderunit,jdbcType=NVARCHAR}, #{conversion,jdbcType=NUMERIC},
|
|
|
+ #{unitcost,jdbcType=NUMERIC}, #{taxunitcost,jdbcType=NUMERIC}, #{linecost,jdbcType=NUMERIC},
|
|
|
+ #{taxlinecost,jdbcType=NUMERIC}, #{receivedqty,jdbcType=NUMERIC}, #{receivedunitcost,jdbcType=NUMERIC},
|
|
|
+ #{receivedtotalcost,jdbcType=NUMERIC}, #{taxcode,jdbcType=NVARCHAR}, #{taxrate,jdbcType=NUMERIC},
|
|
|
+ #{tax,jdbcType=NUMERIC}, #{rejectedqty,jdbcType=NUMERIC}, #{vendeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ #{enterdate,jdbcType=TIMESTAMP}, #{enterby,jdbcType=NVARCHAR}, #{requestedby,jdbcType=NVARCHAR},
|
|
|
+ #{reqdeliverydate,jdbcType=TIMESTAMP}, #{manufacturer,jdbcType=NVARCHAR}, #{modelnum,jdbcType=NVARCHAR},
|
|
|
+ #{service,jdbcType=NVARCHAR}, #{stocktype,jdbcType=NVARCHAR}, #{remark,jdbcType=NVARCHAR},
|
|
|
+ #{location,jdbcType=NVARCHAR}, #{receiptscomplete,jdbcType=NVARCHAR}, #{inspection,jdbcType=NVARCHAR},
|
|
|
+ #{loadedcost,jdbcType=NUMERIC}, #{prorated,jdbcType=NVARCHAR}, #{proratecost,jdbcType=NUMERIC},
|
|
|
+ #{wonum,jdbcType=NVARCHAR}, #{tasknum,jdbcType=NVARCHAR}, #{budnum,jdbcType=NVARCHAR},
|
|
|
+ #{buditem,jdbcType=NVARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.gyee.frame.model.auto.Poline">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ insert into POLINE
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ ID,
|
|
|
+ </if>
|
|
|
+ <if test="ponum != null">
|
|
|
+ PONUM,
|
|
|
+ </if>
|
|
|
+ <if test="polinenum != null">
|
|
|
+ POLINENUM,
|
|
|
+ </if>
|
|
|
+ <if test="itemnum != null">
|
|
|
+ ITEMNUM,
|
|
|
+ </if>
|
|
|
+ <if test="description != null">
|
|
|
+ DESCRIPTION,
|
|
|
+ </if>
|
|
|
+ <if test="warehouse != null">
|
|
|
+ WAREHOUSE,
|
|
|
+ </if>
|
|
|
+ <if test="orderqty != null">
|
|
|
+ ORDERQTY,
|
|
|
+ </if>
|
|
|
+ <if test="orderunit != null">
|
|
|
+ ORDERUNIT,
|
|
|
+ </if>
|
|
|
+ <if test="conversion != null">
|
|
|
+ CONVERSION,
|
|
|
+ </if>
|
|
|
+ <if test="unitcost != null">
|
|
|
+ UNITCOST,
|
|
|
+ </if>
|
|
|
+ <if test="taxunitcost != null">
|
|
|
+ TAXUNITCOST,
|
|
|
+ </if>
|
|
|
+ <if test="linecost != null">
|
|
|
+ LINECOST,
|
|
|
+ </if>
|
|
|
+ <if test="taxlinecost != null">
|
|
|
+ TAXLINECOST,
|
|
|
+ </if>
|
|
|
+ <if test="receivedqty != null">
|
|
|
+ RECEIVEDQTY,
|
|
|
+ </if>
|
|
|
+ <if test="receivedunitcost != null">
|
|
|
+ RECEIVEDUNITCOST,
|
|
|
+ </if>
|
|
|
+ <if test="receivedtotalcost != null">
|
|
|
+ RECEIVEDTOTALCOST,
|
|
|
+ </if>
|
|
|
+ <if test="taxcode != null">
|
|
|
+ TAXCODE,
|
|
|
+ </if>
|
|
|
+ <if test="taxrate != null">
|
|
|
+ TAXRATE,
|
|
|
+ </if>
|
|
|
+ <if test="tax != null">
|
|
|
+ TAX,
|
|
|
+ </if>
|
|
|
+ <if test="rejectedqty != null">
|
|
|
+ REJECTEDQTY,
|
|
|
+ </if>
|
|
|
+ <if test="vendeliverydate != null">
|
|
|
+ VENDELIVERYDATE,
|
|
|
+ </if>
|
|
|
+ <if test="enterdate != null">
|
|
|
+ ENTERDATE,
|
|
|
+ </if>
|
|
|
+ <if test="enterby != null">
|
|
|
+ ENTERBY,
|
|
|
+ </if>
|
|
|
+ <if test="requestedby != null">
|
|
|
+ REQUESTEDBY,
|
|
|
+ </if>
|
|
|
+ <if test="reqdeliverydate != null">
|
|
|
+ REQDELIVERYDATE,
|
|
|
+ </if>
|
|
|
+ <if test="manufacturer != null">
|
|
|
+ MANUFACTURER,
|
|
|
+ </if>
|
|
|
+ <if test="modelnum != null">
|
|
|
+ MODELNUM,
|
|
|
+ </if>
|
|
|
+ <if test="service != null">
|
|
|
+ SERVICE,
|
|
|
+ </if>
|
|
|
+ <if test="stocktype != null">
|
|
|
+ STOCKTYPE,
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ REMARK,
|
|
|
+ </if>
|
|
|
+ <if test="location != null">
|
|
|
+ LOCATION,
|
|
|
+ </if>
|
|
|
+ <if test="receiptscomplete != null">
|
|
|
+ RECEIPTSCOMPLETE,
|
|
|
+ </if>
|
|
|
+ <if test="inspection != null">
|
|
|
+ INSPECTION,
|
|
|
+ </if>
|
|
|
+ <if test="loadedcost != null">
|
|
|
+ LOADEDCOST,
|
|
|
+ </if>
|
|
|
+ <if test="prorated != null">
|
|
|
+ PRORATED,
|
|
|
+ </if>
|
|
|
+ <if test="proratecost != null">
|
|
|
+ PRORATECOST,
|
|
|
+ </if>
|
|
|
+ <if test="wonum != null">
|
|
|
+ WONUM,
|
|
|
+ </if>
|
|
|
+ <if test="tasknum != null">
|
|
|
+ TASKNUM,
|
|
|
+ </if>
|
|
|
+ <if test="budnum != null">
|
|
|
+ BUDNUM,
|
|
|
+ </if>
|
|
|
+ <if test="buditem != null">
|
|
|
+ BUDITEM,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="ponum != null">
|
|
|
+ #{ponum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="polinenum != null">
|
|
|
+ #{polinenum,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="itemnum != null">
|
|
|
+ #{itemnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="description != null">
|
|
|
+ #{description,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="warehouse != null">
|
|
|
+ #{warehouse,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderqty != null">
|
|
|
+ #{orderqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="orderunit != null">
|
|
|
+ #{orderunit,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="conversion != null">
|
|
|
+ #{conversion,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="unitcost != null">
|
|
|
+ #{unitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="taxunitcost != null">
|
|
|
+ #{taxunitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="linecost != null">
|
|
|
+ #{linecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="taxlinecost != null">
|
|
|
+ #{taxlinecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="receivedqty != null">
|
|
|
+ #{receivedqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="receivedunitcost != null">
|
|
|
+ #{receivedunitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="receivedtotalcost != null">
|
|
|
+ #{receivedtotalcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="taxcode != null">
|
|
|
+ #{taxcode,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="taxrate != null">
|
|
|
+ #{taxrate,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="tax != null">
|
|
|
+ #{tax,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="rejectedqty != null">
|
|
|
+ #{rejectedqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="vendeliverydate != null">
|
|
|
+ #{vendeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="enterdate != null">
|
|
|
+ #{enterdate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="enterby != null">
|
|
|
+ #{enterby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="requestedby != null">
|
|
|
+ #{requestedby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reqdeliverydate != null">
|
|
|
+ #{reqdeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="manufacturer != null">
|
|
|
+ #{manufacturer,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modelnum != null">
|
|
|
+ #{modelnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="service != null">
|
|
|
+ #{service,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stocktype != null">
|
|
|
+ #{stocktype,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ #{remark,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="location != null">
|
|
|
+ #{location,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiptscomplete != null">
|
|
|
+ #{receiptscomplete,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="inspection != null">
|
|
|
+ #{inspection,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="loadedcost != null">
|
|
|
+ #{loadedcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="prorated != null">
|
|
|
+ #{prorated,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="proratecost != null">
|
|
|
+ #{proratecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="wonum != null">
|
|
|
+ #{wonum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tasknum != null">
|
|
|
+ #{tasknum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="budnum != null">
|
|
|
+ #{budnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buditem != null">
|
|
|
+ #{buditem,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.gyee.frame.model.auto.PolineExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ select count(*) from POLINE
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update POLINE
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ ID = #{record.id,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.ponum != null">
|
|
|
+ PONUM = #{record.ponum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.polinenum != null">
|
|
|
+ POLINENUM = #{record.polinenum,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.itemnum != null">
|
|
|
+ ITEMNUM = #{record.itemnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.description != null">
|
|
|
+ DESCRIPTION = #{record.description,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.warehouse != null">
|
|
|
+ WAREHOUSE = #{record.warehouse,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderqty != null">
|
|
|
+ ORDERQTY = #{record.orderqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.orderunit != null">
|
|
|
+ ORDERUNIT = #{record.orderunit,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.conversion != null">
|
|
|
+ CONVERSION = #{record.conversion,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.unitcost != null">
|
|
|
+ UNITCOST = #{record.unitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.taxunitcost != null">
|
|
|
+ TAXUNITCOST = #{record.taxunitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.linecost != null">
|
|
|
+ LINECOST = #{record.linecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.taxlinecost != null">
|
|
|
+ TAXLINECOST = #{record.taxlinecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.receivedqty != null">
|
|
|
+ RECEIVEDQTY = #{record.receivedqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.receivedunitcost != null">
|
|
|
+ RECEIVEDUNITCOST = #{record.receivedunitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.receivedtotalcost != null">
|
|
|
+ RECEIVEDTOTALCOST = #{record.receivedtotalcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.taxcode != null">
|
|
|
+ TAXCODE = #{record.taxcode,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.taxrate != null">
|
|
|
+ TAXRATE = #{record.taxrate,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.tax != null">
|
|
|
+ TAX = #{record.tax,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.rejectedqty != null">
|
|
|
+ REJECTEDQTY = #{record.rejectedqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.vendeliverydate != null">
|
|
|
+ VENDELIVERYDATE = #{record.vendeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.enterdate != null">
|
|
|
+ ENTERDATE = #{record.enterdate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.enterby != null">
|
|
|
+ ENTERBY = #{record.enterby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.requestedby != null">
|
|
|
+ REQUESTEDBY = #{record.requestedby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.reqdeliverydate != null">
|
|
|
+ REQDELIVERYDATE = #{record.reqdeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.manufacturer != null">
|
|
|
+ MANUFACTURER = #{record.manufacturer,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.modelnum != null">
|
|
|
+ MODELNUM = #{record.modelnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.service != null">
|
|
|
+ SERVICE = #{record.service,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.stocktype != null">
|
|
|
+ STOCKTYPE = #{record.stocktype,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.remark != null">
|
|
|
+ REMARK = #{record.remark,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.location != null">
|
|
|
+ LOCATION = #{record.location,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.receiptscomplete != null">
|
|
|
+ RECEIPTSCOMPLETE = #{record.receiptscomplete,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.inspection != null">
|
|
|
+ INSPECTION = #{record.inspection,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.loadedcost != null">
|
|
|
+ LOADEDCOST = #{record.loadedcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.prorated != null">
|
|
|
+ PRORATED = #{record.prorated,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.proratecost != null">
|
|
|
+ PRORATECOST = #{record.proratecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="record.wonum != null">
|
|
|
+ WONUM = #{record.wonum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.tasknum != null">
|
|
|
+ TASKNUM = #{record.tasknum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.budnum != null">
|
|
|
+ BUDNUM = #{record.budnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.buditem != null">
|
|
|
+ BUDITEM = #{record.buditem,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update POLINE
|
|
|
+ set ID = #{record.id,jdbcType=NUMERIC},
|
|
|
+ PONUM = #{record.ponum,jdbcType=NVARCHAR},
|
|
|
+ POLINENUM = #{record.polinenum,jdbcType=NUMERIC},
|
|
|
+ ITEMNUM = #{record.itemnum,jdbcType=NVARCHAR},
|
|
|
+ DESCRIPTION = #{record.description,jdbcType=NVARCHAR},
|
|
|
+ WAREHOUSE = #{record.warehouse,jdbcType=NVARCHAR},
|
|
|
+ ORDERQTY = #{record.orderqty,jdbcType=NUMERIC},
|
|
|
+ ORDERUNIT = #{record.orderunit,jdbcType=NVARCHAR},
|
|
|
+ CONVERSION = #{record.conversion,jdbcType=NUMERIC},
|
|
|
+ UNITCOST = #{record.unitcost,jdbcType=NUMERIC},
|
|
|
+ TAXUNITCOST = #{record.taxunitcost,jdbcType=NUMERIC},
|
|
|
+ LINECOST = #{record.linecost,jdbcType=NUMERIC},
|
|
|
+ TAXLINECOST = #{record.taxlinecost,jdbcType=NUMERIC},
|
|
|
+ RECEIVEDQTY = #{record.receivedqty,jdbcType=NUMERIC},
|
|
|
+ RECEIVEDUNITCOST = #{record.receivedunitcost,jdbcType=NUMERIC},
|
|
|
+ RECEIVEDTOTALCOST = #{record.receivedtotalcost,jdbcType=NUMERIC},
|
|
|
+ TAXCODE = #{record.taxcode,jdbcType=NVARCHAR},
|
|
|
+ TAXRATE = #{record.taxrate,jdbcType=NUMERIC},
|
|
|
+ TAX = #{record.tax,jdbcType=NUMERIC},
|
|
|
+ REJECTEDQTY = #{record.rejectedqty,jdbcType=NUMERIC},
|
|
|
+ VENDELIVERYDATE = #{record.vendeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ ENTERDATE = #{record.enterdate,jdbcType=TIMESTAMP},
|
|
|
+ ENTERBY = #{record.enterby,jdbcType=NVARCHAR},
|
|
|
+ REQUESTEDBY = #{record.requestedby,jdbcType=NVARCHAR},
|
|
|
+ REQDELIVERYDATE = #{record.reqdeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ MANUFACTURER = #{record.manufacturer,jdbcType=NVARCHAR},
|
|
|
+ MODELNUM = #{record.modelnum,jdbcType=NVARCHAR},
|
|
|
+ SERVICE = #{record.service,jdbcType=NVARCHAR},
|
|
|
+ STOCKTYPE = #{record.stocktype,jdbcType=NVARCHAR},
|
|
|
+ REMARK = #{record.remark,jdbcType=NVARCHAR},
|
|
|
+ LOCATION = #{record.location,jdbcType=NVARCHAR},
|
|
|
+ RECEIPTSCOMPLETE = #{record.receiptscomplete,jdbcType=NVARCHAR},
|
|
|
+ INSPECTION = #{record.inspection,jdbcType=NVARCHAR},
|
|
|
+ LOADEDCOST = #{record.loadedcost,jdbcType=NUMERIC},
|
|
|
+ PRORATED = #{record.prorated,jdbcType=NVARCHAR},
|
|
|
+ PRORATECOST = #{record.proratecost,jdbcType=NUMERIC},
|
|
|
+ WONUM = #{record.wonum,jdbcType=NVARCHAR},
|
|
|
+ TASKNUM = #{record.tasknum,jdbcType=NVARCHAR},
|
|
|
+ BUDNUM = #{record.budnum,jdbcType=NVARCHAR},
|
|
|
+ BUDITEM = #{record.buditem,jdbcType=NVARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.gyee.frame.model.auto.Poline">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update POLINE
|
|
|
+ <set>
|
|
|
+ <if test="ponum != null">
|
|
|
+ PONUM = #{ponum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="polinenum != null">
|
|
|
+ POLINENUM = #{polinenum,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="itemnum != null">
|
|
|
+ ITEMNUM = #{itemnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="description != null">
|
|
|
+ DESCRIPTION = #{description,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="warehouse != null">
|
|
|
+ WAREHOUSE = #{warehouse,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderqty != null">
|
|
|
+ ORDERQTY = #{orderqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="orderunit != null">
|
|
|
+ ORDERUNIT = #{orderunit,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="conversion != null">
|
|
|
+ CONVERSION = #{conversion,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="unitcost != null">
|
|
|
+ UNITCOST = #{unitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="taxunitcost != null">
|
|
|
+ TAXUNITCOST = #{taxunitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="linecost != null">
|
|
|
+ LINECOST = #{linecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="taxlinecost != null">
|
|
|
+ TAXLINECOST = #{taxlinecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="receivedqty != null">
|
|
|
+ RECEIVEDQTY = #{receivedqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="receivedunitcost != null">
|
|
|
+ RECEIVEDUNITCOST = #{receivedunitcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="receivedtotalcost != null">
|
|
|
+ RECEIVEDTOTALCOST = #{receivedtotalcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="taxcode != null">
|
|
|
+ TAXCODE = #{taxcode,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="taxrate != null">
|
|
|
+ TAXRATE = #{taxrate,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="tax != null">
|
|
|
+ TAX = #{tax,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="rejectedqty != null">
|
|
|
+ REJECTEDQTY = #{rejectedqty,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="vendeliverydate != null">
|
|
|
+ VENDELIVERYDATE = #{vendeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="enterdate != null">
|
|
|
+ ENTERDATE = #{enterdate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="enterby != null">
|
|
|
+ ENTERBY = #{enterby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="requestedby != null">
|
|
|
+ REQUESTEDBY = #{requestedby,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="reqdeliverydate != null">
|
|
|
+ REQDELIVERYDATE = #{reqdeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="manufacturer != null">
|
|
|
+ MANUFACTURER = #{manufacturer,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modelnum != null">
|
|
|
+ MODELNUM = #{modelnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="service != null">
|
|
|
+ SERVICE = #{service,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stocktype != null">
|
|
|
+ STOCKTYPE = #{stocktype,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ REMARK = #{remark,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="location != null">
|
|
|
+ LOCATION = #{location,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiptscomplete != null">
|
|
|
+ RECEIPTSCOMPLETE = #{receiptscomplete,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="inspection != null">
|
|
|
+ INSPECTION = #{inspection,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="loadedcost != null">
|
|
|
+ LOADEDCOST = #{loadedcost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="prorated != null">
|
|
|
+ PRORATED = #{prorated,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="proratecost != null">
|
|
|
+ PRORATECOST = #{proratecost,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="wonum != null">
|
|
|
+ WONUM = #{wonum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tasknum != null">
|
|
|
+ TASKNUM = #{tasknum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="budnum != null">
|
|
|
+ BUDNUM = #{budnum,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="buditem != null">
|
|
|
+ BUDITEM = #{buditem,jdbcType=NVARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where ID = #{id,jdbcType=NUMERIC}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.gyee.frame.model.auto.Poline">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ -->
|
|
|
+ update POLINE
|
|
|
+ set PONUM = #{ponum,jdbcType=NVARCHAR},
|
|
|
+ POLINENUM = #{polinenum,jdbcType=NUMERIC},
|
|
|
+ ITEMNUM = #{itemnum,jdbcType=NVARCHAR},
|
|
|
+ DESCRIPTION = #{description,jdbcType=NVARCHAR},
|
|
|
+ WAREHOUSE = #{warehouse,jdbcType=NVARCHAR},
|
|
|
+ ORDERQTY = #{orderqty,jdbcType=NUMERIC},
|
|
|
+ ORDERUNIT = #{orderunit,jdbcType=NVARCHAR},
|
|
|
+ CONVERSION = #{conversion,jdbcType=NUMERIC},
|
|
|
+ UNITCOST = #{unitcost,jdbcType=NUMERIC},
|
|
|
+ TAXUNITCOST = #{taxunitcost,jdbcType=NUMERIC},
|
|
|
+ LINECOST = #{linecost,jdbcType=NUMERIC},
|
|
|
+ TAXLINECOST = #{taxlinecost,jdbcType=NUMERIC},
|
|
|
+ RECEIVEDQTY = #{receivedqty,jdbcType=NUMERIC},
|
|
|
+ RECEIVEDUNITCOST = #{receivedunitcost,jdbcType=NUMERIC},
|
|
|
+ RECEIVEDTOTALCOST = #{receivedtotalcost,jdbcType=NUMERIC},
|
|
|
+ TAXCODE = #{taxcode,jdbcType=NVARCHAR},
|
|
|
+ TAXRATE = #{taxrate,jdbcType=NUMERIC},
|
|
|
+ TAX = #{tax,jdbcType=NUMERIC},
|
|
|
+ REJECTEDQTY = #{rejectedqty,jdbcType=NUMERIC},
|
|
|
+ VENDELIVERYDATE = #{vendeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ ENTERDATE = #{enterdate,jdbcType=TIMESTAMP},
|
|
|
+ ENTERBY = #{enterby,jdbcType=NVARCHAR},
|
|
|
+ REQUESTEDBY = #{requestedby,jdbcType=NVARCHAR},
|
|
|
+ REQDELIVERYDATE = #{reqdeliverydate,jdbcType=TIMESTAMP},
|
|
|
+ MANUFACTURER = #{manufacturer,jdbcType=NVARCHAR},
|
|
|
+ MODELNUM = #{modelnum,jdbcType=NVARCHAR},
|
|
|
+ SERVICE = #{service,jdbcType=NVARCHAR},
|
|
|
+ STOCKTYPE = #{stocktype,jdbcType=NVARCHAR},
|
|
|
+ REMARK = #{remark,jdbcType=NVARCHAR},
|
|
|
+ LOCATION = #{location,jdbcType=NVARCHAR},
|
|
|
+ RECEIPTSCOMPLETE = #{receiptscomplete,jdbcType=NVARCHAR},
|
|
|
+ INSPECTION = #{inspection,jdbcType=NVARCHAR},
|
|
|
+ LOADEDCOST = #{loadedcost,jdbcType=NUMERIC},
|
|
|
+ PRORATED = #{prorated,jdbcType=NVARCHAR},
|
|
|
+ PRORATECOST = #{proratecost,jdbcType=NUMERIC},
|
|
|
+ WONUM = #{wonum,jdbcType=NVARCHAR},
|
|
|
+ TASKNUM = #{tasknum,jdbcType=NVARCHAR},
|
|
|
+ BUDNUM = #{budnum,jdbcType=NVARCHAR},
|
|
|
+ BUDITEM = #{buditem,jdbcType=NVARCHAR}
|
|
|
+ where ID = #{id,jdbcType=NUMERIC}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <select id="selectPolineList" resultType="com.gyee.frame.model.custom.PolineVo">
|
|
|
+ SELECT
|
|
|
+ p.ponum,
|
|
|
+ p.status,
|
|
|
+ p.statusdate,
|
|
|
+ p.vendor,
|
|
|
+ p.totalcost,
|
|
|
+ p.totaltax,
|
|
|
+ p.sitenum,
|
|
|
+ p.description,
|
|
|
+ l.itemnum,
|
|
|
+ l.warehouse,
|
|
|
+ l.orderqty,
|
|
|
+ l.orderunit,
|
|
|
+ l.unitcost,
|
|
|
+ l.linecost,
|
|
|
+ l.enterdate,
|
|
|
+ l.enterby,
|
|
|
+ i.modelnum
|
|
|
+ FROM
|
|
|
+ POLINE l
|
|
|
+ LEFT JOIN Po p ON p.ponum = l.ponum
|
|
|
+ LEFT JOIN ITEM i on i.itemnum = l.itemnum
|
|
|
+ <where>
|
|
|
+
|
|
|
+ <if test=" '' != vendor and null != vendor ">
|
|
|
+ and p.vendor like '%${vendor}%'
|
|
|
+ </if>
|
|
|
+ <if test=" '' != warehouse and null != warehouse ">
|
|
|
+ and l.warehouse like '%${warehouse}%'
|
|
|
+ </if>
|
|
|
+ <if test=" '' != ponum and null != ponum ">
|
|
|
+ and p.ponum like '%${ponum}%'
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test=" '' != starttime and starttime !=null and endtime !=null and '' != endtime">
|
|
|
+ and l.enterdate >= #{starttime} and l.enterdate <= #{endtime}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|