Commit 6d1e5769 by 张新旗

什么时候是个头,是个头

parent 10c00fa6
...@@ -54,7 +54,7 @@ public class ApplicationController { ...@@ -54,7 +54,7 @@ public class ApplicationController {
data.put("seqNo",key); data.put("seqNo",key);
jsonObject.put("data",data); jsonObject.put("data",data);
jiGuangPushService.push(keys[0],jsonObject); jiGuangPushService.push(keys[0],jsonObject);
stringRedisTemplate.delete(key); // stringRedisTemplate.delete(key);
return AjaxResult.success("处理成功",s); return AjaxResult.success("处理成功",s);
} }
@RequestMapping("/jgRegister") @RequestMapping("/jgRegister")
......
...@@ -89,10 +89,10 @@ public class WeixinController { ...@@ -89,10 +89,10 @@ public class WeixinController {
public AjaxResult getArea(@RequestParam(required = false) String lng,@RequestParam(required = false)String lat){ public AjaxResult getArea(@RequestParam(required = false) String lng,@RequestParam(required = false)String lat){
List<JSONObject> area = weixinService.getArea(lng,lat); List<JSONObject> area = weixinService.getArea(lng,lat);
return AjaxResult.success(area); return AjaxResult.success(area);
} }
@GetMapping(value = "/infoByShop") @GetMapping(value = "/infoByShop")
public AjaxResult infoByShop(String shopId) public AjaxResult infoByShop(String shopId)
{ {
......
...@@ -111,8 +111,6 @@ public class SysRole extends BaseEntity ...@@ -111,8 +111,6 @@ public class SysRole extends BaseEntity
this.roleName = roleName; this.roleName = roleName;
} }
@NotBlank(message = "权限字符不能为空")
@Size(min = 0, max = 100, message = "权限字符长度不能超过100个字符")
public String getRoleKey() public String getRoleKey()
{ {
return roleKey; return roleKey;
......
...@@ -68,6 +68,7 @@ import java.text.DecimalFormat; ...@@ -68,6 +68,7 @@ import java.text.DecimalFormat;
import java.util.*; import java.util.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Collectors;
@Service @Service
public class WeixinServiceImpl { public class WeixinServiceImpl {
...@@ -591,7 +592,11 @@ public class WeixinServiceImpl { ...@@ -591,7 +592,11 @@ public class WeixinServiceImpl {
JSONObject zooe = zooeObject.getJSONObject(j); JSONObject zooe = zooeObject.getJSONObject(j);
if(shop1.getZone().equals(zooe.getString("value"))){ if(shop1.getZone().equals(zooe.getString("value"))){
zoneBoo = false; zoneBoo = false;
zooe.getJSONArray("shops").add(shop1); JSONArray shopInfos = zooe.getJSONArray("shops");
shopInfos.add(shop1);
ArrayList<Shop> shopList = (ArrayList<Shop>) shopInfos.toJavaList(Shop.class);
List<Shop> collect = shopList.stream().sorted((a, b) -> a.getDistance().compareTo(b.getDistance())).collect(Collectors.toList());
zooe.put("shops",collect);
} }
} }
if(zoneBoo){ if(zoneBoo){
......
...@@ -12,9 +12,9 @@ public class CustomerQueryVo extends BaseEntity { ...@@ -12,9 +12,9 @@ public class CustomerQueryVo extends BaseEntity {
private String userInfo; private String userInfo;
private Data createAtStart; private String createAtStart;
private Data createAtEnd; private String createAtEnd;
//1 有购买 2无购买 3有复购 //1 有购买 2无购买 3有复购
private String buyRecords; private String buyRecords;
......
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