You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
3.3 KiB
Java
45 lines
3.3 KiB
Java
import com.engine.attendance.vacation.job.holidaygeneration.tactics.SinglePaymentInFullWay;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Maps;
|
|
import com.google.gson.Gson;
|
|
|
|
import java.lang.reflect.Type;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class TestSinglePaymentFullWay {
|
|
public static void main(String[] args) throws Exception{
|
|
Map<String,Object> param = Maps.newHashMap();
|
|
param.put("userId","53");
|
|
param.put("releaseDate","2021-12-01 00:00:00");
|
|
|
|
String json = "[{modedatamodifier=1, edyxqsz=1.00, modedatacreatertype=0, jgsc1=5.00, jgsc0=1.00, yqhedzgxz='', edbgsedclfs='1', edyxq='0', ljcrglyfslwz='18', edktsc=5.00, mc=测试年假, MODEUUID=d1489670-ec11-49f5-8786-58a9ffc1167f, zyz='', id='18', jywxcl='', mainid='18', edkyqcs='', edfffs='0', jjrbhzedn='', modedatacreater='1', ffsj='', jb='112', edbxdcxw='', modedatacreatetime='15:52:56', schdedablzs='1', dczskxsc='', yjzd='', formmodeid='201', rzdqedablzs='1', fdsc01='1', ffdtffsj='00:00', yqsc='', fdsc07='7', fdsc06='6', szjg='2', fdsc09='9', fdsc08='8', qsrq='2021-05-11', fdsc03='3', modedatacreatedate='2023-12-28', fdsc02='2', requestId='', fdsc05='5', fdsc04='4', sm='', eddw='1', form_biz_id=18000333, edyj='2', dzqsrq='1', schdedkzsxrq='0', fdsc10='10', detailid='14', fdsc12='12', fdsc11='11', fgrq='15', wscl='2', dataid='18', dqtqffts='2', xxz='0', modedatamodifydatetime='2024-01-04 16:51:17'},{modedatamodifier=1, edyxqsz=2.00, modedatacreatertype=0, jgsc1=10.00, jgsc0=5.00, yqhedzgxz='', edbgsedclfs='1', edyxq='0', ljcrglyfslwz='1', edktsc=10.00, mc=测试年假, MODEUUID=d1489670-ec11-49f5-8786-58a9ffc1167f, zyz='', id='18', jywxcl='', mainid='18', edkyqcs='', edfffs='0', jjrbhzedn='', modedatacreater='1', ffsj='', jb='112', edbxdcxw='', modedatacreatetime='15:52:56', schdedablzs='1', dczskxsc='', yjzd='', formmodeid='201', rzdqedablzs='1', fdsc01='1', ffdtffsj='00:00', yqsc='', fdsc07='7', fdsc06='6', szjg='2', fdsc09='9', fdsc08='8', qsrq='2021-05-11', fdsc03='3', modedatacreatedate='2023-12-28', fdsc02='2', requestId='', fdsc05='5', fdsc04='4', sm='', eddw='1', form_biz_id=18000333, edyj='2', dzqsrq='1', schdedkzsxrq='0', fdsc10='10', detailid='15', fdsc12='12', fdsc11='11', fgrq='15', wscl='2', dataid='18', dqtqffts='15', xxz='0', modedatamodifydatetime='2024-01-04 16:51:17'}]";
|
|
Gson gson = new Gson();
|
|
List<Map<String,String>> vocationList = Lists.newArrayList();
|
|
vocationList = gson.fromJson(json, (Type) vocationList.getClass());
|
|
System.out.println(vocationList);
|
|
// List<Map<String,Object>> vocationList = Lists.newArrayList();
|
|
// vocationList.add(new HashMap(){{
|
|
// put("edsc","9.50");
|
|
// put("bdlx","0");
|
|
// put("jsdk","1");
|
|
// put("tqdkfzs","720");
|
|
// put("sfkt","1");
|
|
// put("dtjssj","12:00");
|
|
// put("zddxfz","30");
|
|
// put("bcxx","25");
|
|
// put("dxhs","5");
|
|
// put("bcsdxx","09:00-13:00|13:00-18:30");
|
|
// put("sfdx","0");
|
|
// put("dtkssj","09:00");
|
|
// put("thdkfzs","720");
|
|
// put("ksdk","0");
|
|
// put("rqlx","11");
|
|
// }});
|
|
|
|
param.put("vocationList",vocationList);
|
|
new SinglePaymentInFullWay().compute(param);
|
|
}
|
|
}
|