新增阿里药品信息目录

dev_unify
yewj 5 months ago
parent 6ce5cdc9c1
commit 3bb20f08f9

@ -0,0 +1,9 @@
package com.glxp.api.dao.thrsys;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.thrsys.ThirdAliDrug;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ThirdAliDrugMapper extends BaseMapper<ThirdAliDrug> {
}

@ -0,0 +1,114 @@
package com.glxp.api.entity.thrsys;
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 java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@ApiModel(description = "third_ali_drug")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "third_ali_drug")
public class ThirdAliDrug implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "")
private Integer id;
/**
*
*/
@TableField(value = "`type`")
@ApiModelProperty(value = "药品类型")
private String type;
/**
*
*/
@TableField(value = "manufacturer")
@ApiModelProperty(value = "生产企业")
private String manufacturer;
/**
*
*/
@TableField(value = "cpmctymc")
@ApiModelProperty(value = "产品名称通用名称")
private String cpmctymc;
/**
*
*/
@TableField(value = "form")
@ApiModelProperty(value = "剂型")
private String form;
/**
*
*/
@TableField(value = "formSpec")
@ApiModelProperty(value = "剂型规格")
private String formSpec;
/**
*
*/
@TableField(value = "bzgg")
@ApiModelProperty(value = "包装规格")
private String bzgg;
/**
*
*/
@TableField(value = "spmc")
@ApiModelProperty(value = "商品名称")
private String spmc;
/**
*
*/
@TableField(value = "nameCode")
@ApiModelProperty(value = "层级标识")
private String nameCode;
/**
*
*/
@TableField(value = "packRatio")
@ApiModelProperty(value = "包装比例")
private String packRatio;
/**
*
*/
@TableField(value = "packLevel")
@ApiModelProperty(value = "包装级别")
private String packLevel;
/**
*
*/
@TableField(value = "createTime")
@ApiModelProperty(value = "创建时间")
private Date createTime;
/**
*
*/
@TableField(value = "updateTime")
@ApiModelProperty(value = "更新时间")
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,14 @@
package com.glxp.api.service.thrsys;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.thrsys.ThirdAliDrugMapper;
import com.glxp.api.entity.thrsys.ThirdAliDrug;
@Service
public class ThirdAliDrugService extends ServiceImpl<ThirdAliDrugMapper, ThirdAliDrug> {
}

@ -0,0 +1,212 @@
<?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.api.dao.basic.ThirdAliDrugMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.thrsys.ThirdAliDrug">
<!--@mbg.generated-->
<!--@Table third_ali_drug-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="manufacturer" jdbcType="VARCHAR" property="manufacturer" />
<result column="cpmctymc" jdbcType="VARCHAR" property="cpmctymc" />
<result column="form" jdbcType="VARCHAR" property="form" />
<result column="formSpec" jdbcType="VARCHAR" property="formSpec" />
<result column="bzgg" jdbcType="VARCHAR" property="bzgg" />
<result column="spmc" jdbcType="VARCHAR" property="spmc" />
<result column="nameCode" jdbcType="VARCHAR" property="nameCode" />
<result column="packRatio" jdbcType="VARCHAR" property="packRatio" />
<result column="packLevel" jdbcType="VARCHAR" property="packLevel" />
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, `type`, manufacturer, cpmctymc, form, formSpec, bzgg, spmc, nameCode, packRatio,
packLevel, createTime, updateTime
</sql>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.thrsys.ThirdAliDrug" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into third_ali_drug
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
`type`,
manufacturer,
cpmctymc,
form,
formSpec,
bzgg,
spmc,
nameCode,
packRatio,
packLevel,
createTime,
updateTime,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{type,jdbcType=VARCHAR},
#{manufacturer,jdbcType=VARCHAR},
#{cpmctymc,jdbcType=VARCHAR},
#{form,jdbcType=VARCHAR},
#{formSpec,jdbcType=VARCHAR},
#{bzgg,jdbcType=VARCHAR},
#{spmc,jdbcType=VARCHAR},
#{nameCode,jdbcType=VARCHAR},
#{packRatio,jdbcType=VARCHAR},
#{packLevel,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
`type` = #{type,jdbcType=VARCHAR},
manufacturer = #{manufacturer,jdbcType=VARCHAR},
cpmctymc = #{cpmctymc,jdbcType=VARCHAR},
form = #{form,jdbcType=VARCHAR},
formSpec = #{formSpec,jdbcType=VARCHAR},
bzgg = #{bzgg,jdbcType=VARCHAR},
spmc = #{spmc,jdbcType=VARCHAR},
nameCode = #{nameCode,jdbcType=VARCHAR},
packRatio = #{packRatio,jdbcType=VARCHAR},
packLevel = #{packLevel,jdbcType=VARCHAR},
createTime = #{createTime,jdbcType=TIMESTAMP},
updateTime = #{updateTime,jdbcType=TIMESTAMP},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.thrsys.ThirdAliDrug" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into third_ali_drug
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="type != null">
`type`,
</if>
<if test="manufacturer != null">
manufacturer,
</if>
<if test="cpmctymc != null">
cpmctymc,
</if>
<if test="form != null">
form,
</if>
<if test="formSpec != null">
formSpec,
</if>
<if test="bzgg != null">
bzgg,
</if>
<if test="spmc != null">
spmc,
</if>
<if test="nameCode != null">
nameCode,
</if>
<if test="packRatio != null">
packRatio,
</if>
<if test="packLevel != null">
packLevel,
</if>
<if test="createTime != null">
createTime,
</if>
<if test="updateTime != null">
updateTime,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="manufacturer != null">
#{manufacturer,jdbcType=VARCHAR},
</if>
<if test="cpmctymc != null">
#{cpmctymc,jdbcType=VARCHAR},
</if>
<if test="form != null">
#{form,jdbcType=VARCHAR},
</if>
<if test="formSpec != null">
#{formSpec,jdbcType=VARCHAR},
</if>
<if test="bzgg != null">
#{bzgg,jdbcType=VARCHAR},
</if>
<if test="spmc != null">
#{spmc,jdbcType=VARCHAR},
</if>
<if test="nameCode != null">
#{nameCode,jdbcType=VARCHAR},
</if>
<if test="packRatio != null">
#{packRatio,jdbcType=VARCHAR},
</if>
<if test="packLevel != null">
#{packLevel,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="type != null">
`type` = #{type,jdbcType=VARCHAR},
</if>
<if test="manufacturer != null">
manufacturer = #{manufacturer,jdbcType=VARCHAR},
</if>
<if test="cpmctymc != null">
cpmctymc = #{cpmctymc,jdbcType=VARCHAR},
</if>
<if test="form != null">
form = #{form,jdbcType=VARCHAR},
</if>
<if test="formSpec != null">
formSpec = #{formSpec,jdbcType=VARCHAR},
</if>
<if test="bzgg != null">
bzgg = #{bzgg,jdbcType=VARCHAR},
</if>
<if test="spmc != null">
spmc = #{spmc,jdbcType=VARCHAR},
</if>
<if test="nameCode != null">
nameCode = #{nameCode,jdbcType=VARCHAR},
</if>
<if test="packRatio != null">
packRatio = #{packRatio,jdbcType=VARCHAR},
</if>
<if test="packLevel != null">
packLevel = #{packLevel,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
createTime = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
updateTime = #{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
</mapper>

@ -0,0 +1,37 @@
<?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.api.dao.thrsys.ThirdAliDrugMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.thrsys.ThirdAliDrug">
<!--@mbg.generated-->
<!--@Table third_ali_drug-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="type" jdbcType="VARCHAR" property="type"/>
<result column="manufacturer" jdbcType="VARCHAR" property="manufacturer"/>
<result column="cpmctymc" jdbcType="VARCHAR" property="cpmctymc"/>
<result column="form" jdbcType="VARCHAR" property="form"/>
<result column="formSpec" jdbcType="VARCHAR" property="formSpec"/>
<result column="bzgg" jdbcType="VARCHAR" property="bzgg"/>
<result column="spmc" jdbcType="VARCHAR" property="spmc"/>
<result column="nameCode" jdbcType="VARCHAR" property="nameCode"/>
<result column="packRatio" jdbcType="VARCHAR" property="packRatio"/>
<result column="packLevel" jdbcType="VARCHAR" property="packLevel"/>
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id,
`type`,
manufacturer,
cpmctymc,
form,
formSpec,
bzgg,
spmc,
nameCode,
packRatio,
packLevel,
createTime,
updateTime
</sql>
</mapper>

@ -993,22 +993,40 @@ CALL Pro_Temp_ColumnWork('basic_udirel', 'distributeLevel', ' int DEFAULT NULL C
CALL Pro_Temp_ColumnWork('basic_udirel', 'autoCode', ' tinyint DEFAULT ''0'' COMMENT ''是否自动赋码 0否 1是''', 1);
CALL Pro_Temp_ColumnWork('basic_udirel', 'unpackUseTime', ' datetime DEFAULT NULL COMMENT ''拆包后可用时长(小时)''', 1);
CALL Pro_Temp_ColumnWork('thr_products', 'type', 'tinyint DEFAULT NULL' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'prcitmcode', 'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'invCode', 'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname1', 'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''一级分类名称(学科,品名)''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname2', 'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''二级分类名称(用途、品目)''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname3', 'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''三级分类名称(部位、功能、品种)''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode1', 'bigint DEFAULT NULL COMMENT ''一级分类名称(学科,品名)''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode2', 'bigint DEFAULT NULL COMMENT ''二级分类名称(用途、品目)''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode3', 'bigint DEFAULT NULL COMMENT ''三级分类名称(部位、功能、品种)''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'matrial', 'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''耗材材质''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'productType', 'tinyint DEFAULT ''1'' COMMENT ''产品类型 1:耗材 2:药品''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'prepnSpec', 'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''采集规格''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'prepnUnit', 'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂单位''' ,1);
CALL Pro_Temp_ColumnWork('thr_products', 'type', 'tinyint DEFAULT NULL', 1);
CALL Pro_Temp_ColumnWork('thr_products', 'prcitmcode',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL', 1);
CALL Pro_Temp_ColumnWork('thr_products', 'invCode',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL', 1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname1',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''一级分类名称(学科,品名)''',
1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname2',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''二级分类名称(用途、品目)''',
1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogname3',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''三级分类名称(部位、功能、品种)''',
1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode1', 'bigint DEFAULT NULL COMMENT ''一级分类名称(学科,品名)''', 1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode2', 'bigint DEFAULT NULL COMMENT ''二级分类名称(用途、品目)''', 1);
CALL Pro_Temp_ColumnWork('thr_products', 'catalogCode3', 'bigint DEFAULT NULL COMMENT ''三级分类名称(部位、功能、品种)''', 1);
CALL Pro_Temp_ColumnWork('thr_products', 'matrial',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''耗材材质''',
1);
CALL Pro_Temp_ColumnWork('thr_products', 'productType', 'tinyint DEFAULT ''1'' COMMENT ''产品类型 1:耗材 2:药品''', 1);
CALL Pro_Temp_ColumnWork('thr_products', 'prepnSpec',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''采集规格''',
1);
CALL Pro_Temp_ColumnWork('thr_products', 'prepnUnit',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂单位''',
1);
CALL Pro_Temp_ColumnWork('basic_products', 'zxxsdycpbs', ' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''最小销售产品标识''' ,1);
CALL Pro_Temp_ColumnWork('basic_products', 'xjdw', ' varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''最小销售产品标识''' ,1);
CALL Pro_Temp_ColumnWork('basic_products', 'zxxsdycpbs',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''最小销售产品标识''',
1);
CALL Pro_Temp_ColumnWork('basic_products', 'xjdw',
' varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''最小销售产品标识''',
1);
@ -1026,3 +1044,26 @@ CALL Pro_Temp_ColumnWork('thr_products_add_di', 'productsType',
CALL Pro_Temp_ColumnWork('io_code_temp', 'drugLink',
' tinyint NULL DEFAULT b''0''COMMENT ''药品关联关系是否存在 0不存在 1存在''',
1);
CREATE TABLE if not exists `third_ali_drug`
(
`id` int NOT NULL AUTO_INCREMENT,
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '药品类型',
`manufacturer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生产企业',
`cpmctymc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '产品名称通用名称',
`form` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '剂型',
`formSpec` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '剂型规格',
`bzgg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '包装规格',
`spmc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品名称',
`nameCode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '层级标识',
`packRatio` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '包装比例',
`packLevel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '包装级别',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `nameCode` (`nameCode`) USING BTREE
) ENGINE = InnoDB
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci
ROW_FORMAT = Dynamic;
Loading…
Cancel
Save