wujianwei
2025-09-28 fe9ae222e5823f85d14cfe6f7c825172b0d43830
新增下单日期查询时间范围
2个文件已修改
13 ■■■■■ 已修改文件
service/src/main/java/com/ruoyi/cwgl/domain/EstimatedReceivable.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/src/main/resources/mapper/cwgl/EstimatedReceivableMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/src/main/java/com/ruoyi/cwgl/domain/EstimatedReceivable.java
@@ -56,6 +56,8 @@
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @TableField("order_date")
    private Date orderDate;
    private String orderDateBegin;
    private String orderDateEnd;
    /** 费用名称 */
@@ -155,5 +157,13 @@
        @TableField("deleted")
    private Integer deleted;
    public void setOrderDateBegin(String orderDateBegin) {
        this.orderDateBegin = orderDateBegin==null? null :orderDateBegin+ " 00:00:00";
    }
    public void setOrderDateEnd(String orderDateEnd) {
        this.orderDateEnd = orderDateEnd==null?null:orderDateEnd+ " 23:59:59";
    }
}
service/src/main/resources/mapper/cwgl/EstimatedReceivableMapper.xml
@@ -40,7 +40,8 @@
        <if test="dispatchNo != null  and dispatchNo != ''"> and thisTab.dispatch_no = #{dispatchNo}</if>
        <if test="customerName != null  and customerName != ''"> and  thisTab.customer_name like concat('%', #{customerName}, '%')</if>
        <if test="projectName != null  and projectName != ''"> and  thisTab.project_name like concat('%', #{projectName}, '%')</if>
        <if test="orderDate != null "> and thisTab.order_date = #{orderDate}</if>
        <if test="orderDateBegin != null and orderDateBegin!='' and orderDateEnd != null and orderDateEnd!='' "> and thisTab.order_date between #{orderDateBegin} and #{orderDateEnd}</if>
        <if test="feeName != null  and feeName != ''"> and  thisTab.fee_name like concat('%', #{feeName}, '%')</if>
        <if test="estimatedAmount != null "> and thisTab.estimated_amount = #{estimatedAmount}</if>
        <if test="currency != null  and currency != ''"> and thisTab.currency = #{currency}</if>