|
@@ -20,6 +20,7 @@ import com.boman.system.api.RemoteDeptService;
|
|
import com.boman.system.api.RemoteUserService;
|
|
import com.boman.system.api.RemoteUserService;
|
|
import com.boman.web.core.domain.AccountingData;
|
|
import com.boman.web.core.domain.AccountingData;
|
|
import com.boman.web.core.domain.BirthRecords;
|
|
import com.boman.web.core.domain.BirthRecords;
|
|
|
|
+import com.boman.web.core.domain.vo.AccountingDataVo;
|
|
import com.boman.web.core.mapper.CzrkMapper;
|
|
import com.boman.web.core.mapper.CzrkMapper;
|
|
import com.boman.web.core.mapper.GridInfoMapper;
|
|
import com.boman.web.core.mapper.GridInfoMapper;
|
|
import com.boman.web.core.service.accounting.IAccountingDataService;
|
|
import com.boman.web.core.service.accounting.IAccountingDataService;
|
|
@@ -592,7 +593,14 @@ public class TaskService {
|
|
public void insertAccountingData() {
|
|
public void insertAccountingData() {
|
|
String token = getToken();
|
|
String token = getToken();
|
|
if (StringUtils.isNotBlank(token)) {
|
|
if (StringUtils.isNotBlank(token)) {
|
|
- String startTime = redisService.getCacheObject("startTime");
|
|
|
|
|
|
+ //String startTime = "2022-05-14%2010:00:59";
|
|
|
|
+ String startTime = "2022-05-14 00:00:00.0";
|
|
|
|
+ //去数据库取最新的一条数据
|
|
|
|
+ AccountingDataVo accountingData = accountingDataService.getAccountingDataOne();
|
|
|
|
+ if(accountingData != null){
|
|
|
|
+ startTime = accountingData.getCjsj();
|
|
|
|
+ }
|
|
|
|
+ //String startTime = redisService.getCacheObject("startTime");
|
|
Map<String, String> paramMap = new HashMap<>();
|
|
Map<String, String> paramMap = new HashMap<>();
|
|
paramMap.put("client_id", "acdf50bd13be4901b64c62b1fee862c0");
|
|
paramMap.put("client_id", "acdf50bd13be4901b64c62b1fee862c0");
|
|
paramMap.put("access_token", token);
|
|
paramMap.put("access_token", token);
|