17 changed files with 483 additions and 87 deletions
@ -0,0 +1,105 @@ |
|||||
|
package com.yxt.yyth.api.empcard; |
||||
|
|
||||
|
import cn.hutool.core.date.DateUnit; |
||||
|
import cn.hutool.core.date.DateUtil; |
||||
|
import com.yxt.common.base.utils.StringUtils; |
||||
|
import com.yxt.yyth.api.empcardgift.EmpCardGiftVo; |
||||
|
import com.yxt.yyth.api.lpkgiftcard.GoodsVo; |
||||
|
import com.yxt.yyth.api.lpkreserveorder.LpkReserveOrderCardVo; |
||||
|
import com.yxt.yyth.api.lpkstore.StoreSelect; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.text.SimpleDateFormat; |
||||
|
import java.time.LocalDate; |
||||
|
import java.time.LocalDateTime; |
||||
|
import java.time.LocalTime; |
||||
|
import java.time.ZoneId; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/1/9 15:26 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EmpAppletNewVo { |
||||
|
private String dateStart; |
||||
|
private String dateEnd; |
||||
|
private String customerSid; |
||||
|
private String giftbagSid; |
||||
|
private String code; |
||||
|
private String sid ; |
||||
|
private String state; |
||||
|
private String states; |
||||
|
private boolean showBtn=true; |
||||
|
private boolean showRecord=true; |
||||
|
private String time; |
||||
|
private String name="卡号:"; |
||||
|
private String pName; |
||||
|
private String start; |
||||
|
private String end; |
||||
|
private String store; //门店
|
||||
|
private String reserveDate; //预约时间
|
||||
|
private List<GoodsVo> goodsVos; |
||||
|
private List<StoreSelect> select; |
||||
|
private String storeSid;//上次提货地点
|
||||
|
private String addressName; |
||||
|
private String isReservation;//是否超过预约时间 0 否 1是
|
||||
|
private boolean notRese=true; //是否能预约
|
||||
|
private List<EmpCardGiftVo> empCardGiftVos; |
||||
|
private String value; |
||||
|
private String serialNumber; |
||||
|
private String giftCode; |
||||
|
private String giftCodeKey; |
||||
|
private String qrCode; |
||||
|
private List<LpkReserveOrderCardVo> orderCardVoList; |
||||
|
private String isTransfer; |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
public String getState() { |
||||
|
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd"); |
||||
|
if(StringUtils.isNotBlank(dateEnd)){ |
||||
|
int i=DateUtil.parse(sdf.format(DateUtil.parse(dateEnd))).compareTo(DateUtil.parse(sdf.format(DateUtil.date()))); |
||||
|
if( String.valueOf(i).equals("-1")){ |
||||
|
state="已过期"; |
||||
|
showBtn=false; |
||||
|
}else if(isTransfer.equals("1")){ |
||||
|
state="已转赠"; |
||||
|
showBtn=false; |
||||
|
this.notRese=false; |
||||
|
} |
||||
|
else{ |
||||
|
state="待提货"; |
||||
|
if(states.equals("5")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
this.notRese=false; |
||||
|
}else{ |
||||
|
this.state="已完成"; |
||||
|
showBtn=false; |
||||
|
} |
||||
|
}else if(states.equals("4")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
}else{ |
||||
|
this.state="待提货"; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}else{ |
||||
|
state="待提货"; |
||||
|
if(states.equals("5")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
}else{ |
||||
|
this.state="已完成"; |
||||
|
showBtn=false; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return state; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,106 @@ |
|||||
|
package com.yxt.yyth.api.empcardgift; |
||||
|
|
||||
|
import cn.hutool.core.date.DateUnit; |
||||
|
import cn.hutool.core.date.DateUtil; |
||||
|
import com.yxt.common.base.utils.StringUtils; |
||||
|
import com.yxt.yyth.api.lpkreserveorder.LpkReserveOrderCardVo; |
||||
|
import com.yxt.yyth.api.lpkstore.StoreSelect; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.text.SimpleDateFormat; |
||||
|
import java.time.LocalDate; |
||||
|
import java.time.LocalDateTime; |
||||
|
import java.time.LocalTime; |
||||
|
import java.time.ZoneId; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/1/9 15:29 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EmpGiftAppletNVo { |
||||
|
private String dateStart; |
||||
|
private String dateEnd; |
||||
|
private String customerSid; |
||||
|
private String giftbagSid; |
||||
|
private String code; |
||||
|
private String sid; |
||||
|
private String state; |
||||
|
private String states; |
||||
|
private boolean showBtn = true; |
||||
|
private boolean showRecord = true; |
||||
|
private String time; |
||||
|
private String name = "卡号:"; |
||||
|
private String pName; |
||||
|
private String start; |
||||
|
private String end; |
||||
|
private String store; //门店
|
||||
|
private String reserveDate; //预约时间
|
||||
|
private List<GoodsVo> goodsVos; |
||||
|
private List<StoreSelect> select; |
||||
|
private String storeSid;//上次提货地点
|
||||
|
private String addressName; |
||||
|
private String isReservation;//是否超过预约时间 0 否 1是
|
||||
|
private boolean notRese = true; //是否能预约
|
||||
|
private List<LpkReserveOrderCardVo> orderCardVoList; |
||||
|
private List<EmpCardGift> empCardGifts; |
||||
|
private String value; |
||||
|
private String serialNumber; |
||||
|
private String isEnable; |
||||
|
private String isTransfer;//是否转增 0 未转赠 1 转赠
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
public String getState() { |
||||
|
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd"); |
||||
|
if(StringUtils.isNotBlank(dateEnd)){ |
||||
|
int i=DateUtil.parse(sdf.format(DateUtil.parse(dateEnd))).compareTo(DateUtil.parse(sdf.format(DateUtil.date()))); |
||||
|
if( String.valueOf(i).equals("-1")){ |
||||
|
state="已过期"; |
||||
|
showBtn=false; |
||||
|
}else if(isEnable.equals("2")){ |
||||
|
state="已作废"; |
||||
|
showBtn=false; |
||||
|
} |
||||
|
else if(isTransfer.equals("1")){ |
||||
|
state="已转赠"; |
||||
|
showBtn=false; |
||||
|
this.notRese=false; |
||||
|
} |
||||
|
else{ |
||||
|
state="待提货"; |
||||
|
if(states.equals("5")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
this.notRese=false; |
||||
|
}else{ |
||||
|
this.state="已完成"; |
||||
|
showBtn=false; |
||||
|
} |
||||
|
}else if(states.equals("4")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
}else{ |
||||
|
this.state="待提货"; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}else{ |
||||
|
state="待提货"; |
||||
|
if(states.equals("5")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
}else{ |
||||
|
this.state="已完成"; |
||||
|
showBtn=false; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return state; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,108 @@ |
|||||
|
package com.yxt.yyth.api.lpkgiftcard; |
||||
|
|
||||
|
import cn.hutool.core.date.DateUnit; |
||||
|
import cn.hutool.core.date.DateUtil; |
||||
|
import com.yxt.common.base.utils.StringUtils; |
||||
|
import com.yxt.yyth.api.empcardgift.EmpCardGift; |
||||
|
import com.yxt.yyth.api.lpkgiftbaggoods.LpkGifGoodsVo; |
||||
|
import com.yxt.yyth.api.lpkreserveorder.LpkReserveOrderCardVo; |
||||
|
import com.yxt.yyth.api.lpkstore.StoreSelect; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.text.SimpleDateFormat; |
||||
|
import java.time.LocalDate; |
||||
|
import java.time.LocalDateTime; |
||||
|
import java.time.LocalTime; |
||||
|
import java.time.ZoneId; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/1/9 15:24 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppletNewVo { |
||||
|
private String dateStart; |
||||
|
private String dateEnd; |
||||
|
private String customerSid; |
||||
|
private String giftbagSid; |
||||
|
private String code; |
||||
|
private String sid ; |
||||
|
private String state; |
||||
|
private String states; |
||||
|
private boolean showBtn=true; |
||||
|
private boolean showRecord=true; |
||||
|
private String time; |
||||
|
private String name="窖号:"; |
||||
|
private String pName; |
||||
|
private String start; |
||||
|
private String end; |
||||
|
private String store; //门店
|
||||
|
private String reserveDate; //预约时间
|
||||
|
private List<GoodsVo> goodsVos; |
||||
|
private List<StoreSelect> select; |
||||
|
private String storeSid;//上次提货地点
|
||||
|
private String addressName; |
||||
|
private String isReservation;//是否超过预约时间 0 否 1是
|
||||
|
private boolean notRese=true; //是否能预约
|
||||
|
private List<LpkReserveOrderCardVo> orderCardVoList; |
||||
|
private List<EmpCardGift> empCardGifts; |
||||
|
private String value; |
||||
|
private String serialNumber; |
||||
|
private String goods; |
||||
|
private String isEnable; |
||||
|
private String isTransfer;//是否转增 0 未转赠 1 转赠
|
||||
|
private String type;//是否转增 1亲情卡 2家庭 3 企业
|
||||
|
private String logo;//查询标识 1亲情卡 2家庭 3 企业
|
||||
|
private List<LpkGifGoodsVo> list; |
||||
|
|
||||
|
|
||||
|
public String getState() { |
||||
|
SimpleDateFormat sdf =new SimpleDateFormat("yyyy-MM-dd"); |
||||
|
if(StringUtils.isNotBlank(dateEnd)){ |
||||
|
int i=DateUtil.parse(sdf.format(DateUtil.parse(dateEnd))).compareTo(DateUtil.parse(sdf.format(DateUtil.date()))); |
||||
|
if( String.valueOf(i).equals("-1")){ |
||||
|
state="已过期"; |
||||
|
showBtn=false; |
||||
|
}else if(isEnable.equals("2")){ |
||||
|
state="已作废"; |
||||
|
showBtn=false; |
||||
|
} |
||||
|
else if(isTransfer.equals("1")){ |
||||
|
state="已转赠"; |
||||
|
showBtn=false; |
||||
|
this.notRese=false; |
||||
|
} |
||||
|
else{ |
||||
|
state="待提货"; |
||||
|
if(states.equals("5")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
this.notRese=false; |
||||
|
}else{ |
||||
|
this.state="已完成"; |
||||
|
showBtn=false; |
||||
|
} |
||||
|
}else if(states.equals("4")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
}else{ |
||||
|
this.state="待提货"; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}else{ |
||||
|
state="待提货"; |
||||
|
if(states.equals("5")){ |
||||
|
if(isReservation.equals("0")){ |
||||
|
this.state="已预约"; |
||||
|
}else{ |
||||
|
this.state="已完成"; |
||||
|
showBtn=false; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return state; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue