pom文件更新
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
<java.version>1.8</java.version>
|
||||
<log4jdbc.version>1.16</log4jdbc.version>
|
||||
<swagger.version>2.9.2</swagger.version>
|
||||
<fastjson.version>1.2.70</fastjson.version>
|
||||
<druid.version>1.1.22</druid.version>
|
||||
<commons-pool2.version>2.5.0</commons-pool2.version>
|
||||
<mapstruct.version>1.3.1.Final</mapstruct.version>
|
||||
@@ -34,11 +33,11 @@
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<!--<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15on</artifactId>
|
||||
<version>1.50</version>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
<!--导出CSV相关-->
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
@@ -65,21 +64,21 @@
|
||||
<artifactId>poi-ooxml-schemas</artifactId>
|
||||
<version>4.1.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<!--<dependency>
|
||||
<groupId>org.openscada.jinterop</groupId>
|
||||
<artifactId>org.openscada.jinterop.core</artifactId>
|
||||
<version>2.1.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
</dependency>-->
|
||||
<!--<dependency>
|
||||
<groupId>org.openscada.jinterop</groupId>
|
||||
<artifactId>org.openscada.jinterop.deps</artifactId>
|
||||
<version>1.5.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
</dependency>-->
|
||||
<!-- <dependency>
|
||||
<groupId>org.openscada.utgard</groupId>
|
||||
<artifactId>org.openscada.opc.dcom</artifactId>
|
||||
<version>1.5.0</version>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.openscada.utgard</groupId>
|
||||
<artifactId>org.openscada.opc.lib</artifactId>
|
||||
@@ -103,11 +102,11 @@
|
||||
<version>1.8.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- <dependency>
|
||||
<groupId>org.aspectj</groupId>
|
||||
<artifactId>aspectjweaver</artifactId>
|
||||
<version>1.9.2</version>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
|
||||
<!--接口限流-->
|
||||
<dependency>
|
||||
@@ -116,11 +115,11 @@
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
|
||||
<dependency>
|
||||
<!--<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>29.0-jre</version>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
<!--模板引擎-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@@ -231,6 +230,12 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>objenesis</artifactId>
|
||||
<groupId>org.objenesis</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<!--Spring boot 安全框架-->
|
||||
@@ -296,6 +301,10 @@
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-models</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<artifactId>mapstruct</artifactId>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -362,13 +371,6 @@
|
||||
<version>2.12.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- fastjson -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>${fastjson.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--mapStruct依赖-->
|
||||
<dependency>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
@@ -453,6 +455,9 @@
|
||||
<includes>
|
||||
<include>**/*.*</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
|
||||
<resource>
|
||||
|
||||
@@ -45,22 +45,6 @@
|
||||
<version>6.1.4</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.elasticsearch.client</groupId>-->
|
||||
<!-- <artifactId>elasticsearch-rest-high-level-client</artifactId>-->
|
||||
<!-- <version>7.6.1</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.elasticsearch.client</groupId>-->
|
||||
<!-- <artifactId>elasticsearch-rest-client</artifactId>-->
|
||||
<!-- <version>7.6.1</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>org.elasticsearch</groupId>-->
|
||||
<!-- <artifactId>elasticsearch</artifactId>-->
|
||||
<!-- <version>7.6.1</version>-->
|
||||
<!-- </dependency>-->
|
||||
<!-- logback appender日志-->
|
||||
<dependency>
|
||||
<groupId>com.internetitem</groupId>
|
||||
|
||||
@@ -69,7 +69,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> receiveTaskStatusAcs(String string) {
|
||||
log.info("receiveTaskStatusAcs请求参数:--------------------------------------"+string);
|
||||
log.info("receiveTaskStatusAcs请求参数:--------------------------------------" + string);
|
||||
JSONArray array = JSONArray.parseArray(string);
|
||||
//返回处理失败的任务
|
||||
JSONArray errArr = new JSONArray();
|
||||
@@ -484,7 +484,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
|
||||
@Override
|
||||
public JSONObject deviceApply(JSONObject whereJson) {
|
||||
log.info("deviceApply请求参数:---------------------------------------------"+whereJson.toString());
|
||||
log.info("deviceApply请求参数:---------------------------------------------" + whereJson.toString());
|
||||
String vehicle_code = whereJson.getString("vehicle_code");
|
||||
String weight = whereJson.getString("weight");
|
||||
String type = whereJson.getString("type");
|
||||
@@ -547,13 +547,13 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
data.put("box_width", box_width);
|
||||
data.put("box_high", box_high);
|
||||
data.put("bundle_times", 2);
|
||||
result.put("data",data);
|
||||
result.put("data", data);
|
||||
} else if (type.equals("3")) {
|
||||
//烘箱出箱任务
|
||||
String device_code = whereJson.getString("device_code");
|
||||
JSONObject bake_jo = new JSONObject();
|
||||
bake_jo.put("point_code",device_code);
|
||||
bake_jo.put("option","2");
|
||||
bake_jo.put("point_code", device_code);
|
||||
bake_jo.put("option", "2");
|
||||
new BakingServiceImpl().ovenInAndOut(bake_jo);
|
||||
} else {
|
||||
throw new BadRequestException("请输入正确的任务类型!");
|
||||
@@ -563,7 +563,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
|
||||
@Override
|
||||
public JSONObject process(JSONObject whereJson) {
|
||||
log.info("process请求参数:---------------------------------------------"+whereJson.toString());
|
||||
log.info("process请求参数:---------------------------------------------" + whereJson.toString());
|
||||
String vehicle_code = whereJson.getString("vehicle_code");
|
||||
String ext_task_id = whereJson.getString("ext_task_id");
|
||||
String srcLocation = whereJson.getString("srcLocation");
|
||||
@@ -630,20 +630,20 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
|
||||
@Override
|
||||
public JSONObject shipDeviceUpdate(JSONObject whereJson) {
|
||||
log.info("shipDeviceUpdate请求参数:---------------------------------------------"+whereJson.toString());
|
||||
log.info("shipDeviceUpdate请求参数:---------------------------------------------" + whereJson.toString());
|
||||
String device_code = whereJson.getString("device_code");
|
||||
if (StrUtil.isEmpty(device_code)){
|
||||
if (StrUtil.isEmpty(device_code)) {
|
||||
throw new BadRequestException("输入的设备号不能为空!");
|
||||
}
|
||||
|
||||
//查询该设备对应的输送线点位
|
||||
JSONObject deliver_jo = WQLObject.getWQLObject("st_ivt_deliverypointivt").query("point_code = '"+device_code+"'").uniqueResult(0);
|
||||
if (deliver_jo != null){
|
||||
JSONObject deliver_jo = WQLObject.getWQLObject("st_ivt_deliverypointivt").query("point_code = '" + device_code + "'").uniqueResult(0);
|
||||
if (deliver_jo != null) {
|
||||
String qzzno = deliver_jo.getString("qzzno");
|
||||
if (ObjectUtil.isNotEmpty(deliver_jo)){
|
||||
deliver_jo.put("point_status","01");
|
||||
deliver_jo.put("qzzno","");
|
||||
deliver_jo.put("vehicle_code","");
|
||||
if (ObjectUtil.isNotEmpty(deliver_jo)) {
|
||||
deliver_jo.put("point_status", "01");
|
||||
deliver_jo.put("qzzno", "");
|
||||
deliver_jo.put("vehicle_code", "");
|
||||
WQLObject.getWQLObject("st_ivt_deliverypointivt").update(deliver_jo);
|
||||
|
||||
//如果为靠近分切机一端的输送点,判断远离端是否需要进行横移
|
||||
@@ -657,18 +657,18 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
.addParam("point_code", device_code)
|
||||
.addParam("product_area", product_area)
|
||||
.addParam("sort_seq", sort_seq)
|
||||
.addParam("find_type","1")
|
||||
.addParam("find_type", "1")
|
||||
.addParam("flag", "17").process().uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(right_point) && !right_point.getString("point_status").equals("01")) {
|
||||
//创建载具横移任务
|
||||
String translate_code1 = right_point.getString("point_code");
|
||||
String translate_code2 = device_code;
|
||||
JSONObject tran_jo = new JSONObject();
|
||||
tran_jo.put("point_code1",translate_code1);
|
||||
tran_jo.put("point_code2",translate_code2);
|
||||
tran_jo.put("vehicle_code",right_point.getString("qzzno"));
|
||||
tran_jo.put("vehicle_code2",right_point.getString("vehicle_code"));
|
||||
tran_jo.put("task_type","010406");
|
||||
tran_jo.put("point_code1", translate_code1);
|
||||
tran_jo.put("point_code2", translate_code2);
|
||||
tran_jo.put("vehicle_code", right_point.getString("qzzno"));
|
||||
tran_jo.put("vehicle_code2", right_point.getString("vehicle_code"));
|
||||
tran_jo.put("task_type", "010406");
|
||||
cutConveyorTask.createTask(tran_jo);
|
||||
}
|
||||
}
|
||||
@@ -683,100 +683,98 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
@Override
|
||||
public void initialize(JSONObject param) {
|
||||
{
|
||||
{
|
||||
int j_size = param.getInteger("j"); // 排
|
||||
int k_size = param.getInteger("k"); // 列
|
||||
String block = param.getString("layer"); // 块
|
||||
JSONObject max_jo = WQLObject.getWQLObject("ST_IVT_StructAttr").query("sect_code = 'ZC01' order by out_order_seq desc ").uniqueResult(0);
|
||||
int max_no = 0;
|
||||
if (ObjectUtil.isNotEmpty(max_jo)) {
|
||||
max_no = max_jo.getIntValue("out_order_seq");
|
||||
}
|
||||
max_no++;
|
||||
for (int i = 1; i < 4; i++) {
|
||||
for (int j = 1; j < j_size; j++) {
|
||||
for (int k = 1; k < k_size; k++) {
|
||||
//排
|
||||
String row = "";
|
||||
if (j < 10) {
|
||||
row = "0" + j;
|
||||
} else {
|
||||
row = j + "";
|
||||
}
|
||||
|
||||
//列
|
||||
String line = "";
|
||||
if (k < 10) {
|
||||
line = "0" + k;
|
||||
} else {
|
||||
line = k + "";
|
||||
}
|
||||
|
||||
//块
|
||||
String piece = i + block;
|
||||
|
||||
//层
|
||||
String layer = "0" + i;
|
||||
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("struct_id", IdUtil.getSnowflake(1, 1).nextId());
|
||||
jo.put("struct_code", piece + row + "-" + line + "-" + layer);
|
||||
jo.put("struct_name", piece + "区" + row + "排" + line + "列" + layer + "层");
|
||||
jo.put("simple_name", piece + "区" + row + "排" + line + "列" + layer + "层");
|
||||
jo.put("sect_id", "1582991348217286656");
|
||||
jo.put("sect_code", "ZC01");
|
||||
jo.put("sect_name", "主存区");
|
||||
jo.put("stor_id", "1582991156504039424");
|
||||
jo.put("stor_code", "CP01");
|
||||
jo.put("stor_name", "兰州仓库");
|
||||
jo.put("stor_type", "03");
|
||||
jo.put("is_tempstruct", "0");
|
||||
jo.put("row_num", row);
|
||||
jo.put("col_num", line);
|
||||
jo.put("layer_num", layer);
|
||||
jo.put("block_num", piece);
|
||||
jo.put("in_order_seq", 0);
|
||||
jo.put("out_order_seq", max_no);
|
||||
jo.put("in_empty_seq", 0);
|
||||
jo.put("out_empty_seq", 0);
|
||||
jo.put("placement_type", "01");
|
||||
jo.put("create_id", "1");
|
||||
jo.put("create_name", "管理员");
|
||||
jo.put("create_time", DateUtil.now());
|
||||
jo.put("update_optid", "1");
|
||||
jo.put("update_optname", "管理员");
|
||||
jo.put("update_time", DateUtil.now());
|
||||
jo.put("is_delete", "0");
|
||||
jo.put("is_used", "1");
|
||||
jo.put("lock_type", "1");
|
||||
jo.put("material_height_type", "1");
|
||||
WQLObject.getWQLObject("ST_IVT_StructAttr").insert(jo);
|
||||
max_no++;
|
||||
//插入点位
|
||||
JSONObject structMap = new JSONObject();
|
||||
structMap.put("point_id", IdUtil.getSnowflake(1,1).nextId());
|
||||
structMap.put("point_code", jo.getString("struct_code"));
|
||||
structMap.put("point_name", jo.getString("struct_name"));
|
||||
structMap.put("region_id", "1582991348217286656");
|
||||
structMap.put("region_code", jo.getString("sect_code"));
|
||||
structMap.put("region_name", jo.getString("sect_name"));
|
||||
structMap.put("point_type", "2");
|
||||
structMap.put("point_status", "1");
|
||||
structMap.put("lock_type", jo.getString("lock_type"));
|
||||
structMap.put("block_num", jo.getIntValue("block_num"));
|
||||
structMap.put("row_num", jo.getIntValue("row_num"));
|
||||
structMap.put("col_num", jo.getIntValue("col_num"));
|
||||
structMap.put("layer_num", jo.getIntValue("layer_num"));
|
||||
structMap.put("source_id", jo.getString("struct_id"));
|
||||
structMap.put("create_id", "1");
|
||||
structMap.put("create_name", "管理员");
|
||||
structMap.put("create_time", DateUtil.now());
|
||||
structMap.put("update_optid", "1");
|
||||
structMap.put("update_optname", "管理员");
|
||||
structMap.put("update_time", DateUtil.now());
|
||||
WQLObject.getWQLObject("sch_base_point").insert(structMap);
|
||||
int j_size = param.getInteger("j"); // 排
|
||||
int k_size = param.getInteger("k"); // 列
|
||||
String block = param.getString("layer"); // 块
|
||||
JSONObject max_jo = WQLObject.getWQLObject("ST_IVT_StructAttr").query("sect_code = 'ZC01' order by out_order_seq desc ").uniqueResult(0);
|
||||
int max_no = 0;
|
||||
if (ObjectUtil.isNotEmpty(max_jo)) {
|
||||
max_no = max_jo.getIntValue("out_order_seq");
|
||||
}
|
||||
max_no++;
|
||||
for (int i = 1; i < 4; i++) {
|
||||
for (int j = 1; j < j_size; j++) {
|
||||
for (int k = 1; k < k_size; k++) {
|
||||
//排
|
||||
String row = "";
|
||||
if (j < 10) {
|
||||
row = "0" + j;
|
||||
} else {
|
||||
row = j + "";
|
||||
}
|
||||
|
||||
//列
|
||||
String line = "";
|
||||
if (k < 10) {
|
||||
line = "0" + k;
|
||||
} else {
|
||||
line = k + "";
|
||||
}
|
||||
|
||||
//块
|
||||
String piece = i + block;
|
||||
|
||||
//层
|
||||
String layer = "0" + i;
|
||||
|
||||
|
||||
JSONObject jo = new JSONObject();
|
||||
jo.put("struct_id", IdUtil.getSnowflake(1, 1).nextId());
|
||||
jo.put("struct_code", piece + row + "-" + line + "-" + layer);
|
||||
jo.put("struct_name", piece + "区" + row + "排" + line + "列" + layer + "层");
|
||||
jo.put("simple_name", piece + "区" + row + "排" + line + "列" + layer + "层");
|
||||
jo.put("sect_id", "1582991348217286656");
|
||||
jo.put("sect_code", "ZC01");
|
||||
jo.put("sect_name", "主存区");
|
||||
jo.put("stor_id", "1582991156504039424");
|
||||
jo.put("stor_code", "CP01");
|
||||
jo.put("stor_name", "兰州仓库");
|
||||
jo.put("stor_type", "03");
|
||||
jo.put("is_tempstruct", "0");
|
||||
jo.put("row_num", row);
|
||||
jo.put("col_num", line);
|
||||
jo.put("layer_num", layer);
|
||||
jo.put("block_num", piece);
|
||||
jo.put("in_order_seq", 0);
|
||||
jo.put("out_order_seq", max_no);
|
||||
jo.put("in_empty_seq", 0);
|
||||
jo.put("out_empty_seq", 0);
|
||||
jo.put("placement_type", "01");
|
||||
jo.put("create_id", "1");
|
||||
jo.put("create_name", "管理员");
|
||||
jo.put("create_time", DateUtil.now());
|
||||
jo.put("update_optid", "1");
|
||||
jo.put("update_optname", "管理员");
|
||||
jo.put("update_time", DateUtil.now());
|
||||
jo.put("is_delete", "0");
|
||||
jo.put("is_used", "1");
|
||||
jo.put("lock_type", "1");
|
||||
jo.put("material_height_type", "1");
|
||||
WQLObject.getWQLObject("ST_IVT_StructAttr").insert(jo);
|
||||
max_no++;
|
||||
//插入点位
|
||||
JSONObject structMap = new JSONObject();
|
||||
structMap.put("point_id", IdUtil.getSnowflake(1, 1).nextId());
|
||||
structMap.put("point_code", jo.getString("struct_code"));
|
||||
structMap.put("point_name", jo.getString("struct_name"));
|
||||
structMap.put("region_id", "1582991348217286656");
|
||||
structMap.put("region_code", jo.getString("sect_code"));
|
||||
structMap.put("region_name", jo.getString("sect_name"));
|
||||
structMap.put("point_type", "2");
|
||||
structMap.put("point_status", "1");
|
||||
structMap.put("lock_type", jo.getString("lock_type"));
|
||||
structMap.put("block_num", jo.getIntValue("block_num"));
|
||||
structMap.put("row_num", jo.getIntValue("row_num"));
|
||||
structMap.put("col_num", jo.getIntValue("col_num"));
|
||||
structMap.put("layer_num", jo.getIntValue("layer_num"));
|
||||
structMap.put("source_id", jo.getString("struct_id"));
|
||||
structMap.put("create_id", "1");
|
||||
structMap.put("create_name", "管理员");
|
||||
structMap.put("create_time", DateUtil.now());
|
||||
structMap.put("update_optid", "1");
|
||||
structMap.put("update_optname", "管理员");
|
||||
structMap.put("update_time", DateUtil.now());
|
||||
WQLObject.getWQLObject("sch_base_point").insert(structMap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,13 +178,7 @@ sa-token:
|
||||
is-log: false
|
||||
jwt-secret-key: opsjajisdnnca0sdkksdfaaasdfwwq
|
||||
# token 前缀
|
||||
token-prefix:
|
||||
token-prefix: Bearer
|
||||
cookie:
|
||||
# 配置 Cookie 作用域:根据二级域名实现sso登入如lms.sso.com;acs.sso.com
|
||||
domain:
|
||||
|
||||
loki:
|
||||
url: http://localhost:3100/loki/api/v1
|
||||
systemName: lms
|
||||
es:
|
||||
index: lms_log_prod
|
||||
|
||||
Reference in New Issue
Block a user