Selaa lähdekoodia

紧急处理更新发货备料状态的问题

hejq 7 vuotta sitten
vanhempi
commit
42ca13c2a8

+ 1 - 1
src/main/java/com/uas/platform/b2b/erp/service/impl/PurchaseNotifyServiceImpl.java

@@ -117,7 +117,7 @@ public class PurchaseNotifyServiceImpl implements PurchaseNotifyService {
 	 * @param deliveryStr 新的交货周期
      */
     private void mergeWaitingStatus(Long noticeId, String deliveryStr) {
-        String sql = "update purc$notice,purc$orderitems set is_waiting = PURC_NOTICE_WAIT_TO_SEND(" + deliveryStr + ", coalesce(pr_ltinstock, 0)) " +
+        String sql = "update purc$notice,purc$orderitems set is_waiting = PURC_NOTICE_WAIT_TO_SEND('" + deliveryStr + "', coalesce(pr_ltinstock, 0)) " +
                 "where pn_pdid = pd_id and pn_id = " + noticeId;
         jdbcTemplate.execute(sql);
         communalLogDao.save(new CommunalLog("更新发货提醒备料状态", "通过发货提醒更新备料状态", "发货单id: " + noticeId,