|
|
|
@ -15,9 +15,7 @@ import org.dromara.wms.mapper.WmsAllocateOrderDetailMapper;
|
|
|
|
|
import org.dromara.wms.service.IWmsAllocateOrderDetailService;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 调拨子Service业务层处理
|
|
|
|
@ -88,13 +86,17 @@ public class WmsAllocateOrderDetailServiceImpl implements IWmsAllocateOrderDetai
|
|
|
|
|
* @return 是否新增成功
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public Boolean insertByBo(WmsAllocateOrderDetailBo bo) {
|
|
|
|
|
WmsAllocateOrderDetail add = MapstructUtils.convert(bo, WmsAllocateOrderDetail.class);
|
|
|
|
|
validEntityBeforeSave(add);
|
|
|
|
|
boolean flag = baseMapper.insert(add) > 0;
|
|
|
|
|
if (flag) {
|
|
|
|
|
bo.setAoDId(add.getAoDId());
|
|
|
|
|
public Boolean insertByBo(List<WmsAllocateOrderDetailBo> bo) {
|
|
|
|
|
ArrayList<WmsAllocateOrderDetail> list = new ArrayList<>();
|
|
|
|
|
for (WmsAllocateOrderDetailBo detailBo : bo) {
|
|
|
|
|
WmsAllocateOrderDetail add = MapstructUtils.convert(detailBo, WmsAllocateOrderDetail.class);
|
|
|
|
|
list.add(add);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boolean flag = baseMapper.insertBatch(list);
|
|
|
|
|
// if (flag) {
|
|
|
|
|
// bo.setAoDId(add.getAoDId());
|
|
|
|
|
// }
|
|
|
|
|
return flag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|