diff --git a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineBasicDto.java b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineBasicDto.java index dc65f51..3f04109 100644 --- a/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineBasicDto.java +++ b/ruoyi-modules/intc-health/src/main/java/com/ruoyi/health/domain/dto/HealthMedicineBasicDto.java @@ -21,6 +21,10 @@ public class HealthMedicineBasicDto implements Serializable @ApiModelProperty(value="药品名称") private String name; + /** 关键字 */ + @ApiModelProperty(value="关键字") + private String keys; + /** 药品简称 */ @ApiModelProperty(value="药品简称") private String shortName; diff --git a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineBasicMapper.xml b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineBasicMapper.xml index 310b243..5ff3cfd 100644 --- a/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineBasicMapper.xml +++ b/ruoyi-modules/intc-health/src/main/resources/mapper/health/HealthMedicineBasicMapper.xml @@ -79,10 +79,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.del_flag='0' and a.name like '%'|| #{name}||'%' + and a.name like '%'|| #{keys}||'%' or a.short_name like '%'|| #{keys}||'%' or a.brand like '%'|| #{keys}||'%' or a.manufacturers like '%'|| #{keys}||'%' or a.code like '%'|| #{keys}||'%' and a.short_name like '%'|| #{shortName}||'%' and a.classification = #{classification} and a.category = #{category} - and a.brand = #{brand} + and a.brand like '%'|| #{brand}||'%' and a.packaging = #{packaging} and a.manufacturers like '%'|| #{manufacturers}||'%' and a.treatment_type = #{treatmentType} @@ -90,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and a.ingredients = #{ingredients} and a.usage = #{usage} and a.dosage_form = #{dosageForm} - and a.code = #{code} + and a.code like '%'|| #{code}||'%' order by a.create_time desc