接收第三方单据上传
parent
97edaf03b4
commit
4efeb8af1f
@ -1,151 +1,176 @@
|
||||
<?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.glxp.api.admin.dao.business.StockOrderUploadLogDao">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table stock_order_upload_log-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="billNo" jdbcType="VARCHAR" property="billNo" />
|
||||
<result column="billDate" jdbcType="TIMESTAMP" property="billDate" />
|
||||
<result column="billType" jdbcType="VARCHAR" property="billType" />
|
||||
<result column="thrBillNo" jdbcType="VARCHAR" property="thrBillNo" />
|
||||
<result column="submitTime" jdbcType="TIMESTAMP" property="submitTime" />
|
||||
<result column="status" jdbcType="INTEGER" property="status" />
|
||||
<result column="result" jdbcType="VARCHAR" property="result" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, billNo, billDate, billType, thrBillNo, submitTime, `status`, `result`
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stock_order_upload_log
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--@mbg.generated-->
|
||||
delete from stock_order_upload_log
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into stock_order_upload_log (billNo, billDate, billType,
|
||||
thrBillNo, submitTime, `status`,
|
||||
`result`)
|
||||
values (#{billNo,jdbcType=VARCHAR}, #{billDate,jdbcType=TIMESTAMP}, #{billType,jdbcType=VARCHAR},
|
||||
#{thrBillNo,jdbcType=VARCHAR}, #{submitTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
|
||||
#{result,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into stock_order_upload_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="billNo != null">
|
||||
billNo,
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
billDate,
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
billType,
|
||||
</if>
|
||||
<if test="thrBillNo != null">
|
||||
thrBillNo,
|
||||
</if>
|
||||
<if test="submitTime != null">
|
||||
submitTime,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
<if test="result != null">
|
||||
`result`,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="billNo != null">
|
||||
#{billNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
#{billDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
#{billType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="thrBillNo != null">
|
||||
#{thrBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="submitTime != null">
|
||||
#{submitTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="result != null">
|
||||
#{result,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity">
|
||||
<!--@mbg.generated-->
|
||||
update stock_order_upload_log
|
||||
<set>
|
||||
<if test="billNo != null">
|
||||
billNo = #{billNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table stock_order_upload_log-->
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="billNo" jdbcType="VARCHAR" property="billNo"/>
|
||||
<result column="billDate" jdbcType="TIMESTAMP" property="billDate"/>
|
||||
<result column="billType" jdbcType="VARCHAR" property="billType"/>
|
||||
<result column="thrBillNo" jdbcType="VARCHAR" property="thrBillNo"/>
|
||||
<result column="submitTime" jdbcType="TIMESTAMP" property="submitTime"/>
|
||||
<result column="status" jdbcType="INTEGER" property="status"/>
|
||||
<result column="result" jdbcType="VARCHAR" property="result"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, billNo, billDate, billType, thrBillNo, submitTime, `status`, `result`
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from stock_order_upload_log
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--@mbg.generated-->
|
||||
delete from stock_order_upload_log
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" keyColumn="id" keyProperty="id"
|
||||
parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into stock_order_upload_log (billNo, billDate, billType,
|
||||
thrBillNo, submitTime, `status`,
|
||||
`result`,fromType)
|
||||
values (#{billNo,jdbcType=VARCHAR}, #{billDate,jdbcType=TIMESTAMP}, #{billType,jdbcType=VARCHAR},
|
||||
#{thrBillNo,jdbcType=VARCHAR}, #{submitTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
|
||||
#{result,jdbcType=VARCHAR},#{fromType})
|
||||
</insert>
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="id"
|
||||
parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity" useGeneratedKeys="true">
|
||||
<!--@mbg.generated-->
|
||||
insert into stock_order_upload_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="billNo != null">
|
||||
billNo,
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
billDate,
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
billType,
|
||||
</if>
|
||||
<if test="thrBillNo != null">
|
||||
thrBillNo,
|
||||
</if>
|
||||
<if test="submitTime != null">
|
||||
submitTime,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status`,
|
||||
</if>
|
||||
<if test="result != null">
|
||||
`result`,
|
||||
</if>
|
||||
<if test="fromType != null">
|
||||
`fromType`,
|
||||
</if>
|
||||
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="billNo != null">
|
||||
#{billNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
#{billDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
#{billType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="thrBillNo != null">
|
||||
#{thrBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="submitTime != null">
|
||||
#{submitTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="result != null">
|
||||
#{result,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fromType != null">
|
||||
`fromType`,
|
||||
</if>
|
||||
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective"
|
||||
parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity">
|
||||
<!--@mbg.generated-->
|
||||
update stock_order_upload_log
|
||||
<set>
|
||||
<if test="billNo != null">
|
||||
billNo = #{billNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="billDate != null">
|
||||
billDate = #{billDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
billType = #{billType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="thrBillNo != null">
|
||||
thrBillNo = #{thrBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="submitTime != null">
|
||||
submitTime = #{submitTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="result != null">
|
||||
`result` = #{result,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fromType != null">
|
||||
`fromType` = #{fromType},
|
||||
</if>
|
||||
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity">
|
||||
<!--@mbg.generated-->
|
||||
update stock_order_upload_log
|
||||
set billNo = #{billNo,jdbcType=VARCHAR},
|
||||
billDate = #{billDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="billType != null">
|
||||
billType = #{billType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="thrBillNo != null">
|
||||
thrBillNo = #{thrBillNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="submitTime != null">
|
||||
submitTime = #{submitTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
`status` = #{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="result != null">
|
||||
`result` = #{result,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity">
|
||||
<!--@mbg.generated-->
|
||||
update stock_order_upload_log
|
||||
set billNo = #{billNo,jdbcType=VARCHAR},
|
||||
billDate = #{billDate,jdbcType=TIMESTAMP},
|
||||
billType = #{billType,jdbcType=VARCHAR},
|
||||
thrBillNo = #{thrBillNo,jdbcType=VARCHAR},
|
||||
submitTime = #{submitTime,jdbcType=TIMESTAMP},
|
||||
`status` = #{status,jdbcType=INTEGER},
|
||||
`result` = #{result,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
`fromType` = #{fromType,jdbcType=INTEGER},
|
||||
`result` = #{result,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="selectList"
|
||||
parameterType="com.glxp.api.admin.req.business.StockOrderUploadRequest"
|
||||
resultType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity">
|
||||
select stock_order_upload_log.*,basic_bustype_local.name billTypeName from stock_order_upload_log
|
||||
LEFT JOIN basic_bustype_local on
|
||||
stock_order_upload_log.billType = basic_bustype_local.action
|
||||
<where>
|
||||
<if test="billNo != null and billNo != ''">
|
||||
AND billNo = #{billNo}
|
||||
</if>
|
||||
<if test="thirdBillNo != null and thirdBillNo != ''">
|
||||
AND thrBillNo = #{thirdBillNo}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
AND status = #{status}
|
||||
</if>
|
||||
<if test="submitTime != null">
|
||||
AND submitTime = date_format(#{submitTime},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="fromType != null">
|
||||
AND fromType = #{fromType}
|
||||
</if>
|
||||
|
||||
<select id="selectList" resultMap="BaseResultMap">
|
||||
select * from stock_order_upload_log
|
||||
<where>
|
||||
<if test="billNo != null and billNo != ''">
|
||||
AND billNo = #{billNo}
|
||||
</if>
|
||||
<if test="thirdBillNo != null and thirdBillNo != ''">
|
||||
AND thrBillNo = #{thirdBillNo}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
AND status = #{status}
|
||||
</if>
|
||||
<if test="submitTime != null">
|
||||
AND submitTime = date_format(#{submitTime},'%Y-%m-%d')
|
||||
</if>
|
||||
</where>
|
||||
order by submitTime desc
|
||||
</select>
|
||||
</where>
|
||||
group by stock_order_upload_log.id
|
||||
order by submitTime desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue