Compare commits
	
		
			3 Commits
		
	
	
		
			53fd3c067d
			...
			713beeb9a1
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						713beeb9a1 | |
| 
							
							
								
								 | 
						7f5a5404d6 | |
| 
							
							
								
								 | 
						c21e94c029 | 
| 
						 | 
					@ -8,9 +8,7 @@ import lombok.Data;
 | 
				
			||||||
import lombok.ToString;
 | 
					import lombok.ToString;
 | 
				
			||||||
import org.checkerframework.checker.units.qual.N;
 | 
					import org.checkerframework.checker.units.qual.N;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import javax.validation.constraints.Max;
 | 
					import javax.validation.constraints.*;
 | 
				
			||||||
import javax.validation.constraints.Min;
 | 
					 | 
				
			||||||
import javax.validation.constraints.NotNull;
 | 
					 | 
				
			||||||
import java.io.Serializable;
 | 
					import java.io.Serializable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
| 
						 | 
					@ -63,7 +61,7 @@ public class ImsIntoInventoryDetailAdd implements Serializable
 | 
				
			||||||
    @ApiModelProperty(value = "单价")
 | 
					    @ApiModelProperty(value = "单价")
 | 
				
			||||||
    @NotNull(message = "单价不能为空")
 | 
					    @NotNull(message = "单价不能为空")
 | 
				
			||||||
    @Min(value = 0, message = "单价不能小于0")
 | 
					    @Min(value = 0, message = "单价不能小于0")
 | 
				
			||||||
    @Max(value = 9999, message = "单价不能大于9999")
 | 
					    @Max(value = 99900, message = "单价不能大于999")
 | 
				
			||||||
    private Long unitPrice;
 | 
					    private Long unitPrice;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** 总价 */
 | 
					    /** 总价 */
 | 
				
			||||||
| 
						 | 
					@ -77,10 +75,10 @@ public class ImsIntoInventoryDetailAdd implements Serializable
 | 
				
			||||||
    private BigDecimal deliveryNum;
 | 
					    private BigDecimal deliveryNum;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** 入库合格数量 */
 | 
					    /** 入库合格数量 */
 | 
				
			||||||
    @ApiModelProperty(value = "入库合格数量")
 | 
					    @ApiModelProperty(value = "入库合格数量", required = true, example = "10")
 | 
				
			||||||
    @NotNull(message = "入库合格数量不能为空")
 | 
					    @NotNull(message = "入库合格数量不能为空")
 | 
				
			||||||
    @Min(value = 0, message = "入库合格数量不能小于0")
 | 
					    @DecimalMin(value = "0", message = "入库合格数量不能小于0")
 | 
				
			||||||
    @Max(value = 9999, message = "入库合格数量不能大于9999")
 | 
					    @DecimalMax(value = "99900", message = "入库合格数量不能大于999")
 | 
				
			||||||
    private BigDecimal purNum;
 | 
					    private BigDecimal purNum;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /** 不合格数量 */
 | 
					    /** 不合格数量 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,6 +3,7 @@ package com.bonus.canteen.core.report.domain;
 | 
				
			||||||
import com.fasterxml.jackson.annotation.JsonFormat;
 | 
					import com.fasterxml.jackson.annotation.JsonFormat;
 | 
				
			||||||
import io.swagger.annotations.ApiModelProperty;
 | 
					import io.swagger.annotations.ApiModelProperty;
 | 
				
			||||||
import lombok.Data;
 | 
					import lombok.Data;
 | 
				
			||||||
 | 
					import org.springframework.format.annotation.DateTimeFormat;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.io.Serializable;
 | 
					import java.io.Serializable;
 | 
				
			||||||
import java.time.LocalDateTime;
 | 
					import java.time.LocalDateTime;
 | 
				
			||||||
| 
						 | 
					@ -12,16 +13,15 @@ import java.util.List;
 | 
				
			||||||
@Data
 | 
					@Data
 | 
				
			||||||
public class UserIncomeOutcomeParam implements Serializable {
 | 
					public class UserIncomeOutcomeParam implements Serializable {
 | 
				
			||||||
    @ApiModelProperty("开始时间")
 | 
					    @ApiModelProperty("开始时间")
 | 
				
			||||||
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 | 
					    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 | 
				
			||||||
    private LocalDateTime startDateTime;
 | 
					    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 | 
				
			||||||
 | 
					    private String startDateTime;
 | 
				
			||||||
    @ApiModelProperty("结束时间")
 | 
					    @ApiModelProperty("结束时间")
 | 
				
			||||||
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 | 
					   // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 | 
				
			||||||
    private LocalDateTime endDateTime;
 | 
					    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
 | 
				
			||||||
 | 
					    private String endDateTime;
 | 
				
			||||||
    private List<Long> deptIdList;
 | 
					    private List<Long> deptIdList;
 | 
				
			||||||
    private String searchValue;
 | 
					    private String searchValue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public UserIncomeOutcomeParam() {
 | 
					
 | 
				
			||||||
        this.endDateTime = LocalDateTime.now().plusDays(7).with(LocalTime.MAX);
 | 
					 | 
				
			||||||
        this.startDateTime = LocalDateTime.now().minusDays(7).with(LocalTime.MIN);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -263,9 +263,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
				
			||||||
            '系统' as data_form,
 | 
					            '系统' as data_form,
 | 
				
			||||||
            did.expire_time,
 | 
					            did.expire_time,
 | 
				
			||||||
            CASE
 | 
					            CASE
 | 
				
			||||||
                WHEN did.expire_time  <![CDATA[ < ]]> NOW() THEN 1  -- 已过期
 | 
					            WHEN did.expire_time  <![CDATA[ < ]]>CURDATE() THEN 1
 | 
				
			||||||
        WHEN TIMESTAMPDIFF(DAY, NOW(), did.expire_time) <![CDATA[  <= ]]> mm.shelf_life_days THEN 3  -- 临期
 | 
					            WHEN TIMESTAMPDIFF(DAY, CURDATE(), did.expire_time) <![CDATA[  <= ]]> mm.shelf_life_days THEN 3
 | 
				
			||||||
        ELSE 2  -- 正常
 | 
					            ELSE 2
 | 
				
			||||||
            END AS expireState,
 | 
					            END AS expireState,
 | 
				
			||||||
            TIMESTAMPDIFF( DAY, NOW(), did.expire_time ) expireDay,
 | 
					            TIMESTAMPDIFF( DAY, NOW(), did.expire_time ) expireDay,
 | 
				
			||||||
            did.unit_id,
 | 
					            did.unit_id,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue