feat: 增加国家库的阿里药品信息

v3
chenhc 4 months ago
parent 3e28fbccf8
commit 4c61a8e4e6

@ -122,9 +122,43 @@ public class ThirdAliDrug implements Serializable {
@ApiModelProperty(value = "更新时间")
private Date updateTime;
/**
*
*/
@TableField(value = "prepnUnit")
@ApiModelProperty(value = "制剂单位描述")
private String prepnUnit;
/**
*
*/
@TableField(value = "prepnUnitName")
@ApiModelProperty(value = "制剂单位描述")
private String prepnUnitName;
/**
*
*/
@TableField(value = "physicDetailType")
@ApiModelProperty(value = "药品详情类型")
private String physicDetailType;
/**
*
*/
@TableField(value = "physicDetailTypeDesc")
@ApiModelProperty(value = "药品类型详情描述")
private String physicDetailTypeDesc;
/**
*
*/
@TableField(value = "physicTypeDesc")
@ApiModelProperty(value = "药品类型描述")
private String physicTypeDesc;
/**
*
*/
@TableField(value = "packUnitName")
@ApiModelProperty(value = "包装单位")
private String packUnitName;
private static final long serialVersionUID = 1L;
public ThirdAliDrug(String type, String manufacturer, String cpmctymc, String form, String formSpec, String bzgg, String approvalNum, String spmc, String nameCode, String packRatio, String packLevel, Date createTime, Date updateTime) {

@ -46,13 +46,19 @@
<!-- 自定义saveOrUpdateBatch方法 -->
<insert id="saveOrUpdateBatch" parameterType="com.glxp.udidl.admin.entity.collect.ThirdAliDrug">
replace INTO third_ali_drug (`type`, manufacturer, cpmctymc, form, formSpec, bzgg, spmc, nameCode, packRatio,
packLevel, createTime, updateTime, erpId, approvalNum)
packLevel, createTime, updateTime, erpId, approvalNum,prepnUnit,prepnUnitName,physicDetailType,physicDetailTypeDesc,physicTypeDesc,packUnitName)
VALUES
<foreach collection="list" item="item" separator="," index="index">
(#{item.type}, #{item.manufacturer}, #{item.cpmctymc}, #{item.form}, #{item.formSpec}, #{item.bzgg},
#{item.spmc}, #{item.nameCode},
#{item.packRatio}, #{item.packLevel}, #{item.createTime}, #{item.updateTime}, #{item.erpId},
#{item.approvalNum})
#{item.approvalNum},
#{item.prepnUnit},
#{item.prepnUnitName},
#{item.physicDetailType},
#{item.physicDetailTypeDesc},
#{item.physicTypeDesc},
#{item.packUnitName})
</foreach>
</insert>
@ -73,7 +79,7 @@
createTime,
erpId,
updateTime,
approvalNum
approvalNum,prepnUnit,prepnUnitName,physicDetailType,physicDetailTypeDesc,physicTypeDesc,packUnitName
from third_ali_drug
<where>
<if test="cpmctymc != '' and cpmctymc != null">

@ -287,4 +287,46 @@ CREATE TABLE IF NOT EXISTS `third_ali_drug` (
UNIQUE KEY `nameCode` (`nameCode`),
KEY `approvalNum` (`approvalNum`) USING BTREE,
KEY `cpmctymc` (`cpmctymc`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CALL Pro_Temp_ColumnWork('rel_code_batch', 'erpId',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''供应商ID''',
1);
CALL Pro_Temp_ColumnWork('rel_code_batch', 'curCode',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''当前码''',
1);
CALL Pro_Temp_ColumnWork('rel_code_batch', 'oneLevelCount',
'int NULL DEFAULT null COMMENT ''一级数量''',
1);
CALL Pro_Temp_ColumnWork('rel_code_batch', 'twoLevelCount',
'int NULL DEFAULT null COMMENT ''二级数量''',
1);
CALL Pro_Temp_ColumnWork('rel_code_batch', 'threeLevelCount',
'int NULL DEFAULT null COMMENT ''三级数量''',
1);
CALL Pro_Temp_ColumnWork('third_ali_drug', 'prepnUnit',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂单位描述''',
1);
CALL Pro_Temp_ColumnWork('third_ali_drug', 'prepnUnitName',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂单位描述''',
1);
CALL Pro_Temp_ColumnWork('third_ali_drug', 'physicDetailType',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''药品详情类型''',
1);
CALL Pro_Temp_ColumnWork('third_ali_drug', 'physicDetailTypeDesc ',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''药品类型详情描述''',
1);
CALL Pro_Temp_ColumnWork('third_ali_drug', 'physicTypeDesc',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''药品类型描述''',
1);
CALL Pro_Temp_ColumnWork('third_ali_drug', 'packUnitName',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''包装单位''',
1);
Loading…
Cancel
Save