tags/yfai-pcn-ext-v1.0
王杰 11 months ago
parent 25d1ea2556
commit bd6e57c44d

@ -548,7 +548,7 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
partInspection.setNcStatus(MesExtEnumUtil.PART_INSPECTION_NC_STATUS.CREATE.getValue());
partInspection.setSn(model.getSn());
partInspection.setLotNo(model.getLotNo());
partInspection.setQty(model.getQty());
partInspection.setQty(model.getQty().intValue());
partInspection.setWorkCenterCode(model.getWorkCenterCode());
partInspection.setShiftCode(model.getShiftCode());
partInspection.setSourceType(model.getSourceType());

@ -470,7 +470,7 @@ public class MesNcProcessingService implements IMesNcProcessingService {
move.setFactoryCode(org);
move.setLgort(source);
move.setUmlgo(target);
move.setMenge((double)model.getPartInspection().getQty());
move.setMenge(Double.parseDouble(model.getPartInspection().getQty().toString()));
move.setMeins(model.getPart().getUnit());
move.setZrsum(zrsum);
move.setPostDate(TimeTool.getToday());

@ -58,6 +58,19 @@ public class MesProductSnCheckStepService extends BaseStepService {
//存储生产过程上下文对象
productionProcessContextStepService.saveProductionProcessContext(reqBean, productionProcessContext);
//当前工位使用的设备
MesCellEquipContext cellEquipmentContext = productionProcessContext.getCurCellEquip();
//获取上下文产出零件信息
List<MesProductionPartContext> productionPartContextList = productionDispatchContextStepService.getProductionPartContext(reqBean);
//获取上下文扫/读信息:主条码
List<MesEquipVariableCollectContext> equipVariableCollectContextList = productionDispatchContextStepService.getScanProductSnContext(reqBean);
//获取进料主条码数据信息
List<MesProductionPsInContext> productionPsInContextList = productionDispatchContextStepService.getProductionPsInContext(reqBean);

@ -41,7 +41,7 @@ public class MesPartInspectionInputModel {
private String lotNo;
@ApiParam("数量")
private Integer qty;
private Double qty;
@ApiParam("来源-单件或批次")
private Integer sourceType;

Loading…
Cancel
Save