|
|
@@ -224,7 +224,8 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
mesProductRecord.setSn(sn);
|
|
|
mesProductRecord.setOprno(oprno);
|
|
|
mesProductRecord.setCraft(craft);
|
|
|
- mesProductRecord.setLineSn(cate);
|
|
|
+ // 忽略line_sn要求,兼容多线:查记录不再按产线过滤(客户端仍可传lineSn)
|
|
|
+ // mesProductRecord.setLineSn(cate);
|
|
|
return mesProductRecordDao.findInfo(mesProductRecord);
|
|
|
}
|
|
|
|
|
|
@@ -583,7 +584,8 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
MesProductRecord mesProductRecord1 = new MesProductRecord();
|
|
|
mesProductRecord1.setOprno(oprno);
|
|
|
mesProductRecord1.getSqlMap().getWhere().and("sn",QueryType.EQ,sn);
|
|
|
- mesProductRecord1.setLineSn(lineSn);
|
|
|
+ // 忽略line_sn要求,兼容多线:查记录不再按产线过滤(客户端仍可传lineSn,不改写记录上的line_sn)
|
|
|
+ // mesProductRecord1.setLineSn(lineSn);
|
|
|
List<MesProductRecord> lists = findList(mesProductRecord1);
|
|
|
if(ListUtils.isEmpty(lists)){
|
|
|
throw new ServiceException(text("记录不存在!"));
|
|
|
@@ -723,7 +725,9 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
mesProductGp12Items.setModifyId(mesProductModifyRecord1.getId());
|
|
|
mesProductGp12Items.setSn(sn);
|
|
|
mesProductGp12Items.setOprno(oldOprno);
|
|
|
- mesProductGp12Items.setLineSn(lineSn);
|
|
|
+ // 忽略line_sn要求,兼容多线:履历用记录上的产线,不用请求lineSn覆盖
|
|
|
+ // mesProductGp12Items.setLineSn(lineSn);
|
|
|
+ mesProductGp12Items.setLineSn(mesProductRecord.getLineSn());
|
|
|
mesProductGp12Items.setCreateBy(userCode);
|
|
|
mesProductGp12Items.setUpdateBy(userCode);
|
|
|
mesProductGp12Items.setResult(result);
|
|
|
@@ -1026,7 +1030,8 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
MesProductRecord mesProductRecord1 = new MesProductRecord();
|
|
|
mesProductRecord1.setOprno(oprno);
|
|
|
mesProductRecord1.getSqlMap().getWhere().and("sn",QueryType.EQ,sn);
|
|
|
- mesProductRecord1.setLineSn(lineSn);
|
|
|
+ // 忽略line_sn要求,兼容多线:查记录不再按产线过滤(客户端仍可传lineSn)
|
|
|
+ // mesProductRecord1.setLineSn(lineSn);
|
|
|
List<MesProductRecord> lists = findList(mesProductRecord1);
|
|
|
if(ListUtils.isEmpty(lists)){
|
|
|
throw new ServiceException(text("记录不存在!"));
|