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
| <?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.AssetAdMaterialSporadicSettlementMapper">
|
| <select id="getPageList" resultType="com.ruoyi.system.vo.asset.AssetAdMaterialSporadicSettlementVO"
| parameterType="com.ruoyi.system.query.AssetAdMaterialSporadicSettlementQuery">
| SELECT aamss.id,
| aamss.dept_id,
| aamss.title,
| aamss.settlement_project,
| aamss.settlement_institution,
| aamss.total_amount,
| aamss.create_time,
| aamss.create_by,
| aamss.update_time,
| aamss.update_by,
| aamss.disabled
| FROM asset_ad_material_sporadic_settlement aamss LEFT JOIN t_dept td ON aamss.dept_id = td.id
| <where>
| aamss.disabled = 0
| <if test="query.title != null and query.title != ''">
| AND aamss.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 aamss.create_time DESC
| </select>
| </mapper>
|
|