| | |
| | | @Scheduled(cron = "${erp.refreshtime}") |
| | | public void InOrOutOrder() { |
| | | if (!erpEnabled) return; |
| | | String sqlSelectlkDetTb = "select bill_no as billNo,prd_no as prdNo,iokindid,add_id as addId,qty,prd_mark as prdMark,wh,billdate,status,temp1,temp2,temp3 from lk_det_tb where 1=1"; |
| | | String sqlUpDatelkDetTbOne = "update lk_det_tb set status=1 where prd_no="; |
| | | String sqlUpDatelkDetTbTwo = "update lk_det_tb set status=2 where prd_no="; |
| | | String sqlSelectLkDetTb = "select bill_no as billNo,prd_no as prdNo,iokindid,add_id as addId,qty,prd_mark as prdMark,wh,billdate,status,temp1,temp2,temp3 from lk_det_tb where 1=1"; |
| | | String sqlUpDateLkDetTbOne = "update lk_det_tb set status=1 where prd_no="; |
| | | String sqlUpDateLkDetTbTwo = "update lk_det_tb set status=2 where prd_no="; |
| | | |
| | | try { |
| | | List<LkDetTb> lkDetTbs = erpSqlServer.select(sqlSelectlkDetTb, LkDetTb.class); |
| | | List<LkDetTb> lkDetTbs = erpSqlServer.select(sqlSelectLkDetTb, LkDetTb.class); |
| | | if (lkDetTbs.size() > 0){ |
| | | for (LkDetTb lkDetTb:lkDetTbs){ |
| | | Integer status = lkDetTb.getStatus(); |