fix(area): 修复区域类型键查询的数据类型转换问题
- 在FwAreaDivideMapper.xml中为#{key}参数添加::text类型转换
- 解决ARRAY_POSITION函数中参数类型不匹配的问题
- 确保字符串到数组的转换能够正确处理参数类型
- 修复两个查询条件中的相同数据类型问题
| | |
| | | <if test="param2.areaTypeKeyList != null and param2.areaTypeKeyList.size > 0"> |
| | | and ( |
| | | <foreach collection="param2.areaTypeKeyList" item="key" separator=" or "> |
| | | ARRAY_POSITION(string_to_array(ad.area_type_keys, ','), #{key}) IS NOT NULL |
| | | ARRAY_POSITION(string_to_array(ad.area_type_keys, ','), #{key}::text) IS NOT NULL |
| | | </foreach> |
| | | ) |
| | | </if> |
| | |
| | | <if test="areaTypeKeyList != null and areaTypeKeyList.size > 0"> |
| | | and ( |
| | | <foreach collection="areaTypeKeyList" item="key" separator=" or "> |
| | | ARRAY_POSITION(string_to_array(ad.area_type_keys, ','), #{key}) IS NOT NULL |
| | | ARRAY_POSITION(string_to_array(ad.area_type_keys, ','), #{key}::text) IS NOT NULL |
| | | </foreach> |
| | | ) |
| | | </if> |