Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
fbe4568fa4
|
|
@ -8,11 +8,14 @@ import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.text.CharSequenceUtil;
|
import cn.hutool.core.text.CharSequenceUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.bonus.canteen.core.ims.domain.RefundGoodsDetail;
|
import com.bonus.canteen.core.ims.domain.RefundGoodsDetail;
|
||||||
|
import com.bonus.canteen.core.ims.domain.param.ImsOutInventoryAdd;
|
||||||
|
import com.bonus.canteen.core.ims.domain.param.ImsOutInventoryDetailAdd;
|
||||||
import com.bonus.canteen.core.ims.dto.*;
|
import com.bonus.canteen.core.ims.dto.*;
|
||||||
import com.bonus.canteen.core.ims.enums.DrpCommitStatusEnum;
|
import com.bonus.canteen.core.ims.enums.DrpCommitStatusEnum;
|
||||||
import com.bonus.canteen.core.ims.enums.OutInventoryTypeEnum;
|
import com.bonus.canteen.core.ims.enums.OutInventoryTypeEnum;
|
||||||
import com.bonus.canteen.core.ims.enums.SupplierConfirmStatusEnum;
|
import com.bonus.canteen.core.ims.enums.SupplierConfirmStatusEnum;
|
||||||
import com.bonus.canteen.core.ims.mapper.RefundGoodsDetailMapper;
|
import com.bonus.canteen.core.ims.mapper.RefundGoodsDetailMapper;
|
||||||
|
import com.bonus.canteen.core.ims.service.IImsOutInventoryService;
|
||||||
import com.bonus.canteen.core.ims.utils.NoGenerateUtils;
|
import com.bonus.canteen.core.ims.utils.NoGenerateUtils;
|
||||||
import com.bonus.canteen.core.ims.vo.*;
|
import com.bonus.canteen.core.ims.vo.*;
|
||||||
import com.bonus.common.core.exception.ServiceException;
|
import com.bonus.common.core.exception.ServiceException;
|
||||||
|
|
@ -44,6 +47,9 @@ public class RefundGoodsServiceImpl implements IRefundGoodsService {
|
||||||
@Resource
|
@Resource
|
||||||
private RefundGoodsDetailMapper RefundGoodsDetailMapper;
|
private RefundGoodsDetailMapper RefundGoodsDetailMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private IImsOutInventoryService drpOutInventoryService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询退货单
|
* 查询退货单
|
||||||
*
|
*
|
||||||
|
|
@ -133,6 +139,24 @@ public class RefundGoodsServiceImpl implements IRefundGoodsService {
|
||||||
// }
|
// }
|
||||||
// this.drpOutInventoryService.addCommitOutWarehouse(drpOutInventoryAddDTO);
|
// this.drpOutInventoryService.addCommitOutWarehouse(drpOutInventoryAddDTO);
|
||||||
// drpOutInventoryAddDTO.setDetailList(outDetailList);
|
// drpOutInventoryAddDTO.setDetailList(outDetailList);
|
||||||
|
ImsOutInventoryAdd imsOutInventoryAdd = new ImsOutInventoryAdd();
|
||||||
|
imsOutInventoryAdd.setOutDate(content.getRefundTime());
|
||||||
|
imsOutInventoryAdd.setFetchUser(content.getRefundContact());
|
||||||
|
imsOutInventoryAdd.setWarehouseId(content.getRefundWarehouseId());
|
||||||
|
imsOutInventoryAdd.setOutType(Long.valueOf(OutInventoryTypeEnum.BACK.key()));
|
||||||
|
imsOutInventoryAdd.setStatus(DrpCommitStatusEnum.COMMIT.key());
|
||||||
|
Iterator<RefundGoodsDetailAddDTO> iterator2 = content.getDetailList().iterator();
|
||||||
|
List<ImsOutInventoryDetailAdd> imsOutInventoryDetailAddList = new ArrayList<>();
|
||||||
|
while(iterator2.hasNext()) {
|
||||||
|
RefundGoodsDetailAddDTO drpRefundGoodsDetailAddDTO = iterator2.next();
|
||||||
|
ImsOutInventoryDetailAdd imsOutInventoryDetailAdd = new ImsOutInventoryDetailAdd();
|
||||||
|
imsOutInventoryDetailAdd.setInventoryId(drpRefundGoodsDetailAddDTO.getInventoryId());
|
||||||
|
imsOutInventoryDetailAdd.setFetchNum(drpRefundGoodsDetailAddDTO.getRefundNum());
|
||||||
|
imsOutInventoryDetailAdd.setIntoDetailId(drpRefundGoodsDetailAddDTO.getIntoDetailId());
|
||||||
|
imsOutInventoryDetailAddList.add(imsOutInventoryDetailAdd);
|
||||||
|
}
|
||||||
|
imsOutInventoryAdd.setImsOutInventoryDetailAddList(imsOutInventoryDetailAddList);
|
||||||
|
drpOutInventoryService.insertImsOutInventory( imsOutInventoryAdd);
|
||||||
return (new RefundGoodsAddVO()).setRefundGoodsId(drpRefundGoods.getRefundGoodsId());
|
return (new RefundGoodsAddVO()).setRefundGoodsId(drpRefundGoods.getRefundGoodsId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,13 @@ package com.bonus.canteen.core.kitchen.domain;
|
||||||
|
|
||||||
import com.bonus.common.core.annotation.Excel;
|
import com.bonus.common.core.annotation.Excel;
|
||||||
import com.bonus.common.core.web.domain.BaseEntity;
|
import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
import com.bonus.common.security.annotation.NoPercent;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 功能参数配置对象 kitchen_setting
|
* 功能参数配置对象 kitchen_setting
|
||||||
*
|
*
|
||||||
* @author xsheng
|
* @author xsheng
|
||||||
* @date 2025-05-25
|
* @date 2025-05-25
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue