|
|
|
|
@ -7,7 +7,6 @@ import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import jakarta.annotation.Resource; |
|
|
|
|
import org.springblade.common.exception.BusinessException; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
|
@ -342,7 +341,8 @@ public class StOtherReceiptRecordServiceImpl extends BaseServiceImpl<StOtherRece |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void saveSubOrderWarehousing(String goodsCode, String batchNo, Double quantity, Long shId, Long slId, Date date, Long userId) throws Exception { |
|
|
|
|
public void saveSubOrderWarehousing(String woCode, String goodsCode, String batchNo, Double quantity, Long shId, Long slId, |
|
|
|
|
Date date, Long userId, String checkNo, String quantityLevel, Date scrapCycle) throws Exception { |
|
|
|
|
|
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
StOtherReceiptRecord otherReceiptRecord = new StOtherReceiptRecord(); |
|
|
|
|
@ -358,6 +358,7 @@ public class StOtherReceiptRecordServiceImpl extends BaseServiceImpl<StOtherRece |
|
|
|
|
} |
|
|
|
|
otherReceiptRecord.setGoodsId(goods.getId()); |
|
|
|
|
|
|
|
|
|
StStockInoutRecord findRecord = this.getGlassCakeByWoCode(woCode, goodsCode); |
|
|
|
|
List<StStockInoutRecord> inoutList = new ArrayList<>(); |
|
|
|
|
StStockInoutRecord stockInoutRecord = new StStockInoutRecord(); |
|
|
|
|
stockInoutRecord.setGoodsId(goods.getId()); |
|
|
|
|
@ -367,6 +368,14 @@ public class StOtherReceiptRecordServiceImpl extends BaseServiceImpl<StOtherRece |
|
|
|
|
stockInoutRecord.setSlId(slId); |
|
|
|
|
stockInoutRecord.setInOutDate(date); |
|
|
|
|
stockInoutRecord.setCreateUser(userId); |
|
|
|
|
stockInoutRecord.setCheckNo(checkNo); |
|
|
|
|
stockInoutRecord.setQuantityLevel(quantityLevel); |
|
|
|
|
stockInoutRecord.setScrapCycle(scrapCycle); |
|
|
|
|
|
|
|
|
|
stockInoutRecord.setPrintMark(findRecord.getPrintMark()); |
|
|
|
|
stockInoutRecord.setPowderWeight(findRecord.getPowderWeight()); |
|
|
|
|
stockInoutRecord.setMaterialNo(findRecord.getMaterialNo()); |
|
|
|
|
stockInoutRecord.setThickness(findRecord.getThickness()); |
|
|
|
|
inoutList.add(stockInoutRecord); |
|
|
|
|
|
|
|
|
|
otherReceiptRecord.setInoutList(inoutList); |
|
|
|
|
|