修改定时任务
This commit is contained in:
@@ -125,16 +125,16 @@ public enum MessageEnum {
|
|||||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=trainerUser×tamp="+System.currentTimeMillis()+"&userDetailId="+ paramMap.get("userDetailId"), StandardCharsets.UTF_8.name());
|
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=trainerUser×tamp="+System.currentTimeMillis()+"&userDetailId="+ paramMap.get("userDetailId"), StandardCharsets.UTF_8.name());
|
||||||
case MESSAGE_24:
|
case MESSAGE_24:
|
||||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
||||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=employeeTraining×tamp="+System.currentTimeMillis(), StandardCharsets.UTF_8.name());
|
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=threeAcceptance×tamp="+System.currentTimeMillis(), StandardCharsets.UTF_8.name());
|
||||||
case MESSAGE_25:
|
case MESSAGE_25:
|
||||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
||||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=employeeTraining×tamp="+System.currentTimeMillis(), StandardCharsets.UTF_8.name());
|
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=threeAcceptance×tamp="+System.currentTimeMillis(), StandardCharsets.UTF_8.name());
|
||||||
case MESSAGE_26:
|
case MESSAGE_26:
|
||||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
return domainUrl + "/dd-noticemsg?appId=" + appId+"&corpId="+corpId+"&page=" +
|
||||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=employeeTraining×tamp="+System.currentTimeMillis()+"&shopId="+ paramMap.get("shopId"), StandardCharsets.UTF_8.name());
|
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=openPlan×tamp="+System.currentTimeMillis()+"&lineId="+ paramMap.get("lineId")+"&shopId="+ paramMap.get("shopId"), StandardCharsets.UTF_8.name());
|
||||||
case MESSAGE_27:
|
case MESSAGE_27:
|
||||||
return "dingtalk://dingtalkclient/action/open_micro_app?appId="+appId+"&corpId="+corpId+"&page=" +
|
return domainUrl + "/dd-noticemsg?appId=" + appId+"&corpId="+corpId+"&page=" +
|
||||||
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=employeeTraining×tamp="+System.currentTimeMillis()+"&shopId="+ paramMap.get("shopId"), StandardCharsets.UTF_8.name());
|
URLEncoder.encode("pages/common-web-view/index?noticeType=xfsg&routerUrl=notice&target=orderList×tamp="+System.currentTimeMillis()+"&lineId="+ paramMap.get("lineId"), StandardCharsets.UTF_8.name());
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ public class PreparationServiceImpl implements PreparationService {
|
|||||||
Map<String, String> messageMap = new HashMap<>();
|
Map<String, String> messageMap = new HashMap<>();
|
||||||
messageMap.put("storeName",shopInfo.getShopName());
|
messageMap.put("storeName",shopInfo.getShopName());
|
||||||
messageMap.put("shopId",shopId.toString());
|
messageMap.put("shopId",shopId.toString());
|
||||||
|
messageMap.put("lineId", shopInfo.getLineId().toString());
|
||||||
messageMap.put("partnerUsername",lineInfo.getUsername());
|
messageMap.put("partnerUsername",lineInfo.getUsername());
|
||||||
messageMap.put("partnerMobile",lineInfo.getMobile());
|
messageMap.put("partnerMobile",lineInfo.getMobile());
|
||||||
commonService.sendMessage(Arrays.asList(shopInfo.getSupervisorUserId()), MessageEnum.MESSAGE_26, messageMap);
|
commonService.sendMessage(Arrays.asList(shopInfo.getSupervisorUserId()), MessageEnum.MESSAGE_26, messageMap);
|
||||||
@@ -215,6 +216,7 @@ public class PreparationServiceImpl implements PreparationService {
|
|||||||
Map<String, String> messageMap1 = new HashMap<>();
|
Map<String, String> messageMap1 = new HashMap<>();
|
||||||
messageMap1.put("storeName",shopInfo.getShopName());
|
messageMap1.put("storeName",shopInfo.getShopName());
|
||||||
messageMap1.put("shopId",shopId.toString());
|
messageMap1.put("shopId",shopId.toString());
|
||||||
|
messageMap1.put("lineId", shopInfo.getLineId().toString());
|
||||||
messageMap1.put("partnerUsername",lineInfo.getUsername());
|
messageMap1.put("partnerUsername",lineInfo.getUsername());
|
||||||
messageMap1.put("partnerMobile",lineInfo.getMobile());
|
messageMap1.put("partnerMobile",lineInfo.getMobile());
|
||||||
commonService.sendMessage(Arrays.asList(shopInfo.getSupervisorUserId()), MessageEnum.MESSAGE_27, messageMap1);
|
commonService.sendMessage(Arrays.asList(shopInfo.getSupervisorUserId()), MessageEnum.MESSAGE_27, messageMap1);
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import com.cool.store.dao.*;
|
import com.cool.store.dao.*;
|
||||||
import com.cool.store.dto.OpenCityDTO;
|
import com.cool.store.dto.OpenCityDTO;
|
||||||
import com.cool.store.entity.*;
|
import com.cool.store.entity.*;
|
||||||
|
import com.cool.store.job.XxlJobHandler;
|
||||||
import com.cool.store.mapper.HyOpenAreaInfoMapper;
|
import com.cool.store.mapper.HyOpenAreaInfoMapper;
|
||||||
import com.cool.store.request.xfsgFirstOrderListRequest;
|
import com.cool.store.request.xfsgFirstOrderListRequest;
|
||||||
import com.cool.store.response.ResponseResult;
|
import com.cool.store.response.ResponseResult;
|
||||||
@@ -50,6 +51,8 @@ public class TestController {
|
|||||||
@Resource
|
@Resource
|
||||||
private RegionService regionService;
|
private RegionService regionService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private XxlJobHandler xxlJobHandler;
|
||||||
@PostMapping("/getFirstOrders")
|
@PostMapping("/getFirstOrders")
|
||||||
public ResponseResult<xfsgFirstOderListResponse> getFirstOrders(@RequestBody xfsgFirstOrderListRequest storeCodeList) {
|
public ResponseResult<xfsgFirstOderListResponse> getFirstOrders(@RequestBody xfsgFirstOrderListRequest storeCodeList) {
|
||||||
xfsgFirstOderListResponse firstOrderList = coolStoreStartFlowService.getFirstOrderList(storeCodeList);
|
xfsgFirstOderListResponse firstOrderList = coolStoreStartFlowService.getFirstOrderList(storeCodeList);
|
||||||
@@ -174,4 +177,34 @@ public class TestController {
|
|||||||
RegionPathNameVO regionPathNameVO = regionService.getAllRegionName(regionId);
|
RegionPathNameVO regionPathNameVO = regionService.getAllRegionName(regionId);
|
||||||
return ResponseResult.success(regionPathNameVO);
|
return ResponseResult.success(regionPathNameVO);
|
||||||
}
|
}
|
||||||
|
@GetMapping("/updateFirstOrder")
|
||||||
|
public ResponseResult updateFirstOrder(){
|
||||||
|
xxlJobHandler.updateFirstOrder();
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
|
@GetMapping("updateEntryTime")
|
||||||
|
public ResponseResult updateEntryTime(){
|
||||||
|
xxlJobHandler.updateEntryTime();
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
|
@GetMapping("/fitmentAcceptanceHandler")
|
||||||
|
public ResponseResult fitmentAcceptanceHandler(){
|
||||||
|
xxlJobHandler.fitmentAcceptanceHandler();
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
|
@GetMapping("/threeAcceptanceBookingMessage")
|
||||||
|
public ResponseResult threeAcceptanceBookingMessage(){
|
||||||
|
xxlJobHandler.threeAcceptanceBookingMessage();
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
|
@GetMapping("/threeAcceptanceMessage")
|
||||||
|
public ResponseResult threeAcceptanceMessage(){
|
||||||
|
xxlJobHandler.threeAcceptanceMessage();
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
|
@GetMapping("/waitThreeAcceptanceMessage")
|
||||||
|
public ResponseResult waitThreeAcceptanceMessage(){
|
||||||
|
xxlJobHandler.waitThreeAcceptanceMessage();
|
||||||
|
return ResponseResult.success();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user