From b2f279d9a644c946764195bffc3dc5065e283fc5 Mon Sep 17 00:00:00 2001
From: lgh0010 <1746689524@qq.com>
Date: Thu, 3 Mar 2022 23:51:07 +0800
Subject: [PATCH] lgh
---
.../basic/controller/CraftInfoController.java | 89 +++
.../mt/wms/basic/params/CraftInfoParam.java | 53 ++
.../wms/basic/params/CraftInfoQueryParam.java | 31 +
.../wms/basic/service/CraftInfoService.java | 73 ++
.../service/impl/CraftInfoServiceImpl.java | 97 +++
.../java/com/mt/wms/basic/vo/CraftInfoVo.java | 55 ++
.../java/com/mt/wms/core/MyGenerator.java | 2 +-
.../com/mt/wms/core/dal/entity/AlarmInfo.java | 12 +-
.../mt/wms/core/dal/entity/AutoExeTask.java | 26 +-
.../com/mt/wms/core/dal/entity/KilnInfo.java | 12 +-
.../mt/wms/core/dal/entity/ParEleValue.java | 14 +-
.../mt/wms/core/dal/entity/ParGasValue.java | 54 +-
.../wms/core/dal/entity/ParRotSpeedValue.java | 12 +-
.../mt/wms/core/dal/entity/ParTemValue.java | 36 +-
.../mt/wms/core/dal/entity/PlcNameSpace.java | 98 +++
.../com/mt/wms/core/dal/entity/PointInfo.java | 91 +++
.../wms/core/dal/mapper/AlarmInfoMapper.java | 2 +-
.../wms/core/dal/mapper/AlarmInfoMapper.xml | 3 +-
.../core/dal/mapper/AutoExeTaskMapper.java | 2 +-
.../wms/core/dal/mapper/AutoExeTaskMapper.xml | 5 +-
.../wms/core/dal/mapper/KilnInfoMapper.java | 2 +-
.../core/dal/mapper/ParEleValueMapper.java | 2 +-
.../wms/core/dal/mapper/ParEleValueMapper.xml | 3 +-
.../core/dal/mapper/ParGasValueMapper.java | 2 +-
.../wms/core/dal/mapper/ParGasValueMapper.xml | 11 +-
.../dal/mapper/ParRotSpeedValueMapper.java | 2 +-
.../dal/mapper/ParRotSpeedValueMapper.xml | 3 +-
.../core/dal/mapper/ParTemValueMapper.java | 2 +-
.../wms/core/dal/mapper/ParTemValueMapper.xml | 9 +-
.../core/dal/mapper/PlcNameSpaceMapper.java | 16 +
.../core/dal/mapper/PlcNameSpaceMapper.xml | 22 +
.../wms/core/dal/mapper/PointInfoMapper.java | 16 +
.../wms/core/dal/mapper/PointInfoMapper.xml | 21 +
.../core/dal/service/AlarmInfoServiceBiz.java | 2 +-
.../dal/service/AutoExeTaskServiceBiz.java | 2 +-
.../core/dal/service/KilnInfoServiceBiz.java | 2 +-
.../dal/service/ParEleValueServiceBiz.java | 2 +-
.../dal/service/ParGasValueServiceBiz.java | 2 +-
.../service/ParRotSpeedValueServiceBiz.java | 2 +-
.../dal/service/ParTemValueServiceBiz.java | 2 +-
.../dal/service/PlcNameSpaceServiceBiz.java | 16 +
.../core/dal/service/PointInfoServiceBiz.java | 16 +
.../service/impl/AlarmInfoServiceBizImpl.java | 2 +-
.../impl/AutoExeTaskServiceBizImpl.java | 2 +-
.../service/impl/KilnInfoServiceBizImpl.java | 2 +-
.../impl/ParEleValueServiceBizImpl.java | 2 +-
.../impl/ParGasValueServiceBizImpl.java | 2 +-
.../impl/ParRotSpeedValueServiceBizImpl.java | 2 +-
.../impl/ParTemValueServiceBizImpl.java | 2 +-
.../impl/PlcNameSpaceServiceBizImpl.java | 20 +
.../service/impl/PointInfoServiceBizImpl.java | 20 +
.../wms/core/utils/CodeGeneratorHelper.java | 24 +
.../com/mt/wms/core/utils/HttpClient.java | 7 +-
.../empty/controller/AutoTaskController.java | 54 ++
.../empty/controller/CurrTaskController.java | 137 +++-
...cController.java => EnergyController.java} | 52 +-
.../wms/empty/params/AutoCurrTaskParam.java | 24 +
.../mt/wms/empty/params/AutoTaskParam.java | 25 +
.../wms/empty/params/AutoTaskQueryParam.java | 28 +
.../wms/empty/params/ElectricQueryParam.java | 3 +
.../mt/wms/empty/params/StepInfoParam.java | 25 +
.../mt/wms/empty/params/TaskCreateParam.java | 8 +-
.../mt/wms/empty/service/AutoTaskService.java | 51 ++
.../mt/wms/empty/service/CurrTaskService.java | 8 +
.../service/impl/AutoTaskServiceImpl.java | 77 +++
.../service/impl/CurrTaskServiceImpl.java | 33 +-
.../mt/wms/empty/task/AsynRunTaskService.java | 634 +++++++++++++++++-
.../com/mt/wms/empty/task/RunTaskUtils.java | 193 ++++--
.../com/mt/wms/empty/task/ScheduledTask.java | 454 ++++++++++++-
.../mt/wms/empty/task/TaskDistanceUtils.java | 87 ++-
.../wms/empty/task/VehicleCollisionUtils.java | 13 +-
.../java/com/mt/wms/empty/vo/AutoTaskVo.java | 236 +++++++
6.program/wms-gateway/pom.xml | 5 +
73 files changed, 2946 insertions(+), 210 deletions(-)
create mode 100644 6.program/wms-basic/src/main/java/com/mt/wms/basic/controller/CraftInfoController.java
create mode 100644 6.program/wms-basic/src/main/java/com/mt/wms/basic/params/CraftInfoParam.java
create mode 100644 6.program/wms-basic/src/main/java/com/mt/wms/basic/params/CraftInfoQueryParam.java
create mode 100644 6.program/wms-basic/src/main/java/com/mt/wms/basic/service/CraftInfoService.java
create mode 100644 6.program/wms-basic/src/main/java/com/mt/wms/basic/service/impl/CraftInfoServiceImpl.java
create mode 100644 6.program/wms-basic/src/main/java/com/mt/wms/basic/vo/CraftInfoVo.java
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/PlcNameSpace.java
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/PointInfo.java
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PlcNameSpaceMapper.java
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PlcNameSpaceMapper.xml
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PointInfoMapper.java
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PointInfoMapper.xml
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/PlcNameSpaceServiceBiz.java
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/PointInfoServiceBiz.java
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/PlcNameSpaceServiceBizImpl.java
create mode 100644 6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/PointInfoServiceBizImpl.java
create mode 100644 6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/AutoTaskController.java
rename 6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/{ElectricController.java => EnergyController.java} (79%)
create mode 100644 6.program/wms-empty/src/main/java/com/mt/wms/empty/params/AutoCurrTaskParam.java
create mode 100644 6.program/wms-empty/src/main/java/com/mt/wms/empty/params/AutoTaskParam.java
create mode 100644 6.program/wms-empty/src/main/java/com/mt/wms/empty/params/AutoTaskQueryParam.java
create mode 100644 6.program/wms-empty/src/main/java/com/mt/wms/empty/params/StepInfoParam.java
create mode 100644 6.program/wms-empty/src/main/java/com/mt/wms/empty/service/AutoTaskService.java
create mode 100644 6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/AutoTaskServiceImpl.java
create mode 100644 6.program/wms-empty/src/main/java/com/mt/wms/empty/vo/AutoTaskVo.java
diff --git a/6.program/wms-basic/src/main/java/com/mt/wms/basic/controller/CraftInfoController.java b/6.program/wms-basic/src/main/java/com/mt/wms/basic/controller/CraftInfoController.java
new file mode 100644
index 0000000..9e58232
--- /dev/null
+++ b/6.program/wms-basic/src/main/java/com/mt/wms/basic/controller/CraftInfoController.java
@@ -0,0 +1,89 @@
+package com.mt.wms.basic.controller;
+
+import com.mt.wms.basic.params.AlarmBaseParam;
+import com.mt.wms.basic.params.AlarmBaseQueryParam;
+import com.mt.wms.basic.params.CraftInfoParam;
+import com.mt.wms.basic.params.CraftInfoQueryParam;
+import com.mt.wms.basic.service.AlarmBaseService;
+import com.mt.wms.basic.service.CraftInfoService;
+import com.mt.wms.basic.vo.AlarmBaseVo;
+import com.mt.wms.basic.vo.CraftInfoVo;
+import com.mt.wms.core.base.BaseController;
+import com.mt.wms.core.constants.CommonConstant;
+import com.mt.wms.core.params.IdParam;
+import com.mt.wms.core.utils.IDGenerator;
+import com.mt.wms.core.validator.groups.AddGroup;
+import com.mt.wms.core.validator.groups.PageGroup;
+import com.mt.wms.core.validator.groups.UpdateGroup;
+import com.mt.wms.core.vo.IdVo;
+import com.mt.wms.core.vo.PageVo;
+import com.mt.wms.core.vo.R;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.validation.groups.Default;
+import java.util.List;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2021/10/9 11:09
+ * @Version 1.0
+ */
+@RestController
+@RequestMapping(CommonConstant.API_MODULE_BASE + "craftInfo")
+@Slf4j
+@Api(value = "工艺基础信息管理", tags = "工艺基础信息管理", hidden = false)
+public class CraftInfoController extends BaseController {
+
+ @Autowired
+ private CraftInfoService craftInfoService;
+
+ @PostMapping(value = "get")
+ @ApiOperation(value = "获取报警基础信息")
+ private R get(@Validated @RequestBody IdParam idParam) {
+ return craftInfoService.get(idParam);
+ }
+
+ @PostMapping(value = "list")
+ @ApiOperation(value = "获取报警基础信息列表")
+ private R> list(@Validated({Default.class}) @RequestBody CraftInfoQueryParam craftInfoQueryParam) {
+ return craftInfoService.list(craftInfoQueryParam);
+ }
+
+ @PostMapping(value = "page")
+ @ApiOperation(value = "获取分页报警基础信息")
+ private R> page(@Validated({PageGroup.class, Default.class}) @RequestBody CraftInfoQueryParam craftInfoQueryParam) {
+ return craftInfoService.page(craftInfoQueryParam);
+ }
+
+ @PostMapping(value = "add")
+ @ApiOperation(value = "新增")
+ private R add(@Validated({AddGroup.class, Default.class}) @RequestBody CraftInfoParam craftInfoParam) {
+ return craftInfoService.add(craftInfoParam);
+ }
+
+ @PostMapping(value = "update")
+ @ApiOperation(value = "更新")
+ private R update(@Validated({UpdateGroup.class, Default.class}) @RequestBody CraftInfoParam craftInfoParam) {
+ return craftInfoService.update(craftInfoParam);
+ }
+
+ @PostMapping(value = "delete")
+ @ApiOperation(value = "删除报警基础信息")
+ private R delete(@Validated @RequestBody IdParam idParam) {
+ return craftInfoService.delete(idParam);
+ }
+
+ @PostMapping(value = "codeGenerator")
+ @ApiOperation(value = "编码生成")
+ private R codeGenerator() {
+ return successful(IDGenerator.gen("GY", "yyyyMMddHHmm", 2, "CRAFTINFO_CODE"));
+ }
+}
diff --git a/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/CraftInfoParam.java b/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/CraftInfoParam.java
new file mode 100644
index 0000000..c6478ff
--- /dev/null
+++ b/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/CraftInfoParam.java
@@ -0,0 +1,53 @@
+package com.mt.wms.basic.params;
+
+import com.mt.wms.core.base.BaseParam;
+import com.mt.wms.core.validator.groups.UpdateGroup;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+import javax.validation.constraints.NotNull;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2022/1/25 21:34
+ * @Version 1.0
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "工艺基础信息参数对象", description = "用于新增和更新工艺基础信息")
+public class CraftInfoParam extends BaseParam {
+ private static final long serialVersionUID = 1L;
+ /**
+ * 主键,自增
+ */
+ @ApiModelProperty(value = "主键",required = false, example = "1")
+ @NotNull(message = "xxID不能为空", groups = {UpdateGroup.class})
+ private Long id;
+
+ /**
+ * 编码
+ */
+ @ApiModelProperty(value = "编码", example = "1")
+ private String code;
+ /**
+ * 工艺号
+ */
+ @ApiModelProperty(value = "工艺号", example = "1")
+ @NotNull(message = "工艺号不能为空")
+ private String craftCode;
+ /**
+ * plc值
+ */
+ @ApiModelProperty(value = "plc值", example = "1")
+ @NotNull(message = "plc值不能为空")
+ private Integer plcValue;
+ /**
+ * 说明
+ */
+ @ApiModelProperty(value = "说明", example = "1")
+ private String content;
+}
diff --git a/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/CraftInfoQueryParam.java b/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/CraftInfoQueryParam.java
new file mode 100644
index 0000000..6267388
--- /dev/null
+++ b/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/CraftInfoQueryParam.java
@@ -0,0 +1,31 @@
+package com.mt.wms.basic.params;
+
+import com.mt.wms.core.params.BasePageParam;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2022/1/25 21:37
+ * @Version 1.0
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "报警基础信息查询参数", description = "用于查询报警基础信息")
+public class CraftInfoQueryParam extends BasePageParam {
+ /**
+ * 主键,自增
+ */
+ @ApiModelProperty(value = "主键",required = false, example = "1")
+ private Long id;
+
+ /**
+ * 工艺号
+ */
+ @ApiModelProperty(value = "工艺号",required = false, example = "1")
+ private String craftCode;
+}
diff --git a/6.program/wms-basic/src/main/java/com/mt/wms/basic/service/CraftInfoService.java b/6.program/wms-basic/src/main/java/com/mt/wms/basic/service/CraftInfoService.java
new file mode 100644
index 0000000..862c1f2
--- /dev/null
+++ b/6.program/wms-basic/src/main/java/com/mt/wms/basic/service/CraftInfoService.java
@@ -0,0 +1,73 @@
+package com.mt.wms.basic.service;
+
+import com.mt.wms.basic.params.AlarmBaseParam;
+import com.mt.wms.basic.params.AlarmBaseQueryParam;
+import com.mt.wms.basic.params.CraftInfoParam;
+import com.mt.wms.basic.params.CraftInfoQueryParam;
+import com.mt.wms.basic.vo.AlarmBaseVo;
+import com.mt.wms.basic.vo.CraftInfoVo;
+import com.mt.wms.core.dal.entity.CraftInfo;
+import com.mt.wms.core.params.IdParam;
+import com.mt.wms.core.vo.IdVo;
+import com.mt.wms.core.vo.PageVo;
+import com.mt.wms.core.vo.R;
+
+import java.util.List;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2021/10/9 10:46
+ * @Version 1.0
+ */
+public interface CraftInfoService {
+
+ /**
+ * 获取xx
+ *
+ * @param idParam 主键参数
+ * @return xx
+ */
+ R get(IdParam idParam);
+
+ /**
+ * 获取xx列表
+ *
+ * @param craftInfoQueryParam xx查询参数
+ * @return xx列表
+ */
+ R> list(CraftInfoQueryParam craftInfoQueryParam);
+
+ /**
+ * 获取xx分页列表
+ *
+ * @param craftInfoQueryParam xx查询参数
+ * @return xx分页列表
+ */
+ R> page(CraftInfoQueryParam craftInfoQueryParam);
+
+
+ /**
+ * 新增xx
+ *
+ * @param craftInfoParam xx参数
+ * @return 主键
+ */
+ R add(CraftInfoParam craftInfoParam);
+
+ /**
+ * 更新xx
+ *
+ * @param craftInfoParam xx参数
+ * @return 主键
+ */
+ R update(CraftInfoParam craftInfoParam);
+
+
+ /**
+ * 删除xx
+ *
+ * @param idParam 主键参数
+ * @return 主键
+ */
+ R delete(IdParam idParam);
+}
diff --git a/6.program/wms-basic/src/main/java/com/mt/wms/basic/service/impl/CraftInfoServiceImpl.java b/6.program/wms-basic/src/main/java/com/mt/wms/basic/service/impl/CraftInfoServiceImpl.java
new file mode 100644
index 0000000..34fb50b
--- /dev/null
+++ b/6.program/wms-basic/src/main/java/com/mt/wms/basic/service/impl/CraftInfoServiceImpl.java
@@ -0,0 +1,97 @@
+package com.mt.wms.basic.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.mt.wms.basic.params.AlarmBaseParam;
+import com.mt.wms.basic.params.AlarmBaseQueryParam;
+import com.mt.wms.basic.params.CraftInfoParam;
+import com.mt.wms.basic.params.CraftInfoQueryParam;
+import com.mt.wms.basic.service.AlarmBaseService;
+import com.mt.wms.basic.service.CraftInfoService;
+import com.mt.wms.basic.vo.AlarmBaseVo;
+import com.mt.wms.basic.vo.CraftInfoVo;
+import com.mt.wms.core.api.Assert;
+import com.mt.wms.core.base.BaseService;
+import com.mt.wms.core.dal.entity.AlarmBase;
+import com.mt.wms.core.dal.entity.CraftInfo;
+import com.mt.wms.core.dal.service.AlarmBaseServiceBiz;
+import com.mt.wms.core.dal.service.CraftInfoServiceBiz;
+import com.mt.wms.core.errorcode.ApiErrorCode;
+import com.mt.wms.core.params.IdParam;
+import com.mt.wms.core.vo.IdVo;
+import com.mt.wms.core.vo.PageVo;
+import com.mt.wms.core.vo.R;
+import org.apache.commons.lang.StringUtils;
+import org.springframework.beans.BeanUtils;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2021/10/9 10:49
+ * @Version 1.0
+ */
+@Service
+@Transactional
+public class CraftInfoServiceImpl extends BaseService implements CraftInfoService {
+
+ @Resource
+ private CraftInfoServiceBiz craftInfoServiceBiz;
+
+ @Override
+ public R get(IdParam idParam) {
+ Assert.notNull(ApiErrorCode.INVALID_PARAMETER,idParam.getId());
+ CraftInfo craftInfo = craftInfoServiceBiz.getById(idParam.getId());
+ CraftInfoVo craftInfoVo = CraftInfoVo.builder().build();
+ BeanUtils.copyProperties(craftInfo,craftInfoVo);
+ return successful(craftInfoVo);
+ }
+
+ @Override
+ public R> list(CraftInfoQueryParam craftInfoQueryParam) {
+ QueryWrapper wrapper=new QueryWrapper<>();
+ wrapper.eq(CraftInfo.VALID,1);
+ List craftInfoList = craftInfoServiceBiz.list(wrapper);
+ List craftInfoVoList = com.mt.wms.core.utils.BeanUtils.copyList(craftInfoList, CraftInfoVo.class);
+ return successful(craftInfoVoList);
+ }
+
+ @Override
+ public R> page(CraftInfoQueryParam craftInfoQueryParam) {
+ QueryWrapper wrapper=new QueryWrapper<>();
+ wrapper.like(StringUtils.isNotBlank(craftInfoQueryParam.getCraftCode()),CraftInfo.CRAFT_CODE,craftInfoQueryParam.getCraftCode())
+ .orderByDesc(CraftInfo.CREATE_TIME);
+ Page page = craftInfoServiceBiz.page(new Page<>(craftInfoQueryParam.getCurrent(), craftInfoQueryParam.getSize()), wrapper);
+ return successful(new PageVo<>(page,CraftInfoVo.class));
+ }
+
+ @Override
+ public R add(CraftInfoParam craftInfoParam) {
+ QueryWrapper wrapper=new QueryWrapper<>();
+
+ CraftInfo craftInfo=new CraftInfo();
+ BeanUtils.copyProperties(craftInfoParam,craftInfo);
+ setCommonField(craftInfo);
+ craftInfoServiceBiz.save(craftInfo);
+ return successful(IdVo.builder().id(craftInfo.getId()).build());
+ }
+
+ @Override
+ public R update(CraftInfoParam craftInfoParam) {
+ CraftInfo craftInfo = craftInfoServiceBiz.getById(craftInfoParam.getId());
+ CraftInfo updateCraftInfo=new CraftInfo();
+ BeanUtils.copyProperties(craftInfoParam,updateCraftInfo);
+ setUpdateCommonField(updateCraftInfo);
+ craftInfoServiceBiz.updateById(updateCraftInfo);
+ return successful(IdVo.builder().id(updateCraftInfo.getId()).build());
+ }
+
+ @Override
+ public R delete(IdParam idParam) {
+ craftInfoServiceBiz.removeById(idParam.getId());
+ return successful(IdVo.builder().id(idParam.getId()).build());
+ }
+}
diff --git a/6.program/wms-basic/src/main/java/com/mt/wms/basic/vo/CraftInfoVo.java b/6.program/wms-basic/src/main/java/com/mt/wms/basic/vo/CraftInfoVo.java
new file mode 100644
index 0000000..11d0acd
--- /dev/null
+++ b/6.program/wms-basic/src/main/java/com/mt/wms/basic/vo/CraftInfoVo.java
@@ -0,0 +1,55 @@
+package com.mt.wms.basic.vo;
+
+import com.mt.wms.core.base.BaseVo;
+import com.mt.wms.core.vo.PageVo;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import io.swagger.models.auth.In;
+import lombok.Builder;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2022/1/25 21:27
+ * @Version 1.0
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@Builder
+@ApiModel(value = "工艺信息视图对象", description = "用于查询工艺信息信息")
+public class CraftInfoVo extends BaseVo implements PageVo.ConvertVo{
+ /**
+ * 主键,自增
+ */
+ @ApiModelProperty(value = "主键,更新时需要填写", example = "1")
+ private Long id;
+
+ /**
+ * 编码
+ */
+ @ApiModelProperty(value = "编码", example = "1")
+ private String code;
+ /**
+ * 工艺号
+ */
+ @ApiModelProperty(value = "工艺号", example = "1")
+ private String craftCode;
+ /**
+ * plc值
+ */
+ @ApiModelProperty(value = "plc值", example = "1")
+ private Integer plcValue;
+ /**
+ * 状态
+ */
+ @ApiModelProperty(value = "状态", example = "1")
+ private Integer status;
+ /**
+ * 说明
+ */
+ @ApiModelProperty(value = "说明", example = "1")
+ private String content;
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/MyGenerator.java b/6.program/wms-core/src/main/java/com/mt/wms/core/MyGenerator.java
index 2fcbb18..f229ea6 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/MyGenerator.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/MyGenerator.java
@@ -106,7 +106,7 @@ public class MyGenerator {
@Test
public void generateCodeWithInjectConfigForAllTable() {
- generateByTablesWithInjectConfig(new String[]{"t_apms_check_result"});
+ generateByTablesWithInjectConfig(new String[]{"t_auto_exe_task"});
}
public static void main(String[] args) {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/AlarmInfo.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/AlarmInfo.java
index 9f99e45..2d3f6ac 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/AlarmInfo.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/AlarmInfo.java
@@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-02-28
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -92,7 +92,7 @@ public class AlarmInfo extends Model {
* 设备id
*/
@TableField("equipment_id")
- private Integer equipmentId;
+ private Long equipmentId;
/**
* 设备名称
@@ -130,6 +130,12 @@ public class AlarmInfo extends Model {
@TableField("note")
private String note;
+ /**
+ * 加工任务编码(炉子报警时记录)
+ */
+ @TableField("task_code")
+ private String taskCode;
+
public static final String ID = "id";
@@ -165,6 +171,8 @@ public class AlarmInfo extends Model {
public static final String NOTE = "note";
+ public static final String TASK_CODE = "task_code";
+
@Override
protected Serializable pkVal() {
return this.id;
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/AutoExeTask.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/AutoExeTask.java
index 43f43de..d9b3a9e 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/AutoExeTask.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/AutoExeTask.java
@@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
*
*
* @author mt
- * @since 2021-12-14
+ * @since 2022-03-03
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -117,6 +117,12 @@ public class AutoExeTask extends Model {
@TableField("f_equipment_id")
private Long fEquipmentId;
+ /**
+ * 设备名称(炉子名称)
+ */
+ @TableField("f_equipment_name")
+ private String fEquipmentName;
+
/**
* 工艺号ID,关联工艺号表:t_craft_info
*/
@@ -165,6 +171,12 @@ public class AutoExeTask extends Model {
@TableField("t_equipment_type_id")
private Long tEquipmentTypeId;
+ /**
+ * 设备名称
+ */
+ @TableField("t_equipment_name")
+ private String tEquipmentName;
+
/**
* 设备ID,关联设备表:t_kiln_info
*/
@@ -219,6 +231,12 @@ public class AutoExeTask extends Model {
@TableField("th_equipment_type_id")
private Long thEquipmentTypeId;
+ /**
+ * 设备名称
+ */
+ @TableField("th_equipment_name")
+ private String thEquipmentName;
+
/**
* 设备ID,关联设备表:t_kiln_info
*/
@@ -292,6 +310,8 @@ public class AutoExeTask extends Model {
public static final String F_EQUIPMENT_ID = "f_equipment_id";
+ public static final String F_EQUIPMENT_NAME = "f_equipment_name";
+
public static final String F_CRAFT_CODE_ID = "f_craft_code_id";
public static final String F_PLC_VALUE = "f_plc_value";
@@ -308,6 +328,8 @@ public class AutoExeTask extends Model {
public static final String T_EQUIPMENT_TYPE_ID = "t_equipment_type_id";
+ public static final String T_EQUIPMENT_NAME = "t_equipment_name";
+
public static final String T_EQUIPMENT_ID = "t_equipment_id";
public static final String T_CRAFT_CODE_ID = "t_craft_code_id";
@@ -326,6 +348,8 @@ public class AutoExeTask extends Model {
public static final String TH_EQUIPMENT_TYPE_ID = "th_equipment_type_id";
+ public static final String TH_EQUIPMENT_NAME = "th_equipment_name";
+
public static final String TH_EQUIPMENT_ID = "th_equipment_id";
public static final String TH_CRAFT_CODE_ID = "th_craft_code_id";
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/KilnInfo.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/KilnInfo.java
index de2dc14..74c98a7 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/KilnInfo.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/KilnInfo.java
@@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-02-28
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -71,7 +71,7 @@ public class KilnInfo extends Model {
private String version;
/**
- * 状态 0初始化,1损坏
+ * 状态 0初始化,1损坏 ,2 工作中
*/
@TableField("status")
private Integer status;
@@ -83,7 +83,7 @@ public class KilnInfo extends Model {
private String interCode;
/**
- * 编码
+ * 编码 必须与AMPS相同
*/
@TableField("code")
private String code;
@@ -95,7 +95,7 @@ public class KilnInfo extends Model {
private Integer factoryId;
/**
- * 窑炉名称
+ * 窑炉名称 建议与AMPS相同
*/
@TableField("kiln_name")
private String kilnName;
@@ -113,10 +113,10 @@ public class KilnInfo extends Model {
private String en;
/**
- * 设备类型,存储数据字典编码
+ * 设备类型,存储数据字典编码,修改为1:加工炉,2:回火炉,3:氮化炉,4:清洗炉
*/
@TableField("type")
- private String type;
+ private Integer type;
/**
* ip地址
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParEleValue.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParEleValue.java
index 173b6e1..ff044d3 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParEleValue.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParEleValue.java
@@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
*
*
* @author mt
- * @since 2021-12-27
+ * @since 2022-03-01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -53,7 +53,13 @@ public class ParEleValue extends Model {
* 窑炉id,关联设备窑炉表:t_kiln_info
*/
@TableField("kiln_id")
- private Integer kilnId;
+ private Long kilnId;
+
+ /**
+ * 任务id
+ */
+ @TableField("task_id")
+ private Long taskId;
/**
* 参数id,关联参数表:t_par_info
@@ -104,7 +110,7 @@ public class ParEleValue extends Model {
private Float totalBat;
/**
- * 时间段类型。0:半小时,1:天,2:月
+ * 时间段类型。0:半小时,1:天,2:月
*/
@TableField("date_type")
private Integer dateType;
@@ -150,6 +156,8 @@ public class ParEleValue extends Model {
public static final String KILN_ID = "kiln_id";
+ public static final String TASK_ID = "task_id";
+
public static final String PAR_ID = "par_id";
public static final String A_VOLTAGEV_VALUE = "a_voltagev_value";
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParGasValue.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParGasValue.java
index f85d211..c377257 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParGasValue.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParGasValue.java
@@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -53,7 +53,13 @@ public class ParGasValue extends Model {
* 窑炉id,关联设备窑炉表:t_kiln_info
*/
@TableField("kiln_id")
- private Integer kilnId;
+ private Long kilnId;
+
+ /**
+ * 任务id
+ */
+ @TableField("task_id")
+ private Long taskId;
/**
* 参数id,关联参数表:t_par_info
@@ -62,13 +68,13 @@ public class ParGasValue extends Model {
private Integer parId;
/**
- * 设定氮势值
+ * 设定氮/碳势值
*/
@TableField("set_nit_pot_value")
private Float setNitPotValue;
/**
- * 实际氮势值
+ * 实际氮/碳势值
*/
@TableField("actual_nit_pot_value")
private Float actualNitPotValue;
@@ -80,46 +86,46 @@ public class ParGasValue extends Model {
private Float acceptNitPotValue;
/**
- * 氮气流量
+ * 氮气量
*/
@TableField("nit_flow_value")
private Float nitFlowValue;
/**
- * 氨气流量
+ * 氨气量
*/
@TableField("ammonia_flow_value")
private Float ammoniaFlowValue;
/**
- * 二氧化碳流量
+ * 二氧化碳量
*/
@TableField("car_dioxide_flow_value")
private Float carDioxideFlowValue;
/**
- * 扩展字段1
+ * 甲烷量
*/
- @TableField("add_a")
- private Float addA;
+ @TableField("methanol_flow")
+ private Float methanolFlow;
/**
- * 扩展字段2
+ * 丙烷量
*/
- @TableField("add_b")
- private Float addB;
+ @TableField("propane_flow")
+ private Float propaneFlow;
/**
- * 扩展字段3
+ * 氢含量
*/
- @TableField("add_c")
- private Float addC;
+ @TableField("hydrogen_content")
+ private Float hydrogenContent;
/**
- * 扩展字段4
+ * 分解率
*/
- @TableField("orther_a")
- private String ortherA;
+ @TableField("decomposition_rate")
+ private Float decompositionRate;
/**
* 扩展字段5
@@ -144,6 +150,8 @@ public class ParGasValue extends Model {
public static final String KILN_ID = "kiln_id";
+ public static final String TASK_ID = "task_id";
+
public static final String PAR_ID = "par_id";
public static final String SET_NIT_POT_VALUE = "set_nit_pot_value";
@@ -158,13 +166,13 @@ public class ParGasValue extends Model {
public static final String CAR_DIOXIDE_FLOW_VALUE = "car_dioxide_flow_value";
- public static final String ADD_A = "add_a";
+ public static final String METHANOL_FLOW = "methanol_flow";
- public static final String ADD_B = "add_b";
+ public static final String PROPANE_FLOW = "propane_flow";
- public static final String ADD_C = "add_c";
+ public static final String HYDROGEN_CONTENT = "hydrogen_content";
- public static final String ORTHER_A = "orther_a";
+ public static final String DECOMPOSITION_RATE = "decomposition_rate";
public static final String ORTHER_B = "orther_b";
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParRotSpeedValue.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParRotSpeedValue.java
index 2de692e..5ed725a 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParRotSpeedValue.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParRotSpeedValue.java
@@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -53,7 +53,13 @@ public class ParRotSpeedValue extends Model {
* 窑炉id,关联设备窑炉表:t_kiln_info
*/
@TableField("kiln_id")
- private Integer kilnId;
+ private Long kilnId;
+
+ /**
+ * 任务id
+ */
+ @TableField("task_id")
+ private Long taskId;
/**
* 参数id,关联参数表:t_par_info
@@ -156,6 +162,8 @@ public class ParRotSpeedValue extends Model {
public static final String KILN_ID = "kiln_id";
+ public static final String TASK_ID = "task_id";
+
public static final String PAR_ID = "par_id";
public static final String FAN_SPEED_A_VALUE = "fan_speed_a_value";
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParTemValue.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParTemValue.java
index 227b20a..92fdd77 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParTemValue.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/ParTemValue.java
@@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -53,7 +53,13 @@ public class ParTemValue extends Model {
* 窑炉id,关联设备窑炉表:t_kiln_info
*/
@TableField("kiln_id")
- private Integer kilnId;
+ private Long kilnId;
+
+ /**
+ * 任务id
+ */
+ @TableField("task_id")
+ private Long taskId;
/**
* 参数id,关联参数表:t_par_info
@@ -98,22 +104,22 @@ public class ParTemValue extends Model {
private Float takeOverOilSetTemValue;
/**
- * 扩展字段1
+ * 外一区温度
*/
- @TableField("add_a")
- private Float addA;
+ @TableField("outer_zone1_temp")
+ private Float outerZone1Temp;
/**
- * 扩展字段2
+ * 外二区温度
*/
- @TableField("add_b")
- private Float addB;
+ @TableField("outer_zone2_temp")
+ private Float outerZone2Temp;
/**
- * 扩展字段3
+ * 炉压
*/
- @TableField("add_c")
- private Float addC;
+ @TableField("furnace_pressure")
+ private Float furnacePressure;
/**
* 扩展字段4
@@ -144,6 +150,8 @@ public class ParTemValue extends Model {
public static final String KILN_ID = "kiln_id";
+ public static final String TASK_ID = "task_id";
+
public static final String PAR_ID = "par_id";
public static final String SET_TEM_VALUE = "set_tem_value";
@@ -158,11 +166,11 @@ public class ParTemValue extends Model {
public static final String TAKE_OVER_OIL_SET_TEM_VALUE = "take_over_oil_set_tem_value";
- public static final String ADD_A = "add_a";
+ public static final String OUTER_ZONE1_TEMP = "outer_zone1_temp";
- public static final String ADD_B = "add_b";
+ public static final String OUTER_ZONE2_TEMP = "outer_zone2_temp";
- public static final String ADD_C = "add_c";
+ public static final String FURNACE_PRESSURE = "furnace_pressure";
public static final String ORTHER_A = "orther_a";
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/PlcNameSpace.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/PlcNameSpace.java
new file mode 100644
index 0000000..7e171bb
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/PlcNameSpace.java
@@ -0,0 +1,98 @@
+package com.mt.wms.core.dal.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.Version;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ *
+ * PLC变量nameSpace对照表
+ *
+ *
+ * @author mt
+ * @since 2022-02-28
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("t_plc_name_space")
+public class PlcNameSpace extends Model {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * id
+ */
+ @TableField("id")
+ private Long id;
+
+ /**
+ * 设备类型,1:多用加工炉,2:氮化炉,3:回火炉,4:清洗机,5:rgv
+ */
+ @TableField("eq_type")
+ private Integer eqType;
+
+ /**
+ * 变量名称
+ */
+ @TableField("name")
+ private String name;
+
+ /**
+ * 变量的含义
+ */
+ @TableField("note")
+ private String note;
+
+ /**
+ * 设备id
+ */
+ @TableField("eq_id")
+ private Long eqId;
+
+ /**
+ * 设备名称
+ */
+ @TableField("eq_name")
+ private String eqName;
+
+ /**
+ * 变量类型,0:变量,1:报警变量
+ */
+ @TableField("type")
+ private Integer type;
+
+ /**
+ * 备注
+ */
+ @TableField("remark")
+ private String remark;
+
+
+ public static final String ID = "id";
+
+ public static final String EQ_TYPE = "eq_type";
+
+ public static final String NAME = "name";
+
+ public static final String NOTE = "note";
+
+ public static final String EQ_ID = "eq_id";
+
+ public static final String EQ_NAME = "eq_name";
+
+ public static final String TYPE = "type";
+
+ public static final String REMARK = "remark";
+
+ @Override
+ protected Serializable pkVal() {
+ return null;
+ }
+
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/PointInfo.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/PointInfo.java
new file mode 100644
index 0000000..ce91718
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/PointInfo.java
@@ -0,0 +1,91 @@
+package com.mt.wms.core.dal.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import java.time.LocalDate;
+import com.baomidou.mybatisplus.annotation.Version;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ *
+ * 点位信息表
+ *
+ *
+ * @author mt
+ * @since 2022-03-02
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("t_point_info")
+public class PointInfo extends Model {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * id
+ */
+ @TableField("id")
+ private Integer id;
+
+ /**
+ * 点位编码,对应plc
+ */
+ @TableField("code")
+ private Long code;
+
+ /**
+ * 点位对应的设备名称
+ */
+ @TableField("name")
+ private String name;
+
+ /**
+ * 点位说明;关联对应表数据的code,窑炉code,库位code等等
+ */
+ @TableField("note")
+ private String note;
+
+ /**
+ * 类型:1 炉子,2 液压台,3 库位
+ */
+ @TableField("type")
+ private Integer type;
+
+ /**
+ * 距离原点的距离
+ */
+ @TableField("distance")
+ private Double distance;
+
+ /**
+ * 创建时间
+ */
+ @TableField("create_time")
+ private LocalDate createTime;
+
+
+ public static final String ID = "id";
+
+ public static final String CODE = "code";
+
+ public static final String NAME = "name";
+
+ public static final String NOTE = "note";
+
+ public static final String TYPE = "type";
+
+ public static final String DISTANCE = "distance";
+
+ public static final String CREATE_TIME = "create_time";
+
+ @Override
+ protected Serializable pkVal() {
+ return null;
+ }
+
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AlarmInfoMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AlarmInfoMapper.java
index efcd14a..10b3ddb 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AlarmInfoMapper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AlarmInfoMapper.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-02-28
*/
public interface AlarmInfoMapper extends BaseMapper {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AlarmInfoMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AlarmInfoMapper.xml
index 583af1b..0bb44af 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AlarmInfoMapper.xml
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AlarmInfoMapper.xml
@@ -21,11 +21,12 @@
+
- id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, code, equipment_id, equipment_name, type, alarm_code, alarm_info, description, note
+ id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, code, equipment_id, equipment_name, type, alarm_code, alarm_info, description, note, task_code
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AutoExeTaskMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AutoExeTaskMapper.java
index 30b7379..5770058 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AutoExeTaskMapper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AutoExeTaskMapper.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*
*
* @author mt
- * @since 2021-12-14
+ * @since 2022-03-03
*/
public interface AutoExeTaskMapper extends BaseMapper {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AutoExeTaskMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AutoExeTaskMapper.xml
index 65ed0ca..689b00e 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AutoExeTaskMapper.xml
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/AutoExeTaskMapper.xml
@@ -19,6 +19,7 @@
+
@@ -27,6 +28,7 @@
+
@@ -36,6 +38,7 @@
+
@@ -47,7 +50,7 @@
- id, valid, create_time, status, inter_code, process_flow_id, process_flow_name, process_flow_type, craft_code_id, craft_code, warehouse_id, f_task_id, f_det_task_code, f_equipment_type_id, f_equipment_id, f_craft_code_id, f_plc_value, f_in_tran_status, f_pro_status, f_out_tran_status, t_task_id, t_det_task_code, t_equipment_type_id, t_equipment_id, t_craft_code_id, t_plc_value, t_in_tran_status, t_pro_status, t_out_tran_status, th_task_id, th_det_task_code, th_equipment_type_id, th_equipment_id, th_craft_code_id, th_plc_value, th_in_tran_status, th_pro_status, th_out_tran_status, content
+ id, valid, create_time, status, inter_code, process_flow_id, process_flow_name, process_flow_type, craft_code_id, craft_code, warehouse_id, f_task_id, f_det_task_code, f_equipment_type_id, f_equipment_id, f_equipment_name, f_craft_code_id, f_plc_value, f_in_tran_status, f_pro_status, f_out_tran_status, t_task_id, t_det_task_code, t_equipment_type_id, t_equipment_name, t_equipment_id, t_craft_code_id, t_plc_value, t_in_tran_status, t_pro_status, t_out_tran_status, th_task_id, th_det_task_code, th_equipment_type_id, th_equipment_name, th_equipment_id, th_craft_code_id, th_plc_value, th_in_tran_status, th_pro_status, th_out_tran_status, content
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/KilnInfoMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/KilnInfoMapper.java
index 12ad5da..c67d846 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/KilnInfoMapper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/KilnInfoMapper.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-02-28
*/
public interface KilnInfoMapper extends BaseMapper {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParEleValueMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParEleValueMapper.java
index 9f2ff8d..3ef60b5 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParEleValueMapper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParEleValueMapper.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*
*
* @author mt
- * @since 2021-12-27
+ * @since 2022-03-01
*/
public interface ParEleValueMapper extends BaseMapper {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParEleValueMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParEleValueMapper.xml
index b49df70..d3287af 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParEleValueMapper.xml
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParEleValueMapper.xml
@@ -9,6 +9,7 @@
+
@@ -27,7 +28,7 @@
- id, create_time, inter_code, status, kiln_id, par_id, a_voltagev_value, b_voltagev_value, c_voltagev_value, a_current_value, b_current_value, c_current_value, total_bat, date_type, add_b, add_c, orther_a, orther_b, orther_c
+ id, create_time, inter_code, status, kiln_id, task_id, par_id, a_voltagev_value, b_voltagev_value, c_voltagev_value, a_current_value, b_current_value, c_current_value, total_bat, date_type, add_b, add_c, orther_a, orther_b, orther_c
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParGasValueMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParGasValueMapper.java
index 90b0338..d28761c 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParGasValueMapper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParGasValueMapper.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
public interface ParGasValueMapper extends BaseMapper {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParGasValueMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParGasValueMapper.xml
index 2300bb1..c3444ad 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParGasValueMapper.xml
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParGasValueMapper.xml
@@ -9,6 +9,7 @@
+
@@ -16,17 +17,17 @@
-
-
-
-
+
+
+
+
- id, create_time, inter_code, status, kiln_id, par_id, set_nit_pot_value, actual_nit_pot_value, accept_nit_pot_value, nit_flow_value, ammonia_flow_value, car_dioxide_flow_value, add_a, add_b, add_c, orther_a, orther_b, orther_c
+ id, create_time, inter_code, status, kiln_id, task_id, par_id, set_nit_pot_value, actual_nit_pot_value, accept_nit_pot_value, nit_flow_value, ammonia_flow_value, car_dioxide_flow_value, methanol_flow, propane_flow, hydrogen_content, decomposition_rate, orther_b, orther_c
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParRotSpeedValueMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParRotSpeedValueMapper.java
index 459939d..0be2e6c 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParRotSpeedValueMapper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParRotSpeedValueMapper.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
public interface ParRotSpeedValueMapper extends BaseMapper {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParRotSpeedValueMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParRotSpeedValueMapper.xml
index da49be0..f6de4ae 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParRotSpeedValueMapper.xml
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParRotSpeedValueMapper.xml
@@ -9,6 +9,7 @@
+
@@ -28,7 +29,7 @@
- id, create_time, inter_code, status, kiln_id, par_id, fan_speed_a_value, fan_speed_b_value, oil_sti_speed_a_value, oil_sti_speed_b_value, oil_sti_speed_c_value, oil_sti_speed_d_value, oil_sti_speed_e_value, oil_sti_speed_f_value, add_a, add_b, add_c, orther_a, orther_b, orther_c
+ id, create_time, inter_code, status, kiln_id, task_id, par_id, fan_speed_a_value, fan_speed_b_value, oil_sti_speed_a_value, oil_sti_speed_b_value, oil_sti_speed_c_value, oil_sti_speed_d_value, oil_sti_speed_e_value, oil_sti_speed_f_value, add_a, add_b, add_c, orther_a, orther_b, orther_c
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParTemValueMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParTemValueMapper.java
index a878f79..a32b277 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParTemValueMapper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParTemValueMapper.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
public interface ParTemValueMapper extends BaseMapper {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParTemValueMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParTemValueMapper.xml
index 5ff43f3..653b053 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParTemValueMapper.xml
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/ParTemValueMapper.xml
@@ -9,6 +9,7 @@
+
@@ -16,9 +17,9 @@
-
-
-
+
+
+
@@ -26,7 +27,7 @@
- id, create_time, inter_code, status, kiln_id, par_id, set_tem_value, act_tem_value, oil_tank_act_tem_value, oil_tank_set_tem_value, take_over_set_tem_value, take_over_oil_set_tem_value, add_a, add_b, add_c, orther_a, orther_b, orther_c
+ id, create_time, inter_code, status, kiln_id, task_id, par_id, set_tem_value, act_tem_value, oil_tank_act_tem_value, oil_tank_set_tem_value, take_over_set_tem_value, take_over_oil_set_tem_value, outer_zone1_temp, outer_zone2_temp, furnace_pressure, orther_a, orther_b, orther_c
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PlcNameSpaceMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PlcNameSpaceMapper.java
new file mode 100644
index 0000000..4801fec
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PlcNameSpaceMapper.java
@@ -0,0 +1,16 @@
+package com.mt.wms.core.dal.mapper;
+
+import com.mt.wms.core.dal.entity.PlcNameSpace;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * PLC变量nameSpace对照表 Mapper 接口
+ *
+ *
+ * @author mt
+ * @since 2022-02-28
+ */
+public interface PlcNameSpaceMapper extends BaseMapper {
+
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PlcNameSpaceMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PlcNameSpaceMapper.xml
new file mode 100644
index 0000000..4a5026e
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PlcNameSpaceMapper.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, eq_type, name, note, eq_id, eq_name, type, remark
+
+
+
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PointInfoMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PointInfoMapper.java
new file mode 100644
index 0000000..0569c1c
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PointInfoMapper.java
@@ -0,0 +1,16 @@
+package com.mt.wms.core.dal.mapper;
+
+import com.mt.wms.core.dal.entity.PointInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ *
+ * 点位信息表 Mapper 接口
+ *
+ *
+ * @author mt
+ * @since 2022-03-02
+ */
+public interface PointInfoMapper extends BaseMapper {
+
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PointInfoMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PointInfoMapper.xml
new file mode 100644
index 0000000..338679c
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/PointInfoMapper.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, code, name, note, type, distance, create_time
+
+
+
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/AlarmInfoServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/AlarmInfoServiceBiz.java
index 041b3aa..61e90ab 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/AlarmInfoServiceBiz.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/AlarmInfoServiceBiz.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-02-28
*/
public interface AlarmInfoServiceBiz extends IService {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/AutoExeTaskServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/AutoExeTaskServiceBiz.java
index 300aeb1..b8c8da7 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/AutoExeTaskServiceBiz.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/AutoExeTaskServiceBiz.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*
*
* @author mt
- * @since 2021-12-14
+ * @since 2022-03-03
*/
public interface AutoExeTaskServiceBiz extends IService {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/KilnInfoServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/KilnInfoServiceBiz.java
index 21b0b85..ff51ddc 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/KilnInfoServiceBiz.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/KilnInfoServiceBiz.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-02-28
*/
public interface KilnInfoServiceBiz extends IService {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParEleValueServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParEleValueServiceBiz.java
index ada7c94..5ad49eb 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParEleValueServiceBiz.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParEleValueServiceBiz.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*
*
* @author mt
- * @since 2021-12-27
+ * @since 2022-03-01
*/
public interface ParEleValueServiceBiz extends IService {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParGasValueServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParGasValueServiceBiz.java
index 9bceed2..29226f5 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParGasValueServiceBiz.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParGasValueServiceBiz.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
public interface ParGasValueServiceBiz extends IService {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParRotSpeedValueServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParRotSpeedValueServiceBiz.java
index 0d8017f..65257d2 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParRotSpeedValueServiceBiz.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParRotSpeedValueServiceBiz.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
public interface ParRotSpeedValueServiceBiz extends IService {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParTemValueServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParTemValueServiceBiz.java
index d93f2e8..af57376 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParTemValueServiceBiz.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/ParTemValueServiceBiz.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
public interface ParTemValueServiceBiz extends IService {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/PlcNameSpaceServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/PlcNameSpaceServiceBiz.java
new file mode 100644
index 0000000..5abbed7
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/PlcNameSpaceServiceBiz.java
@@ -0,0 +1,16 @@
+package com.mt.wms.core.dal.service;
+
+import com.mt.wms.core.dal.entity.PlcNameSpace;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ * PLC变量nameSpace对照表 服务类
+ *
+ *
+ * @author mt
+ * @since 2022-02-28
+ */
+public interface PlcNameSpaceServiceBiz extends IService {
+
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/PointInfoServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/PointInfoServiceBiz.java
new file mode 100644
index 0000000..b3950db
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/PointInfoServiceBiz.java
@@ -0,0 +1,16 @@
+package com.mt.wms.core.dal.service;
+
+import com.mt.wms.core.dal.entity.PointInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ * 点位信息表 服务类
+ *
+ *
+ * @author mt
+ * @since 2022-03-02
+ */
+public interface PointInfoServiceBiz extends IService {
+
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/AlarmInfoServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/AlarmInfoServiceBizImpl.java
index 73f1564..269d7fa 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/AlarmInfoServiceBizImpl.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/AlarmInfoServiceBizImpl.java
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-02-28
*/
@Service
public class AlarmInfoServiceBizImpl extends ServiceImpl implements AlarmInfoServiceBiz {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/AutoExeTaskServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/AutoExeTaskServiceBizImpl.java
index c19bd7c..e6072f0 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/AutoExeTaskServiceBizImpl.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/AutoExeTaskServiceBizImpl.java
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*
*
* @author mt
- * @since 2021-12-14
+ * @since 2022-03-03
*/
@Service
public class AutoExeTaskServiceBizImpl extends ServiceImpl implements AutoExeTaskServiceBiz {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/KilnInfoServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/KilnInfoServiceBizImpl.java
index e2e3158..23f78f5 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/KilnInfoServiceBizImpl.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/KilnInfoServiceBizImpl.java
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-02-28
*/
@Service
public class KilnInfoServiceBizImpl extends ServiceImpl implements KilnInfoServiceBiz {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParEleValueServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParEleValueServiceBizImpl.java
index e55672d..aa3e822 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParEleValueServiceBizImpl.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParEleValueServiceBizImpl.java
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*
*
* @author mt
- * @since 2021-12-27
+ * @since 2022-03-01
*/
@Service
public class ParEleValueServiceBizImpl extends ServiceImpl implements ParEleValueServiceBiz {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParGasValueServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParGasValueServiceBizImpl.java
index 07870cd..2baf129 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParGasValueServiceBizImpl.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParGasValueServiceBizImpl.java
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
@Service
public class ParGasValueServiceBizImpl extends ServiceImpl implements ParGasValueServiceBiz {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParRotSpeedValueServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParRotSpeedValueServiceBizImpl.java
index a8c1f10..bacce4f 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParRotSpeedValueServiceBizImpl.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParRotSpeedValueServiceBizImpl.java
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
@Service
public class ParRotSpeedValueServiceBizImpl extends ServiceImpl implements ParRotSpeedValueServiceBiz {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParTemValueServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParTemValueServiceBizImpl.java
index 80abb00..ee1b3a3 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParTemValueServiceBizImpl.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/ParTemValueServiceBizImpl.java
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2022-03-01
*/
@Service
public class ParTemValueServiceBizImpl extends ServiceImpl implements ParTemValueServiceBiz {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/PlcNameSpaceServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/PlcNameSpaceServiceBizImpl.java
new file mode 100644
index 0000000..2f85252
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/PlcNameSpaceServiceBizImpl.java
@@ -0,0 +1,20 @@
+package com.mt.wms.core.dal.service.impl;
+
+import com.mt.wms.core.dal.entity.PlcNameSpace;
+import com.mt.wms.core.dal.mapper.PlcNameSpaceMapper;
+import com.mt.wms.core.dal.service.PlcNameSpaceServiceBiz;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * PLC变量nameSpace对照表 服务实现类
+ *
+ *
+ * @author mt
+ * @since 2022-02-28
+ */
+@Service
+public class PlcNameSpaceServiceBizImpl extends ServiceImpl implements PlcNameSpaceServiceBiz {
+
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/PointInfoServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/PointInfoServiceBizImpl.java
new file mode 100644
index 0000000..753a588
--- /dev/null
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/PointInfoServiceBizImpl.java
@@ -0,0 +1,20 @@
+package com.mt.wms.core.dal.service.impl;
+
+import com.mt.wms.core.dal.entity.PointInfo;
+import com.mt.wms.core.dal.mapper.PointInfoMapper;
+import com.mt.wms.core.dal.service.PointInfoServiceBiz;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * 点位信息表 服务实现类
+ *
+ *
+ * @author mt
+ * @since 2022-03-02
+ */
+@Service
+public class PointInfoServiceBizImpl extends ServiceImpl implements PointInfoServiceBiz {
+
+}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/utils/CodeGeneratorHelper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/utils/CodeGeneratorHelper.java
index 521cdab..30fbb06 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/utils/CodeGeneratorHelper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/utils/CodeGeneratorHelper.java
@@ -27,7 +27,23 @@ public class CodeGeneratorHelper {
*/
public static final String ORDER_CODE = "ORDER_CODE";
+ /**
+ * 报警编码
+ */
+ public static final String ALARM_CODE = "ALARM_CODE";
+ /**
+ * 自动任务编码
+ */
+ public static final String AUTO_TASK_CODE = "AUTO_TASK_CODE";
+ /**
+ * 生成自动任务编码
+ *
+ * @return 订单编号
+ */
+ public static String getAutoTaskCode() {
+ return IDGenerator.gen("ZD", "yyyyMMdd", 6, AUTO_TASK_CODE);
+ }
/**
* 生成订单编号
*
@@ -36,5 +52,13 @@ public class CodeGeneratorHelper {
public static String getOrderCode() {
return IDGenerator.gen("20", "yyyyMMdd", 6, ORDER_CODE);
}
+ /**
+ * 生成报警编码
+ *
+ * @return 报警编码
+ */
+ public static String getAlarmCode() {
+ return IDGenerator.gen("BJ", "yyyyMMdd", 6, ALARM_CODE);
+ }
}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/utils/HttpClient.java b/6.program/wms-core/src/main/java/com/mt/wms/core/utils/HttpClient.java
index 917f248..ed1b953 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/utils/HttpClient.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/utils/HttpClient.java
@@ -27,6 +27,7 @@ import java.io.IOException;
import java.nio.charset.Charset;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
+import java.util.concurrent.TimeUnit;
/**
* 使用 OKhttp 请求 Api 数据
@@ -46,7 +47,11 @@ public class HttpClient {
}
public static String httpPost(String url, String json) throws IOException {
- OkHttpClient httpClient = new OkHttpClient();
+ //OkHttpClient httpClient = new OkHttpClient();
+ OkHttpClient httpClient = new OkHttpClient().newBuilder().connectTimeout(300L, TimeUnit.SECONDS)
+ .writeTimeout(300, TimeUnit.SECONDS)
+ .readTimeout(300, TimeUnit.SECONDS)
+ .build();
RequestBody requestBody = RequestBody.create(JSON, json);
Request request = new Request.Builder()
.url(url)
diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/AutoTaskController.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/AutoTaskController.java
new file mode 100644
index 0000000..e566688
--- /dev/null
+++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/AutoTaskController.java
@@ -0,0 +1,54 @@
+package com.mt.wms.empty.controller;
+
+import com.mt.wms.core.base.BaseController;
+import com.mt.wms.core.constants.CommonConstant;
+import com.mt.wms.core.params.IdParam;
+import com.mt.wms.core.validator.groups.PageGroup;
+import com.mt.wms.core.vo.IdVo;
+import com.mt.wms.core.vo.PageVo;
+import com.mt.wms.core.vo.R;
+import com.mt.wms.empty.params.AutoTaskQueryParam;
+import com.mt.wms.empty.service.AutoTaskService;
+import com.mt.wms.empty.vo.AutoTaskVo;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.validation.groups.Default;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2022/3/3 23:35
+ * @Version 1.0
+ */
+@RestController
+@RequestMapping(CommonConstant.API_MODULE_BASE + "autoTask")
+@Slf4j
+@Api(value = "自动任务相关接口", tags = "自动任务相关接口", hidden = false)
+public class AutoTaskController extends BaseController {
+ @Autowired
+ private AutoTaskService autoTaskService;
+
+ @PostMapping(value = "get")
+ @ApiOperation(value = "获取自动任务基础信息")
+ private R get(@Validated @RequestBody IdParam idParam) {
+ return autoTaskService.get(idParam);
+ }
+
+
+ @PostMapping(value = "page")
+ @ApiOperation(value = "获取分页自动任务基础信息")
+ private R> page(@Validated({PageGroup.class, Default.class}) @RequestBody AutoTaskQueryParam autoTaskQueryParam) {
+ return autoTaskService.page(autoTaskQueryParam);
+ }
+
+ private R stop(@Validated @RequestBody IdParam idParam){
+ return autoTaskService.stop(idParam);
+ }
+}
diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/CurrTaskController.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/CurrTaskController.java
index 9defeb6..a55d2de 100644
--- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/CurrTaskController.java
+++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/CurrTaskController.java
@@ -1,19 +1,23 @@
package com.mt.wms.empty.controller;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
import com.mt.wms.basic.service.KilnInfoService;
import com.mt.wms.basic.vo.KilnInfoVo;
import com.mt.wms.core.base.BaseController;
import com.mt.wms.core.constants.CommonConstant;
+import com.mt.wms.core.dal.entity.AutoExeTask;
import com.mt.wms.core.dal.entity.CurrTask;
+import com.mt.wms.core.dal.service.AutoExeTaskServiceBiz;
+import com.mt.wms.core.dal.service.CurrTaskServiceBiz;
import com.mt.wms.core.params.BasePageParam;
import com.mt.wms.core.params.IdParam;
+import com.mt.wms.core.utils.CodeGeneratorHelper;
+import com.mt.wms.core.utils.HttpClient;
import com.mt.wms.core.vo.IdVo;
import com.mt.wms.core.vo.PageVo;
import com.mt.wms.core.vo.R;
-import com.mt.wms.empty.params.ApmsCreateProcessSheet;
-import com.mt.wms.empty.params.CreateItem;
-import com.mt.wms.empty.params.CurrTaskQueryParam;
-import com.mt.wms.empty.params.TaskCreateParam;
+import com.mt.wms.empty.params.*;
import com.mt.wms.empty.service.CurrTaskDetService;
import com.mt.wms.empty.service.CurrTaskService;
import com.mt.wms.empty.service.OrderInfoService;
@@ -24,6 +28,8 @@ import com.mt.wms.empty.vo.CurrTaskQueryVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
@@ -31,10 +37,10 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
+import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
-import java.util.ArrayList;
-import java.util.Map;
+import java.util.*;
/**
* @author xcc
@@ -56,6 +62,11 @@ public class CurrTaskController extends BaseController {
private ApmsController apmsControl;
@Autowired
private KilnInfoService kilnInfoService;
+ @Autowired
+ private CurrTaskServiceBiz currTaskServiceBiz;
+ @Autowired
+ private AutoExeTaskServiceBiz autoExeTaskServiceBiz;
+
@PostMapping(value = "createProcessTask")
@ApiOperation(value = "订单加工-创建一个加工任务至任务队列")
@@ -124,6 +135,114 @@ public class CurrTaskController extends BaseController {
}
}
+ @PostMapping(value = "createAutoTask")
+ @ApiOperation(value = "订单加工-创建多个个分步骤加工任务至任务队列")
+ public R createAutoTask(@Validated @RequestBody AutoCurrTaskParam autoCurrTaskParam){
+ List detParams = autoCurrTaskParam.getDetParams();
+ //自动任务循环添加多条currTask
+ AutoExeTask autoExeTask=new AutoExeTask();
+ for (TaskCreateParam param:detParams
+ ) {
+ //验证标识卡号正确无误。
+ orderInfoService.verifyTaskInfoByIdenCardNum(param.getDetParams());
+ //验证炉子编码信息在apms正确无误
+ R kilnInfoVoR = kilnInfoService.get(IdParam.builder().id(param.getKilnId()).build());
+ String kilnCode = kilnInfoVoR.getData().getCode();
+ R bm = apmsControl.getStoveCodeByWorkShopCode("BM");
+ ArrayList