|
@@ -5,6 +5,7 @@ import com.cyksj.model.entity.CouponUser;
|
|
|
import com.ejlchina.searcher.bean.DbField;
|
|
import com.ejlchina.searcher.bean.DbField;
|
|
|
import com.ejlchina.searcher.bean.DbIgnore;
|
|
import com.ejlchina.searcher.bean.DbIgnore;
|
|
|
import com.ejlchina.searcher.bean.SearchBean;
|
|
import com.ejlchina.searcher.bean.SearchBean;
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
import lombok.Getter;
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
import lombok.Setter;
|
|
|
|
|
|
|
@@ -136,6 +137,14 @@ public class CouponUserView {
|
|
|
@DbField("ca.expiry_status")
|
|
@DbField("ca.expiry_status")
|
|
|
private Boolean expiryStatus;
|
|
private Boolean expiryStatus;
|
|
|
|
|
|
|
|
|
|
+ @DbField("case when cu.status = 'unused' then 0" +
|
|
|
|
|
+ " when cu.status = 'expired' then 1" +
|
|
|
|
|
+ " when cu.status = 'invalid' then 2" +
|
|
|
|
|
+ " when cu.status = 'used' then 3" +
|
|
|
|
|
+ " end")
|
|
|
|
|
+ @JsonIgnore
|
|
|
|
|
+ private Integer orderBy;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 0不可用/1可用
|
|
* 0不可用/1可用
|
|
|
*/
|
|
*/
|