Browse Source

fix: 考试记录考试名称和单位查询报错问题

zhongwei
liwen 3 months ago
parent
commit
d6ee55d840
  1. 4
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestMapper.xml

4
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/mapper/TestMapper.xml

@ -30,10 +30,10 @@
AND train_record_id = #{param.trainRecordId}
</if>
<if test="param.testName != null and param.testName != ''">
AND test_name like concat('%', #{param.testName}, '%)'
AND test_name like concat('%', #{param.testName}, '%')
</if>
<if test="param.unit != null and param.unit != ''">
AND test_name like concat('%', #{param.unit}, '%)'
AND test_name like concat('%', #{param.unit}, '%')
</if>
ORDER BY
create_time DESC

Loading…
Cancel
Save