From c9da1b0da1178911e383ddcaebecd1e088fa6004 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期二, 05 九月 2023 16:37:07 +0800 Subject: [PATCH] 修改bug --- inspection-server/src/main/resources/mapper/RawMaterialMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inspection-server/src/main/resources/mapper/RawMaterialMapper.xml b/inspection-server/src/main/resources/mapper/RawMaterialMapper.xml index 88e512e..5ea0eef 100644 --- a/inspection-server/src/main/resources/mapper/RawMaterialMapper.xml +++ b/inspection-server/src/main/resources/mapper/RawMaterialMapper.xml @@ -11,11 +11,11 @@ <if test="materialName != null and materialName != ''"> AND r.`material_name` LIKE CONCAT('%',#{materialName},'%') </if> - <if test="type != null and type != ''"> + <if test="type != null"> AND r.`type` = #{type} </if> <if test="createTime != null and createTime != ''"> - AND DATE_FORMAT(r.`create_time`,'%Y-%m-%d') = #{createTime} + AND DATE_FORMAT(r.`date_survey`,'%Y-%m-%d') = #{createTime} </if> </select> <select id="selectRawmaAll" resultType="java.util.Map"> -- Gitblit v1.9.3