Merge branch 'master_merge' of http://121.40.234.130:8899/root/lanzhouhailiang_one into master_merge
This commit is contained in:
@@ -147,4 +147,11 @@ public interface SlitterService {
|
|||||||
* @return /
|
* @return /
|
||||||
*/
|
*/
|
||||||
JSONObject toCleanCutCacheInventory(JSONObject param);
|
JSONObject toCleanCutCacheInventory(JSONObject param);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分切拼接操作
|
||||||
|
* @param param /
|
||||||
|
* @return /
|
||||||
|
*/
|
||||||
|
JSONObject slitterSpliceOperation(JSONObject param);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
// point.getTube_code1() 编码 , getTube_name1() : 纸制筒管|纸管|6英寸|1300 or 纸制筒管|纸管|3英寸|12|650
|
// point.getTube_code1() 编码 , getTube_name1() : 纸制筒管|纸管|6英寸|1300 or 纸制筒管|纸管|3英寸|12|650
|
||||||
res.put("device_code", deviceCode);
|
res.put("device_code", deviceCode);
|
||||||
res.put("data", con);
|
res.put("data", con);
|
||||||
if ("1".equals(autoSendEmpty.getValue())) {
|
if ("1".equals(autoSendEmpty.getValue()) && list.size() == 0) {
|
||||||
con.put("is_bushing", "2");
|
con.put("is_bushing", "2");
|
||||||
} else {
|
} else {
|
||||||
con.put("is_bushing", list.size() > 0 ? SlitterConstant.SLITTER_YES : SlitterConstant.SLITTER_NO);
|
con.put("is_bushing", list.size() > 0 ? SlitterConstant.SLITTER_YES : SlitterConstant.SLITTER_NO);
|
||||||
@@ -928,12 +928,12 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JSONArray getCutCacheAgvPoints() {
|
public JSONArray getCutCacheAgvPoints() {
|
||||||
List<BstIvtCutpointivt> list = bcutpointivtService.getPintByAgvCodesByPointType("3");
|
List<BstIvtCutpointivt> list = bcutpointivtService.getPintByAgvCodesByPointType("2");
|
||||||
JSONArray jsonArray = list.stream()
|
JSONArray jsonArray = list.stream()
|
||||||
.map(item -> {
|
.map(item -> {
|
||||||
JSONObject jsonObject = new JSONObject();
|
JSONObject jsonObject = new JSONObject();
|
||||||
jsonObject.put("text", item.getPoint_code());
|
jsonObject.put("text", item.getPoint_name());
|
||||||
jsonObject.put("value", item.getPoint_name());
|
jsonObject.put("value", item.getPoint_code());
|
||||||
return jsonObject;
|
return jsonObject;
|
||||||
})
|
})
|
||||||
.collect(Collectors.toCollection(JSONArray::new));
|
.collect(Collectors.toCollection(JSONArray::new));
|
||||||
@@ -973,4 +973,10 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
res.put("message", "库存清除成功!");
|
res.put("message", "库存清除成功!");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONObject slitterSpliceOperation(JSONObject param) {
|
||||||
|
// todo:
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,15 +3,13 @@ package org.nl.b_lms.sch.tasks.slitter.util;
|
|||||||
import cn.hutool.core.util.NumberUtil;
|
import cn.hutool.core.util.NumberUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
||||||
import org.nl.b_lms.bst.ivt.papervehicle.service.dao.MdPbPapervehicle;
|
import org.nl.b_lms.bst.ivt.papervehicle.service.dao.MdPbPapervehicle;
|
||||||
import org.nl.b_lms.bst.ivt.stockingivt.service.dao.BstIvtStockingivt;
|
|
||||||
import org.nl.b_lms.pdm.bi.slittingproductionplan.service.dao.PdmBiSlittingproductionplan;
|
import org.nl.b_lms.pdm.bi.slittingproductionplan.service.dao.PdmBiSlittingproductionplan;
|
||||||
import org.nl.b_lms.sch.tasks.slitter.constant.SlitterConstant;
|
import org.nl.b_lms.sch.tasks.slitter.constant.SlitterConstant;
|
||||||
import org.nl.modules.common.exception.BadRequestException;
|
import org.nl.modules.common.exception.BadRequestException;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.StringJoiner;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: lyd
|
* @Author: lyd
|
||||||
@@ -236,9 +234,13 @@ public class SlitterTaskUtil {
|
|||||||
qtys[i] = qty;
|
qtys[i] = qty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
param.put("to_material", material_codes);
|
// 转成String
|
||||||
param.put("to_spec", material_codes);
|
String[] qtysStr = Arrays.stream(qtys)
|
||||||
param.put("to_qty", qtys);
|
.mapToObj(String::valueOf)
|
||||||
|
.toArray(String[]::new);
|
||||||
|
param.put("to_material", String.join(",", material_codes));
|
||||||
|
param.put("to_spec", String.join(",", material_codes));
|
||||||
|
param.put("to_qty", String.join(",", qtysStr));
|
||||||
param.put("device_code", material_specs);
|
param.put("device_code", material_specs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ public interface OutBussManageService {
|
|||||||
* @return List<StIvtIostorinvdis>: 分配明细集合
|
* @return List<StIvtIostorinvdis>: 分配明细集合
|
||||||
*/
|
*/
|
||||||
List<StIvtIostorinvdis> manualDivIvt(StIvtIostorinvdtl dtlDao, List<JSONObject> ivtList);
|
List<StIvtIostorinvdis> manualDivIvt(StIvtIostorinvdtl dtlDao, List<JSONObject> ivtList);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新库存
|
* 更新库存
|
||||||
|
|||||||
Reference in New Issue
Block a user