|
|
|
|
@ -1,9 +1,13 @@ |
|
|
|
|
package com.nov.KgLowDurable.service.impl; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
|
import com.nov.KgLowDurable.constant.BatchConstant; |
|
|
|
|
import com.nov.KgLowDurable.exception.CustomerException; |
|
|
|
|
import com.nov.KgLowDurable.mapper.LdOneFormMapper; |
|
|
|
|
import com.nov.KgLowDurable.mapper.LdOneOutStorageDetailMapper; |
|
|
|
|
import com.nov.KgLowDurable.mapper.LdOneOutStorageMapper; |
|
|
|
|
import com.nov.KgLowDurable.mapper.LdTwoPutStorageMapper; |
|
|
|
|
import com.nov.KgLowDurable.pojo.dto.LdTwoPutStorageDto; |
|
|
|
|
import com.nov.KgLowDurable.pojo.entity.*; |
|
|
|
|
@ -44,6 +48,15 @@ public class LdTwoPutStorageServiceImpl extends ServiceImpl<LdTwoPutStorageMappe |
|
|
|
|
@Autowired |
|
|
|
|
ILdTwoInventoryRecordService twoInventoryRecordService; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
LdOneOutStorageMapper oneOutStorageMapper; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
LdOneOutStorageDetailMapper oneOutStorageDetailMapper; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
LdOneFormMapper oneFormMapper; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public PageInfo<LdTwoPutStorageVO> getTwoPutStorageList(Date startTime, Date endTime, String inOperator, String demandDepartment, Integer pageNum, Integer pageSize) { |
|
|
|
|
|
|
|
|
|
@ -252,6 +265,10 @@ public class LdTwoPutStorageServiceImpl extends ServiceImpl<LdTwoPutStorageMappe |
|
|
|
|
// 3. 按类型分别处理
|
|
|
|
|
processConsumerGoods(details, userInfo); // 易耗品
|
|
|
|
|
processDurableGoods(details, userInfo); // 耐用品
|
|
|
|
|
//更新一级出库单状态
|
|
|
|
|
LdOneOutStorage oneOutStorage = oneOutStorageMapper.selectById(dto.getLdTwoPutStorage().getOneOutStorageId()); |
|
|
|
|
oneOutStorage.setStatus(BatchConstant.APPROVE); |
|
|
|
|
oneOutStorageMapper.updateById(oneOutStorage); |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|