|
|
@@ -49,7 +49,7 @@ public class ScheduleTaskServiceImpl implements ScheduleTaskService {
|
|
|
//获取MES对应仓库
|
|
|
String prWhcode = product.getPr_whcode();
|
|
|
if (prWhcode!=null&&!"".equals(prWhcode)) {
|
|
|
- SqlRowList rowSet = baseDao.queryForRowSet("select cd_varchar50_1,cd_varchar50_2,cd_varchar50_3,cd_varchar50_5 from customtabledetail left join customtable on ct_id=cd_ctid where ct_caller='MESWarehouse' and cd_varchar50_3='" + prWhcode + "' order by ct_id desc,cd_id desc");
|
|
|
+ SqlRowList rowSet = baseDao.queryForRowSet("select cd_varchar50_1,cd_varchar50_2,cd_varchar50_3,cd_varchar50_5 from customtabledetail left join customtable on ct_id=cd_ctid where ct_caller='MESWarehouse' and ct_statuscode='AUDITED' and cd_varchar50_3='" + prWhcode + "' order by ct_id desc,cd_id desc");
|
|
|
if (rowSet.next()){
|
|
|
product.setPr_whcode(rowSet.getGeneralString("cd_varchar50_1"));
|
|
|
}
|