mitao
1 天以前 6e3f63bc953e8d47d4bf013d13058198a6ff7d64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.AssetAdMaterialIntegralSettlementMapper">
 
    <select id="getPageList" resultType="com.ruoyi.system.vo.asset.AssetAdMaterialIntegralSettlementVO"
            parameterType="com.ruoyi.system.query.AssetAdMaterialIntegralSettlementQuery">
        SELECT aamis.id,
              aamis.dept_id,
              aamis.title,
              aamis.settlement_project,
              aamis.settlement_institution,
              aamis.address,
              aamis.installation_date,
              aamis.total_amount,
              aamis.create_time,
              aamis.create_by,
              aamis.update_time,
              aamis.update_by,
              aamis.disabled
        FROM asset_ad_material_integral_settlement aamis LEFT JOIN t_dept td ON aamis.dept_id = td.id
        <where>
            aamis.disabled = 0
            <if test="query.title != null and query.title != ''">
                AND aamis.title LIKE CONCAT('%', #{query.title}, '%')
            </if>
            <if test="query.deptId != null">
                AND (td.id = #{query.deptId} OR FIND_IN_SET(#{query.deptId}, td.parent_id))
            </if>
        </where>
        ORDER BY aamis.create_time DESC
    </select>
</mapper>