sql查询报错;

This commit is contained in:
王奎兴
2026-05-08 15:00:18 +08:00
parent 8bc716dabf
commit 999bd1de3e
@@ -9,18 +9,18 @@
FROM sys_table_config FROM sys_table_config
WHERE 1=1 WHERE 1=1
<if test="organizationId != null"> <if test="organizationId != null">
AND a.organization_id = #{organizationId} AND organization_id = #{organizationId}
</if> </if>
<if test="warehouseId != null"> <if test="warehouseId != null">
AND a.warehouse_id = #{warehouseId} AND warehouse_id = #{warehouseId}
</if> </if>
<if test="shipperId != null"> <if test="shipperId != null">
AND a.shipper_id = #{shipperId} AND shipper_id = #{shipperId}
</if> </if>
<if test="key != null and key != ''"> <if test="key != null and key != ''">
AND a.key = #{key} AND key = #{key}
</if> </if>
ORDER BY a.create_time DESC ORDER BY create_time DESC
</select> </select>
<select id="listByOrgId" resultType="com.mhd.oms.domain.sysTableConfig.entity.SysTableConfig"> <select id="listByOrgId" resultType="com.mhd.oms.domain.sysTableConfig.entity.SysTableConfig">
@@ -31,18 +31,18 @@
FROM sys_table_config FROM sys_table_config
WHERE 1=1 WHERE 1=1
<if test="organizationId != null"> <if test="organizationId != null">
AND a.organization_id = #{organizationId} AND organization_id = #{organizationId}
</if> </if>
<if test="warehouseId != null"> <if test="warehouseId != null">
AND a.warehouse_id = #{warehouseId} AND warehouse_id = #{warehouseId}
</if> </if>
<if test="shipperId != null"> <if test="shipperId != null">
AND a.shipper_id = #{shipperId} AND shipper_id = #{shipperId}
</if> </if>
<if test="key != null and key != ''"> <if test="key != null and key != ''">
AND a.key = #{key} AND key = #{key}
</if> </if>
ORDER BY a.create_time DESC ORDER BY create_time DESC
</select> </select>
<!-- 分页查询配置列表 --> <!-- 分页查询配置列表 -->
<select id="queryList" parameterType="java.lang.String" resultType="com.mhd.oms.domain.sysTableConfig.repository.vo.SysTableConfigVO"> <select id="queryList" parameterType="java.lang.String" resultType="com.mhd.oms.domain.sysTableConfig.repository.vo.SysTableConfigVO">