|
|
|
@ -4,14 +4,14 @@
|
|
|
|
|
<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" />
|
|
|
|
|
<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-->
|
|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
from stock_order_upload_log
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</select>
|
|
|
|
@ -29,16 +29,18 @@
|
|
|
|
|
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">
|
|
|
|
|
<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`)
|
|
|
|
|
`result`,fromType)
|
|
|
|
|
values (#{billNo,jdbcType=VARCHAR}, #{billDate,jdbcType=TIMESTAMP}, #{billType,jdbcType=VARCHAR},
|
|
|
|
|
#{thrBillNo,jdbcType=VARCHAR}, #{submitTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
|
|
|
|
|
#{result,jdbcType=VARCHAR})
|
|
|
|
|
#{result,jdbcType=VARCHAR},#{fromType})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity" useGeneratedKeys="true">
|
|
|
|
|
<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=",">
|
|
|
|
@ -63,6 +65,10 @@
|
|
|
|
|
<if test="result != null">
|
|
|
|
|
`result`,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fromType != null">
|
|
|
|
|
`fromType`,
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="billNo != null">
|
|
|
|
@ -86,9 +92,14 @@
|
|
|
|
|
<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">
|
|
|
|
|
<update id="updateByPrimaryKeySelective"
|
|
|
|
|
parameterType="com.glxp.api.admin.entity.business.StockOrderUploadLogEntity">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
update stock_order_upload_log
|
|
|
|
|
<set>
|
|
|
|
@ -113,6 +124,10 @@
|
|
|
|
|
<if test="result != null">
|
|
|
|
|
`result` = #{result,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fromType != null">
|
|
|
|
|
`fromType` = #{fromType},
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
@ -125,12 +140,17 @@
|
|
|
|
|
thrBillNo = #{thrBillNo,jdbcType=VARCHAR},
|
|
|
|
|
submitTime = #{submitTime,jdbcType=TIMESTAMP},
|
|
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
|
|
`fromType` = #{fromType,jdbcType=INTEGER},
|
|
|
|
|
`result` = #{result,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<select id="selectList" resultMap="BaseResultMap">
|
|
|
|
|
select * from stock_order_upload_log
|
|
|
|
|
<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}
|
|
|
|
@ -144,7 +164,12 @@
|
|
|
|
|
<if test="submitTime != null">
|
|
|
|
|
AND submitTime = date_format(#{submitTime},'%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fromType != null">
|
|
|
|
|
AND fromType = #{fromType}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
group by stock_order_upload_log.id
|
|
|
|
|
order by submitTime desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|