接口主键完善

cert
1178634255 2 years ago
parent 21b5995b3c
commit 4809c6bf13

@ -7,70 +7,84 @@ import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel("追踪制造代码关联实体")
@TableName(value = "trace_manu_code_rel")
public class TraceManuCodeRelEntity implements Serializable {
@ApiModelProperty(value = "主键")
@TableId(value = "id", type = IdType.INPUT)
private Long id;
/**
* UDI
*/
@ApiModelProperty(value = "UDI码")
@TableField(value = "code")
private String code;
/**
*
*/
@ApiModelProperty(value = "父码")
@TableField(value = "pcode")
private String pcode;
/**
*
*/
@ApiModelProperty(value = "批次号")
@TableField(value = "batchNo")
private String batchNo;
/**
*
*/
@ApiModelProperty(value = "生产日期")
@TableField(value = "produceDate")
private String produceDate;
/**
*
*/
@ApiModelProperty(value = "失效日期")
@TableField(value = "expireDate")
private String expireDate;
/**
*
*/
@ApiModelProperty(value = "序列号")
@TableField(value = "serialNo")
private String serialNo;
/**
* 1.;2: 3: 4:
*/
@ApiModelProperty(value = "1.满箱;2:零箱 3:拼箱满箱 4:拼箱零箱")
@TableField(value = "packState")
private Integer packState;
/**
*
*/
@ApiModelProperty(value = "包装层级")
@TableField(value = "bzcj")
private Integer bzcj;
/**
*
*/
@ApiModelProperty(value = "生产订单号")
@TableField(value = "manuOrderNo")
private String manuOrderNo;
/**
* ID
*/
@ApiModelProperty(value = "生产订单号ID外键")
@TableField(value = "manuOrderIdFk")
private Long manuOrderIdFk;

@ -20,7 +20,7 @@ import lombok.Data;
@TableName(value = "trace_order")
public class TraceOrderEntity implements Serializable {
@ApiModelProperty(value = "id")
@ApiModelProperty(value = "主键")
@TableId(value = "id", type = IdType.INPUT)
private Long id;

@ -10,106 +10,126 @@ import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
*
*/
@Data
@ApiModel("任务公告表")
@TableName(value = "trace_task_notice")
public class TraceTaskNoticeEntity implements Serializable {
@ApiModelProperty(value = "主键")
@TableId(value = "id", type = IdType.INPUT)
private Long id;
/**
* ID
*/
@ApiModelProperty(value = "查询记录表ID外键")
@TableField(value = "produdctRecordIdFk")
private Long produdctRecordIdFk;
/**
* 12:
*/
@ApiModelProperty(value = "任务类型 1关联关系2:出入库单据")
@TableField(value = "taskType")
private Integer taskType;
/**
* 1.234:
*/
@ApiModelProperty(value = "任务状态1.未处理2正在处理任务被下载3已处理任务已提交4:超时处理失败")
@TableField(value = "`status`")
private Integer status;
/**
* ID
*/
@ApiModelProperty(value = "企业信息ID外键")
@TableField(value = "companyIdFk")
private Long companyIdFk;
/**
*
*
*/
@ApiModelProperty(value = "医疗器械注册人")
@TableField(value = "ylqxzcrbarmc")
private String ylqxzcrbarmc;
/**
*
*/
@ApiModelProperty(value = "医疗器械注册人统一社会信用号")
@TableField(value = "creditNum")
private String creditNum;
/**
*
*/
@ApiModelProperty(value = "产品名称")
@TableField(value = "cpmctymc")
private String cpmctymc;
/**
*
*/
@ApiModelProperty(value = "规格型号")
@TableField(value = "ggxh")
private String ggxh;
/**
*
*/
@ApiModelProperty(value = "批次号")
@TableField(value = "batchNo")
private String batchNo;
/**
*
*/
@ApiModelProperty(value = "生产日期")
@TableField(value = "produceDate")
private String produceDate;
/**
*
*/
@ApiModelProperty(value = "失效日期")
@TableField(value = "expireDate")
private String expireDate;
/**
*
*/
@ApiModelProperty(value = "序列号")
@TableField(value = "serialNo")
private String serialNo;
/**
* UDI
*/
@ApiModelProperty(value = "查询UDI码")
@TableField(value = "udiCode")
private String udiCode;
/**
*
*/
@ApiModelProperty(value = "任务创建时间")
@TableField(value = "createTime")
private Date createTime;
/**
*
*/
@ApiModelProperty(value = "任务更新时间")
@TableField(value = "updateTime")
private Date updateTime;
@ApiModelProperty(value = "DI列表")
@TableField(value = "diList", typeHandler = FastjsonTypeHandler.class)
private List<String> diList;

@ -1,75 +1,116 @@
package com.glxp.api.req.basic;
import com.glxp.api.util.page.ListPageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@Data
@ApiModel("过滤UDI关联请求")
public class FilterUdiRelRequest extends ListPageRequest {
@ApiModelProperty(value = "医疗器械注册备案名称")
private String ylqxzcrbarmc;
@ApiModelProperty(value = "产品名称全称")
private String cpmctymc;
@ApiModelProperty(value = "")
private String entireCpmctymc;
@ApiModelProperty(value = "名称编码")
private String nameCode;
@ApiModelProperty(value = "uuid")
private String uuid;
@ApiModelProperty(value = "原始UUID")
private String originUuid;
@ApiModelProperty(value = "规格型号")
private String ggxh;
@ApiModelProperty(value = "第三方id")
private String thirdId;
@ApiModelProperty(value = "主键")
private Long id;
@ApiModelProperty(value = "第三方id1")
private String thirdId1;
@ApiModelProperty(value = "第三方id2")
private String thirdId2;
@ApiModelProperty(value = "第三方id3")
private String thirdId3;
@ApiModelProperty(value = "第三方id4")
private String thirdId4;
@ApiModelProperty(value = "第三方编码")
private String thirdCode;
@ApiModelProperty(value = "第三方系统")
private String thirdSys;
@ApiModelProperty(value = "最后更新时间")
private String lastUpdateTime;
@ApiModelProperty(value = "注册/备案证号")
private String zczbhhzbapzbh;
@ApiModelProperty(value = "DI类型")
private Integer diType;
@ApiModelProperty(value = "联合代码")
private String unionCode;
@ApiModelProperty(value = "UDI代码")
private String udiCode;
@ApiModelProperty(value = "第三方PI ID")
private String thrPiId;
@ApiModelProperty(value = "是否审核")
private Boolean isCheck;
@ApiModelProperty(value = "0:全部1.对照完成2.未对照DI3.未对照产品编码4.未对照其他产品编码")
private Integer filterType; //0:全部1.对照完成2.未对照DI3.未对照产品编码4.未对照其他产品编码
@ApiModelProperty(value = "锁定状态")
private Integer lockStatus;
@ApiModelProperty(value = "客户ID")
private String customerId;
@ApiModelProperty(value = "UDPLAT代码")
private String udplatCode;
@ApiModelProperty(value = "主要ID")
private String mainId;
@ApiModelProperty(value = "是否预付款")
private Boolean isAdavence;
@ApiModelProperty(value = "企业ID")
private String corpId;
@ApiModelProperty(value = "账单类型")
private String billType;
@ApiModelProperty(value = "医保编码")
private String ybbm;
@ApiModelProperty(value = "商品条码")
private String sptm;
@ApiModelProperty(value = "产品名称,规格,批文,生产厂家联合查询")
private String unionFilterStr;//产品名称,规格,批文,生产厂家联合查询
@ApiModelProperty(value = "是否禁用")
private Boolean isDisable;
@ApiModelProperty(value = "关联ID列表")
List<String> relIds;
@ApiModelProperty(value = "唯一名称代码")
private String uniqueNameCode;
@ApiModelProperty(value = "供应商名称")
private String supName;
@ApiModelProperty(value = "单位外键")
private String unitFk;
@ApiModelProperty(value = "相关ID")
private String relId;
@ApiModelProperty(value = "公司名称")
private String companyName;
@ApiModelProperty(value = "绑定关联ID列表")
private String bindRlIds;
@ApiModelProperty(value = "关联代码")
private String relCode;
@ApiModelProperty(value = "绑定类型")
private String bindType;
@ApiModelProperty(value = "证书ID外键")
private String certIdFk;
@ApiModelProperty(value = "制造商")
private String manufactory;
@ApiModelProperty(value = "统一社会信用代码")
private String tyshxydm;
@ApiModelProperty(value = "派遣")
private Boolean dispatch;
@ApiModelProperty(value = "团购")
private Boolean groupBuy;
@ApiModelProperty(value = "企业id")
private Long companyId;
}

@ -1,9 +1,12 @@
package com.glxp.api.req.trace;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel("追踪任务请求")
public class TraceDlTaskRequest {
@ApiModelProperty(value = "任务id")
private Long taskId;
}

@ -1,57 +1,70 @@
package com.glxp.api.req.trace;
import com.glxp.api.util.page.ListPageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel("追踪制造详情请求")
public class TraceManuDetailRequest extends ListPageRequest {
@ApiModelProperty(value = "主键")
private Long id;
/**
* UDI
*/
@ApiModelProperty(value = "UDI码")
private String code;
/**
*
*/
@ApiModelProperty(value = "父码")
private String pcode;
/**
*
*/
@ApiModelProperty(value = "批次号")
private String batchNo;
/**
*
*/
@ApiModelProperty(value = "生产日期")
private String produceDate;
/**
*
*/
@ApiModelProperty(value = "失效日期")
private String expireDate;
/**
*
*/
@ApiModelProperty(value = "序列号")
private String serialNo;
/**
* 1.;2: 3: 4:
*/
@ApiModelProperty(value = "1.满箱;2:零箱 3:拼箱满箱 4:拼箱零箱")
private Integer packState;
/**
*
*/
@ApiModelProperty(value = "包装层级")
private Integer bzcj;
/**
*
*/
@ApiModelProperty(value = "生产订单号外键")
private String manuOrderNo;
@ApiModelProperty(value = "制造订单ID外键")
private String manuOrderIdFk;

@ -1,14 +1,17 @@
package com.glxp.api.req.trace;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List;
@Data
@ApiModel(value = "追踪制造订单上传请求")
public class TraceManuOrderUploadRequest {
@ApiModelProperty(value = "任务ID")
@NotNull(message = "任务ID")
private Long taskId;
@ -16,70 +19,82 @@ public class TraceManuOrderUploadRequest {
/**
*
*/
@ApiModelProperty(value = "生产订单号")
@NotNull(message = "生产订单号不能为空")
private String billNo;
/**
*
*/
@ApiModelProperty(value = "订单日期")
@NotNull(message = "订单日期不能为空")
private String billDate;
/**
*
*/
@ApiModelProperty(value = "产品名称")
@NotNull(message = "产品名称不能为空")
private String cpmctymc;
/**
*
*/
@ApiModelProperty(value = "规格型号")
private String ggxh;
/**
*
*/
@ApiModelProperty(value = "产品描述")
private String cpms;
/**
* /
*/
@ApiModelProperty(value = "注册/备案证号")
private String zczbhhzbapzbh;
/**
* DI
*/
@ApiModelProperty(value = "DI")
@NotNull(message = "DI标识不能为空")
private String nameCode;
/**
* UUID
*/
@ApiModelProperty(value = "国家库UUID")
@NotNull(message = "国家库UUID不能为空")
private String uuid;
/**
*
*/
@ApiModelProperty(value = "医疗器械注册人")
private String ylqxzcrbarmc;
/**
*
*/
@ApiModelProperty(value = "生产企业")
private String manufactory;
/**
* ID
*/
@ApiModelProperty(value = "企业信息ID外键")
@NotNull(message = "企业信息ID不能为空")
private Long companyIdFk;
/**
* ID
*/
@ApiModelProperty(value = "上传者ID")
@NotNull(message = "上传者ID不能为空")
private Long uploadUser;
@ApiModelProperty(value = "UDI码关联关系")
@NotNull(message = "UDI码关联关系不能为空")
List<TraceManuDetailRequest> details;

@ -1,111 +1,134 @@
package com.glxp.api.req.trace;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel(value = "追踪订单上传请求")
public class TraceOrderUploadRequest {
@ApiModelProperty(value = "任务id")
private Long taskId;
/**
*
*/
@ApiModelProperty(value = "单据号")
private String billNo;
/**
*
*/
@ApiModelProperty(value = "单据时间")
private String billDate;
/**
* 1:2
*/
@ApiModelProperty(value = "1:入库2出库")
private Byte inOutType;
/**
*
*/
@ApiModelProperty(value = "单据类型")
private String billType;
/**
*
*/
@ApiModelProperty(value = "发货企业")
private String fromCorp;
/**
*
*/
@ApiModelProperty(value = "发货企业统一社会信用号")
private String fromCorpCreditNum;
/**
*
*/
@ApiModelProperty(value = "收货企业")
private String toCorp;
/**
*
*/
@ApiModelProperty(value = "收货企业统一社会信用号")
private String toCorpCreditNum;
/**
*
*/
@ApiModelProperty(value = "单据创建者")
private Long createUser;
/**
* ID
*/
@ApiModelProperty(value = "企业信息ID外键")
private Long companyIdFk;
/**
*
*/
@ApiModelProperty(value = "客户端类型")
private Integer clientType;
/**
* 退退
*/
@ApiModelProperty(value = "退货原因(退货时填写)")
private String returnReason;
/**
*
*/
@ApiModelProperty(value = "销毁原因(销毁时填写)")
private String destoryReason;
/**
*
*/
@ApiModelProperty(value = "执行销毁人(销毁时填写)")
private String excuseUser;
/**
*
*/
@ApiModelProperty(value = "执行销毁人证件号(销毁时填写)")
private String excuseCode;
/**
*
*/
@ApiModelProperty(value = "监督人姓名【销毁出库时填写】")
private String superviserUser;
/**
*
*/
@ApiModelProperty(value = "监督人证件号【销毁出库时填写】")
private String superviserCode;
/**
* ID
*/
@ApiModelProperty(value = "上传着ID")
private Long uploadUser;
/**
*
*/
@ApiModelProperty(value = "备注")
private String remark;
/**
*
*/
@ApiModelProperty(value = "查询记录号外键")
private String recordCode;

@ -1,84 +1,101 @@
package com.glxp.api.req.trace;
import com.glxp.api.util.page.ListPageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@ApiModel("追踪记录请求")
public class TraceRecordRequest extends ListPageRequest {
@ApiModelProperty(value = "主键")
private Long id;
/**
*
*/
@ApiModelProperty(value = "查询记录号")
private String recordCode;
/**
*
*/
@ApiModelProperty(value = "查询来源")
private Integer fromType;
/**
*
*/
@ApiModelProperty(value = "查询者")
private String createUser;
/**
*
*/
@ApiModelProperty(value = "查询记录时间")
private Date createTime;
/**
*
*/
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
* 1:2)
*/
@ApiModelProperty(value = "查询方式1:源头查询2现在检查查询)")
private Integer traceSource;
/**
* UDI/
*/
@ApiModelProperty(value = "查询方案按UDI码查询/按批次号查询)")
private Integer traceType;
/**
* UDI
*/
@ApiModelProperty(value = "UDI码")
private String udiCode;
/**
*
*/
@ApiModelProperty(value = "社会信用号")
private String creditNum;
/**
*
*/
@ApiModelProperty(value = "注册备案人")
private String ylqxzcrbarmc;
/**
* DI
*/
@ApiModelProperty(value = "产品主DI标识")
private String nameCode;
/**
*
*/
@ApiModelProperty(value = "产品通用名")
private String cpmctymc;
/**
*
*/
@ApiModelProperty(value = "规格型号")
private String ggxh;
/**
*
*/
@ApiModelProperty(value = "生产批次号")
private String batchNo;
@ApiModelProperty(value = "企业id")
private Long companyId;

@ -1,80 +1,97 @@
package com.glxp.api.req.trace;
import com.glxp.api.util.page.ListPageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
@ApiModel("追踪任务详情请求")
public class TraceTaskDetailRequest extends ListPageRequest {
@ApiModelProperty(value = "主键")
private Long id;
/**
* UDI
*/
@ApiModelProperty(value = "按UDI码查询出入库信息")
private String udiCode;
/**
* ID
*/
@ApiModelProperty(value = "查询记录表ID外键")
private Long recordCode;
/**
* //
*
*/
@ApiModelProperty(value = "* 任务状态(未处理/正在处理(任务被下载) 已处理(任务已提交)")
private Integer status;
/**
* 1nte3
*/
@ApiModelProperty(value = "任务类型1关联nte入库3出库")
private Integer taskType;
/**
* DIDI
*/
@ApiModelProperty(value = "DI标识列表多级包装会有多个DI")
private List<String> diList;
/**
* ID
*/
@ApiModelProperty(value = "企业信息ID外键")
private Long companyIdFk;
/**
*
*/
@ApiModelProperty(value = "医疗器械注册人")
private String ylqxzcrbarmc;
/**
*
*/
@ApiModelProperty(value = "医疗器械注册人统一社会信用号")
private String creditNum;
/**
*
*/
@ApiModelProperty(value = "产品名称")
private String cpmctymc;
/**
*
*/
@ApiModelProperty(value = "规格型号")
private String ggxh;
/**
*
*/
@ApiModelProperty(value = "批次号")
private String batchNo;
/**
*
*/
@ApiModelProperty(value = "失效日期")
private String expireDate;
/**
*
*/
@ApiModelProperty(value = "序列号")
private String serialNo;
/**
*
*/
@ApiModelProperty(value = "任务时间")
private Date createTime;
}

@ -11,7 +11,7 @@ import java.util.Date;
@ApiModel("追溯信息单据详情响应类")
public class TraceManuCodeRellResponse {
@ApiModelProperty(value = "id")
@ApiModelProperty(value = "主键")
private Long id;
/**

@ -13,7 +13,7 @@ import java.util.Date;
@ApiModel("追溯信息单据响应类")
public class TraceManuOrderResponse {
@ApiModelProperty(value = "id")
@ApiModelProperty(value = "主键")
private Long id;
/**

@ -10,7 +10,7 @@ import java.util.Date;
@ApiModel("追溯单据响应类")
public class TraceOrderResponse {
@ApiModelProperty(value = "id")
@ApiModelProperty(value = "主键")
private Long id;
/**

@ -10,7 +10,7 @@ import java.util.Date;
@ApiModel("追溯记录响应类")
public class TraceRecordResponse {
@ApiModelProperty(value = "id")
@ApiModelProperty(value = "主键")
private Long id;
/**

@ -14,7 +14,7 @@ import java.util.List;
@ApiModel("客户端查询任务列表响应类")
public class TraceTaskDlResponse {
@ApiModelProperty(value = "id")
@ApiModelProperty(value = "主键")
private Long id;
/**

Loading…
Cancel
Save