diff --git a/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/impl/WmsInstockDetailServiceImpl.java b/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/impl/WmsInstockDetailServiceImpl.java index b1b8140..2fda59c 100644 --- a/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/impl/WmsInstockDetailServiceImpl.java +++ b/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/impl/WmsInstockDetailServiceImpl.java @@ -16,9 +16,11 @@ import org.dromara.wms.domain.bo.WmsAllocateOrderDetailBo; import org.dromara.wms.domain.bo.WmsInstockDetailBo; import org.dromara.wms.domain.vo.BaseMaterialInfoVo; import org.dromara.wms.domain.vo.WmsInstockDetailVo; +import org.dromara.wms.domain.vo.WmsInstockOrderVo; import org.dromara.wms.mapper.WmsInstockDetailMapper; import org.dromara.wms.service.IBaseMaterialInfoService; import org.dromara.wms.service.IWmsInstockDetailService; +import org.dromara.wms.service.IWmsInstockOrderService; import org.dromara.wms.service.IWmsInstockPrintService; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -163,7 +165,7 @@ public class WmsInstockDetailServiceImpl implements IWmsInstockDetailService { String materialCode = bo.getMaterialCode(); String batchCode = instockCode+materialCode+order; wmsInstockPrint.setBatchCode(batchCode); - wmsInstockPrint.setApportionQty(bo.getPrintNum().longValue()); + wmsInstockPrint.setApportionQty(bo.getPrintNum()); wmsInstockPrint.setMaterialQty(bo.getBarcodeNum()); wmsInstockPrint.setCreateBy(username); int rows = wmsInstockPrintService.insertWmsInstockPrint(wmsInstockPrint); diff --git a/ruoyi-modules/hwmom-wms/src/main/resources/mapper/wms/WmsInventoryMapper.xml b/ruoyi-modules/hwmom-wms/src/main/resources/mapper/wms/WmsInventoryMapper.xml index d205247..c616e1f 100644 --- a/ruoyi-modules/hwmom-wms/src/main/resources/mapper/wms/WmsInventoryMapper.xml +++ b/ruoyi-modules/hwmom-wms/src/main/resources/mapper/wms/WmsInventoryMapper.xml @@ -16,27 +16,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"