|
|
|
@ -8,6 +8,7 @@ import com.foreverwin.mesnac.common.enums.HandleEnum;
|
|
|
|
|
import com.foreverwin.mesnac.common.util.ExceptionUtil;
|
|
|
|
|
import com.foreverwin.mesnac.common.util.StringUtil;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.dto.IssueItemDto;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.mapper.CallItemMapper;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.model.CallItem;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.model.IssueItem;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.mapper.IssueItemMapper;
|
|
|
|
@ -61,6 +62,8 @@ public class IssueItemServiceImpl extends ServiceImpl<IssueItemMapper, IssueItem
|
|
|
|
|
@Autowired
|
|
|
|
|
private CallItemService callItemService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private CallItemMapper callItemMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private ItemBatchService itemBatchService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private InventoryService inventoryService;
|
|
|
|
@ -151,6 +154,7 @@ public class IssueItemServiceImpl extends ServiceImpl<IssueItemMapper, IssueItem
|
|
|
|
|
String materialType = itemModel.getMaterialType();
|
|
|
|
|
Boolean oddments = jsonObject.getBoolean("oddments");
|
|
|
|
|
String resource = jsonObject.getString("resource");
|
|
|
|
|
String workCenter = jsonObject.getString("workCenter");
|
|
|
|
|
String workOrder = jsonObject.getString("workOrder");
|
|
|
|
|
String blankingSize = jsonObject.getString("blankingSize");
|
|
|
|
|
|
|
|
|
@ -257,7 +261,8 @@ public class IssueItemServiceImpl extends ServiceImpl<IssueItemMapper, IssueItem
|
|
|
|
|
|
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
//查询匹配的叫料记录
|
|
|
|
|
List<CallItem> list = callItemService.findIssueMatchCallItemList(site, workOrder, blankingSize, resource, item);
|
|
|
|
|
// List<CallItem> list = callItemService.findIssueMatchCallItemList(site, workOrder, blankingSize, resource, item);
|
|
|
|
|
List<CallItem> list = callItemMapper.findIssueMatchCallItemListPda(site,workCenter,null,resource,item);
|
|
|
|
|
if (list == null || list.size() <= 0) {
|
|
|
|
|
throw BusinessException.build("未找到当前物料对应的叫料记录!");
|
|
|
|
|
}
|
|
|
|
|