fix: 自测问题修复,健康系统。

This commit is contained in:
tianyongbao
2024-10-26 16:14:49 +08:00
parent 78aba295c7
commit aff8f09341
2 changed files with 7 additions and 2 deletions

View File

@@ -21,6 +21,10 @@ public class HealthMedicineBasicDto implements Serializable
@ApiModelProperty(value="药品名称") @ApiModelProperty(value="药品名称")
private String name; private String name;
/** 关键字 */
@ApiModelProperty(value="关键字")
private String keys;
/** 药品简称 */ /** 药品简称 */
@ApiModelProperty(value="药品简称") @ApiModelProperty(value="药品简称")
private String shortName; private String shortName;

View File

@@ -79,10 +79,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> <where>
a.del_flag='0' a.del_flag='0'
<if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if> <if test="name != null and name != ''"> and a.name like '%'|| #{name}||'%'</if>
<if test="keys != null and keys != ''"> 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}||'%'</if>
<if test="shortName != null and shortName != ''"> and a.short_name like '%'|| #{shortName}||'%'</if> <if test="shortName != null and shortName != ''"> and a.short_name like '%'|| #{shortName}||'%'</if>
<if test="classification != null and classification != ''"> and a.classification = #{classification}</if> <if test="classification != null and classification != ''"> and a.classification = #{classification}</if>
<if test="category != null and category != ''"> and a.category = #{category}</if> <if test="category != null and category != ''"> and a.category = #{category}</if>
<if test="brand != null and brand != ''"> and a.brand = #{brand}</if> <if test="brand != null and brand != ''"> and a.brand like '%'|| #{brand}||'%'</if>
<if test="packaging != null and packaging != ''"> and a.packaging = #{packaging}</if> <if test="packaging != null and packaging != ''"> and a.packaging = #{packaging}</if>
<if test="manufacturers != null and manufacturers != ''"> and a.manufacturers like '%'|| #{manufacturers}||'%'</if> <if test="manufacturers != null and manufacturers != ''"> and a.manufacturers like '%'|| #{manufacturers}||'%'</if>
<if test="treatmentType != null and treatmentType != ''"> and a.treatment_type = #{treatmentType}</if> <if test="treatmentType != null and treatmentType != ''"> and a.treatment_type = #{treatmentType}</if>
@@ -90,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ingredients != null and ingredients != ''"> and a.ingredients = #{ingredients}</if> <if test="ingredients != null and ingredients != ''"> and a.ingredients = #{ingredients}</if>
<if test="usage != null and usage != ''"> and a.usage = #{usage}</if> <if test="usage != null and usage != ''"> and a.usage = #{usage}</if>
<if test="dosageForm != null and dosageForm != ''"> and a.dosage_form = #{dosageForm}</if> <if test="dosageForm != null and dosageForm != ''"> and a.dosage_form = #{dosageForm}</if>
<if test="code != null and code != ''"> and a.code = #{code}</if> <if test="code != null and code != ''"> and a.code like '%'|| #{code}||'%'</if>
</where> </where>
order by a.create_time desc order by a.create_time desc
</select> </select>