fix
This commit is contained in:
@@ -14,11 +14,7 @@ import java.util.List;
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class BranchShopRequest {
|
||||
//页码
|
||||
private Integer pageNum=1;
|
||||
//分页大小
|
||||
private Integer pageSize=10;
|
||||
public class BranchShopRequest extends PageBasicInfo{
|
||||
@ApiModelProperty("加盟商姓名或手机号")
|
||||
private String partnerKeyword;
|
||||
@ApiModelProperty("门店名称/编号")
|
||||
|
||||
@@ -39,7 +39,7 @@ public class BranchShopResponse {
|
||||
@ApiModelProperty("完成项")
|
||||
private Integer completionColumn;
|
||||
@ApiModelProperty("开店时长")
|
||||
private String openTime;
|
||||
private String days;
|
||||
@ApiModelProperty("督导/招商经理")
|
||||
private String investmentManagerName;
|
||||
@ApiModelProperty("状态")
|
||||
@@ -49,15 +49,15 @@ public class BranchShopResponse {
|
||||
@ApiModelProperty("开业活动完成时间")
|
||||
private Date openingActivityEndTime;
|
||||
|
||||
public void setOpenTime() {
|
||||
public void setDays() {
|
||||
if (this.openingActivityEndTime==null){
|
||||
long between = ChronoUnit.SECONDS.between(this.createTime.toInstant(), new Date().toInstant());
|
||||
double days = (double) between / (24*60*60);
|
||||
this.openTime=String.format("%.1f", days);
|
||||
this.days=String.format("%.1f", days);
|
||||
}else{
|
||||
long between = ChronoUnit.SECONDS.between(this.createTime.toInstant(), this.openingActivityEndTime.toInstant());
|
||||
double days = (double) between / (24*60*60);
|
||||
this.openTime = String.format("%.1f", days);
|
||||
this.days = String.format("%.1f", days);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user