|
|
|
@ -195,7 +195,6 @@ public class QcCheckTaskIncomeController extends BaseController {
|
|
|
|
|
logger.info("来料信息查询请求:" + JSONObject.toJSONString(mapBom));
|
|
|
|
|
R incomeR = remoteSapService.inComingCheck(mapBom);
|
|
|
|
|
if(incomeR.getCode()==500){
|
|
|
|
|
logger.info("来料信息查询请求:" + JSONObject.toJSONString(incomeR));
|
|
|
|
|
return AjaxResult.error(JSONObject.toJSONString(incomeR));
|
|
|
|
|
}
|
|
|
|
|
logger.info("来料信息查询结果:" + JSONObject.toJSONString(incomeR));
|
|
|
|
@ -216,13 +215,21 @@ public class QcCheckTaskIncomeController extends BaseController {
|
|
|
|
|
if(!CollectionUtils.isEmpty(newIncomes)){
|
|
|
|
|
logger.info("工厂来料检验任务生成参数:" + JSONObject.toJSONString(newIncomes));
|
|
|
|
|
for(QcCheckTaskIncomeDTO income:newIncomes){
|
|
|
|
|
//供应商+物料编码+数量+来料时间
|
|
|
|
|
QcCheckTaskIncome hasTask = qcCheckTaskIncomeService.hasIncomeTask(income);
|
|
|
|
|
if(hasTask != null){
|
|
|
|
|
logger.info(poolName + "工厂的" + income.getAttr1()+"来料检验创建任务重复++++++++++"+
|
|
|
|
|
JSONObject.toJSONString(income));
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AjaxResult ajaxResult = createIncomeTask(income);
|
|
|
|
|
if(ajaxResult.isSuccess()){
|
|
|
|
|
successNum = successNum + 1;
|
|
|
|
|
logger.info(poolName + "工厂的" + income.getCheckNo()+"来料检验创建任务成功++++++++++");
|
|
|
|
|
logger.info(poolName + "工厂的" + income.getAttr1()+"来料检验创建任务成功++++++++++");
|
|
|
|
|
}else if(ajaxResult.isError()){
|
|
|
|
|
failNum = failNum +1;
|
|
|
|
|
logger.info(poolName + "工厂的" + income.getCheckNo()+"来料检验创建任务失败++++++++++");
|
|
|
|
|
logger.info(poolName + "工厂的" + income.getAttr1()+"来料检验创建任务失败++++++++++");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|