1 年之前
父节点
当前提交
9084628e6b

+ 2 - 0
platform-dao/src/main/java/com/platform/dao/dto/longyanpurchaseorder/LongYanPurchaseDetailDTO.java

@@ -23,6 +23,8 @@ import java.util.List;
 @Accessors(chain = true)
 @EqualsAndHashCode(callSuper = true)
 public class LongYanPurchaseDetailDTO extends BaseDTO implements Serializable {
+    private LocalDate startTime;
+    private LocalDate endTime;
     private List<String> longYanPurchaseOrderIds;
     private String no;
     private String ggxh;

+ 2 - 2
platform-dao/src/main/resources/mapper/longyanpurchaseorder/LongYanPurchaseDetailMapper.xml

@@ -90,10 +90,10 @@
         SELECT spare_name,SUM(num) AS totalNum FROM t_long_yan_purchase_detail menu
         <where>
             <if test="createdTimeStart != null">
-                and menu.created_time <![CDATA[>=]]>; #{createdTimeStart}
+                and menu.created_time <![CDATA[>=]]> #{startTime}
             </if>
             <if test="createdTimeEnd != null">
-                and menu.created_time <![CDATA[<=]]> #{createdTimeEnd}
+                and menu.created_time <![CDATA[<=]]> #{endTime}
             </if>
         </where>
 GROUP BY spare_id