|
|
@@ -53,7 +53,7 @@ public class SendNoticeTask {
|
|
|
@Scheduled(cron = "0 0 6,12 * * ? ")
|
|
|
public void updateWaitingStatus() {
|
|
|
// 更新备料状态
|
|
|
- String sql = "update purc$notice,products,purc$orderitems set is_waiting = PURC_NOTICE_WAIT_TO_SEND(pn_delivery, coalesce(pr_ltinstock, 0 )) " +
|
|
|
+ String sql = "update purc$notice,products,purc$orderitems set is_waiting = PURC_NOTICE_WAIT_TO_SEND(pn_delivery, coalesce(purc$orderitems.pr_ltinstock, 0 )) " +
|
|
|
"where pr_id = pd_prid and pn_pdid = pd_id and is_waiting = 1 and coalesce(pn_end, 0) <> 1 and pn_status = 200";
|
|
|
jdbcTemplate.update(sql);
|
|
|
communalLogDao.save(new CommunalLog("更新发货提醒备料状态", "定时任务自动更新备料数据", "时间: " + sdf.format(new Date()), DEFAULT_ENUU));
|