|
|
@@ -29,10 +29,12 @@ public class InventoryTask extends BaseTask{
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
public void execute() {
|
|
|
Object ob=baseDao.getFieldDataByCondition("DOCKING_XB_WH_CHANGE","max(ID_)","NVL(DEALSTATE,0)=0");
|
|
|
+ int n=0;
|
|
|
if(ob!=null){
|
|
|
try{
|
|
|
String Sql = "select * from DOCKING_Inventory where YM_VIEW_PARAM.SET_ID_("+ob+")<="+ob+" order by WAREHOUSENO, MATERIALNO";
|
|
|
SqlRowList rs = baseDao.queryForRowSet(Sql);
|
|
|
+ n=rs.size();
|
|
|
while (rs.next()) {
|
|
|
JSONObject jsonobj=new JSONObject();
|
|
|
jsonobj.put("supplyCode", donlimConfig.getSupplyCode());
|
|
|
@@ -62,7 +64,10 @@ public class InventoryTask extends BaseTask{
|
|
|
baseDao.execute("update DOCKING_XB_WH_CHANGE set dealdate_=sysdate ,DEALSTATE=1 where ID_<="+ob+" and NVL(DEALSTATE,0)=0");
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
+ baseDao.execute("insert into dockinglog(id_,date_,type_,result_,Info_) " +
|
|
|
+ " values(dockinglog_seq.nextval,sysdate,'Inventory','FAILED','"+ e.getMessage()+"')");
|
|
|
}
|
|
|
+ baseDao.execute("insert into dockinglog(id_,date_,type_,result_,Info_) values(dockinglog_seq.nextval,sysdate,'SALEOUT','SUCCEED','条数:'"+n+")");
|
|
|
}
|
|
|
/*else{
|
|
|
logger.info("InventoryTask 无数据变更,无须对接 ");
|