This commit is contained in:
徐晨晨 2021-11-18 11:21:27 +08:00
commit aecf651292
212 changed files with 1148 additions and 244 deletions

View File

@ -0,0 +1,51 @@
package com.mt.wms.basic.controller;
import com.mt.wms.basic.params.CommunicationQueryParam;
import com.mt.wms.basic.service.CommunicationService;
import com.mt.wms.basic.vo.CommunicationVo;
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.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/11/18 10:34
* @Version 1.0
*/
@RestController
@RequestMapping(CommonConstant.API_MODULE_BASE + "communication")
@Slf4j
@Api(value = "通讯日志管理", tags = "通讯日志管理", hidden = false)
public class CommunicationContrallor extends BaseController {
@Autowired
private CommunicationService communicationService;
@PostMapping(value = "get")
@ApiOperation(value = "获取报警基础信息")
private R<CommunicationVo> get(@Validated @RequestBody IdParam idParam) {
return communicationService.get(idParam);
}
@PostMapping(value = "page")
@ApiOperation(value = "获取分页报警基础信息")
private R<PageVo<CommunicationVo>> page(@Validated({PageGroup.class, Default.class}) @RequestBody CommunicationQueryParam communicationQueryParam) {
return communicationService.page(communicationQueryParam);
}
}

View File

@ -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: 2021/11/18 10:13
* @Version 1.0
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "通讯日志查询参数", description = "用于查询通讯日志")
public class CommunicationQueryParam extends BasePageParam {
/**
* 主键自增
*/
@ApiModelProperty(value = "主键",required = false, example = "1")
private Long id;
/**
* 类型
*/
@ApiModelProperty(value = "类型",required = false, example = "1")
private Integer type;
}

View File

@ -0,0 +1,32 @@
package com.mt.wms.basic.service;
import com.mt.wms.basic.params.CommunicationQueryParam;
import com.mt.wms.basic.vo.CommunicationVo;
import com.mt.wms.core.params.IdParam;
import com.mt.wms.core.vo.PageVo;
import com.mt.wms.core.vo.R;
import java.util.List;
/**
* @Author: liguanghao
* @Date: 2021/11/18 10:16
* @Version 1.0
*/
public interface CommunicationService {
/**
* 获取xx
*
* @param idParam 主键参数
* @return xx
*/
R<CommunicationVo> get(IdParam idParam);
/**
* 获取xx分页列表
*
* @param kilnInfoQueryParam xx查询参数
* @return xx分页列表
*/
R<PageVo<CommunicationVo>> page(CommunicationQueryParam kilnInfoQueryParam);
}

View File

@ -0,0 +1,51 @@
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.CommunicationQueryParam;
import com.mt.wms.basic.service.CommunicationService;
import com.mt.wms.basic.vo.AlarmBaseVo;
import com.mt.wms.basic.vo.CommunicationVo;
import com.mt.wms.core.api.Assert;
import com.mt.wms.core.base.BaseService;
import com.mt.wms.core.dal.entity.CommunicationLog;
import com.mt.wms.core.dal.service.CommunicationLogServiceBiz;
import com.mt.wms.core.errorcode.ApiErrorCode;
import com.mt.wms.core.params.IdParam;
import com.mt.wms.core.utils.StringUtils;
import com.mt.wms.core.vo.PageVo;
import com.mt.wms.core.vo.R;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
/**
* @Author: liguanghao
* @Date: 2021/11/18 10:18
* @Version 1.0
*/
@Service
@Transactional
public class CommunicationServiceImpl extends BaseService implements CommunicationService {
@Resource
private CommunicationLogServiceBiz communicationLogServiceBiz;
@Override
public R<CommunicationVo> get(IdParam idParam) {
Assert.notNull(ApiErrorCode.INVALID_PARAMETER,idParam.getId());
CommunicationLog communicationLog = communicationLogServiceBiz.getById(idParam.getId());
CommunicationVo communicationVo = CommunicationVo.builder().build();
BeanUtils.copyProperties(communicationLog,communicationVo);
return successful(communicationVo);
}
@Override
public R<PageVo<CommunicationVo>> page(CommunicationQueryParam communicationQueryParam) {
QueryWrapper<CommunicationLog> wrapper=new QueryWrapper<>();
wrapper.eq(CommunicationLog.VALID,1);
wrapper.eq(communicationQueryParam.getType()!=null,CommunicationLog.TYPE,communicationQueryParam.getType());
Page<CommunicationLog> page = communicationLogServiceBiz.page(new Page<>(communicationQueryParam.getCurrent(), communicationQueryParam.getSize()), wrapper);
return successful(new PageVo<>(page,CommunicationVo.class));
}
}

View File

@ -0,0 +1,61 @@
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;
import java.time.LocalDateTime;
/**
* @Author: liguanghao
* @Date: 2021/11/18 8:55
* @Version 1.0
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "通讯日志视图对象", description = "用于查询通讯日志信息")
public class CommunicationVo 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 logName;
/**
* 内容
*/
@ApiModelProperty(value = "日志名称", example = "1")
private String content;
/**
* 类型
*/
@ApiModelProperty(value = "类型", example = "1")
private Integer type;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间", example = "1")
private LocalDateTime createTime;
}

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -0,0 +1,125 @@
package com.mt.wms.core.dal.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 通讯日志信息 包括wcs与wms apms与wms相互通讯
* </p>
*
* @author mt
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_communication_log")
public class CommunicationLog extends Model<CommunicationLog> {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 删除标志是否有效:1 可用 0不可用2停止
*/
@TableField("valid")
@TableLogic
private Integer valid;
/**
* 添加时间入库时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 创建人id
*/
@TableField("creator_id")
private Integer creatorId;
/**
* 更新人id
*/
@TableField("updater_id")
private Integer updaterId;
/**
* 修改时间更具修改时间来判断下次执行顺序第一次修改时间和新增时间相同
*/
@TableField("update_time")
private LocalDateTime updateTime;
/**
* 版本号 默认为 1
*/
@TableField("version")
@Version
private String version;
/**
* 类型0wms To wcs日志1wcs to wms日志 2wms to apms日志 3apms to wms日志
*/
@TableField("type")
private Integer type;
/**
* 内部编码系统自动生成
*/
@TableField("code")
private String code;
/**
* 日志名称
*/
@TableField("log_name")
private String logName;
/**
* 内容
*/
@TableField("content")
private String content;
public static final String ID = "id";
public static final String VALID = "valid";
public static final String CREATE_TIME = "create_time";
public static final String CREATOR_ID = "creator_id";
public static final String UPDATER_ID = "updater_id";
public static final String UPDATE_TIME = "update_time";
public static final String VERSION = "version";
public static final String TYPE = "type";
public static final String CODE = "code";
public static final String LOG_NAME = "log_name";
public static final String CONTENT = "content";
@Override
protected Serializable pkVal() {
return this.id;
}
}

View File

@ -1,21 +1,25 @@
package com.mt.wms.core.dal.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 当前任务
* </p>
*
* @author mt
* @since 2021-11-16
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-11-08
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -1,21 +1,25 @@
package com.mt.wms.core.dal.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 订单任务历史表
* </p>
*
* @author mt
* @since 2021-11-16
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -18,7 +18,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -20,7 +20,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -1,21 +1,25 @@
package com.mt.wms.core.dal.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 任务明细历史表
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -1,21 +1,25 @@
package com.mt.wms.core.dal.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 任务历史
* </p>
*
* @author mt
* @since 2021-11-16
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -0,0 +1,149 @@
package com.mt.wms.core.dal.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* wcs 任务信息表
* </p>
*
* @author mt
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_wcs_task")
public class WcsTask extends Model<WcsTask> {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 删除标志是否有效:1 可用 0不可用2停止
*/
@TableField("valid")
@TableLogic
private Integer valid;
/**
* 添加时间入库时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 创建人id
*/
@TableField("creator_id")
private Integer creatorId;
/**
* 更新人id
*/
@TableField("updater_id")
private Integer updaterId;
/**
* 修改时间更具修改时间来判断下次执行顺序第一次修改时间和新增时间相同
*/
@TableField("update_time")
private LocalDateTime updateTime;
/**
* 版本号 默认为 1
*/
@TableField("version")
@Version
private String version;
/**
* 任务编码
*/
@TableField("code")
private String code;
/**
* 标识卡号
*/
@TableField("iden_card_number")
private String idenCardNumber;
/**
* 产品名称有多个逗号隔开
*/
@TableField("product_name")
private String productName;
/**
* 材料牌号有多个逗号隔开
*/
@TableField("material_grade")
private String materialGrade;
/**
* 开始位置
*/
@TableField("start_position")
private String startPosition;
/**
* 结束位置
*/
@TableField("end_position")
private String endPosition;
/**
* 状态0未执行1正在执行2执行成功3执行失败
*/
@TableField("status")
private Integer status;
public static final String ID = "id";
public static final String VALID = "valid";
public static final String CREATE_TIME = "create_time";
public static final String CREATOR_ID = "creator_id";
public static final String UPDATER_ID = "updater_id";
public static final String UPDATE_TIME = "update_time";
public static final String VERSION = "version";
public static final String CODE = "code";
public static final String IDEN_CARD_NUMBER = "iden_card_number";
public static final String PRODUCT_NAME = "product_name";
public static final String MATERIAL_GRADE = "material_grade";
public static final String START_POSITION = "start_position";
public static final String END_POSITION = "end_position";
public static final String STATUS = "status";
@Override
protected Serializable pkVal() {
return this.id;
}
}

View File

@ -0,0 +1,133 @@
package com.mt.wms.core.dal.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* wcs 任务信息日志表
* </p>
*
* @author mt
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_wcs_task_log")
public class WcsTaskLog extends Model<WcsTaskLog> {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 删除标志是否有效:1 可用 0不可用2停止
*/
@TableField("valid")
@TableLogic
private Integer valid;
/**
* 添加时间入库时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 创建人id
*/
@TableField("creator_id")
private Integer creatorId;
/**
* 更新人id
*/
@TableField("updater_id")
private Integer updaterId;
/**
* 修改时间更具修改时间来判断下次执行顺序第一次修改时间和新增时间相同
*/
@TableField("update_time")
private LocalDateTime updateTime;
/**
* 版本号 默认为 1
*/
@TableField("version")
@Version
private String version;
/**
* 任务来源
*/
@TableField("source")
private String source;
/**
* 接收状态
*/
@TableField("receive_status")
private String receiveStatus;
/**
* 发送状态
*/
@TableField("send_status")
private String sendStatus;
/**
* 内容
*/
@TableField("content")
private String content;
/**
* 编码 t_wcs_task 中的code 一直用来对应wms传过来任务的 唯一标识
*/
@TableField("code")
private String code;
public static final String ID = "id";
public static final String VALID = "valid";
public static final String CREATE_TIME = "create_time";
public static final String CREATOR_ID = "creator_id";
public static final String UPDATER_ID = "updater_id";
public static final String UPDATE_TIME = "update_time";
public static final String VERSION = "version";
public static final String SOURCE = "source";
public static final String RECEIVE_STATUS = "receive_status";
public static final String SEND_STATUS = "send_status";
public static final String CONTENT = "content";
public static final String CODE = "code";
@Override
protected Serializable pkVal() {
return this.id;
}
}

View File

@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
@Data
@EqualsAndHashCode(callSuper = false)

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface AlarmBaseMapper extends BaseMapper<AlarmBase> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface AlarmInfoMapper extends BaseMapper<AlarmInfo> {

View File

@ -0,0 +1,16 @@
package com.mt.wms.core.dal.mapper;
import com.mt.wms.core.dal.entity.CommunicationLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 通讯日志信息 包括wcs与wms apms与wms相互通讯 Mapper 接口
* </p>
*
* @author mt
* @since 2021-11-18
*/
public interface CommunicationLogMapper extends BaseMapper<CommunicationLog> {
}

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mt.wms.core.dal.mapper.CommunicationLogMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mt.wms.core.dal.entity.CommunicationLog">
<id column="id" property="id" />
<result column="valid" property="valid" />
<result column="create_time" property="createTime" />
<result column="creator_id" property="creatorId" />
<result column="updater_id" property="updaterId" />
<result column="update_time" property="updateTime" />
<result column="version" property="version" />
<result column="type" property="type" />
<result column="code" property="code" />
<result column="log_name" property="logName" />
<result column="content" property="content" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, valid, create_time, creator_id, updater_id, update_time, version, type, code, log_name, content
</sql>
</mapper>

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface CurrTaskDetMapper extends BaseMapper<CurrTaskDet> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-11-09
* @since 2021-11-18
*/
public interface CurrTaskMapper extends BaseMapper<CurrTask> {

View File

@ -32,9 +32,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, task_code,
task_source, task_type, process_type, pallet_code, a_begin_time, a_end_time, start_position, target_position,
kiln_id, kiln_name, vehicle_id, is_cache, location_id, location_name
id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, task_code, task_source, task_type, process_type, pallet_code, a_begin_time, a_end_time, start_position, target_position, kiln_id, kiln_name, vehicle_id, is_cache, location_id, location_name
</sql>
</mapper>

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface FactoryMapper extends BaseMapper<Factory> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface InStockInfoHisMapper extends BaseMapper<InStockInfoHis> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface InStockInfoMapper extends BaseMapper<InStockInfo> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface KilnInfoMapper extends BaseMapper<KilnInfo> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface LocationMapper extends BaseMapper<Location> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface LoginLogMapper extends BaseMapper<LoginLog> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface LoginSessionMapper extends BaseMapper<LoginSession> {

View File

@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 订单历史信息 Mapper 接口
* 订单任务历史表 Mapper 接口
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface OrderInfoHisMapper extends BaseMapper<OrderInfoHis> {

View File

@ -30,9 +30,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, valid, create_time, creator_id, updater_id, update_time, version, order_source, status, inter_code, code,
order_no, iden_card_num, customer_no, customer_name, product_name, product_model, material_des, craft_ill, unit,
weight, quantity
id, valid, create_time, creator_id, updater_id, update_time, version, order_source, status, inter_code, code, order_no, iden_card_num, customer_no, customer_name, product_name, product_model, material_des, craft_ill, unit, weight, quantity
</sql>
</mapper>

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-11-08
* @since 2021-11-18
*/
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ParBaseMapper extends BaseMapper<ParBase> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ParEleValueMapper extends BaseMapper<ParEleValue> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ParGasValueMapper extends BaseMapper<ParGasValue> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ParInfoMapper extends BaseMapper<ParInfo> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ParRotSpeedValueMapper extends BaseMapper<ParRotSpeedValue> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ParTemValueMapper extends BaseMapper<ParTemValue> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ProductAttrMapper extends BaseMapper<ProductAttr> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ProductLibraryMapper extends BaseMapper<ProductLibrary> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface ResourceMapper extends BaseMapper<Resource> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SmsCodeMapper extends BaseMapper<SmsCode> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SmsSceneMapper extends BaseMapper<SmsScene> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SmsSendMapper extends BaseMapper<SmsSend> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SmsSignMapper extends BaseMapper<SmsSign> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SmsTemplateMapper extends BaseMapper<SmsTemplate> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysDictDataMapper extends BaseMapper<SysDictData> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysDictTypeMapper extends BaseMapper<SysDictType> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysFileMapper extends BaseMapper<SysFile> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysFileTypeMapper extends BaseMapper<SysFileType> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysMenuMapper extends BaseMapper<SysMenu> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysMenuResourceMapper extends BaseMapper<SysMenuResource> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysOrgMapper extends BaseMapper<SysOrg> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysPostMapper extends BaseMapper<SysPost> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysRoleMapper extends BaseMapper<SysRole> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysUserPostMapper extends BaseMapper<SysUserPost> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author mt
* @since 2021-09-29
* @since 2021-11-18
*/
public interface TaskDetHisMapper extends BaseMapper<TaskDetHis> {

Some files were not shown because too many files have changed in this diff Show More