|
|
@ -1,34 +1,30 @@ |
|
|
|
package org.nl.wms.database.eas.service.impl; |
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.nl.common.base.CommonPage; |
|
|
|
import org.nl.common.exception.BadRequestException; |
|
|
|
import org.nl.common.utils.SecurityUtils; |
|
|
|
import org.nl.wms.database.eas.dao.*; |
|
|
|
import org.nl.wms.database.eas.dto.*; |
|
|
|
import org.nl.wms.database.eas.dao.EasOutInBillDetail; |
|
|
|
import org.nl.wms.database.eas.dao.InventoryInfo; |
|
|
|
import org.nl.wms.database.eas.dao.mapper.EasOutInBillDetailMapper; |
|
|
|
import org.nl.wms.database.eas.dto.EasOutInBillDetailVO; |
|
|
|
import org.nl.wms.database.eas.service.IeasOutInBillDetailService; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import org.nl.wms.database.eas.service.IeasOutInBillService; |
|
|
|
import org.springframework.scheduling.annotation.Async; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
import org.nl.common.base.CommonPage; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.*; |
|
|
|
import java.util.concurrent.CompletableFuture; |
|
|
|
import java.util.function.Function; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
@ -42,7 +38,6 @@ import java.util.stream.Collectors; |
|
|
|
public class EasOutInBillDetailServiceImpl extends ServiceImpl<EasOutInBillDetailMapper, EasOutInBillDetail> implements IeasOutInBillDetailService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
private EasOutInBillDetailMapper easOutInBillDetailMapper; |
|
|
|
|
|
|
@ -50,8 +45,6 @@ public class EasOutInBillDetailServiceImpl extends ServiceImpl<EasOutInBillDetai |
|
|
|
private IeasOutInBillService ieasOutInBillService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 分页查询 |
|
|
|
* |
|
|
@ -185,6 +178,24 @@ public class EasOutInBillDetailServiceImpl extends ServiceImpl<EasOutInBillDetai |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 批量修改库位信息 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void updateBillDetail(List<EasOutInBillDetailVO> entityList) { |
|
|
|
if (CollectionUtils.isNotEmpty(entityList)) { |
|
|
|
UpdateWrapper<EasOutInBillDetail> updateWrapper = new UpdateWrapper<>(); |
|
|
|
updateWrapper.in("flid", entityList.stream().map(EasOutInBillDetailVO::getFlid).collect(Collectors.toSet())); |
|
|
|
updateWrapper.set("kwbm", entityList.get(0).getKwbm()); |
|
|
|
updateWrapper.set("update_id", SecurityUtils.getCurrentUserId()); |
|
|
|
updateWrapper.set("update_name", SecurityUtils.getCurrentNickName()); |
|
|
|
updateWrapper.set("update_time", DateUtil.format(DateUtil.beginOfDay(DateUtil.date()), "yyyy-MM-dd")); |
|
|
|
easOutInBillDetailMapper.update(null, updateWrapper); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 编辑 |
|
|
|
*/ |
|
|
@ -270,9 +281,6 @@ public class EasOutInBillDetailServiceImpl extends ServiceImpl<EasOutInBillDetai |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 多选删除 |
|
|
|
* |
|
|
|