Ver código fonte

月度对表

hexiao 2 anos atrás
pai
commit
14d77fd73c

+ 1 - 1
purchase-system/src/main/java/com/ozs/plan/mapper/MonthlyReconciliationMapper.java

@@ -25,6 +25,6 @@ public interface MonthlyReconciliationMapper extends BaseMapper<MonthlyReconcili
             " and (#{warnStatus} is null  or   p.warn_status = #{warnStatus})  " +
             " and (#{startTime} is null  or   to_days(p.plan_demand_sub_time) >= to_days(#{startTime}) ) " +
             " and (#{entTime} is null  or   to_days(p.plan_demand_sub_time) <= to_days(#{entTime}) ) " +
-            "  ")
+            "  group by p.demand_id  order by p.create_time desc")
     List<MonthlyReconciliation> query(MonthlyReconciliationPageReqVo vo);
 }