rev : 半成品损溢
This commit is contained in:
@@ -19,6 +19,8 @@ import org.nl.common.utils.IdUtil;
|
||||
import org.nl.common.utils.SecurityUtils;
|
||||
import org.nl.modules.common.exception.BadRequestException;
|
||||
import org.nl.modules.system.util.CodeUtil;
|
||||
import org.nl.wms.masterdata_manage.service.material.IMdMeMaterialbaseService;
|
||||
import org.nl.wms.masterdata_manage.service.material.dao.MdMeMaterialbase;
|
||||
import org.nl.wms.masterdata_manage.storage.service.storage.IStIvtBsrealstorattrService;
|
||||
import org.nl.wms.masterdata_manage.storage.service.storage.IStIvtStructattrService;
|
||||
import org.nl.wms.masterdata_manage.storage.service.storage.dao.StIvtBsrealstorattr;
|
||||
@@ -65,6 +67,9 @@ public class StIvtMoreorlessmstBcpServiceImpl extends ServiceImpl<StIvtMoreorles
|
||||
@Autowired
|
||||
private IStIvtStructattrService structattrService; // 仓位服务
|
||||
|
||||
@Autowired
|
||||
private IMdMeMaterialbaseService iMdMeMaterialbaseService; // 物料服务
|
||||
|
||||
@Override
|
||||
public Object pageQuery(MoreOrlessQuery query, PageQuery pageQuery) {
|
||||
Page<Object> page = PageHelper.startPage(pageQuery.getPage() + 1, pageQuery.getSize());
|
||||
@@ -191,6 +196,9 @@ public class StIvtMoreorlessmstBcpServiceImpl extends ServiceImpl<StIvtMoreorles
|
||||
if (ObjectUtil.isEmpty(ivt)) {
|
||||
StIvtStructattr struct_jo = structattrService.getOne(new QueryWrapper<StIvtStructattr>().eq("struct_id", dtl.getStruct_id()));
|
||||
//新增一条库存记录
|
||||
|
||||
MdMeMaterialbase materDao = iMdMeMaterialbaseService.getById(dtl.getMaterial_id());
|
||||
|
||||
iStIvtStructivtBcpService.save(StIvtStructivtBcp.builder()
|
||||
.struct_id(dtl.getStruct_id())
|
||||
.struct_code(struct_jo.getStruct_code())
|
||||
@@ -206,6 +214,7 @@ public class StIvtMoreorlessmstBcpServiceImpl extends ServiceImpl<StIvtMoreorles
|
||||
.stor_id(mst.getStor_id())
|
||||
.workshop_id(mst.getProduct_area())
|
||||
.is_pick(false)
|
||||
.unit_weight(materDao.getNet_weight())
|
||||
.build()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user