From 970f24e3fea10272f1d5162525d4a26059e8c467 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Sat, 26 Oct 2024 16:14:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E6=B5=8B=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=8C=E5=81=A5=E5=BA=B7=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/health/domain/dto/HealthMedicineBasicDto.java | 4 ++++ .../resources/mapper/health/HealthMedicineBasicMapper.xml | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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