feat: 码明细到国家同步库

v3
chenhc 5 months ago
parent d3f96a109a
commit 883b0bd084

@ -0,0 +1,85 @@
package com.glxp.udidl.admin.controller.collect;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.glxp.udidl.admin.entity.collect.IoCollectCode;
import com.glxp.udidl.admin.entity.collect.IoCollectCodeBackup;
import com.glxp.udidl.admin.entity.collect.IoCollectOrderBackup;
import com.glxp.udidl.admin.req.collect.PostCollectOrderRequest;
import com.glxp.udidl.admin.res.BaseResponse;
import com.glxp.udidl.admin.service.collect.IoCollectCodeService;
import com.glxp.udidl.admin.util.BeanUtils;
import com.glxp.udidl.admin.util.ResultVOUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
@Slf4j
@RestController
public class IoCollectOrderBackupController {
@Resource
IoCollectCodeService ioCollectCodeService;
/**
*
*
* @param postCollectOrderRequest
* @return
*/
@PostMapping("/collect/order/upload")
public BaseResponse orderUpload(@RequestBody PostCollectOrderRequest postCollectOrderRequest) {
//做数据持久化存储
String webTitle = postCollectOrderRequest.getWebTitle();
List<IoCollectOrderBackup> collectOrderList = postCollectOrderRequest.getCollectOrderList();
if (CollUtil.isNotEmpty(collectOrderList)){
for (int i = 0; i < collectOrderList.size(); i++) {
IoCollectOrderBackup ioCollectOrderBackup = collectOrderList.get(i);
List<IoCollectCodeBackup> codeList = ioCollectOrderBackup.getCodeList();
if (CollUtil.isNotEmpty(codeList)){
}else {
//先删除 再新增
String billNo = ioCollectOrderBackup.getBillNo();
List<IoCollectCode> list = ioCollectCodeService.list(new LambdaQueryWrapper<IoCollectCode>().eq(IoCollectCode::getBillNo, billNo).eq(IoCollectCode::getWebTitle, webTitle));
//如果已存在 删除
if (CollUtil.isNotEmpty(list)){
ioCollectCodeService.remove(new LambdaQueryWrapper<IoCollectCode>().eq(IoCollectCode::getBillNo, billNo).eq(IoCollectCode::getWebTitle, webTitle));
}
//开始新增
List<IoCollectCode> addList = new ArrayList<>();
for (int i1 = 0; i1 < codeList.size(); i1++) {
IoCollectCodeBackup ioCollectCodeBackup = codeList.get(i1);
IoCollectCode ioCollectCode = new IoCollectCode();
BeanUtils.copyProperties(ioCollectCodeBackup,ioCollectCode);
ioCollectCode.setId(null);
ioCollectCode.setWebTitle(webTitle);
addList.add(ioCollectCode);
}
if (CollUtil.isNotEmpty(addList)){
ioCollectCodeService.saveBatch(addList);
}
}
}
}else {
return ResultVOUtils.error(500,"订单数据为空");
}
return ResultVOUtils.success();
}
}

@ -0,0 +1,17 @@
package com.glxp.udidl.admin.dao.collect;
import com.glxp.udidl.admin.dao.BaseMapperPlus;
import com.glxp.udidl.admin.entity.collect.IoCollectCode;
import com.glxp.udidl.admin.entity.collect.IoCollectCodeBackup;
import com.glxp.udidl.admin.entity.collect.RelCodeBatch;
import com.glxp.udidl.admin.req.collect.RelCodeBatchRequest;
import com.glxp.udidl.admin.res.collect.RelCodeBatchResponse;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface IoCollectCodeMapper extends BaseMapperPlus<IoCollectCodeMapper, IoCollectCode,IoCollectCode> {
}

@ -0,0 +1,162 @@
package com.glxp.udidl.admin.entity.collect;
import lombok.Data;
import java.util.Date;
/**
*
*/
@Data
public class CollectOrderBizResponse {
private Long id;
/**
*
*/
private String orderIdFk;
/**
*
*/
private String thrCode;
/**
*
*/
private String ybbm;
/**
*
*/
private String payFeeCode;
/**
*
*/
private String cpmctymc;
/**
*
*/
private String nameCode;
/**
*
*/
private String ggxh;
/**
*
*/
private String batchNo;
/**
*
*/
private String productDate;
/**
*
*/
private String expireDate;
/**
*
*/
private Integer count;
/**
*
*/
private Integer actCount;
/**
*
*/
private Integer scanCount;
/**
*
*/
private Integer scanActCount;
/**
*
*/
private String measureUnit;
/**
* 1:23
*/
private Integer tagStatus;
/**
*
*/
private String tagMsg;
/**
*
*/
private String remark;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
* UDI
*/
private String udiCode;
private Long relId;
private Integer unTagCount;
private String scanUdiCode;
private String splitUdiCode;
private String unSplitUdiCode;
private String finishUdiCode;
private String bzgg;
private Integer autoResCount;
private String replaceCode;
/**
* 123:
*/
private Integer autoTagStatus;
/**
*
*/
private Integer tempWorkPlaceCount;
/**
*
*/
private Integer tempSplitCount;
private String remark1;
private String remark2;
private String remark3;
private String remark4;
private String remark5;
private String remark6;
private String remark7;
private String remark8;
private String remark9;
private String remark10;
private boolean splitUnCheck;
}

@ -0,0 +1,148 @@
package com.glxp.udidl.admin.entity.collect;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
@ApiModel(value = "com-glxp-api-entity-collect-IoCollectCode")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "io_collect_code")
public class IoCollectCode implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "")
private Integer id;
/**
* UDI.
*/
@TableField(value = "code")
@ApiModelProperty(value = "追溯码UDI.药品)")
private String code;
@TableField(value = "webTitle")
private String webTitle;
/**
*
*/
@TableField(value = "fromType")
@ApiModelProperty(value = "单据来源")
private String fromType;
/**
*
*/
@TableField(value = "busType")
@ApiModelProperty(value = "单据类型")
private String busType;
/**
*
*/
@TableField(value = "billNo")
@ApiModelProperty(value = "单据号")
private String billNo;
/**
*
*/
@TableField(value = "fromCorp")
@ApiModelProperty(value = "往来单位")
private String fromCorp;
/**
*
*/
@TableField(value = "operTime")
@ApiModelProperty(value = "操作时间")
private Date operTime;
/**
*
*/
@TableField(value = "operUser")
@ApiModelProperty(value = "操作人")
private String operUser;
/**
*
*/
@TableField(value = "collectCode")
@ApiModelProperty(value = "采集点")
private String collectCode;
/**
*
*/
@TableField(value = "collectUser")
@ApiModelProperty(value = "采集点负责人")
private String collectUser;
/**
*
*/
@TableField(value = "workPlaceCode")
@ApiModelProperty(value = "工位")
private Long workPlaceCode;
/**
*
*/
@TableField(value = "workPlaceUser")
@ApiModelProperty(value = "工位负责人")
private String workPlaceUser;
/**
*
*/
@TableField(value = "remark")
@ApiModelProperty(value = "备注")
private String remark;
/**
* 1:2:;3.
*/
@TableField(value = "fifoSplit")
@ApiModelProperty(value = "")
private Integer fifoSplit;
/**
* 12
*/
@TableField(value = "inoutType")
@ApiModelProperty(value = "出入库类型")
private Integer inoutType;
/**
*
*/
@TableField(value = "scanCount")
@ApiModelProperty(value = "出入库类型")
private Integer scanCount;
/**
* id
*/
@TableField(value = "relId")
@ApiModelProperty(value = "耗材字典外键id")
private Long relId;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,144 @@
package com.glxp.udidl.admin.entity.collect;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
@ApiModel(value = "com-glxp-api-entity-collect-IoCollectCode")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "io_collect_code_backup")
public class IoCollectCodeBackup implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "")
private Integer id;
/**
* UDI.
*/
@TableField(value = "code")
@ApiModelProperty(value = "追溯码UDI.药品)")
private String code;
/**
*
*/
@TableField(value = "fromType")
@ApiModelProperty(value = "单据来源")
private String fromType;
/**
*
*/
@TableField(value = "busType")
@ApiModelProperty(value = "单据类型")
private String busType;
/**
*
*/
@TableField(value = "billNo")
@ApiModelProperty(value = "单据号")
private String billNo;
/**
*
*/
@TableField(value = "fromCorp")
@ApiModelProperty(value = "往来单位")
private String fromCorp;
/**
*
*/
@TableField(value = "operTime")
@ApiModelProperty(value = "操作时间")
private Date operTime;
/**
*
*/
@TableField(value = "operUser")
@ApiModelProperty(value = "操作人")
private String operUser;
/**
*
*/
@TableField(value = "collectCode")
@ApiModelProperty(value = "采集点")
private String collectCode;
/**
*
*/
@TableField(value = "collectUser")
@ApiModelProperty(value = "采集点负责人")
private String collectUser;
/**
*
*/
@TableField(value = "workPlaceCode")
@ApiModelProperty(value = "工位")
private Long workPlaceCode;
/**
*
*/
@TableField(value = "workPlaceUser")
@ApiModelProperty(value = "工位负责人")
private String workPlaceUser;
/**
*
*/
@TableField(value = "remark")
@ApiModelProperty(value = "备注")
private String remark;
/**
* 1:2:;3.
*/
@TableField(value = "fifoSplit")
@ApiModelProperty(value = "")
private Integer fifoSplit;
/**
* 12
*/
@TableField(value = "inoutType")
@ApiModelProperty(value = "出入库类型")
private Integer inoutType;
/**
*
*/
@TableField(value = "scanCount")
@ApiModelProperty(value = "出入库类型")
private Integer scanCount;
/**
* id
*/
@TableField(value = "relId")
@ApiModelProperty(value = "耗材字典外键id")
private Long relId;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,261 @@
package com.glxp.udidl.admin.entity.collect;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
*
*/
@ApiModel(value = "com-glxp-api-entity-collect-IoCollectOrder")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "io_collect_order_backup")
public class IoCollectOrderBackup implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
@ApiModelProperty(value = "")
private Integer id;
/**
*
*/
@TableField(value = "billNo")
@ApiModelProperty(value = "单据号")
private String billNo;
/**
*
*/
@TableField(value = "busType")
@ApiModelProperty(value = "单据类型")
private String busType;
/**
*
*/
@TableField(value = "fromType")
@ApiModelProperty(value = "来源业务")
private String fromType;
/**
*
*/
@TableField(value = "fromTypeDesc")
@ApiModelProperty(value = "来源业务说明")
private String fromTypeDesc;
/**
*
*/
@TableField(value = "fromCorp")
@ApiModelProperty(value = "往来信息")
private String fromCorp;
/**
*
*/
@TableField(value = "fromCorpName")
@ApiModelProperty(value = "往来信息名称")
private String fromCorpName;
/**
*
*/
@TableField(value = "billTime")
@ApiModelProperty(value = "单据时间")
private Date billTime;
/**
*
*/
@TableField(value = "createTime")
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
*
*/
@TableField(value = "collectTime")
@ApiModelProperty(value = "采集时间")
private Date collectTime;
// /**
// * 采集点编码
// */
// @TableField(value = "collectCode")
// @ApiModelProperty(value = "采集点编码")
// private String collectCode;
/**
*
*/
@TableField(value = "workPlaceCode")
@ApiModelProperty(value = "工位编码")
private Long workPlaceCode;
/**
*
*/
@TableField(value = "remark")
@ApiModelProperty(value = "备注")
private String remark;
/**
*
*/
@TableField(value = "`createUser`")
@ApiModelProperty(value = "创建人")
private String createUser;
/**
*
*/
@TableField(value = "updateTime")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
*
*/
@TableField(value = "updateUser")
@ApiModelProperty(value = "更新人")
private Long updateUser;
/**
* 0:1:234,-1:稿5
*/
@TableField(value = "tagStatus")
private Integer tagStatus;
/**
* 012,3.
*/
@TableField(value = "splitStatus")
private Integer splitStatus;
/**
*
*/
@TableField(value = "splitMsg")
private String splitMsg;
/**
*
*/
@TableField(value = "tagMsg")
private String tagMsg;
/**
* 1:; 2:使
*/
@TableField(value = "orderCirType")
private Integer orderCirType;
/**
* 1
*/
@TableField(value = "backupOrderRemark1")
@ApiModelProperty(value = "单据备注1")
private String backupOrderRemark1;
/**
* 2
*/
@TableField(value = "backupOrderRemark2")
@ApiModelProperty(value = "单据备注2")
private String backupOrderRemark2;
/**
* 3
*/
@TableField(value = "backupOrderRemark3")
@ApiModelProperty(value = "单据备注3")
private String backupOrderRemark3;
/**
* 4
*/
@TableField(value = "backupOrderRemark4")
@ApiModelProperty(value = "单据备注4")
private String backupOrderRemark4;
/**
* 5
*/
@TableField(value = "backupOrderRemark5")
@ApiModelProperty(value = "单据备注5")
private String backupOrderRemark5;
/**
* 6
*/
@TableField(value = "backupOrderRemark6")
@ApiModelProperty(value = "单据备注6")
private String backupOrderRemark6;
/**
*
*/
@TableField(value = "orderTime")
@ApiModelProperty(value = "排序时间")
private Date orderTime;
/**
* 1:; 2:3:
*/
@TableField(value = "invAlert")
private Integer invAlert;
@TableField(exist = false)
private List<CollectOrderBizResponse> collectOrderBizResponseList;
@TableField(exist = false)
private List<IoCollectOrderBiz> bizList;
@TableField(exist = false)
private List<IoCollectCodeBackup> codeList;
/**
*
*/
@TableField(value = "errorMsg")
private String errorMsg;
/**
* (1.,2.,3.)
*/
@TableField(value = "uploadStatus")
private Integer uploadStatus;
/**
*
*/
@TableField(value = "uploadError")
private String uploadError;
@TableField(value = "shipper")
@ApiModelProperty(value = "发货方编码")
private String shipper;
@TableField(value = "shipperName")
@ApiModelProperty(value = "发货方名称")
private String shipperName;
@TableField(value = "thrBusType")
@ApiModelProperty(value = "第三方单据类型编码")
private String thrBusType;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,277 @@
package com.glxp.udidl.admin.entity.collect;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
*
*/
@ApiModel(value = "com-glxp-api-entity-collect-IoCollectOrderBiz")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "io_collect_order_biz")
public class IoCollectOrderBiz implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "")
private Long id;
/**
*
*/
@TableField(value = "orderIdFk")
private String orderIdFk;
/**
* ID
*/
@TableField(value = "relId")
@ApiModelProperty(value = "耗材字典ID")
private Long relId;
/**
*
*/
@TableField(value = "thrCode")
@ApiModelProperty(value = "院内编码(第三方编码)")
private String thrCode;
/**
*
*/
@TableField(value = "ybbm")
@ApiModelProperty(value = "医保编码")
private String ybbm;
/**
*
*/
@TableField(value = "sptm")
@ApiModelProperty(value = "商品条码")
private String sptm;
/**
*
*/
@TableField(value = "payFeeCode")
@ApiModelProperty(value = "收费编码")
private String payFeeCode;
/**
*
*/
@TableField(value = "cpmctymc")
@ApiModelProperty(value = "产品通用名称")
private String cpmctymc;
/**
*
*/
@TableField(value = "nameCode")
@ApiModelProperty(value = "产品标识")
private String nameCode;
/**
*
*/
@TableField(value = "ggxh")
@ApiModelProperty(value = "规格型号")
private String ggxh;
/**
*
*/
@TableField(value = "batchNo")
@ApiModelProperty(value = "批次号")
private String batchNo;
/**
*
*/
@TableField(value = "productDate")
@ApiModelProperty(value = "生产日期")
private String productDate;
/**
*
*/
@TableField(value = "expireDate")
@ApiModelProperty(value = "失效日期")
private String expireDate;
/**
*
*/
@TableField(value = "`count`")
@ApiModelProperty(value = "单据数量")
private Integer count;
/**
*
*/
@TableField(value = "actCount")
@ApiModelProperty(value = "实际数量")
private Integer actCount;
/**
*
*/
@TableField(value = "scanCount")
@ApiModelProperty(value = "扫码数量")
private Integer scanCount;
/**
*
*/
@TableField(value = "scanActCount")
@ApiModelProperty(value = "扫码实际数量")
private Integer scanActCount;
/**
*
*/
@TableField(value = "measureUnit")
@ApiModelProperty(value = "计量单位")
private String measureUnit;
/**
* 1:23
*/
@TableField(value = "tagStatus")
@ApiModelProperty(value = "单据明细赋码状态 1:未赋码2部分赋码3已赋码")
private Integer tagStatus;
/**
*
*/
@TableField(value = "tagMsg")
@ApiModelProperty(value = "赋码错误信息")
private String tagMsg;
/**
*
*/
@TableField(value = "remark")
@ApiModelProperty(value = "备注")
private String remark;
/**
*
*/
@TableField(value = "createTime")
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
*
*/
@TableField(value = "updateTime")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
*
*/
@TableField(value = "unTagCount")
@ApiModelProperty(value = "未拆零数量")
private Integer unTagCount;
/**
*
*/
@TableField(value = "autoResCount")
@ApiModelProperty(value = "自动扫描分配的工位存量")
private Integer autoResCount;
/**
*
*/
@TableField(value = "replaceCode")
@ApiModelProperty(value = "上传替换码")
private String replaceCode;
/**
* 123:
*/
@TableField(value = "autoTagStatus")
@ApiModelProperty(value = "autoTagStatus")
private Integer autoTagStatus;
/**
*
*/
@TableField(value = "tempWorkPlaceCount")
@ApiModelProperty(value = "tempWorkPlaceCount")
private Integer tempWorkPlaceCount;
/**
*
*/
@TableField(value = "splitUnCheck")
@ApiModelProperty(value = "splitUnCheck")
private boolean splitUnCheck;
/**
*
*/
@TableField(value = "tempSplitCount")
@ApiModelProperty(value = "tempSplitCount")
private Integer tempSplitCount;
@TableField(value = "searchRemark1")
@ApiModelProperty(value = "searchRemark1")
private String searchRemark1;
@TableField(value = "searchRemark2")
@ApiModelProperty(value = "searchRemark2")
private String searchRemark2;
@TableField(value = "searchRemark3")
@ApiModelProperty(value = "searchRemark3")
private String searchRemark3;
@TableField(value = "searchRemark4")
@ApiModelProperty(value = "searchRemark4")
private String searchRemark4;
@TableField(value = "searchRemark5")
@ApiModelProperty(value = "searchRemark5")
private String searchRemark5;
@TableField(value = "remark1")
private String remark1;
@TableField(value = "remark2")
private String remark2;
@TableField(value = "remark3")
private String remark3;
@TableField(value = "remark4")
private String remark4;
@TableField(value = "remark5")
private String remark5;
@TableField(value = "remark6")
private String remark6;
@TableField(value = "remark7")
private String remark7;
@TableField(value = "remark8")
private String remark8;
@TableField(value = "remark9")
private String remark9;
@TableField(value = "remark10")
private String remark10;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,17 @@
package com.glxp.udidl.admin.req.collect;
import com.glxp.udidl.admin.entity.collect.IoCollectOrderBackup;
import lombok.Data;
import java.util.List;
@Data
public class PostCollectOrderRequest {
private String thirdSys;
private String webTitle;
List<IoCollectOrderBackup> collectOrderList;
}

@ -0,0 +1,18 @@
package com.glxp.udidl.admin.service.collect;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.udidl.admin.dao.collect.IoCollectCodeMapper;
import com.glxp.udidl.admin.dao.collect.RelCodeDetailMapper;
import com.glxp.udidl.admin.entity.collect.IoCollectCode;
import com.glxp.udidl.admin.entity.collect.RelCodeDetail;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class IoCollectCodeService extends ServiceImpl<IoCollectCodeMapper, IoCollectCode> {
}

@ -0,0 +1,5 @@
<?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.glxp.udidl.admin.dao.collect.IoCollectCodeMapper">
</mapper>

@ -183,3 +183,26 @@ CALL Pro_Temp_ColumnWork('productinfo', 'bszt', 'varchar(60) NULL DEFAULT NULL C
CALL Pro_Temp_ColumnWork('productinfo', 'cpbsfbrq', 'varchar(20) NULL DEFAULT NULL COMMENT ''标识发布时间;格式:2019-09-1''', 1);
CALL Pro_Temp_ColumnWork('productinfo', 'btcpbs', 'varchar(120) NULL DEFAULT NULL COMMENT ''本体标识医疗器械本体标识中的产品标识''', 1);
CALL Pro_Temp_ColumnWork('productinfo', 'sfyzcbayz', 'varchar(10) NULL DEFAULT NULL COMMENT ''是否与注册/备案标识一致1是0否''', 1);
CREATE TABLE IF NOT EXISTS `io_collect_code` (
`id` int NOT NULL AUTO_INCREMENT,
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '追溯码UDI.药品)',
`fromType` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '单据来源',
`busType` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '单据类型',
`billNo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '单据号',
`fromCorp` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '往来单位',
`operTime` datetime DEFAULT NULL COMMENT '操作时间',
`operUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '操作人',
`collectCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '采集点',
`collectUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '采集点负责人',
`workPlaceCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '工位',
`workPlaceUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '工位负责人',
`fifoSplit` tinyint DEFAULT NULL COMMENT '赋码方式 1:自动拆零赋码2:自动整取赋码;3.手动赋码',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '备注',
`inoutType` tinyint DEFAULT NULL,
`scanCount` int DEFAULT NULL COMMENT '扫码数量',
`relId` bigint DEFAULT NULL COMMENT '耗材字典ID外键',
`webTitle` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '来源',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
Loading…
Cancel
Save