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","2023-11-12 00:00:00");


        String json  = "[{modedatamodifier=1, modedatacreatertype=0, edyxqsz='1', jgsc1='', jgsc0='', yqhedzgxz='', edbgsedclfs='1', edyxq='0', qsrqValue='2022-12-11', ljcrglyfslwz='workyear', edktsc=2.00, mc=测试年假2, MODEUUID=654a2cd6-831c-4f2c-99f9-bc38cccaf4c3, zyz='', id=21, jywxcl='', ljcrglyfslwzValue=1.08, mainid=21, edkyqcs='', edfffs='0', jjrbhzedn='', modedatacreater=1, ffsj='', jb='112', edbxdcxw='', modedatacreatetime='11:04:00', schdedablzs='1', dczskxsc='', yjzd=sex, formmodeid=201, rzdqedablzs=1, fdsc01='', ffdtffsj='00:00', yqsc='', fdsc07='', fdsc06='', szjg=2, fdsc09='', fdsc08='', qsrq=workstartdate, fdsc03='', modedatacreatedate='2024-01-11', fdsc02='', requestId='', fdsc05='', fdsc04='', sm='', eddw=1, form_biz_id=21000333, edyj='1', dzqsrq='1', schdedkzsxrq=0, fdsc10='', detailid=20, fdsc12='', fdsc11='', yjzdValue='1', fgrq=15, wscl='2', dataid=21, dqtqffts='15', xxz='0', modedatamodifydatetime='2024-01-11 11:05:11'}, {modedatamodifier=1, modedatacreatertype=0, edyxqsz=1, jgsc1='', jgsc0='1', yqhedzgxz='', edbgsedclfs=1, edyxq=0, qsrqValue='2022-12-11', ljcrglyfslwz='workyear', edktsc=4.00, mc=测试年假2, MODEUUID=654a2cd6-831c-4f2c-99f9-bc38cccaf4c3, zyz='', id=21, jywxcl='', ljcrglyfslwzValue=1.08, mainid=21, edkyqcs='', edfffs='0', jjrbhzedn='', modedatacreater=1, ffsj='', jb=112, edbxdcxw='', modedatacreatetime='11:04:00', schdedablzs='1', dczskxsc='', yjzd=sex, formmodeid=201, rzdqedablzs=1, fdsc01='', ffdtffsj='00:00', yqsc='', fdsc07='', fdsc06='', szjg=2, fdsc09='', fdsc08='', qsrq='workstartdate', fdsc03='', modedatacreatedate='2024-01-11', fdsc02='', requestId='', fdsc05='', fdsc04='', sm='', eddw=1, form_biz_id=21000333, edyj='1', dzqsrq=1, schdedkzsxrq=0, fdsc10='', detailid=21, fdsc12='', fdsc11='', yjzdValue='1', fgrq=15, wscl=2, dataid=21, dqtqffts=15, xxz='1', modedatamodifydatetime='2024-01-11 11:05:11'}]";

        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);
    }
}
