|
|
@ -38,56 +38,78 @@
|
|
|
|
<if test="endDate!=null and endDate!=''">
|
|
|
|
<if test="endDate!=null and endDate!=''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(billdate, '%Y-%m-%d') <= DATE_FORMAT(#{endDate}, '%Y-%m-%d') ]]>
|
|
|
|
<![CDATA[ and DATE_FORMAT(billdate, '%Y-%m-%d') <= DATE_FORMAT(#{endDate}, '%Y-%m-%d') ]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="editStatus != '' and editStatus != null">
|
|
|
|
|
|
|
|
AND editStatus = #{editStatus}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
ORDER BY updateTime DESC
|
|
|
|
ORDER BY updateTime DESC
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertThrOrder" keyProperty="id" parameterType="com.glxp.sale.admin.entity.thrsys.ThrOrderEntity">
|
|
|
|
<insert id="insertThrOrder" keyProperty="id" parameterType="com.glxp.sale.admin.entity.thrsys.ThrOrderEntity">
|
|
|
|
replace INTO thr_order
|
|
|
|
replace
|
|
|
|
|
|
|
|
INTO thr_order
|
|
|
|
(billNo, billdate, corpId, corpName, billType, billFlag, thirdSysFk, updateTime, originType, unitIdFk,
|
|
|
|
(billNo, billdate, corpId, corpName, billType, billFlag, thirdSysFk, updateTime, originType, unitIdFk,
|
|
|
|
startDate, endDate, createUser, reviewUser, address, linkMan, linkTel, remark, remark1, remark2,
|
|
|
|
startDate, endDate, createUser, reviewUser, address, linkMan, linkTel, remark, remark1, remark2,
|
|
|
|
remark3)
|
|
|
|
remark3,locStorageCode,editStatus)
|
|
|
|
values (#{billNo},
|
|
|
|
values (
|
|
|
|
#{billdate},
|
|
|
|
#{billNo},
|
|
|
|
#{corpId},
|
|
|
|
#{billdate},
|
|
|
|
#{corpName},
|
|
|
|
#{corpId},
|
|
|
|
#{billType},
|
|
|
|
#{corpName},
|
|
|
|
#{billFlag},
|
|
|
|
#{billType},
|
|
|
|
#{thirdSysFk}, #{updateTime}, #{originType}, #{unitIdFk},
|
|
|
|
#{billFlag},
|
|
|
|
#{startDate}, #{endDate}, #{createUser}, #{reviewUser},
|
|
|
|
#{thirdSysFk},
|
|
|
|
#{address}, #{linkMan}, #{linkTel}, #{remark}, #{remark1},
|
|
|
|
#{updateTime},
|
|
|
|
#{remark2}, #{remark3})
|
|
|
|
#{originType},
|
|
|
|
|
|
|
|
#{unitIdFk},
|
|
|
|
|
|
|
|
#{startDate},
|
|
|
|
|
|
|
|
#{endDate},
|
|
|
|
|
|
|
|
#{createUser},
|
|
|
|
|
|
|
|
#{reviewUser},
|
|
|
|
|
|
|
|
#{address},
|
|
|
|
|
|
|
|
#{linkMan},
|
|
|
|
|
|
|
|
#{linkTel},
|
|
|
|
|
|
|
|
#{remark},
|
|
|
|
|
|
|
|
#{remark1},
|
|
|
|
|
|
|
|
#{remark2},
|
|
|
|
|
|
|
|
#{remark3},
|
|
|
|
|
|
|
|
#{locStorageCode},
|
|
|
|
|
|
|
|
#{editStatus}
|
|
|
|
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertThrOrders" keyProperty="id" parameterType="java.util.List">
|
|
|
|
<insert id="insertThrOrders" keyProperty="id" parameterType="java.util.List">
|
|
|
|
replace INTO thr_order
|
|
|
|
replace INTO thr_order
|
|
|
|
(billNo, billdate, corpId, corpName, billType, billFlag, thirdSysFk, updateTime, originType, unitIdFk,
|
|
|
|
(billNo, billdate, corpId, corpName, billType, billFlag, thirdSysFk, updateTime, originType, unitIdFk,
|
|
|
|
startDate, endDate, createUser, reviewUser, address, linkMan, linkTel, remark, remark1, remark2,
|
|
|
|
startDate, endDate, createUser, reviewUser, address, linkMan, linkTel, remark, remark1, remark2,
|
|
|
|
remark3)
|
|
|
|
remark3,locStorageCode,editStatus)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
|
|
|
|
|
|
|
|
<foreach collection="thrOrderEntities" item="item" index="index"
|
|
|
|
<foreach collection="thrOrderEntities" item="item" index="index"
|
|
|
|
separator=",">
|
|
|
|
separator=",">
|
|
|
|
(#{item.billNo},
|
|
|
|
(#{item.billNo},
|
|
|
|
#{item.billdate},
|
|
|
|
#{item.billdate},
|
|
|
|
#{item.corpId},
|
|
|
|
#{item.corpId},
|
|
|
|
#{item.corpName},
|
|
|
|
#{item.corpName},
|
|
|
|
#{item.billType},
|
|
|
|
#{item.billType},
|
|
|
|
#{item.billFlag},
|
|
|
|
#{item.billFlag},
|
|
|
|
#{item.thirdSysFk}, #{item.updateTime}, #{item.originType}, #{item.unitIdFk},
|
|
|
|
#{item.thirdSysFk}, #{item.updateTime}, #{item.originType}, #{item.unitIdFk},
|
|
|
|
#{item.startDate}, #{item.endDate}, #{item.createUser}, #{item.reviewUser},
|
|
|
|
#{item.startDate}, #{item.endDate}, #{item.createUser}, #{item.reviewUser},
|
|
|
|
#{item.address}, #{item.linkMan}, #{item.linkTel}, #{item.remark}, #{item.remark1},
|
|
|
|
#{item.address}, #{item.linkMan}, #{item.linkTel}, #{item.remark}, #{item.remark1},
|
|
|
|
#{item.remark2}, #{item.remark3})
|
|
|
|
#{item.remark2}, #{item.remark3},#{item.locStorageCode},#{item.editStatus})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
DELETE FROM thr_order WHERE id = #{id}
|
|
|
|
DELETE
|
|
|
|
|
|
|
|
FROM thr_order
|
|
|
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteAll">
|
|
|
|
<delete id="deleteAll">
|
|
|
|
DELETE FROM thr_order
|
|
|
|
DELETE
|
|
|
|
|
|
|
|
FROM thr_order
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateThrOrder" parameterType="com.glxp.sale.admin.entity.thrsys.ThrOrderEntity">
|
|
|
|
<update id="updateThrOrder" parameterType="com.glxp.sale.admin.entity.thrsys.ThrOrderEntity">
|
|
|
@ -114,6 +136,9 @@
|
|
|
|
<if test="remark1 != null">remark1=#{remark1},</if>
|
|
|
|
<if test="remark1 != null">remark1=#{remark1},</if>
|
|
|
|
<if test="remark2 != null">remark2=#{remark2},</if>
|
|
|
|
<if test="remark2 != null">remark2=#{remark2},</if>
|
|
|
|
<if test="remark3 != null">remark3=#{remark3},</if>
|
|
|
|
<if test="remark3 != null">remark3=#{remark3},</if>
|
|
|
|
|
|
|
|
<if test="locStorageCode != null">locStorageCode=#{locStorageCode},</if>
|
|
|
|
|
|
|
|
<if test="editStatus != null">editStatus=#{editStatus},</if>
|
|
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
WHERE id = #{id}
|
|
|
|
WHERE id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|