加1|自制;2|外协;3|采购
This commit is contained in:
parent
4a9d9b5385
commit
bc17c0cd3a
|
|
@ -16,6 +16,8 @@ public class AddVirtrualMaterialDTO {
|
|||
private String materialDesc ;
|
||||
private String materialCategoryCode;
|
||||
|
||||
private String projectType;
|
||||
|
||||
@ApiModelProperty("申请后返回的物料编码")
|
||||
private String materialNo;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -418,6 +418,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
toM.setDrawingNo(drawingNo);
|
||||
toM.setMaterialDesc(materialDesc);
|
||||
toM.setMaterialCategoryCode("201201");
|
||||
toM.setProjectType(packageParam.getProjectType());
|
||||
Map<String, AddVirtrualMaterialDTO> mMap = materialService.batchAddMaterial(ImmutableList.of(toM));
|
||||
// String materialNo = materialService.addMaterial(drawingNo, materialName, materialDesc, "201201");
|
||||
String materialNo=mMap.get(key).getMaterialNo();
|
||||
|
|
@ -437,6 +438,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
throw new NflgBusinessException(STATE.BusinessError, "单条物料时,请选择上下级");
|
||||
}
|
||||
TechnologyPackageParamBuilder builder = new TechnologyPackageParamBuilder(technologyPackageParam);
|
||||
builder.builder();
|
||||
if (CollUtil.isNotEmpty(builder.getPackageParent())) {
|
||||
this.saveOrUpdateBatch(builder.getPackageParent());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -187,6 +187,9 @@ public class MaterialService {
|
|||
ma.setApplyUserCode(SessionUtil.getRealName());
|
||||
ma.setMaterialUnit("PC");
|
||||
ma.setProcessState(10);
|
||||
if(StrUtil.isNotBlank(md.getProjectType())){
|
||||
ma.setProjectType(md.getProjectType());
|
||||
}
|
||||
resultList.add(ma);
|
||||
|
||||
AddMaterialMainDTO ent=new AddMaterialMainDTO();
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ public abstract class VirtualPackageBase {
|
|||
parent.setSourceRowId(0L);
|
||||
parent.setLastVersionIs(1);
|
||||
parent.setNum(new BigDecimal(1));
|
||||
parent.setDeviseName(SessionUtil.getUserCode());
|
||||
parent.setDeviseUserCode(SessionUtil.getUserCode());
|
||||
parent.setDeviseName(SessionUtil.getRealName());
|
||||
parent.setCreatedBy(SessionUtil.getUserCode());
|
||||
parent.setDeptName(SessionUtil.getDepartName());
|
||||
|
|
|
|||
Loading…
Reference in New Issue