<?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>
|