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