/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.springframework.beans.BeanUtils
 *  org.springframework.beans.factory.annotation.Autowired
 *  org.springframework.stereotype.Repository
 *  org.springframework.transaction.annotation.Propagation
 *  org.springframework.transaction.annotation.Transactional
 */
package com.hst.taxService.dao.imp;

import com.hst.common.domain.TaxCommonReturnDomain;
import com.hst.framework.common.HstSqlMapClientTemplate;
import com.hst.framework.constants.WebConstants;
import com.hst.framework.util.HstEncodeUtil;
import com.hst.framework.util.HstToolsUtil;
import com.hst.taxService.dao.TaxBsdtCommonDao;
import com.hst.taxService.domain.bsdt.BsdtDmListRequestDomain;
import com.hst.taxService.domain.bsdt.BsdtDmListResponseDomain;
import com.hst.taxService.domain.bsdt.BsdtLoginRequestDomain;
import com.hst.taxService.domain.bsdt.BsdtLoginResponseDomain;
import com.hst.taxService.domain.bsdt.BsdtPwdResetRequestDomain;
import com.hst.taxService.domain.bsdt.DkfpFpkjRequestDomain;
import com.hst.taxService.domain.bsdt.DkfpFpkjResponseDomain;
import com.hst.taxService.domain.bsdt.DkfpFpkjcx2Domain;
import com.hst.taxService.domain.bsdt.DkfpFpkjcxDomain;
import com.hst.taxService.domain.bsdt.DkfpPubHzkjxxRequestDomain;
import com.hst.taxService.domain.bsdt.DkfpPubImportRequestDomain;
import com.hst.taxService.domain.bsdt.DkfpPubImportResponseDomain;
import com.hst.taxService.domain.bsdt.DkfpSskkRequestDomain;
import com.hst.taxService.domain.bsdt.DkfpSskkResponseDomain;
import com.hst.taxService.domain.bsdt.DkfpSskkcxDomain;
import com.hst.taxService.domain.bsdt.DkfpUpdateZrrDjxhRequestDomain;
import com.hst.taxService.domain.bsdt.DkfpZzsPtfpImportRequestDomain;
import com.hst.taxService.domain.bsdt.DkfpZzsPtfpImportResponseDomain;
import com.hst.taxService.domain.bsdt.DkfpZzsPtfpcxDomain;
import com.hst.taxService.domain.bsdt.DkfpZzsZyfpImportRequestDomain;
import com.hst.taxService.domain.bsdt.DkfpZzsZyfpImportResponseDomain;
import com.hst.taxService.domain.bsdt.DkfpZzsZyfpcxDomain;
import com.hst.taxService.domain.bsdt.DkfpsqxxcxDomain;
import com.hst.taxService.domain.bsdt.WjzImportRequestDomain;
import com.hst.taxService.domain.bsdt.WjzImportResponseDomain;
import com.hst.taxService.domain.bsdt.WjzdrcxDomain;
import com.hst.taxService.domain.bsdt.WsgpFpyjRequestDomain;
import com.hst.taxService.domain.bsdt.WsgpFpyjResponseDomain;
import com.hst.taxService.domain.bsdt.WsgpFpyjcxDomain;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Repository
public class TaxBsdtCommonDaoImp
implements TaxBsdtCommonDao {
    @Autowired
    private HstSqlMapClientTemplate ssglSqlMapClientTemplate;

    @Override
    @Transactional(value="myTransactionManager_Ssgl", propagation=Propagation.REQUIRED)
    public List<WjzdrcxDomain> wjzdrcx(WjzImportRequestDomain domain, WjzImportResponseDomain response) throws Exception {
        ArrayList<WjzdrcxDomain> dataList = new ArrayList();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", domain.getWsDjhzXh());
        map.put("slrDm", domain.getSlrDm());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("queryWjzdrcxProc", "wjzdrcxList", map);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        dataList = (List)map.get("wjzdrcxList");
        return dataList;
    }

    @Override
    public void wjzdrhxcl(WjzImportRequestDomain request, WjzImportResponseDomain response) throws Exception {
        List dataList = new ArrayList();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("slrDm", request.getSlrDm());
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            map.put("wjzbm", HstEncodeUtil.GBK2ISO(request.getWjzbm()));
        } else {
            map.put("wjzbm", request.getWjzbm());
        }
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("wjzdrhxclProc", "wjzdrhxclList", map);
        String code = (String)map.get("code");
        response.setCode(code);
        if ("00".equals(code)) {
            dataList = (List)map.get("wjzdrhxclList");
            if (dataList != null && !dataList.isEmpty()) {
                WjzImportResponseDomain tem = (WjzImportResponseDomain)dataList.get(0);
                response.setJg(tem.getJg());
                response.setZg(tem.getZg());
                response.setNh(tem.getNh());
                response.setWh(tem.getWh());
            }
        } else if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
    }

    @Override
    @Transactional(value="myTransactionManager_Ssgl", propagation=Propagation.REQUIRED)
    public List<DkfpZzsZyfpcxDomain> dkfpZzsZyfpcx(DkfpZzsZyfpImportRequestDomain request, DkfpZzsZyfpImportResponseDomain response) throws Exception {
        ArrayList<DkfpZzsZyfpcxDomain> dataList = new ArrayList();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("slrDm", request.getSlrDm());
        map.put("zspmDm", request.getZspmDm());
        map.put("cfdrBz", request.getCfdrBz());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("queryDkfpZzsZyfpcxProc", "dkfpZzsZyfpcxList", map);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        dataList = (List)map.get("dkfpZzsZyfpcxList");
        return dataList;
    }

    @Override
    public void dkfpZzsZyfphxcl(DkfpZzsZyfpImportRequestDomain request, DkfpZzsZyfpImportResponseDomain response) throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("slrDm", request.getSlrDm());
        map.put("dksquuid", request.getDksquuid());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("dkfpZzsZyfphxclProc", map, new String[0]);
        String code = (String)map.get("code");
        response.setCode(code);
        if (!"00".equals(code)) {
            if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
                response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
            } else {
                response.setMess((String)map.get("mess"));
            }
        }
    }

    @Override
    @Transactional(value="myTransactionManager_Ssgl", propagation=Propagation.REQUIRED)
    public List<DkfpZzsPtfpcxDomain> dkfpZzsPtfpcx(DkfpZzsPtfpImportRequestDomain request, DkfpZzsPtfpImportResponseDomain response) throws Exception {
        ArrayList<DkfpZzsPtfpcxDomain> dataList = new ArrayList();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("slrDm", request.getSlrDm());
        map.put("zspmDm", request.getZspmDm());
        map.put("cfdrBz", request.getCfdrBz());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("queryDkfpZzsPtfpcxProc", "dkfpZzsPtfpcxList", map);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        dataList = (List)map.get("dkfpZzsPtfpcxList");
        return dataList;
    }

    @Override
    public void dkfpZzsPtfphxcl(DkfpZzsPtfpImportRequestDomain request, DkfpZzsPtfpImportResponseDomain response) throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("slrDm", request.getSlrDm());
        map.put("dksquuid", request.getDksquuid());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("dkfpZzsPtfphxclProc", map, new String[0]);
        String code = (String)map.get("code");
        response.setCode(code);
        if (!"00".equals(code)) {
            if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
                response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
            } else {
                response.setMess((String)map.get("mess"));
            }
        }
    }

    @Override
    @Transactional(value="myTransactionManager_Ssgl", propagation=Propagation.REQUIRED)
    public List<WsgpFpyjcxDomain> wsgpFpyjcx(WsgpFpyjRequestDomain domain, WsgpFpyjResponseDomain response) throws Exception {
        ArrayList<WsgpFpyjcxDomain> dataList = new ArrayList();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", domain.getWsDjhzXh());
        map.put("slrDm", domain.getSlrDm());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("queryWsgpFpyjcxProc", "wsgpFpyjcxList", map);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        dataList = (List)map.get("wsgpFpyjcxList");
        return dataList;
    }

    @Override
    public void wsgpFpyjhxcl(WsgpFpyjRequestDomain request, WsgpFpyjResponseDomain response) throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("slrDm", request.getSlrDm());
        map.put("fpcyuuid", request.getFpcyuuid());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("wsgpFpyjhxclProc", map, new String[0]);
        String code = (String)map.get("code");
        response.setCode(code);
        if (!"00".equals(code)) {
            if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
                response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
            } else {
                response.setMess((String)map.get("mess"));
            }
        }
    }

    @Override
    @Transactional(value="myTransactionManager_Ssgl", propagation=Propagation.REQUIRED)
    public List<DkfpSskkcxDomain> dkfpSskkcx(DkfpSskkRequestDomain domain, DkfpSskkResponseDomain response) throws Exception {
        ArrayList<DkfpSskkcxDomain> dataList = new ArrayList();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", domain.getWsDjhzXh());
        map.put("slrDm", domain.getSlrDm());
        map.put("sfxyh", domain.getSfxyh());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("queryDkfpSskkcxProc", "dkfpSskkcxList", map);
        response.setCode((String)map.get("code"));
        response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        dataList = (List)map.get("dkfpSskkcxList");
        return dataList;
    }

    @Override
    public void dkfpSskkhxcl(DkfpSskkRequestDomain request, DkfpSskkResponseDomain response) throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("slrDm", request.getSlrDm());
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            map.put("dzsphm", HstEncodeUtil.GBK2ISO(request.getDzsphm()));
        } else {
            map.put("dzsphm", request.getDzsphm());
        }
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("dkfpSskkhxclProc", map, new String[0]);
        String code = (String)map.get("code");
        response.setCode(code);
        if (!"00".equals(code)) {
            if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
                response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
            } else {
                response.setMess((String)map.get("mess"));
            }
        }
    }

    @Override
    @Transactional(value="myTransactionManager_Ssgl", propagation=Propagation.REQUIRED)
    public List<DkfpFpkjcxDomain> dkfpFpkjcx(DkfpFpkjRequestDomain domain, DkfpFpkjResponseDomain response) throws Exception {
        ArrayList<DkfpFpkjcxDomain> dataList = new ArrayList();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", domain.getWsDjhzXh());
        map.put("slrDm", domain.getSlrDm());
        map.put("fpzlDm", domain.getFpzlDm());
        map.put("fpdm", domain.getFpdm());
        map.put("fphm", domain.getFphm());
        map.put("tdzsbmDjxh", domain.getTdzsbmDjxh());
        map.put("nsrjcuuid", domain.getNsrjcuuid());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("queryDkfpFpkjcxProc", "dkfpFpkjcxList", map);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        dataList = (List)map.get("dkfpFpkjcxList");
        return dataList;
    }

    @Override
    @Transactional(value="myTransactionManager_Ssgl", propagation=Propagation.REQUIRED)
    public List<DkfpFpkjcx2Domain> dkfpFpkjcx2(DkfpFpkjRequestDomain domain, DkfpFpkjResponseDomain response) throws Exception {
        ArrayList<DkfpFpkjcx2Domain> dataList = new ArrayList();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", domain.getWsDjhzXh());
        map.put("slrDm", domain.getSlrDm());
        map.put("fpzlDm", domain.getFpzlDm());
        map.put("fpdm", domain.getFpdm());
        map.put("fphm", domain.getFphm());
        map.put("tdzsbmDjxh", domain.getTdzsbmDjxh());
        map.put("nsrjcuuid", domain.getNsrjcuuid());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("queryDkfpFpkjcx2Proc", "dkfpFpkjcx2List", map);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        dataList = (List)map.get("dkfpFpkjcx2List");
        return dataList;
    }

    @Override
    public void dkfpFpkjhxcl(DkfpFpkjRequestDomain request, DkfpFpkjResponseDomain response) throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("slrDm", request.getSlrDm());
        map.put("fpzlDm", request.getFpzlDm());
        map.put("fpdm", request.getFpdm());
        map.put("fphm", request.getFphm());
        map.put("dkfptqm", null);
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("dkfpFpkjhxclProc", map, new String[0]);
        String code = (String)map.get("code");
        response.setCode(code);
        if ("00".equals(code)) {
            response.setDkfptqm((String)map.get("dkfptqm"));
        } else if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
    }

    @Override
    @Transactional(value="myTransactionManager_Ssgl", propagation=Propagation.REQUIRED)
    public List<DkfpsqxxcxDomain> dkfpsqxxcx(DkfpPubImportRequestDomain request, DkfpPubImportResponseDomain response) throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        ArrayList<DkfpsqxxcxDomain> dataList = new ArrayList();
        map.put("sqdbh", request.getDkfpsqdbh());
        map.put("qzdrbz", request.getQzdrbz());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("queryDkfpsqxxcxProc", "dkfpsqxxcxList", map);
        response.setCode((String)map.get("code"));
        response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        dataList = (List)map.get("dkfpsqxxcxList");
        return dataList;
    }

    @Override
    public void dkfpHzkjxx(DkfpPubHzkjxxRequestDomain request, TaxCommonReturnDomain response) throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("dkfpsqdbh", request.getDkfpsqdbh());
        map.put("slrDm", request.getSlrDm());
        map.put("kjfpdm", request.getKjfpdm());
        map.put("kjfphm", request.getKjfphm());
        map.put("kjfprq", request.getKjfprq());
        map.put("kjgssphm", request.getKjgssphm());
        map.put("kjgssprq", request.getKjgssprq());
        map.put("kjdssphm", request.getKjdssphm());
        map.put("kjdssprq", request.getKjdssprq());
        map.put("kjfdm", request.getKjfdm());
        map.put("kjfip", request.getKjfip());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("dkfpHzkjxxProc", map, new String[0]);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
    }

    @Override
    public void dkfpUpdateZrrDjxh(DkfpUpdateZrrDjxhRequestDomain request, TaxCommonReturnDomain response) throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("wsDjhzXh", request.getWsDjhzXh());
        map.put("djxh", request.getDjxh());
        map.put("code", null);
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("dkfpUpdateZrrDjxhProc", map, new String[0]);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
    }

    @Override
    public TaxCommonReturnDomain BsdtLogin(BsdtLoginRequestDomain request) throws Exception {
        BsdtLoginResponseDomain response = new BsdtLoginResponseDomain();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("lb", request.getLb());
        map.put("nsrsbh", request.getNsrsbh());
        map.put("pwd", request.getPwd());
        map.put("zjhm", request.getZjhm());
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            map.put("xm", HstEncodeUtil.GBK2ISO(request.getXm()));
        } else {
            map.put("xm", request.getXm());
        }
        map.put("nsrSwjgDm", request.getNsrSwjgDm());
        map.put("jbdm", request.getJbdm());
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("BsdtLoginProc", "dataList", map);
        String code = (String)map.get("code");
        if ("00".equals(code)) {
            BeanUtils.copyProperties(((List)map.get("dataList")).get(0), (Object)response);
        }
        response.setCode(code);
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain BsdtDmList(BsdtDmListRequestDomain request) throws Exception {
        BsdtDmListResponseDomain response = new BsdtDmListResponseDomain();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", request.getSwjgDm());
        map.put("tablename", request.getTablename());
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("BsdtDmListProc", "dataList", map);
        List dataList = (List)map.get("dataList");
        response.setCode((String)map.get("code"));
        response.setDataList(dataList);
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain BsdtPwdReset(BsdtPwdResetRequestDomain request) throws Exception {
        TaxCommonReturnDomain response = new TaxCommonReturnDomain();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("nsrsbh", request.getNsrsbh().trim());
        map.put("oldPwd", request.getOldPwd().trim());
        map.put("newPwd", request.getNewPwd().trim());
        map.put("mess", null);
        this.ssglSqlMapClientTemplate.queryForObjectByCurr("bsdtPwdResetProc", map, new String[0]);
        response.setCode((String)map.get("code"));
        if ("ISO".equalsIgnoreCase(WebConstants.DATABASE_ENCODE)) {
            response.setMess(HstToolsUtil.ISO2GBK((String)map.get("mess")));
        } else {
            response.setMess((String)map.get("mess"));
        }
        return response;
    }
}
