打卡数据推送
This commit is contained in:
parent
0c2994734f
commit
1adf22f01a
|
|
@ -3,6 +3,8 @@ package com.engine.zhuyou.service.impl;
|
|||
import com.engine.core.impl.Service;
|
||||
import com.engine.jz.util.CommonUtil;
|
||||
import com.engine.zhuyou.service.CommonFormModeService;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.weaver.general.BaseBean;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
|
@ -11,6 +13,7 @@ import weaver.conn.RecordSet;
|
|||
import weaver.formmode.setup.ModeRightInfo;
|
||||
import weaver.general.Util;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.YearMonth;
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -254,7 +257,11 @@ public class CommonFormModeServiceImpl extends Service implements CommonFormMode
|
|||
bb.writeLog("handlePushData data is null.");
|
||||
return resultMap;
|
||||
}
|
||||
List<Map<String, String>> dataMapList = (List<Map<String, String>>) dataObj;
|
||||
String dataStr = dataObj.toString();
|
||||
Gson gson = new Gson();
|
||||
Type type = new TypeToken<List<Map<String, String>>>() {}.getType();
|
||||
List<Map<String, String>> dataMapList = gson.fromJson(dataStr, type);
|
||||
// List<Map<String, String>> dataMapList = (List<Map<String, String>>) dataObj;
|
||||
if (CollectionUtils.isEmpty(dataMapList)) {
|
||||
resultMap.put("errCode", "01");
|
||||
resultMap.put("errMes", "handlePushData dataMapList is null.");
|
||||
|
|
|
|||
Loading…
Reference in New Issue