liu
5 天以前 5d25a8a01ae3070668bc60b2597591ef2ba13e5b
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>