|
|
|
@ -7,6 +7,7 @@ import com.kiisoo.ic.store.entity.StorePromotionDataDO;
|
|
|
|
|
import com.kiisoo.ic.store.service.StorePromotionDataService;
|
|
|
|
|
import com.kiisoo.ic.utils.DateUtils;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
@ -107,14 +108,18 @@ public class StorePromotionDataController extends BaseController {
|
|
|
|
|
@RequestMapping(value = "/behavior",method = RequestMethod.POST)
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public Map<String,Object> listUserBehaviorData(@RequestParam("userId") Long userId,
|
|
|
|
|
@RequestParam(value = "startDate") Date startDate,
|
|
|
|
|
@RequestParam(value = "endDate") Date endDate,
|
|
|
|
|
@RequestParam(value = "companyId") Long companyId,
|
|
|
|
|
@RequestParam(value = "shopId") Long shopId,
|
|
|
|
|
@RequestParam(value = "startDate",required = false) String startDate,
|
|
|
|
|
@RequestParam(value = "endDate",required = false) String endDate,
|
|
|
|
|
@RequestParam(value = "companyId",required = false) Long companyId,
|
|
|
|
|
@RequestParam(value = "shopId",required = false) Long shopId,
|
|
|
|
|
@RequestParam(value = "pageNum") Integer pageNum,
|
|
|
|
|
@RequestParam(value = "pageSize") Integer pageSize){
|
|
|
|
|
try {
|
|
|
|
|
PageInfo<PoiCustomerContactDataStat> poiCustomerContactDataStatPageInfo = storePromotionDataService.listUserBehaviorData(userId,companyId, shopId,startDate, endDate,pageNum,pageSize);
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
PageInfo<PoiCustomerContactDataStat> poiCustomerContactDataStatPageInfo = storePromotionDataService.listUserBehaviorData(userId,companyId, shopId,
|
|
|
|
|
StringUtils.isBlank(startDate) ? null : sdf.parse(startDate),
|
|
|
|
|
StringUtils.isBlank(endDate) ? null : sdf.parse(endDate),
|
|
|
|
|
pageNum,pageSize);
|
|
|
|
|
return data(poiCustomerContactDataStatPageInfo);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
log.error("查询门店推广数据列表",e);
|
|
|
|
|