|
@@ -603,7 +603,7 @@ public class MESHelperServiceImpl implements MESHelperService {
|
|
|
rmap.put("dataInfo",rmap1);
|
|
|
return rmap;
|
|
|
}
|
|
|
- Object[] obj = baseDao.getFieldsDataByCondition("makeserial left join product on pr_code=ms_prodcode","pr_colorboxminw,pr_colorboxmaxw","ms_sncode='"+lotSN+"'");
|
|
|
+ Object[] obj = baseDao.getFieldsDataByCondition("makeserial left join product on pr_code=ms_prodcode","pr_colorboxminw,pr_colorboxmaxw","ms_id =(select max(ms_id) from makeserial where ms_sncode='"+lotSN+"')");
|
|
|
if(obj[0]!=null&&obj[1]!=null){
|
|
|
|
|
|
if(Double.parseDouble(weight)<Double.parseDouble(obj[0].toString())||Double.parseDouble(weight)>Double.parseDouble(obj[1].toString())){
|