|
|
|
@ -28,10 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -55,21 +52,21 @@ public class CallItemServiceImpl extends ServiceImpl<CallItemMapper, CallItem> i
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void sfcDispatchCallItem(String site, String user, List<SfcDispatchDto> sfcDispatchList) {
|
|
|
|
|
LocalDateTime nowDate = LocalDateTime.now();
|
|
|
|
|
if (sfcDispatchList == null || sfcDispatchList.size() <= 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
LocalDateTime nowDate = LocalDateTime.now();
|
|
|
|
|
|
|
|
|
|
//删除原来的数据
|
|
|
|
|
callItemMapper.deleteDispatchCallItem(sfcDispatchList);
|
|
|
|
|
|
|
|
|
|
//查询叫料组件
|
|
|
|
|
List<CallItem> callItemList = callItemMapper.selectDispatchCallItem(sfcDispatchList);
|
|
|
|
|
if (callItemList == null || callItemList.size() <= 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
List<CallItem> list = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
//删除原来的数据
|
|
|
|
|
callItemMapper.deleteDispatchCallItem(sfcDispatchList);
|
|
|
|
|
|
|
|
|
|
List<CallItem> list = new ArrayList<>();
|
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
//工序叫料数据
|
|
|
|
|
//Leon.L 2021/8/16 业务取消工序叫料
|
|
|
|
@ -254,8 +251,8 @@ public class CallItemServiceImpl extends ServiceImpl<CallItemMapper, CallItem> i
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
//删除原来的数据
|
|
|
|
|
callItemMapper.deleteDispatchCallItem(sfcDispatchList);
|
|
|
|
|
//删除原来的非发料状态数据
|
|
|
|
|
callItemMapper.deleteCallItem(sfcDispatchList);
|
|
|
|
|
|
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
List<CallItem> list = callItemMapper.selectDispatchCallItem(sfcDispatchList);
|
|
|
|
@ -271,7 +268,7 @@ public class CallItemServiceImpl extends ServiceImpl<CallItemMapper, CallItem> i
|
|
|
|
|
String callItemNo = callItem.getSfc() + callItem.getStepId() + component;
|
|
|
|
|
|
|
|
|
|
callItem.setCallItemNo(callItemNo);
|
|
|
|
|
callItem.setHandle(HandleEnum.CALL_ITEM.getHandle(site, callItemNo));
|
|
|
|
|
callItem.setHandle(HandleEnum.CALL_ITEM.getHandle(site, UUID.randomUUID().toString()));
|
|
|
|
|
callItem.setCallType(Constants.CALL_TYPE_MATERIAL);
|
|
|
|
|
callItem.setStatus(Constants.CALL_ITEM_STATUS_NEW);
|
|
|
|
|
callItem.setCreateUser(user);
|
|
|
|
|