Commit c8a001a3 by zzd

线下预约

parent 6a400421
......@@ -7,7 +7,9 @@ import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.haoban.manage.web.qo.offline.PageOfflinePreQO;
import com.gic.haoban.manage.web.qo.offline.WriteOffOfflinePreQO;
import com.gic.haoban.manage.web.vo.offline.CountOfflinePreVO;
import com.gic.haoban.manage.web.vo.offline.OfflinePreInfoVO;
import com.gic.marketing.pro.api.dto.offline.CountOfflinePreDTO;
import com.gic.marketing.pro.api.dto.offline.OfflinePreInfoDTO;
import com.gic.marketing.pro.api.qdto.offline.PageOfflinePreQDTO;
import com.gic.marketing.pro.api.qdto.offline.WriteOffOfflinePreQDTO;
......@@ -64,4 +66,17 @@ public class OfflinePreController {
ServiceResponse<Boolean> writeOffOfflinePre = offlinePreApiService.writeOffOfflinePre(JSONObject.parseObject(JSONObject.toJSONString(qo), WriteOffOfflinePreQDTO.class));
return JSONObject.parseObject(JSONObject.toJSONString(writeOffOfflinePre, SerializerFeature.WriteMapNullValue), RestResponse.class);
}
/**
* 预约统计
* @param storeId 预约ID
* @param enterpriseId 企业ID
* @return 预约详情
*/
@RequestMapping("/count-offline-pre")
@ResponseBody
public RestResponse<CountOfflinePreVO> countOfflinePre(String storeId, String enterpriseId){
ServiceResponse<CountOfflinePreDTO> countOfflinePre = offlinePreApiService.countOfflinePre(storeId, enterpriseId);
return JSONObject.parseObject(JSONObject.toJSONString(countOfflinePre, SerializerFeature.WriteMapNullValue), RestResponse.class);
}
}
package com.gic.haoban.manage.web.vo.offline;
import java.io.Serializable;
/**
* @description: 这里是描述文字
* @author: 巴弗
* @createDate: 2022/12/1 15:41
*/
public class CountOfflinePreVO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 今天
*/
private Integer today;
/**
* 近7天
*/
private Integer nearly7Days;
public Integer getToday() {
return today;
}
public void setToday(Integer today) {
this.today = today;
}
public Integer getNearly7Days() {
return nearly7Days;
}
public void setNearly7Days(Integer nearly7Days) {
this.nearly7Days = nearly7Days;
}
}
......@@ -136,6 +136,21 @@ public class OfflinePreInfoVO implements Serializable {
*/
private String thirdImg;
/**
* 核销导购
*/
private String clerkId;
/**
* 核销导购
*/
private String clerkName;
/**
* 核销上传图片,英文逗号隔开
*/
private String writeOffImgUrl;
public String getOfflinePreId() {
return offlinePreId;
}
......@@ -327,4 +342,28 @@ public class OfflinePreInfoVO implements Serializable {
public void setThirdImg(String thirdImg) {
this.thirdImg = thirdImg;
}
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
public String getClerkName() {
return clerkName;
}
public void setClerkName(String clerkName) {
this.clerkName = clerkName;
}
public String getWriteOffImgUrl() {
return writeOffImgUrl;
}
public void setWriteOffImgUrl(String writeOffImgUrl) {
this.writeOffImgUrl = writeOffImgUrl;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment