查询参数;

This commit is contained in:
王奎兴
2026-09-11 15:52:02 +08:00
parent c1bbda9f9a
commit 3653c37914
@@ -12,38 +12,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectBillOperationLogPo1"> <sql id="selectBillOperationLogPo1">
<where> <where>
<if test="createByName != null and createByName != ''"> <if test="billOperationLogDO.createByName != null and billOperationLogDO.createByName != ''">
and create_by_name like concat('%', #{createByName}, '%') and create_by_name like concat('%', #{billOperationLogDO.createByName}, '%')
</if> </if>
<if test="updateByName != null and updateByName != ''"> <if test="billOperationLogDO.updateByName != null and billOperationLogDO.updateByName != ''">
and update_by_name like concat('%', #{updateByName}, '%') and update_by_name like concat('%', #{billOperationLogDO.updateByName}, '%')
</if> </if>
<if test="topOrganizationId != null "> <if test="billOperationLogDO.topOrganizationId != null ">
and top_organization_id = #{topOrganizationId} and top_organization_id = #{billOperationLogDO.topOrganizationId}
</if> </if>
<if test="organizationId != null "> <if test="billOperationLogDO.organizationId != null ">
and organization_id = #{organizationId} and organization_id = #{billOperationLogDO.organizationId}
</if> </if>
<if test="organizationName != null and organizationName != ''"> <if test="billOperationLogDO.organizationName != null and billOperationLogDO.organizationName != ''">
and organization_name like concat('%', #{organizationName}, '%') and organization_name like concat('%', #{billOperationLogDO.organizationName}, '%')
</if> </if>
<if test="billManageId != null "> <if test="billOperationLogDO.billManageId != null ">
and bill_manage_id = #{billManageId} and bill_manage_id = #{billOperationLogDO.billManageId}
</if> </if>
<if test="billNumber != null and billNumber != ''"> <if test="billOperationLogDO.billNumber != null and billOperationLogDO.billNumber != ''">
and bill_number = #{billNumber} and bill_number = #{billOperationLogDO.billNumber}
</if> </if>
<if test="operationType != null "> <if test="billOperationLogDO.operationType != null ">
and operation_type = #{operationType} and operation_type = #{billOperationLogDO.operationType}
</if> </if>
<if test="operationInfo != null and operationInfo != ''"> <if test="billOperationLogDO.operationInfo != null and billOperationLogDO.operationInfo != ''">
and operation_info = #{operationInfo} and operation_info = #{billOperationLogDO.operationInfo}
</if> </if>
<if test="operator != null and operator != ''"> <if test="billOperationLogDO.operator != null and billOperationLogDO.operator != ''">
and operator = #{operator} and operator = #{billOperationLogDO.operator}
</if> </if>
<if test="operationTime != null "> <if test="billOperationLogDO.operationTime != null ">
and operation_time = #{operationTime} and operation_time = #{billOperationLogDO.operationTime}
</if> </if>
</where> </where>
</sql> </sql>
@@ -64,4 +64,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND bill_manage_id = #{billManageIds} AND bill_manage_id = #{billManageIds}
ORDER BY create_time ASC ORDER BY create_time ASC
</select> </select>
</mapper> </mapper>