领料接口优化

This commit is contained in:
sxu 2024-11-13 09:57:43 +08:00
parent e244ebed75
commit dfdf56a8c8
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<select id="getMonthMaxOrderByDate" resultType="java.lang.Integer">
select max(month_order) from tm_task
select COALESCE(max(month_order), 0) from tm_task
where
month(create_time) = #{month} and year(create_time) = #{year}
<if test="taskType != null and taskType !=''">