样式优化

This commit is contained in:
朱昊天
2026-06-17 02:11:05 +08:00
parent 2798133412
commit 73ede33466
3 changed files with 50 additions and 24 deletions

View File

@@ -29,12 +29,22 @@
SELECT <include refid="cols"/>
FROM mill_process_recipe
WHERE del_flag = '0'
<if test="recipeNo != null and recipeNo != ''">
AND recipe_no LIKE CONCAT('%', #{recipeNo}, '%')
</if>
<if test="alloyNo != null and alloyNo != ''">
AND alloy_no LIKE CONCAT('%', #{alloyNo}, '%')
</if>
<choose>
<when test="recipeNo != null and recipeNo != '' and alloyNo != null and alloyNo != '' and recipeNo == alloyNo">
AND (
recipe_no LIKE CONCAT('%', #{recipeNo}, '%')
OR alloy_no LIKE CONCAT('%', #{alloyNo}, '%')
)
</when>
<otherwise>
<if test="recipeNo != null and recipeNo != ''">
AND recipe_no LIKE CONCAT('%', #{recipeNo}, '%')
</if>
<if test="alloyNo != null and alloyNo != ''">
AND alloy_no LIKE CONCAT('%', #{alloyNo}, '%')
</if>
</otherwise>
</choose>
<if test="status != null and status != ''">
AND status = #{status}
</if>