|
|
@@ -334,9 +334,14 @@ public class QueryServiceImpl implements QueryService {
|
|
|
String data = "partcode:"+partcode+",partcodetype:"+partcodetype;
|
|
|
baseDao.execute("insert into eisquerydata(ed_id,ed_data,ed_type) SELECT eisquerydata_SEQ.NEXTVAL,?,? FROM DUAL",data,"getItemCode");
|
|
|
if(StringUtil.hasText(partcode)){
|
|
|
+ //如果包含分号,则需要拆分
|
|
|
+ String code = partcode;
|
|
|
+ if(partcode.contains(";")){
|
|
|
+ code = partcode.split(";")[0];
|
|
|
+ }
|
|
|
//select ITEM_NAME,BOM_VER from zte_order 取工单一节,然后根据工单对应的生产批次号获取
|
|
|
SqlRowList rs = baseDao.queryForRowSet("select ma_code,ma_custpo,batch_no,MATERIAL_CODE,ITEM_NAME,BOM_VER from make " +
|
|
|
- " left join zte_order on ma_custpo=BATCH_NO where SUBSTR(ma_code,INSTR(ma_code, '-')+1)=?",partcode);
|
|
|
+ " left join zte_order on ma_custpo=BATCH_NO where SUBSTR(ma_code,INSTR(ma_code, '-')+1)=?",code);
|
|
|
if(rs.next()){
|
|
|
if(StringUtil.hasText(rs.getString("batch_no"))){
|
|
|
map1.put("msg","成功");
|