|
|
@@ -1,25 +1,15 @@
|
|
|
package com.ygtx.gxt.controller.mobile;
|
|
|
|
|
|
-import cn.hutool.json.JSONUtil;
|
|
|
-import com.alibaba.druid.support.json.JSONUtils;
|
|
|
-import com.ygtx.common.annotation.Log;
|
|
|
-import com.ygtx.common.constant.UserConstants;
|
|
|
+import com.ygtx.common.constant.CacheConstants;
|
|
|
import com.ygtx.common.core.controller.BaseController;
|
|
|
import com.ygtx.common.core.domain.AjaxResult;
|
|
|
-import com.ygtx.common.core.page.TableDataInfo;
|
|
|
import com.ygtx.common.core.redis.RedisCache;
|
|
|
-import com.ygtx.common.enums.BusinessType;
|
|
|
import com.ygtx.common.utils.DateUtils;
|
|
|
import com.ygtx.gxt.domain.GxtNotifyMessage;
|
|
|
import com.ygtx.gxt.domain.GxtRepairOrder;
|
|
|
import com.ygtx.gxt.domain.GxtWorkOrder;
|
|
|
import com.ygtx.gxt.domain.OrderScoreInfo;
|
|
|
import com.ygtx.gxt.service.IGxtOrderMineService;
|
|
|
-import com.ygtx.gxt.service.IGxtOrderScoreService;
|
|
|
-import com.ygtx.gxt.service.IGxtRepairOrderService;
|
|
|
-import com.ygtx.gxt.service.IGxtWorkOrderService;
|
|
|
-import io.lettuce.core.dynamic.annotation.Param;
|
|
|
-import io.swagger.models.auth.In;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -55,7 +45,7 @@ public class GxtMobileNotifyController extends BaseController
|
|
|
int taskNum = 0;
|
|
|
if(!orderScoreInfos.isEmpty()){
|
|
|
taskNum = orderScoreInfos.size();
|
|
|
- Object taskNumStr = redisCache.lGet(UserConstants.NOTIFY_STORAGE_KEY, id);
|
|
|
+ Object taskNumStr = redisCache.lGet(CacheConstants.NOTIFY_STORAGE_KEY, id);
|
|
|
if(taskNumStr!=null){
|
|
|
int prevTaskNum = Integer.parseInt(taskNumStr.toString());
|
|
|
if(taskNum < prevTaskNum){
|
|
|
@@ -67,7 +57,7 @@ public class GxtMobileNotifyController extends BaseController
|
|
|
}else{
|
|
|
isSend = true;
|
|
|
}
|
|
|
- redisCache.lPush(UserConstants.NOTIFY_STORAGE_KEY,id, taskNum+"");
|
|
|
+ redisCache.lPush(CacheConstants.NOTIFY_STORAGE_KEY,id, taskNum+"");
|
|
|
}
|
|
|
GxtNotifyMessage notifyMessage = new GxtNotifyMessage();
|
|
|
if(isSend) {
|