供应商和基础管理的药品字典维护 增加明细分类逻辑 增加药品层级逻辑更改 选入增加明细分类 增加耗材字典表字段

dev_unify
qiuyt 5 months ago
parent 389679926d
commit d7c499a342

@ -342,7 +342,11 @@ public class UdiProductEntity {
*/ */
@TableField(value = "xjdw") @TableField(value = "xjdw")
private String xjdw; private String xjdw;
/**
*
*/
@TableField(value = "detailSort")
private Integer detailSort;
public Integer getMyBhxjsl() { public Integer getMyBhxjsl() {
if (bhxjsl == null || bhxjsl == 0) if (bhxjsl == null || bhxjsl == 0)
return 1; return 1;

@ -296,5 +296,8 @@ public class AddProductRequest {
* 使 * 使
*/ */
private Integer useMaxLevel; private Integer useMaxLevel;
/**
*
*/
private Integer detailSort;
} }

@ -74,6 +74,9 @@ public class SupplementRequest {
private String prepnUnit; private String prepnUnit;
private String prepnSpec; private String prepnSpec;
private String ggxh; private String ggxh;
/**
*
*/
private Integer detailSort;
} }

@ -127,6 +127,10 @@ public class UdiInfoRequest {
private String prepnSpec; private String prepnSpec;
private String prepnUnit; private String prepnUnit;
private String bzgg; private String bzgg;
/**
*
*/
private Integer detailSort;
public void setCheck(Boolean check) { public void setCheck(Boolean check) {

@ -329,5 +329,9 @@ public class UdiRelevanceResponse {
*/ */
@TableField(value = "unpackUseTime") @TableField(value = "unpackUseTime")
private Integer unpackUseTime; private Integer unpackUseTime;
/**
*
*/
private Integer detailSort;
} }

@ -184,5 +184,8 @@ public class UdiRlSupResponse {
* () * ()
*/ */
private Integer unpackUseTime; private Integer unpackUseTime;
/**
*
*/
private Integer detailSort;
} }

@ -370,7 +370,7 @@ public class UdiProductServiceImpl implements UdiProductService {
// BeanUtils.copyProperties(updateLevelDrugRequest, udiProductEntity); // BeanUtils.copyProperties(updateLevelDrugRequest, udiProductEntity);
BeanUtils.copyProperties(addProductRequest, udiProductEntity); BeanUtils.copyProperties(addProductRequest, udiProductEntity);
udiProductEntity.setNameCode(updateLevelDrugRequest.getNameCode()); udiProductEntity.setNameCode(updateLevelDrugRequest.getNameCode());
udiProductEntity.setBhxjsl(updateLevelDrugRequest.getMyBhxjsl()); udiProductEntity.setBhxjsl(updateLevelDrugRequest.getBhxjsl());
udiProductEntity.setPackUnit(updateLevelDrugRequest.getPackUnit()); udiProductEntity.setPackUnit(updateLevelDrugRequest.getPackUnit());
udiProductEntity.setSjcpbm(updateLevelDrugRequest.getSjcpbm()); udiProductEntity.setSjcpbm(updateLevelDrugRequest.getSjcpbm());
udiProductEntity.setCpmctymc(addProductRequest.getCpmctymc()); udiProductEntity.setCpmctymc(addProductRequest.getCpmctymc());
@ -449,7 +449,7 @@ public class UdiProductServiceImpl implements UdiProductService {
entity.setPackUnit(request.getPackUnit()); entity.setPackUnit(request.getPackUnit());
entity.setSjcpbm(request.getSjcpbm()); entity.setSjcpbm(request.getSjcpbm());
entity.setBhxjcpbm(request.getBhxjcpbm()); entity.setBhxjcpbm(request.getBhxjcpbm());
entity.setBhxjsl(request.getMyBhxjsl()); entity.setBhxjsl(request.getBhxjsl());
entity.setDiType(request.getDiType()); entity.setDiType(request.getDiType());
entity.setXjdw(request.getXjdw()); entity.setXjdw(request.getXjdw());
entity.setUpdateTime(new Date()); entity.setUpdateTime(new Date());

@ -202,7 +202,7 @@
matrial, matrial,
destinyType, destinyType,
productsType,prepnUnit,prepnSpec,storageCondition,transportCondition,indate,packMatrial,majorType,majorStatus,physicType,medicareType,bzgg, productsType,prepnUnit,prepnSpec,storageCondition,transportCondition,indate,packMatrial,majorType,majorStatus,physicType,medicareType,bzgg,
requireScanCode) requireScanCode,detailSort)
values (#{id}, #{uuid}, values (#{id}, #{uuid},
#{originUuid}, #{originUuid},
#{nameCode}, #{nameCode},
@ -276,7 +276,11 @@
#{physicType}, #{physicType},
#{medicareType}, #{medicareType},
#{bzgg}, #{bzgg},
#{requireScanCode}) #{requireScanCode},
#{detailSort}
)
</insert> </insert>
<insert id="insertUdiInfos" parameterType="java.util.List"> <insert id="insertUdiInfos" parameterType="java.util.List">
@ -1227,6 +1231,9 @@
<if test="price != null"> <if test="price != null">
price=#{price}, price=#{price},
</if> </if>
<if test="price != null">
detailSort=#{detailSort},
</if>
</trim> </trim>
WHERE uuid = #{uuid} WHERE uuid = #{uuid}
</update> </update>

@ -493,7 +493,8 @@
basic_products.workPlaceCount, basic_products.workPlaceCount,
basic_products.bhltcjsl, basic_products.bhltcjsl,
basic_products.bhsycjsl, basic_products.bhsycjsl,
th.hsmc hslbName th.hsmc hslbName,
basic_products.detailSort
FROM basic_products FROM basic_products
inner JOIN basic_udirel inner JOIN basic_udirel
ON basic_products.uuid = basic_udirel.uuid ON basic_products.uuid = basic_udirel.uuid

@ -144,7 +144,8 @@
basic_products.majorStatus, basic_products.majorStatus,
basic_products.physicType, basic_products.physicType,
basic_products.medicareType, basic_products.medicareType,
basic_products.indate basic_products.indate,
basic_products.detailSort
FROM company_product_relevance FROM company_product_relevance
inner JOIN basic_udirel inner JOIN basic_udirel
ON company_product_relevance.udiRlIdFk = basic_udirel.id ON company_product_relevance.udiRlIdFk = basic_udirel.id
@ -168,9 +169,6 @@
<if test="ggxh != '' and ggxh != null"> <if test="ggxh != '' and ggxh != null">
AND ggxh LIKE concat('%', #{ggxh}, '%') AND ggxh LIKE concat('%', #{ggxh}, '%')
</if> </if>
<if test="bzgg != '' and bzgg != null">
AND basic_products.bzgg LIKE concat('%', #{bzgg}, '%')
</if>
<if test="purType != '' and purType != null"> <if test="purType != '' and purType != null">
AND basic_udirel.purType = #{purType} AND basic_udirel.purType = #{purType}
</if> </if>
@ -272,7 +270,6 @@
</foreach> </foreach>
</if> </if>
</where> </where>
GROUP BY rlId
ORDER BY company_product_relevance.updateTime DESC ORDER BY company_product_relevance.updateTime DESC
</select> </select>

@ -1181,4 +1181,10 @@ CALL Pro_Temp_ColumnWork('third_ali_drug', 'approvalNum',
1); 1);
call Modify_index('third_ali_drug', 'approvalNum', 'approvalNum', 'BTREE'); call Modify_index('third_ali_drug', 'approvalNum', 'approvalNum', 'BTREE');
CALL Pro_Temp_ColumnWork('basic_products', 'detailSort',
' tinyint DEFAULT NULL COMMENT ''明细分类''',
1);

Loading…
Cancel
Save