|
@@ -71,13 +71,13 @@
|
|
|
AND item_con.is_deleted = 'N'
|
|
|
WHERE 1=1
|
|
|
<if test="lisMappingPageVO.mealName != null and lisMappingPageVO.mealName != '' ">
|
|
|
- and lis_mapping.meal_name like concat('%',#{lisMappingPageVO.mealName},'%')
|
|
|
+ and UPPER(lis_mapping.meal_name) like concat('%',UPPER(trim(#{lisMappingPageVO.mealName})),'%')
|
|
|
</if>
|
|
|
<if test="lisMappingPageVO.itemName != null and lisMappingPageVO.itemName != '' ">
|
|
|
- and item_con.lib_name like concat('%',#{lisMappingPageVO.itemName},'%')
|
|
|
+ and UPPER(item_con.lib_name) like concat('%',UPPER(trim(#{lisMappingPageVO.itemName})),'%')
|
|
|
</if>
|
|
|
<if test="lisMappingPageVO.uniqueName != null and lisMappingPageVO.uniqueName != '' ">
|
|
|
- and lis_mapping.unique_name like concat('%',#{lisMappingPageVO.uniqueName},'%')
|
|
|
+ and UPPER(lis_mapping.unique_name) like concat('%',UPPER(trim(#{lisMappingPageVO.uniqueName})),'%')
|
|
|
</if>
|
|
|
order by lis_mapping.gmt_modified desc
|
|
|
</select>
|
|
@@ -98,35 +98,35 @@
|
|
|
WHERE
|
|
|
lis.is_deleted = 'N'
|
|
|
<if test="mealIsDeleted != null and mealIsDeleted != ''">
|
|
|
- AND meal_con.is_deleted = #{mealIsDeleted}
|
|
|
+ AND UPPER(meal_con.is_deleted) = UPPER(#{mealIsDeleted})
|
|
|
</if>
|
|
|
<if test="uniqueIsDeleted != null and uniqueIsDeleted != ''">
|
|
|
- AND unique_con.is_deleted = #{uniqueIsDeleted}
|
|
|
+ AND UPPER(unique_con.is_deleted) = UPPER(#{uniqueIsDeleted})
|
|
|
</if>
|
|
|
AND lis.meal_id = meal_con.id
|
|
|
AND lis.unique_id = unique_con.id
|
|
|
) lis_mapping
|
|
|
LEFT JOIN kl_concept item_con ON lis_mapping.item_id = item_con.id
|
|
|
<if test="itemIsDeleted != null and itemIsDeleted != ''">
|
|
|
- AND item_con.is_deleted = #{itemIsDeleted}
|
|
|
+ AND UPPER(item_con.is_deleted) = UPPER(#{itemIsDeleted})
|
|
|
</if>
|
|
|
WHERE 1=1
|
|
|
<if test="mealNames != null and mealNames.size() > 0 ">
|
|
|
- and lis_mapping.meal_name in
|
|
|
+ and UPPER(lis_mapping.meal_name) in
|
|
|
<foreach collection="mealNames" item="mealName" open="(" separator="," close=")">
|
|
|
- #{mealName}
|
|
|
+ UPPER(trim (#{mealName}))
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="itemNames != null and itemNames.size() > 0 ">
|
|
|
- and item_con.lib_name in
|
|
|
+ and UPPER(item_con.lib_name) in
|
|
|
<foreach collection="itemNames" item="itemName" open="(" separator="," close=")">
|
|
|
- #{itemName}
|
|
|
+ UPPER(trim (#{itemName}))
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="uniqueNames != null and uniqueNames.size() > 0 ">
|
|
|
- and lis_mapping.unique_name in
|
|
|
+ and UPPER(lis_mapping.unique_name) in
|
|
|
<foreach collection="uniqueNames" item="uniqueName" open="(" separator="," close=")">
|
|
|
- #{uniqueName}
|
|
|
+ UPPER(trim (#{uniqueName}))
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</select>
|
|
@@ -144,7 +144,7 @@
|
|
|
where a.is_deleted = 'N') t
|
|
|
where
|
|
|
<foreach item="item" collection="list" open="(" separator="or" close=")" >
|
|
|
- t.tc = #{item.mealName} and t.mx = #{item.itemName}
|
|
|
+ UPPER(t.tc) = UPPER(#{item.mealName}) and UPPER(t.mx) = UPPER(#{item.itemName})
|
|
|
</foreach>
|
|
|
</select>
|
|
|
|