Commit 2e74977b by liyanlin

fix

parent 0c4f3a64
...@@ -64,6 +64,7 @@ public class CostApiServiceImpl implements CostApiService { ...@@ -64,6 +64,7 @@ public class CostApiServiceImpl implements CostApiService {
costDomain.setCostNo(costNo); costDomain.setCostNo(costNo);
// 付款费用单 1付款 2收款 3借支/借还 // 付款费用单 1付款 2收款 3借支/借还
costDomain.setCostForm(costForm); costDomain.setCostForm(costForm);
// 0 待提交 1待审核 2待出纳付款 3被驳回 4已支付 5已作废 // 0 待提交 1待审核 2待出纳付款 3被驳回 4已支付 5已作废
costDomain.setCostStatus(0); costDomain.setCostStatus(0);
costDomain.setCostRemark(logisticsCostDto.getCostRemark() + "【WMS系统推送】"); costDomain.setCostRemark(logisticsCostDto.getCostRemark() + "【WMS系统推送】");
......
...@@ -16,10 +16,16 @@ ...@@ -16,10 +16,16 @@
publish_status = #{publishStatus,jdbcType=INTEGER} publish_status = #{publishStatus,jdbcType=INTEGER}
</insert> </insert>
<select id="selectNonPublishTop" resultType="com.blt.other.module.netsuite.dto.NetsuiteLogDto" parameterType="integer"> <select id="selectNonPublishTop" resultType="com.blt.other.module.netsuite.dto.NetsuiteLogDto" parameterType="integer">
select cost_no as costNo,json_str as jsonStr from netsuite_log nl where publish_status in(0,99) and script = #{script} order by last_modify_time desc limit #{top} select cost_no as costNo,json_str as jsonStr
from netsuite_log nl
where publish_status in(0,99)
and script = #{script}
and try_times <![CDATA[<]]> 5
order by last_modify_time desc
limit #{top}
</select> </select>
<update id="updatePublishStatus" parameterType="map"> <update id="updatePublishStatus" parameterType="map">
update netsuite_log set publish_status = #{status,jdbcType=INTEGER},error_msg = #{error,jdbcType=VARCHAR} update netsuite_log set publish_status = #{status,jdbcType=INTEGER},error_msg = #{error,jdbcType=VARCHAR},try_times = try_times + 1
where cost_no in where cost_no in
<foreach collection="costNos" item="costNos" separator="," open="(" close=")"> <foreach collection="costNos" item="costNos" separator="," open="(" close=")">
#{costNos,jdbcType=VARCHAR} #{costNos,jdbcType=VARCHAR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment