|
@@ -1895,6 +1895,30 @@ public class MESHelperServiceImpl implements MESHelperService {
|
|
|
return rmap;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<Object, Object> getMainAllSnCode(String data) {
|
|
|
+ Map<String, Object> map=null;
|
|
|
+ Map<Object, Object> rmap = new HashMap<Object, Object>();
|
|
|
+ try{
|
|
|
+ map =BaseUtil.convertJsonToMap(data);
|
|
|
+ }catch (Exception e){
|
|
|
+ rmap.put("code",-1);
|
|
|
+ rmap.put("message",e.getMessage());
|
|
|
+ System.out.printf(e.getMessage()) ;
|
|
|
+ return rmap;
|
|
|
+ }
|
|
|
+ String sn = StringUtil.nvl(map.get("sn"),"");
|
|
|
+ if("".equals(sn)){
|
|
|
+ rmap.put("code",-1);
|
|
|
+ rmap.put("message","SN不能为空");
|
|
|
+ return rmap;
|
|
|
+ }
|
|
|
+ List<Map<String, Object>> maps = baseDao.queryForList("select msl_sncode serialNo from MakeSnList where msl_mainbarcode=(select msl_mainbarcode from MakeSnList where msl_sncode='" + sn + "')");
|
|
|
+ rmap.put("code",0);
|
|
|
+ rmap.put("data",maps);
|
|
|
+ return rmap;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
private Map<Object,Object> SetBpMaterial(JSONObject map)
|
|
|
{
|