|
|
|
@ -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>
|
|
|
|
|
|
|
|
|
|