liu
5 天以前 a5f66f55b2c176e8504b8a077e00acfe2dfb4b00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.production.mapper.ProductionCostingWorkdayMapper">
 
    <select id="selectWorkdayList" resultType="com.ruoyi.production.pojo.ProductionCostingWorkday">
        select w.id, w.work_month as yearMonth, w.work_days, w.remark,
               w.create_user, w.create_time, w.update_user, w.update_time
        from production_costing_workday w
        <where>
            <if test="c != null">
                <if test="c.yearMonth != null and c.yearMonth != ''">
                    and w.work_month = #{c.yearMonth}
                </if>
            </if>
        </where>
        order by w.work_month desc
    </select>
 
</mapper>