update code

dev_xds
haha 2024-03-14 23:11:14 +08:00
parent 9566d0e9c6
commit 09de575360
1 changed files with 8 additions and 2 deletions

View File

@ -42,6 +42,8 @@ public class AttendanceHuazhuTask {
HttpUrl.Builder urlBuilder = Objects.requireNonNull(HttpUrl.parse(host + path))
.newBuilder();
long endTime=DateUtil.current();
long startTime=endTime-3600*1000*24*90;
Map<String, String> headerParams=new HashMap<>();
headerParams.put("appId","8024283707153666851");
headerParams.put("appSecret","2070308b49399d94b401d98adeaa5b342aa81627");
@ -51,7 +53,10 @@ public class AttendanceHuazhuTask {
params.put("orgId","1666339529033805825");
params.put("tenantId","1666337067184893953");
params.put("size","200");
params.put("current","174");
params.put("current","1");
params.put("startTime",startTime);
//params.put("endTime",startTime);
Request request = new Request.Builder()
.url(urlBuilder.build())
.post(toFormBody(params)).headers(setHeaderParams(headerParams))
@ -69,6 +74,7 @@ public class AttendanceHuazhuTask {
public static void main3(String[] args) {
String path="/api/open/labour/findLabourWorkerByPage";
Map<String,String> map=new HashMap<>();
map.put("appId","8024283707153666851");
map.put("secret","2070308b49399d94b401d98adeaa5b342aa81627");
map.put("projectId","1666339529033805825");
@ -173,7 +179,7 @@ public class AttendanceHuazhuTask {
Map<String,Object> map=new HashMap<>();
long endTime=DateUtil.current();
map.put("endTime",endTime);
//map.put("endTime",endTime);
map.put("startTime",startTime);
for(SurProjectAttendanceCfg it :list){
String param= it.getVendorsParameter();