|
@@ -25,21 +25,20 @@
|
|
<result column="CLOSE_STATUS" jdbcType="DECIMAL" property="closeStatus" />
|
|
<result column="CLOSE_STATUS" jdbcType="DECIMAL" property="closeStatus" />
|
|
<result column="SALER_ID" jdbcType="DECIMAL" property="salerId" />
|
|
<result column="SALER_ID" jdbcType="DECIMAL" property="salerId" />
|
|
<result column="SALE_TYPE" jdbcType="DECIMAL" property="saleType" />
|
|
<result column="SALE_TYPE" jdbcType="DECIMAL" property="saleType" />
|
|
- <result column="WARRANTY_NUMBER" jdbcType="DECIMAL" property="warrantyNumber" />
|
|
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
SALE_ORDER_ID, PLAN_ID, SALE_NUMBER, SHIPPER_ID, RECEIVE_ID, SALE_ACCOUNT_BALANCE,
|
|
SALE_ORDER_ID, PLAN_ID, SALE_NUMBER, SHIPPER_ID, RECEIVE_ID, SALE_ACCOUNT_BALANCE,
|
|
SALE_CURRENT_ORDER_AMOUNT, SALE_HISTORICAL_ORDER_AMOUNT, SALE_ORDER_STATUS, SALE_ORDER_RECEIVE_CUSTOMER,
|
|
SALE_CURRENT_ORDER_AMOUNT, SALE_HISTORICAL_ORDER_AMOUNT, SALE_ORDER_STATUS, SALE_ORDER_RECEIVE_CUSTOMER,
|
|
SALE_ORDER_ISSELF_MENTION, SALE_UNIT_PRICE, SALE_ORDER_TAX, SALE_REMARK, INSERT_USERNAME,
|
|
SALE_ORDER_ISSELF_MENTION, SALE_UNIT_PRICE, SALE_ORDER_TAX, SALE_REMARK, INSERT_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, CLOSE_STATUS,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, CLOSE_STATUS,
|
|
- SALER_ID, SALE_TYPE, WARRANTY_NUMBER
|
|
|
|
|
|
+ SALER_ID, SALE_TYPE
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
t.SALE_ORDER_ID, t.PLAN_ID, t.SALE_NUMBER, t.SHIPPER_ID, t.RECEIVE_ID, t.SALE_ACCOUNT_BALANCE,
|
|
t.SALE_ORDER_ID, t.PLAN_ID, t.SALE_NUMBER, t.SHIPPER_ID, t.RECEIVE_ID, t.SALE_ACCOUNT_BALANCE,
|
|
t.SALE_CURRENT_ORDER_AMOUNT, t.SALE_HISTORICAL_ORDER_AMOUNT, t.SALE_ORDER_STATUS,
|
|
t.SALE_CURRENT_ORDER_AMOUNT, t.SALE_HISTORICAL_ORDER_AMOUNT, t.SALE_ORDER_STATUS,
|
|
t.SALE_ORDER_RECEIVE_CUSTOMER, t.SALE_ORDER_ISSELF_MENTION, t.SALE_UNIT_PRICE, t.SALE_ORDER_TAX,
|
|
t.SALE_ORDER_RECEIVE_CUSTOMER, t.SALE_ORDER_ISSELF_MENTION, t.SALE_UNIT_PRICE, t.SALE_ORDER_TAX,
|
|
t.SALE_REMARK, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME,
|
|
t.SALE_REMARK, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME,
|
|
- t.INSERT_UPDATE_REMARK, t.DELETED, t.CLOSE_STATUS, t.SALER_ID, t.SALE_TYPE, t.WARRANTY_NUMBER
|
|
|
|
|
|
+ t.INSERT_UPDATE_REMARK, t.DELETED, t.CLOSE_STATUS, t.SALER_ID, t.SALE_TYPE
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM AMS_SALE_ORDER
|
|
SELECT <include refid="columns" /> FROM AMS_SALE_ORDER
|
|
@@ -118,9 +117,6 @@
|
|
<if test="saleType != null">
|
|
<if test="saleType != null">
|
|
and SALE_TYPE = #{saleType}
|
|
and SALE_TYPE = #{saleType}
|
|
</if>
|
|
</if>
|
|
- <if test="warrantyNumber != null">
|
|
|
|
- and WARRANTY_NUMBER = #{warrantyNumber}
|
|
|
|
- </if>
|
|
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -194,9 +190,6 @@
|
|
<if test="saleType != null">
|
|
<if test="saleType != null">
|
|
and SALE_TYPE = #{saleType}
|
|
and SALE_TYPE = #{saleType}
|
|
</if>
|
|
</if>
|
|
- <if test="warrantyNumber != null">
|
|
|
|
- and WARRANTY_NUMBER = #{warrantyNumber}
|
|
|
|
- </if>
|
|
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
<delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
@@ -272,9 +265,6 @@
|
|
<if test="saleType != null">
|
|
<if test="saleType != null">
|
|
or SALE_TYPE = #{saleType}
|
|
or SALE_TYPE = #{saleType}
|
|
</if>
|
|
</if>
|
|
- <if test="warrantyNumber != null">
|
|
|
|
- or WARRANTY_NUMBER = #{warrantyNumber}
|
|
|
|
- </if>
|
|
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmsSaleOrder">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmsSaleOrder">
|
|
insert into AMS_SALE_ORDER (SALE_ORDER_ID, PLAN_ID, SALE_NUMBER,
|
|
insert into AMS_SALE_ORDER (SALE_ORDER_ID, PLAN_ID, SALE_NUMBER,
|
|
@@ -285,8 +275,7 @@
|
|
SALE_ORDER_TAX, SALE_REMARK, INSERT_USERNAME,
|
|
SALE_ORDER_TAX, SALE_REMARK, INSERT_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_UPDATE_REMARK, DELETED, CLOSE_STATUS,
|
|
INSERT_UPDATE_REMARK, DELETED, CLOSE_STATUS,
|
|
- SALER_ID, SALE_TYPE, WARRANTY_NUMBER
|
|
|
|
- )
|
|
|
|
|
|
+ SALER_ID, SALE_TYPE)
|
|
values (#{saleOrderId,jdbcType=DECIMAL}, #{planId,jdbcType=DECIMAL}, #{saleNumber,jdbcType=VARCHAR},
|
|
values (#{saleOrderId,jdbcType=DECIMAL}, #{planId,jdbcType=DECIMAL}, #{saleNumber,jdbcType=VARCHAR},
|
|
#{shipperId,jdbcType=DECIMAL}, #{receiveId,jdbcType=DECIMAL}, #{saleAccountBalance,jdbcType=DECIMAL},
|
|
#{shipperId,jdbcType=DECIMAL}, #{receiveId,jdbcType=DECIMAL}, #{saleAccountBalance,jdbcType=DECIMAL},
|
|
#{saleCurrentOrderAmount,jdbcType=DECIMAL}, #{saleHistoricalOrderAmount,jdbcType=DECIMAL},
|
|
#{saleCurrentOrderAmount,jdbcType=DECIMAL}, #{saleHistoricalOrderAmount,jdbcType=DECIMAL},
|
|
@@ -295,8 +284,7 @@
|
|
#{saleOrderTax,jdbcType=VARCHAR}, #{saleRemark,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
#{saleOrderTax,jdbcType=VARCHAR}, #{saleRemark,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{closeStatus,jdbcType=DECIMAL},
|
|
#{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{closeStatus,jdbcType=DECIMAL},
|
|
- #{salerId,jdbcType=DECIMAL}, #{saleType,jdbcType=DECIMAL}, #{warrantyNumber,jdbcType=DECIMAL}
|
|
|
|
- )
|
|
|
|
|
|
+ #{salerId,jdbcType=DECIMAL}, #{saleType,jdbcType=DECIMAL})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsSaleOrder">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsSaleOrder">
|
|
insert into AMS_SALE_ORDER
|
|
insert into AMS_SALE_ORDER
|
|
@@ -370,9 +358,6 @@
|
|
<if test="saleType != null">
|
|
<if test="saleType != null">
|
|
SALE_TYPE,
|
|
SALE_TYPE,
|
|
</if>
|
|
</if>
|
|
- <if test="warrantyNumber != null">
|
|
|
|
- WARRANTY_NUMBER,
|
|
|
|
- </if>
|
|
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="saleOrderId != null">
|
|
<if test="saleOrderId != null">
|
|
@@ -444,9 +429,6 @@
|
|
<if test="saleType != null">
|
|
<if test="saleType != null">
|
|
#{saleType,jdbcType=DECIMAL},
|
|
#{saleType,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="warrantyNumber != null">
|
|
|
|
- #{warrantyNumber,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsSaleOrder">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsSaleOrder">
|
|
@@ -472,8 +454,7 @@
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
CLOSE_STATUS = #{closeStatus,jdbcType=DECIMAL},
|
|
CLOSE_STATUS = #{closeStatus,jdbcType=DECIMAL},
|
|
SALER_ID = #{salerId,jdbcType=DECIMAL},
|
|
SALER_ID = #{salerId,jdbcType=DECIMAL},
|
|
- SALE_TYPE = #{saleType,jdbcType=DECIMAL},
|
|
|
|
- WARRANTY_NUMBER = #{warrantyNumber,jdbcType=DECIMAL}
|
|
|
|
|
|
+ SALE_TYPE = #{saleType,jdbcType=DECIMAL}
|
|
where SALE_ORDER_ID = #{saleOrderId,jdbcType=DECIMAL}
|
|
where SALE_ORDER_ID = #{saleOrderId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsSaleOrder">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsSaleOrder">
|
|
@@ -545,9 +526,6 @@
|
|
<if test="saleType != null">
|
|
<if test="saleType != null">
|
|
SALE_TYPE = #{saleType,jdbcType=DECIMAL},
|
|
SALE_TYPE = #{saleType,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="warrantyNumber != null">
|
|
|
|
- WARRANTY_NUMBER = #{warrantyNumber,jdbcType=DECIMAL},
|
|
|
|
- </if>
|
|
|
|
</set>
|
|
</set>
|
|
where SALE_ORDER_ID = #{saleOrderId,jdbcType=DECIMAL}
|
|
where SALE_ORDER_ID = #{saleOrderId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
@@ -575,7 +553,7 @@
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
DELETED, CLOSE_STATUS, SALER_ID,
|
|
DELETED, CLOSE_STATUS, SALER_ID,
|
|
- SALE_TYPE, WARRANTY_NUMBER)
|
|
|
|
|
|
+ SALE_TYPE)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.saleOrderId,jdbcType=DECIMAL},
|
|
#{item.saleOrderId,jdbcType=DECIMAL},
|
|
@@ -588,7 +566,7 @@
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.deleted,jdbcType=DECIMAL}, #{item.closeStatus,jdbcType=DECIMAL}, #{item.salerId,jdbcType=DECIMAL},
|
|
#{item.deleted,jdbcType=DECIMAL}, #{item.closeStatus,jdbcType=DECIMAL}, #{item.salerId,jdbcType=DECIMAL},
|
|
- #{item.saleType,jdbcType=DECIMAL}, #{item.warrantyNumber,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.saleType,jdbcType=DECIMAL} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -686,10 +664,6 @@
|
|
<foreach close="end" collection="list" index="index" item="item" open="case SALE_ORDER_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case SALE_ORDER_ID" separator=" ">
|
|
when #{item.saleOrderId,jdbcType=DECIMAL} then #{item.saleType,jdbcType=DECIMAL}
|
|
when #{item.saleOrderId,jdbcType=DECIMAL} then #{item.saleType,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
- ,WARRANTY_NUMBER=
|
|
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case SALE_ORDER_ID" separator=" ">
|
|
|
|
- when #{item.saleOrderId,jdbcType=DECIMAL} then #{item.warrantyNumber,jdbcType=DECIMAL}
|
|
|
|
- </foreach>
|
|
|
|
where SALE_ORDER_ID in
|
|
where SALE_ORDER_ID in
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.saleOrderId,jdbcType=DECIMAL}
|
|
#{item.saleOrderId,jdbcType=DECIMAL}
|
|
@@ -704,6 +678,7 @@
|
|
</delete>
|
|
</delete>
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
+
|
|
<sql id="orderBy">
|
|
<sql id="orderBy">
|
|
<if test="orderField != null and orderField != ''">
|
|
<if test="orderField != null and orderField != ''">
|
|
order by "${orderField}"
|
|
order by "${orderField}"
|