|
@@ -1942,14 +1942,17 @@ public class MESHelperServiceImpl implements MESHelperService {
|
|
|
String barcode = maps.get("reel_id").toString();
|
|
|
String qty = maps.get("QTY").toString();
|
|
|
Map<Object, Object> map = new HashMap<>();
|
|
|
- SqlRowList rs = baseDao.queryForRowSet(" select pr_detail,pr_spec,bar_prodcode,to_char(bar_madedate,'YYYY-MM-DD')bar_madedate,bar_code from barcode left join product on pr_code = bar_prodcode where bar_code = '"+barcode+"' ");
|
|
|
+ SqlRowList rs = baseDao.queryForRowSet(" select VE_SHORTNAME,pr_detail,pr_spec,bar_prodcode,to_char(bar_madedate,'YYYY-MM-DD')bar_madedate,bar_code,bar_remain,bar_id from barcode left join product on pr_code = bar_prodcode LEFT JOIN VENDOR ON BAR_VENDCODE = VE_CODE where bar_code = '"+barcode+"' ");
|
|
|
if(rs.next())
|
|
|
{
|
|
|
baseDao.updateByCondition("barcode","bar_remain = '"+qty+"' " +
|
|
|
" ","bar_code = '"+barcode+"' ");
|
|
|
+ baseDao.execute("insert into barcodelogger(bl_id,bl_barcode,bl_barid,bl_prodcode,bl_whcode,bl_date,bl_inman,bl_action,bl_description)"
|
|
|
+ + " values(barcodelogger_seq.nextval,?,?,?,?,sysdate,?,'修改数量',?)",barcode,rs.getInt("bar_id"),rs.getString("bar_prodcode"),"","ADMIN","原数量:"+rs.getDouble("bar_remain")+",新数量:"+qty);
|
|
|
map.put("ret_code","0");
|
|
|
map.put("ret_msg","OK");
|
|
|
map.put("PN",rs.getString("bar_prodcode"));
|
|
|
+ map.put("VE",rs.getString("VE_SHORTNAME"));
|
|
|
map.put("DETAIL",rs.getString("pr_detail"));
|
|
|
map.put("DESCR",rs.getString("pr_spec"));
|
|
|
map.put("DC",rs.getString("bar_madedate"));
|
|
@@ -1958,6 +1961,7 @@ public class MESHelperServiceImpl implements MESHelperService {
|
|
|
map.put("ret_code","130");
|
|
|
map.put("ret_msg","条码:"+barcode+"不存在于MES");
|
|
|
map.put("PN","");
|
|
|
+ map.put("VE","");
|
|
|
map.put("DETAIL","");
|
|
|
map.put("DESCR","");
|
|
|
map.put("DC","");
|