Compare commits
No commits in common. "713beeb9a1c36e6793a754163f4a95153d9e21d4" and "53fd3c067de9d386167aecaf9dcd79fe6abe0c94" have entirely different histories.
713beeb9a1
...
53fd3c067d
|
|
@ -8,7 +8,9 @@ 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.*;
|
import javax.validation.constraints.Max;
|
||||||
|
import javax.validation.constraints.Min;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -61,7 +63,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 = 99900, message = "单价不能大于999")
|
@Max(value = 9999, message = "单价不能大于9999")
|
||||||
private Long unitPrice;
|
private Long unitPrice;
|
||||||
|
|
||||||
/** 总价 */
|
/** 总价 */
|
||||||
|
|
@ -75,10 +77,10 @@ public class ImsIntoInventoryDetailAdd implements Serializable
|
||||||
private BigDecimal deliveryNum;
|
private BigDecimal deliveryNum;
|
||||||
|
|
||||||
/** 入库合格数量 */
|
/** 入库合格数量 */
|
||||||
@ApiModelProperty(value = "入库合格数量", required = true, example = "10")
|
@ApiModelProperty(value = "入库合格数量")
|
||||||
@NotNull(message = "入库合格数量不能为空")
|
@NotNull(message = "入库合格数量不能为空")
|
||||||
@DecimalMin(value = "0", message = "入库合格数量不能小于0")
|
@Min(value = 0, message = "入库合格数量不能小于0")
|
||||||
@DecimalMax(value = "99900", message = "入库合格数量不能大于999")
|
@Max(value = 9999, message = "入库合格数量不能大于9999")
|
||||||
private BigDecimal purNum;
|
private BigDecimal purNum;
|
||||||
|
|
||||||
/** 不合格数量 */
|
/** 不合格数量 */
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ 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;
|
||||||
|
|
@ -13,15 +12,16 @@ 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")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime startDateTime;
|
||||||
private String startDateTime;
|
|
||||||
@ApiModelProperty("结束时间")
|
@ApiModelProperty("结束时间")
|
||||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime endDateTime;
|
||||||
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[ < ]]>CURDATE() THEN 1
|
WHEN did.expire_time <![CDATA[ < ]]> NOW() THEN 1 -- 已过期
|
||||||
WHEN TIMESTAMPDIFF(DAY, CURDATE(), did.expire_time) <![CDATA[ <= ]]> mm.shelf_life_days THEN 3
|
WHEN TIMESTAMPDIFF(DAY, NOW(), 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