Commit 7f8af5d9 by qwmqiuwenmin

fix

parent 6a6f0e9e
...@@ -536,26 +536,26 @@ public class WxEnterpriseController extends WebBaseController{ ...@@ -536,26 +536,26 @@ public class WxEnterpriseController extends WebBaseController{
if(StringUtils.isEmpty(taskId)){ if(StringUtils.isEmpty(taskId)){
return resultResponse(HaoBanErrCode.ERR_100021); return resultResponse(HaoBanErrCode.ERR_100021);
} }
QuartzTaskDTO taskDTO = buildQuartzTaskDTO("haoban-enterprise-fresh-wx-friend"); // QuartzTaskDTO taskDTO = buildQuartzTaskDTO("haoban-enterprise-fresh-wx-friend");
JSONObject json = new JSONObject(); // JSONObject json = new JSONObject();
json.put("taskId", taskId); // json.put("taskId", taskId);
json.put("wxEnterpriseId", wxEnterpriseId); // json.put("wxEnterpriseId", wxEnterpriseId);
taskDTO.setTaskParam(json.toJSONString()); // taskDTO.setTaskParam(json.toJSONString());
taskDTO.setTaskStatus(1); // taskDTO.setTaskStatus(1);
Date now = new Date(); // Date now = new Date();
Date exeDate = DateUtil.addDay(now, 1); // Date exeDate = DateUtil.addDay(now, 1);
Calendar ca = Calendar.getInstance(); // Calendar ca = Calendar.getInstance();
ca.setTime(now); // ca.setTime(now);
int day = ca.get(Calendar.DAY_OF_MONTH);//第几天 // int day = ca.get(Calendar.DAY_OF_MONTH);//第几天
int month = ca.get(Calendar.MONTH);//第几个月 // int month = ca.get(Calendar.MONTH);//第几个月
int year = ca.get(Calendar.YEAR);//年份数值 // int year = ca.get(Calendar.YEAR);//年份数值
int hour = ca.get(Calendar.HOUR);// // int hour = ca.get(Calendar.HOUR);//
int minute = ca.get(Calendar.MINUTE);// // int minute = ca.get(Calendar.MINUTE);//
int second = ca.get(Calendar.SECOND);// // int second = ca.get(Calendar.SECOND);//
String con = second + " " + minute + " " + hour + " " + day + " " + month +" " + year; // String con = second + " " + minute + " " + hour + " " + day + " " + month +" " + year;
taskDTO.setTaskTimeInfo(con); // taskDTO.setTaskTimeInfo(con);
quartzService.addOrUpdateQuartzTask(taskDTO); // quartzService.addOrUpdateQuartzTask(taskDTO);
// dealSyncOperationApiService.dealWxFriendClerk(taskId, wxEnterpriseId); dealSyncOperationApiService.dealWxFriendClerk(taskId, wxEnterpriseId);
RedisUtil.setCache(dayKey, dayCount+1); RedisUtil.setCache(dayKey, dayCount+1);
RedisUtil.setCache(monthKey, monthCount+1); RedisUtil.setCache(monthKey, monthCount+1);
RedisUtil.setCache(dateKey, DateUtil.dateToStr(new Date(),DateUtil.FORMAT_DATETIME_19)); RedisUtil.setCache(dateKey, DateUtil.dateToStr(new Date(),DateUtil.FORMAT_DATETIME_19));
......
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