11/7 供应商添加药品信息优化1.0

dev_unify
wangwei 5 months ago
parent eee367a1f1
commit 952171b068

@ -490,6 +490,9 @@ public class ThrProductsAddDiController {
thrProductsAdddiEntity.setStatus(1); //未审核
thrProductsAdddiEntity.setType(2);
thrProductsAdddiEntity.setCustomerId(Long.parseLong(customerId));
if (thrProductsAdddiEntity.getProductsType() == 2){
thrProductsAdddiEntity.setMajorStatus(1);
}
thrProductsAddDiService.insertThrProducts(thrProductsAdddiEntity);

@ -409,10 +409,55 @@ public class ThrProductsAddDiEntity {
@TableField(value = "productsType")
private Integer productsType;
/**
*
*/
@TableField(value = "internalMaterialCode")
@ApiModelProperty(value = "'内部物资编码'")
private String internalMaterialCode;
@TableField(value = "bzgg")
@ApiModelProperty(value = "'包装材质'")
private String bzgg;
@TableField(value = "prepnUnit")
@ApiModelProperty(value = "'剂型'")
private String prepnUnit;
@TableField(value = "prepnSpec")
@ApiModelProperty(value = "'制剂规格'")
private String prepnSpec;
@TableField(value = "packMatrial")
@ApiModelProperty(value = "'包装材质'")
private String packMatrial;
/**
* 3: 2 1 9:
*/
@TableField(value = "physicType")
@ApiModelProperty(value = "'药品类型'")
private Integer physicType;
/**
* 1: 2: 3:
*/
@TableField(value = "majorType")
@ApiModelProperty(value = "'药品分类'")
private Integer majorType;
/**
* 1: 0:
*/
@TableField(value = "majorStatus")
@ApiModelProperty(value = "'药品状态'")
private Integer majorStatus;
}

@ -1066,4 +1066,31 @@ CREATE TABLE if not exists `third_ali_drug`
) ENGINE = InnoDB
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci
ROW_FORMAT = Dynamic;
ROW_FORMAT = Dynamic;
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'bzgg',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''包装规格''',
1);
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'prepnUnit',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''剂型''',
1);
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'prepnSpec',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''制剂规格''',
1);
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'packMatrial',
' varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT ''包装材质''',
1);
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'physicType',
' tinyint NULL DEFAULT NULL COMMENT ''药品类型:3:普通药品 2特殊药品制剂 1特殊药品原料药 9:未分类''',
1);
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'majorType',
' tinyint NULL DEFAULT NULL COMMENT ''药品分类:1:中药 2:化学药 3:生物制品''',
1);
CALL Pro_Temp_ColumnWork('thr_products_add_di', 'majorStatus',
' tinyint NULL DEFAULT NULL COMMENT ''药品状态: 1:在用 0:停用''',
1);

Loading…
Cancel
Save