/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  gov.gt3.iitms.base.app.comp.nfjr.IitmsNfjrMessageCompressor
 *  org.apache.commons.beanutils.BeanUtils
 *  org.springframework.beans.factory.annotation.Autowired
 *  org.springframework.stereotype.Service
 *  org.springframework.transaction.annotation.Propagation
 *  org.springframework.transaction.annotation.Transactional
 */
package com.hst.taxService.service.imp;

import com.hst.business.domain.XtGt3LogDomain;
import com.hst.business.domain.XtTaxServiceLogDomain;
import com.hst.common.domain.BaseAppServiceDomain;
import com.hst.common.domain.BaseGt3ServiceDomain;
import com.hst.common.domain.TaxCommonReturnDomain;
import com.hst.common.service.imp.BaseBusinessServiceImp;
import com.hst.common.util.CollatorComparator;
import com.hst.common.util.DBUtil;
import com.hst.common.util.DecimalFormatUtil;
import com.hst.common.util.EjbJ3Util;
import com.hst.common.util.XmlHelper;
import com.hst.common.util.XmlUtil;
import com.hst.framework.constants.AppServiceConstants;
import com.hst.framework.constants.WebConstants;
import com.hst.framework.util.HstDateUtil;
import com.hst.framework.util.HstToolsUtil;
import com.hst.taxService.dao.Gt3CommonDao;
import com.hst.taxService.dao.TaxLogDao;
import com.hst.taxService.domain.gt3.DmZspmDomain;
import com.hst.taxService.domain.gt3.GSGLDJ00001ResponseDomain;
import com.hst.taxService.domain.gt3.GSGLDJ00001ZrrxxResGridDomain;
import com.hst.taxService.domain.gt3.GSGLDJ00001ZrrxxResListDomain;
import com.hst.taxService.domain.gt3.GSGLSB00001ResponseDomain;
import com.hst.taxService.domain.gt3.GSGLSB00001ZrrxxgridDomain;
import com.hst.taxService.domain.gt3.GSGLSB00001ZrrxxlbDomain;
import com.hst.taxService.domain.gt3.GSGLSB00001ZrrzgswfpDomain;
import com.hst.taxService.domain.gt3.GSGLSB00001ZrrzgswfplbDomain;
import com.hst.taxService.domain.gt3.GSGLSB00079ResponseDomain;
import com.hst.taxService.domain.gt3.GSGLSB00088RequestDomain;
import com.hst.taxService.domain.gt3.GSGLSB00088ResponseDomain;
import com.hst.taxService.domain.gt3.GSGLSB00088SbcshjmxxDomain;
import com.hst.taxService.domain.gt3.GSGLSB00088SbcshjmxxlbDomain;
import com.hst.taxService.domain.gt3.GSGLSB00088SbcshtzfxxDomain;
import com.hst.taxService.domain.gt3.GSGLSB00088SbcshxxDomain;
import com.hst.taxService.domain.gt3.GSGLSB00088SbcshyjseDomain;
import com.hst.taxService.domain.gt3.GSGLSB00088SbcshzsfsxxDomain;
import com.hst.taxService.domain.gt3.GSGLSB00340ResponseDomain;
import com.hst.taxService.domain.gt3.GsglDjCxZrrDjxxWbxtRequestDomain;
import com.hst.taxService.domain.gt3.GsglDjCxZrrDjxxWbxtjDomain;
import com.hst.taxService.domain.gt3.GsglDjCxZrrDjxxWbxtjResponseDomain;
import com.hst.taxService.domain.gt3.GsglDjCxZrrDjxxWbxtjZrrzgswfplbDomain;
import com.hst.taxService.domain.gt3.GsglSbGrsdsScjysdARequestDomain;
import com.hst.taxService.domain.gt3.GsglSbGrsdsScjysdAResponseDomain;
import com.hst.taxService.domain.gt3.GsglSbGrsdsScjysdAZfRequestDomain;
import com.hst.taxService.domain.gt3.Gt3HeadDomain;
import com.hst.taxService.domain.gt3.Gt3RtnMsgDomain;
import com.hst.taxService.domain.gt3.Gt3ServiceDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00004NsrxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00004NsrxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00004ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00075ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00094CkzhzhbgGridDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00094CkzhzhbgGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00094ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00489ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00489ZrrxxResGridDomain;
import com.hst.taxService.domain.gt3.HXZGDJ00489ZrrxxResListDomain;
import com.hst.taxService.domain.gt3.HXZGFP00057ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP00251PzhdxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGFP00251PzhdxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFP00251ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP00268ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP00272FppzhdgprxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGFP00272FppzhdgprxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFP00272ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP00276FplgqcmxGridDomain;
import com.hst.taxService.domain.gt3.HXZGFP00276FplgqcmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFP00276ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP00279FpNsrfpjcVOListDomain;
import com.hst.taxService.domain.gt3.HXZGFP00279FpNsrfpjcVOListlbDomain;
import com.hst.taxService.domain.gt3.HXZGFP00279ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP10000FPdkSqVOGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFP10000FpdkSqVOGridDomain;
import com.hst.taxService.domain.gt3.HXZGFP10000ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP10021FpdkSqVODomain;
import com.hst.taxService.domain.gt3.HXZGFP10021FpdkZzsfpHlmxGridDomain;
import com.hst.taxService.domain.gt3.HXZGFP10021FpdkZzsfpHlmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFP10021FpdkZzsfpVODomain;
import com.hst.taxService.domain.gt3.HXZGFP10021ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP10021ZzszyfpdksbdVODomain;
import com.hst.taxService.domain.gt3.HXZGFP10025ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP10026ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP10032ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP10033FPZzszyfpdksbdVODomain;
import com.hst.taxService.domain.gt3.HXZGFP10033FpdkSfmxGridDomain;
import com.hst.taxService.domain.gt3.HXZGFP10033FpdkSfmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFP10033ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFP15155ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGFPFpdkTyjdHlmxGridDomain;
import com.hst.taxService.domain.gt3.HXZGFPFpdkTyjdHlmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFpDkTyjdfpVODomain;
import com.hst.taxService.domain.gt3.HXZGFpSfmxVOGridDomain;
import com.hst.taxService.domain.gt3.HXZGFpSfmxVOGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFpdkSfmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFpdkSqVODomain;
import com.hst.taxService.domain.gt3.HXZGFpdkZzsfpHlmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGFpdkZzsptfpHlmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGPZ10012KcxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGPZ10012KcxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGPZ10012ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGRD00073ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGRD00073SfzrdxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGRD00073SfzrdxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGSB00038ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB00038SBSaveReturnVODomain;
import com.hst.taxService.domain.gt3.HXZGSB00044JmxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044JmxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044RequestDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044SbZzsxgmnsrqtxxVODomain;
import com.hst.taxService.domain.gt3.HXZGSB00044SbxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044SbxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044YjxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044YjxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044ZzsxgmnsrqcsxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGSB00044ZzsxgmnsrqcsxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGSB00045ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB00045SBSaveReturnVODomain;
import com.hst.taxService.domain.gt3.HXZGSB00067ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB00067SBSaveReturnVODomain;
import com.hst.taxService.domain.gt3.HXZGSB00099ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB00099SBSaveReturnVODomain;
import com.hst.taxService.domain.gt3.HXZGSB00494ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB00494SbqkGridDomain;
import com.hst.taxService.domain.gt3.HXZGSB00494SbqkGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGSB00507ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB00507SBWsbxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGSB00507SBWsbxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGSB00744PzjcVoDomain;
import com.hst.taxService.domain.gt3.HXZGSB00744ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB00744pzjcVoListDomain;
import com.hst.taxService.domain.gt3.HXZGSB01285ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGSB01285SBSaveReturnVODomain;
import com.hst.taxService.domain.gt3.HXZGZM00004ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS00038RequestDomain;
import com.hst.taxService.domain.gt3.HXZGZS00038ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS00326ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS00326YskmblGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS00326YskmblGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS00996ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS00996SfxyxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS00996SfxyxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10007JkxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10007JkxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10007ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10007SzxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10007SzxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10025ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10025SzmxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10025SzmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10025YzxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10025YzxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10028ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10065PrintListGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10065PrintListGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10065ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10065ZskpGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10065ZskpGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10126ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10126YzxxGridlbVODomain;
import com.hst.taxService.domain.gt3.HXZGZS10126YzxxVODomain;
import com.hst.taxService.domain.gt3.HXZGZS10186JkxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10186JkxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10186ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10186WszGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10186WszGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10193ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10215GrjkxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10215GrjkxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10215ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10215SzmxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10215SzmxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10215YzxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10215YzxxGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZS10227ResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS10227WkksbbxxGridDomain;
import com.hst.taxService.domain.gt3.HXZGZS10227WkksbbxxgGridlbDomain;
import com.hst.taxService.domain.gt3.HXZGZSSfxyxxResponseDomain;
import com.hst.taxService.domain.gt3.HXZGZS_HD_DQDEHD_JGDomain;
import com.hst.taxService.domain.gt3.HxzgDjBcswjdbxxjysjxBgdjmxGridlbDomain;
import com.hst.taxService.domain.gt3.HxzgDjBcswjdbxxjysjxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgDjBcswjdbxxjysjxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrDsqcxxDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrDsqcxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrDsqcxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrSfzxxDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrSfzxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrSfzxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrYhxxDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrYhxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrYhxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrdjxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrdjxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrjyxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxNsrjyxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxWbnsrjydbydjxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgDjCxWbnsrjydbydjxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgDjNsrjyxxDomain;
import com.hst.taxService.domain.gt3.HxzgDjWbnsrjydbydjxxDomain;
import com.hst.taxService.domain.gt3.HxzgDjZrrjjDjRequestDomain;
import com.hst.taxService.domain.gt3.HxzgDjZrrjjDjResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxTdzsbmDjxhDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxTdzsbmDjxhRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxTdzsbmDjxhResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxZrrDkfpRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxZrrDkfpResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxfpfsxxlbRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxfpfsxxlbResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxnsrfpjcDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxnsrfpjcRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxnsrfpjcResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxnsrfplgbqkxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxnsrpzhdgprxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxnsrpzhdgprxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxnsrpzhdxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpCxnsrpzhdxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpDkfpkjxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpDksqtyjdSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpDksqtyjdSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpDksqzzsSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpDksqzzsSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpDksqzzsptfpSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpDksqzzsptfpSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpFpyjjcyqkMxVOListDomain;
import com.hst.taxService.domain.gt3.HxzgFpFpyjjxxSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpFpyjjxxSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgFpFsxxLymxDomain;
import com.hst.taxService.domain.gt3.HxzgFpFsxxSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpLgbjbxxSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgFpPzhdgprxxDomain;
import com.hst.taxService.domain.gt3.HxzgFpPzhdxxDomain;
import com.hst.taxService.domain.gt3.HxzgFplgqcmxDomain;
import com.hst.taxService.domain.gt3.HxzgPzCxsddwkcxxDomain;
import com.hst.taxService.domain.gt3.HxzgPzCxsddwkcxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgPzCxsddwkcxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgPzSwrySpjcDomain;
import com.hst.taxService.domain.gt3.HxzgPzSwrySpjcRequestDomain;
import com.hst.taxService.domain.gt3.HxzgPzSwrySpjcResponseDomain;
import com.hst.taxService.domain.gt3.HxzgQtGetCurtimeResponseDomain;
import com.hst.taxService.domain.gt3.HxzgSbBcFjssbbDomain;
import com.hst.taxService.domain.gt3.HxzgSbBcFjssbbRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbBcFjssbbResponseDomain;
import com.hst.taxService.domain.gt3.HxzgSbBcFxmtysbDomain;
import com.hst.taxService.domain.gt3.HxzgSbBcFxmtysbRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbBcFxmtysbResponseDomain;
import com.hst.taxService.domain.gt3.HxzgSbCxsddwpzkcDomain;
import com.hst.taxService.domain.gt3.HxzgSbCxsddwpzkcRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbCxsddwpzkcResponseDomain;
import com.hst.taxService.domain.gt3.HxzgSbSbZfRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbSbqkcxssDomain;
import com.hst.taxService.domain.gt3.HxzgSbSbqkcxssRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbSbqkcxssResponseDomain;
import com.hst.taxService.domain.gt3.HxzgSbWsbxxcxDomain;
import com.hst.taxService.domain.gt3.HxzgSbWsbxxcxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbWsbxxcxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgSbWtdzSbSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbWtdzSbSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgSbWtdzskbgbDomain;
import com.hst.taxService.domain.gt3.HxzgSbWtdzskmxbbgbDomain;
import com.hst.taxService.domain.gt3.HxzgSbZfYzpzxhRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbZzsXgmSbSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgSbZzsXgmSbSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain;
import com.hst.taxService.domain.gt3.HxzgZmWcjyhdssglzmsqbxxSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZmWcjyhdssglzmsqbxxSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZmWcjyzmhwxxGridlbDomain;
import com.hst.taxService.domain.gt3.HxzgZrrDjExistsRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZrrDjExistsResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxNsrdkfpyjxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxNsrdkfpyjxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxRjtsshDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxRjtsshRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxRjtsshResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxSfxyResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxSfxyxxDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxSfxyxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxYskmYsfpblxx2ResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxYskmYsfpblxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxYskmYsfpblxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxnNsrdkfpyjxxDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxrkxxtofxDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxrkxxtofxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxrkxxtofxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxwkksbbxxDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxwkksbbxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxwkksbbxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxyhdjkpzwjkxxDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxyhdjkpzwjkxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsCxyhdjkpzwjkxxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsDkfpsskkRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsDkfpsskkResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsDyyhdjkpzDomain;
import com.hst.taxService.domain.gt3.HxzgZsDyyhdjkpzRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsDyyhdjkpzResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsDyyhdjkpzYzxxGridlbDomain;
import com.hst.taxService.domain.gt3.HxzgZsFqyhkkRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsFqyhkkResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsFqyhkkYzpzmxxhGridlbDomain;
import com.hst.taxService.domain.gt3.HxzgZsFsSfxyxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsGrsbplfqsskkByQyzhDomain;
import com.hst.taxService.domain.gt3.HxzgZsGrsbplfqsskkByQyzhRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsGrsbplfqsskkByQyzhResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsGxSfxyxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsQxSfxyxxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsSfxyxxSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsSfxyxxSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsSkyDzspkkztcxRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsSkyDzspkkztcxResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsWszSaveRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsWszSaveResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsWtdzwszhzsskkDomain;
import com.hst.taxService.domain.gt3.HxzgZsWtdzwszhzsskkRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsWtdzwszhzsskkResponseDomain;
import com.hst.taxService.domain.gt3.HxzgZsYhdjspzcljkRequestDomain;
import com.hst.taxService.domain.gt3.HxzgZsYzpzxhGridDomain;
import com.hst.taxService.domain.gt3.HxzgZsZfSfxyxxRequestDomain;
import com.hst.taxService.service.Gt3CommonAppService;
import gov.gt3.iitms.base.app.comp.nfjr.IitmsNfjrMessageCompressor;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class Gt3CommonAppServiceImp
extends BaseBusinessServiceImp
implements Gt3CommonAppService {
    @Autowired
    private TaxLogDao logDao;
    @Autowired
    private Gt3CommonDao dao;

    @Override
    @Transactional(readOnly=false, propagation=Propagation.REQUIRED)
    public void saveTaxLog(XtTaxServiceLogDomain logDomain) throws Exception {
        logDomain.setRecvTime(HstDateUtil.getYyyyMmddHhMmSs(HstDateUtil.toDateString(new Date(), AppServiceConstants.TIME_DATETIME_FORMAT)));
        logDomain.setClbz("0");
        this.logDao.saveTaxLogDomain(logDomain);
    }

    @Override
    @Transactional(readOnly=false, propagation=Propagation.REQUIRED)
    public void updateTaxLog(XtTaxServiceLogDomain logDomain) throws Exception {
        if (logDomain == null) {
            return;
        }
        logDomain.setBackTime(HstDateUtil.getYyyyMmddHhMmSs(HstDateUtil.toDateString(new Date(), AppServiceConstants.TIME_DATETIME_FORMAT)));
        this.logDao.saveTaxLogDomain(logDomain);
    }

    @Override
    public TaxCommonReturnDomain hxzgDjCxNsrdjxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjCxNsrdjxxResponseDomain response;
        block20: {
            HxzgDjCxNsrdjxxRequestDomain request = (HxzgDjCxNsrdjxxRequestDomain)appDomain;
            response = new HxzgDjCxNsrdjxxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getNSRSBH()) && HstToolsUtil.isNullOrEmpty(request.getDJXH())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7eb3\u7a0e\u4eba\u8bc6\u522b\u53f7\u548c\u767b\u8bb0\u5e8f\u53f7\u5fc5\u987b\u6709\u4e00\u4e2a\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                String gdslxDm = HstToolsUtil.isNullOrEmpty(request.getDJXH()) ? "1" : "";
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGDJ00004Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/TaxMLBw_HXZG_DJ_00004_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("\t<djxh>").append(this.getNullStr(request.getDJXH())).append("</djxh>").append("\t<nsrsbh>").append(this.getNullStr(request.getNSRSBH())).append("</nsrsbh>").append("\t<gdslxDm>").append(gdslxDm).append("</gdslxDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.DJ.CXNSRXXBYDJXHORNSRSBH");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", WebConstants.GT3_SHHBSPT_SJRY);
                map.put("sjjg", WebConstants.GT3_SHHBSPT_SJJG);
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGDJ00004ResponseDomain.class);
                    mapClass.put("nsrxxGrid", HXZGDJ00004NsrxxGridDomain.class);
                    mapClass.put("nsrxxGridlb", HXZGDJ00004NsrxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGDJ00004ResponseDomain dj = (HXZGDJ00004ResponseDomain)help.xmlStrParser(resStr);
                    if (dj != null && !dj.getNsrxxGrid().getNsrxxGridlb().isEmpty()) {
                        HXZGDJ00004NsrxxGridlbDomain nsrxx = dj.getNsrxxGrid().getNsrxxGridlb().get(0);
                        response.setDJXH(nsrxx.getDjxh());
                        response.setNSRSBH(nsrxx.getNsrsbh());
                        response.setNSRMC(nsrxx.getNsrmc());
                        response.setKYRQ(this.formatDate(nsrxx.getDjrq()));
                        response.setNSRZT_DM(nsrxx.getNsrztDm());
                        response.setHY_DM(nsrxx.getHyDm());
                        response.setDJZCLX_DM(nsrxx.getDjzclxDm());
                        response.setHYMX_DM("");
                        response.setFR(nsrxx.getFddbrxm());
                        response.setFRSFZ(nsrxx.getFddbrsfzjhm());
                        response.setZCZB(nsrxx.getZczb());
                        if (HstToolsUtil.isNullOrEmpty(nsrxx.getFddbryddh())) {
                            response.setFRDH(nsrxx.getFddbrgddh());
                        } else if (HstToolsUtil.isNullOrEmpty(nsrxx.getFddbrgddh())) {
                            response.setFRDH(nsrxx.getFddbryddh());
                        } else {
                            response.setFRDH(String.valueOf(nsrxx.getFddbryddh()) + "/" + nsrxx.getFddbrgddh());
                        }
                        response.setFRYDDH(nsrxx.getFddbryddh());
                        response.setCWFZR(nsrxx.getCwfzrxm());
                        response.setCWFZRSFZ(nsrxx.getCwfzrsfzjhm());
                        if (HstToolsUtil.isNullOrEmpty(nsrxx.getCwfzryddh())) {
                            response.setCWFZRDH(nsrxx.getCwfzrgddh());
                        } else if (HstToolsUtil.isNullOrEmpty(nsrxx.getCwfzrgddh())) {
                            response.setCWFZRDH(nsrxx.getCwfzryddh());
                        } else {
                            response.setCWFZRDH(String.valueOf(nsrxx.getCwfzryddh()) + "/" + nsrxx.getCwfzrgddh());
                        }
                        response.setCWFZRYDDH(nsrxx.getCwfzryddh());
                        response.setBSY(nsrxx.getBsrxm());
                        response.setBSYSFZ(nsrxx.getBsrsfzjhm());
                        if (HstToolsUtil.isNullOrEmpty(nsrxx.getBsryddh())) {
                            response.setBSYDH(nsrxx.getBsrgddh());
                        } else if (HstToolsUtil.isNullOrEmpty(nsrxx.getBsrgddh())) {
                            response.setBSYDH(nsrxx.getBsryddh());
                        } else {
                            response.setBSYDH(String.valueOf(nsrxx.getBsryddh()) + "/" + nsrxx.getBsrgddh());
                        }
                        response.setBSYYDDH(nsrxx.getBsryddh());
                        response.setSCJYQX_Q("");
                        response.setSCJYQX_Z("");
                        response.setGSDJZZH("");
                        response.setYXQ_Q("");
                        response.setYXQ_Z("");
                        response.setJYFW(nsrxx.getJyfw());
                        response.setZCDZ(nsrxx.getZcdz());
                        response.setZCD_YB(nsrxx.getZcdyzbm());
                        response.setZCD_DH(nsrxx.getZcdlxdh());
                        response.setSCJYDZ(nsrxx.getScjydz());
                        response.setSCJYD_YB(nsrxx.getScjydyzbm());
                        response.setSCJYD_DH(nsrxx.getScjydlxdh());
                        response.setHHRS(nsrxx.getHhrs());
                        response.setCYRS(nsrxx.getCyrs());
                        response.setGDRS(nsrxx.getGdgrs());
                        if (HstToolsUtil.isNullOrEmpty(nsrxx.getZgswskfjDm())) {
                            response.setNSR_SWJG_DM(nsrxx.getZgswjDm());
                            response.setNSR_SWJG_MC(nsrxx.getZgswjmc());
                        } else {
                            response.setNSR_SWJG_DM(nsrxx.getZgswskfjDm());
                            response.setNSR_SWJG_MC(nsrxx.getZgswskfjmc());
                        }
                        response.setZGSWRY_DM(nsrxx.getSsglyDm());
                        response.setLRR_DM(nsrxx.getLrrDm());
                        response.setLRRQ(this.formatDate(nsrxx.getLrrq()));
                        response.setXGR_DM(nsrxx.getXgrDm());
                        response.setXGRQ(this.formatDate(nsrxx.getXgrq()));
                        response.setNSRSBM("");
                        response.setGSYLB_DM("");
                        response.setJDXZ_DM(nsrxx.getJdxzDm());
                        this.dao.queyrNsrQtxx(response);
                    }
                    break block20;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgDjCxNsrjyxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjCxNsrjyxxRequestDomain request = (HxzgDjCxNsrjyxxRequestDomain)appDomain;
        HxzgDjCxNsrjyxxResponseDomain response = new HxzgDjCxNsrjyxxResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getNsrsbh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u7eb3\u7a0e\u4eba\u8bc6\u522b\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            HxzgDjNsrjyxxDomain domain = this.dao.queyrNsrJyxx(request.getNsrsbh());
            if (domain != null) {
                BeanUtils.copyProperties((Object)response, (Object)domain);
            }
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgDjZrrjjDj(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjZrrjjDjResponseDomain response;
        block13: {
            HxzgDjZrrjjDjRequestDomain request = (HxzgDjZrrjjDjRequestDomain)appDomain;
            response = new HxzgDjZrrjjDjResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getSfzjhm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u8eab\u4efd\u8bc1\u4ef6\u53f7\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSlrDm())) {
                    request.setSlrDm(this.getSjry(request));
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSlswjgDm())) {
                    request.setSlswjgDm(this.getSjjg(request));
                }
                StringBuffer xml = new StringBuffer();
                String isGsZrrDj = "Y";
                if ("Y".equals(isGsZrrDj)) {
                    xml.append("<taxML xsi:type=\"zrrjjdjRequest\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_GSGL_DJ_001_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">  ").append(" <zrrxxGrid>").append("   <zrrxxList>").append("     <sfzjlx_dm>").append(request.getSfzjlxDm()).append("</sfzjlx_dm>").append("     <sfzjhm>").append(request.getSfzjhm()).append("</sfzjhm>").append("     <xm>").append(request.getXm()).append("</xm>").append("     <gj_dm>").append(request.getGjDm()).append("</gj_dm>").append("     <csrq>").append(this.getNullStr(request.getCsrq())).append("</csrq>").append("     <csd></csd>").append("     <xb>").append(request.getXb()).append("</xb>").append("     <slrDm>").append(request.getSlrDm()).append("</slrDm>").append("     <slswjgDm>").append(request.getSlswjgDm()).append("</slswjgDm>").append("     <slswsxDm></slswsxDm>").append("     <lyqdDm>").append(WebConstants.GT3_CHANNEL_ID).append("</lyqdDm>").append("   </zrrxxList>").append(" </zrrxxGrid></taxML>");
                    map = new HashMap<String, String>();
                    map.put("tran_id", "SWZJ.GSGL.DJ.BCZRRGJXXJJDJFW");
                    map.put("tran_seq", EjbJ3Util.getUUID());
                    Date date = new Date();
                    map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                    map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                    map.put("sjry", this.getSjry(request));
                    map.put("sjjg", this.getSjjg(request));
                    map.put("ywbw", xml.toString());
                    Gt3ServiceDomain domain = this.doGt3Ejb(map);
                    if (domain == null) {
                        response.setCode("01");
                        response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                        return response;
                    }
                    if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                        String resStr = domain.getBody();
                        HashMap<String, Class> mapClass = new HashMap<String, Class>();
                        mapClass.put("taxML", GSGLDJ00001ResponseDomain.class);
                        mapClass.put("zrrxxResGrid", GSGLDJ00001ZrrxxResGridDomain.class);
                        mapClass.put("zrrxxResList", GSGLDJ00001ZrrxxResListDomain.class);
                        XmlHelper help = new XmlHelper("taxML", mapClass);
                        GSGLDJ00001ResponseDomain dj = (GSGLDJ00001ResponseDomain)help.xmlStrParser(resStr);
                        if (dj != null && dj.getZrrxxResGrid() != null && !dj.getZrrxxResGrid().getZrrxxResList().isEmpty()) {
                            GSGLDJ00001ZrrxxResListDomain temp = dj.getZrrxxResGrid().getZrrxxResList().get(0);
                            BeanUtils.copyProperties((Object)response, (Object)temp);
                        }
                    } else {
                        response.setCode("01");
                        response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                        return response;
                    }
                    return response;
                }
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGDJ00489Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/TaxMLBw_HXZG_DJ_00489_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <gszrrxxGrid>").append("    <zrrxxList>").append("\t  <sfzjlx_dm>").append(request.getSfzjlxDm()).append("</sfzjlx_dm>").append("\t  <sfzjhm>").append(request.getSfzjhm()).append("</sfzjhm>").append("\t  <xm>").append(request.getXm()).append("</xm>").append("\t  <gj_dm>").append(request.getGjDm()).append("</gj_dm>").append("\t  <csrq>").append(request.getCsrq()).append("</csrq>").append("\t  <xb>").append(request.getXb()).append("</xb>").append("\t  <slrDm>").append(request.getSlrDm()).append("</slrDm>").append("\t  <slswjgDm>").append(request.getSlswjgDm()).append("</slswjgDm>").append("\t  <slswsxDm>").append("SLSXA011011001").append("</slswsxDm>").append("\t  <lyqdDm>").append(WebConstants.GT3_CHANNEL_ID).append("</lyqdDm>").append("\t  <jzdzyzbm>").append(this.getNullStr(request.getJzdzyzbm())).append("</jzdzyzbm>").append("    </zrrxxList>").append("  </gszrrxxGrid>").append("</taxML>");
                map = new HashMap();
                map.put("tran_id", "SWZJ.HXZG.DJ.ZRRJJDJ");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGDJ00489ResponseDomain.class);
                    mapClass.put("gszrrxxResGrid", HXZGDJ00489ZrrxxResGridDomain.class);
                    mapClass.put("zrrxxResList", HXZGDJ00489ZrrxxResListDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGDJ00489ResponseDomain dj = (HXZGDJ00489ResponseDomain)help.xmlStrParser(resStr);
                    if (dj != null && dj.getGszrrxxResGrid() != null && !dj.getGszrrxxResGrid().getZrrxxResList().isEmpty()) {
                        HXZGDJ00489ZrrxxResListDomain temp = dj.getGszrrxxResGrid().getZrrxxResList().get(0);
                        BeanUtils.copyProperties((Object)response, (Object)temp);
                    }
                    break block13;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSbZzsXgmSbSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgSbZzsXgmSbSaveResponseDomain response;
        block28: {
            HxzgSbZzsXgmSbSaveRequestDomain request = (HxzgSbZzsXgmSbSaveRequestDomain)appDomain;
            response = new HxzgSbZzsXgmSbSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                response.setYwxh(request.getYwxh());
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqq())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u8d77\u6b62\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSbsxDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7533\u62a5\u5c5e\u6027\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                HXZGSB00044RequestDomain sb44RequestDomain = new HXZGSB00044RequestDomain();
                sb44RequestDomain.setDjxh(request.getDjxh());
                sb44RequestDomain.setSkssqq(request.getSkssqq());
                sb44RequestDomain.setSkssqz(request.getSkssqz());
                sb44RequestDomain.setSbsxDm1(request.getSbsxDm());
                sb44RequestDomain.setSjry(request.getSjry());
                sb44RequestDomain.setSjjg(request.getSjjg());
                HXZGSB00044ResponseDomain sb44domainDomain = (HXZGSB00044ResponseDomain)this.hxzgSb00044(sb44RequestDomain);
                String rdpzuuid = "";
                if (sb44domainDomain != null && !"00".equals(sb44domainDomain.getCode())) {
                    response.setCode("01");
                    response.setMess(sb44domainDomain.getMess());
                    return response;
                }
                if (sb44domainDomain != null && sb44domainDomain.getSbxxGrid().getSbxxGridlb() != null && !sb44domainDomain.getSbxxGrid().getSbxxGridlb().isEmpty()) {
                    rdpzuuid = sb44domainDomain.getSbxxGrid().getSbxxGridlb().get(0).getRdpzuuid();
                }
                if (request.getDataList().isEmpty() || request.getDataList().size() < 2) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165dataList\u6570\u636e\u4e0d\u5bf9\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                TreeMap treeMap = new TreeMap(new CollatorComparator());
                for (HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain temp : request.getDataList()) {
                    treeMap.put(temp.getEwblxh(), temp);
                }
                HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain ljs = null;
                HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain bqs = null;
                if (!"31".equals(request.getSbsxDm()) && sb44domainDomain != null && sb44domainDomain.getZzsxgmnsrqcsxxGrid() != null && !sb44domainDomain.getZzsxgmnsrqcsxxGrid().getZzsxgmnsrqcsxxGridlb().isEmpty()) {
                    for (HXZGSB00044ZzsxgmnsrqcsxxGridlbDomain hXZGSB00044ZzsxgmnsrqcsxxGridlbDomain : sb44domainDomain.getZzsxgmnsrqcsxxGrid().getZzsxgmnsrqcsxxGridlb()) {
                        ljs = new HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain();
                        BeanUtils.copyProperties((Object)ljs, (Object)hXZGSB00044ZzsxgmnsrqcsxxGridlbDomain);
                        if ("3".equals(hXZGSB00044ZzsxgmnsrqcsxxGridlbDomain.getEwblxh())) {
                            bqs = (HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain)treeMap.get("1");
                            if (HstToolsUtil.isNullOrEmpty(ljs.getLmc())) {
                                ljs.setLmc("\u5e94\u7a0e\u8d27\u7269\u53ca\u52b3\u52a1\u672c\u5e74\u7d2f\u8ba1");
                            }
                        } else if ("4".equals(hXZGSB00044ZzsxgmnsrqcsxxGridlbDomain.getEwblxh())) {
                            bqs = (HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain)treeMap.get("2");
                            if (HstToolsUtil.isNullOrEmpty(ljs.getLmc())) {
                                ljs.setLmc("\u5e94\u7a0e\u670d\u52a1\u672c\u5e74\u7d2f\u8ba1");
                            }
                        }
                        ljs.setYzzzsbhsxse(this.doubleAdd(ljs.getYzzzsbhsxse(), bqs.getYzzzsbhsxse()));
                        ljs.setSwjgdkdzzszyfpbhsxse(this.doubleAdd(ljs.getSwjgdkdzzszyfpbhsxse(), bqs.getSwjgdkdzzszyfpbhsxse()));
                        ljs.setSkqjkjdptfpbhsxse(this.doubleAdd(ljs.getSkqjkjdptfpbhsxse(), bqs.getSkqjkjdptfpbhsxse()));
                        ljs.setXsczbdcbhsxse(this.doubleAdd(ljs.getXsczbdcbhsxse(), bqs.getXsczbdcbhsxse()));
                        ljs.setSwjgdkdzzszyfpbhsxse1(this.doubleAdd(ljs.getSwjgdkdzzszyfpbhsxse1(), bqs.getSwjgdkdzzszyfpbhsxse1()));
                        ljs.setSkqjkjdptfpbhsxse2(this.doubleAdd(ljs.getSkqjkjdptfpbhsxse2(), bqs.getSkqjkjdptfpbhsxse2()));
                        ljs.setXssygdysgdzcbhsxse(this.doubleAdd(ljs.getXssygdysgdzcbhsxse(), bqs.getXssygdysgdzcbhsxse()));
                        ljs.setSkqjkjdptfpbhsxse1(this.doubleAdd(ljs.getSkqjkjdptfpbhsxse1(), bqs.getSkqjkjdptfpbhsxse1()));
                        ljs.setMsxse(this.doubleAdd(ljs.getMsxse(), bqs.getMsxse()));
                        ljs.setXwqymsxse(this.doubleAdd(ljs.getXwqymsxse(), bqs.getXwqymsxse()));
                        ljs.setWdqzdxse(this.doubleAdd(ljs.getWdqzdxse(), bqs.getWdqzdxse()));
                        ljs.setQtmsxse(this.doubleAdd(ljs.getQtmsxse(), bqs.getQtmsxse()));
                        ljs.setCkmsxse(this.doubleAdd(ljs.getCkmsxse(), bqs.getCkmsxse()));
                        ljs.setSkqjkjdptfpxse1(this.doubleAdd(ljs.getSkqjkjdptfpxse1(), bqs.getSkqjkjdptfpxse1()));
                        ljs.setHdxse(this.doubleAdd(ljs.getHdxse(), bqs.getHdxse()));
                        ljs.setBqynse(this.doubleAdd(ljs.getBqynse(), bqs.getBqynse()));
                        ljs.setHdynse(this.doubleAdd(ljs.getHdynse(), bqs.getHdynse()));
                        ljs.setBqynsejze(this.doubleAdd(ljs.getBqynsejze(), bqs.getBqynsejze()));
                        ljs.setBqmse(this.doubleAdd(ljs.getBqmse(), bqs.getBqmse()));
                        ljs.setXwqymse(this.doubleAdd(ljs.getXwqymse(), bqs.getXwqymse()));
                        ljs.setWdqzdmse(this.doubleAdd(ljs.getWdqzdmse(), bqs.getWdqzdmse()));
                        ljs.setYnsehj(this.doubleAdd(ljs.getYnsehj(), bqs.getYnsehj()));
                        treeMap.put(ljs.getEwblxh(), ljs);
                    }
                } else {
                    for (HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain hxzgSbZzsXgmSbSaveZzsxgmGridlbDomain : request.getDataList()) {
                        ljs = new HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain();
                        BeanUtils.copyProperties((Object)ljs, (Object)hxzgSbZzsXgmSbSaveZzsxgmGridlbDomain);
                        if ("1".equals(hxzgSbZzsXgmSbSaveZzsxgmGridlbDomain.getEwblxh())) {
                            ljs.setEwblxh("3");
                            ljs.setLmc("\u5e94\u7a0e\u8d27\u7269\u53ca\u52b3\u52a1\u672c\u5e74\u7d2f\u8ba1");
                        } else if ("2".equals(hxzgSbZzsXgmSbSaveZzsxgmGridlbDomain.getEwblxh())) {
                            ljs.setEwblxh("4");
                            ljs.setLmc("\u5e94\u7a0e\u670d\u52a1\u672c\u5e74\u7d2f\u8ba1");
                        }
                        treeMap.put(ljs.getEwblxh(), ljs);
                    }
                }
                StringBuffer stringBuffer = new StringBuffer();
                stringBuffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGSB00045Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/TaxMLBw_HXZG_SB_00045_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append(" <sbxxGrid>").append("    <sbxxGridlb>").append("\t  <rdpzuuid>").append(this.getNullStr(rdpzuuid)).append("</rdpzuuid>").append("    </sbxxGridlb>").append("  </sbxxGrid>").append("  <jmxxGrid/>").append("  <yjxxGrid/>").append("  <zzssyyxgmnsrySbSbbdxxVO bbh=\"String\" xmlmc=\"String\" xmlbh=\"String\">").append("    <zzssyyxgmnsr>").append("      <sbbhead>").append("        <nsrsbh>").append(request.getNsrsbh()).append("</nsrsbh>").append("        <nsrmc>").append(request.getNsrmc()).append("</nsrmc>").append("        <skssqq>").append(request.getSkssqq()).append("</skssqq>").append("        <skssqz>").append(request.getSkssqz()).append("</skssqz>").append("        <sbsxDm1>").append(request.getSbsxDm()).append("</sbsxDm1>").append("        <sbrq1>").append(this.getNullStr(request.getSbrq())).append("</sbrq1>").append("      </sbbhead>").append("      <zzsxgmGrid>");
                for (HxzgSbZzsXgmSbSaveZzsxgmGridlbDomain temp : treeMap.values()) {
                    stringBuffer.append("        <zzsxgmGridlb>").append("         <ewblxh>").append(temp.getEwblxh()).append("</ewblxh>").append("         <lmc>").append(temp.getLmc()).append("</lmc>").append("         <yzzzsbhsxse>").append(temp.getYzzzsbhsxse()).append("</yzzzsbhsxse>").append("         <swjgdkdzzszyfpbhsxse>").append(temp.getSwjgdkdzzszyfpbhsxse()).append("</swjgdkdzzszyfpbhsxse>").append("         <skqjkjdptfpbhsxse>").append(temp.getSkqjkjdptfpbhsxse()).append("</skqjkjdptfpbhsxse>").append("         <xsczbdcbhsxse>").append(temp.getXsczbdcbhsxse()).append("</xsczbdcbhsxse>").append("         <swjgdkdzzszyfpbhsxse1>").append(temp.getSwjgdkdzzszyfpbhsxse1()).append("</swjgdkdzzszyfpbhsxse1>").append("         <skqjkjdptfpbhsxse2>").append(temp.getSkqjkjdptfpbhsxse2()).append("</skqjkjdptfpbhsxse2>").append("         <xssygdysgdzcbhsxse>").append(temp.getXssygdysgdzcbhsxse()).append("</xssygdysgdzcbhsxse>").append("         <skqjkjdptfpbhsxse1>").append(temp.getSkqjkjdptfpbhsxse1()).append("</skqjkjdptfpbhsxse1>").append("         <msxse>").append(temp.getMsxse()).append("</msxse>").append("         <xwqymsxse>").append(temp.getXwqymsxse()).append("</xwqymsxse>").append("         <wdqzdxse>").append(temp.getWdqzdxse()).append("</wdqzdxse>").append("         <qtmsxse>").append(temp.getQtmsxse()).append("</qtmsxse>").append("         <ckmsxse>").append(temp.getCkmsxse()).append("</ckmsxse>").append("         <skqjkjdptfpxse1>").append(temp.getSkqjkjdptfpxse1()).append("</skqjkjdptfpxse1>").append("         <hdxse>").append(temp.getHdxse()).append("</hdxse>").append("         <bqynse>").append(temp.getBqynse()).append("</bqynse>").append("         <hdynse>").append(temp.getHdynse()).append("</hdynse>").append("         <bqynsejze>").append(temp.getBqynsejze()).append("</bqynsejze>").append("         <bqmse>").append(temp.getBqmse()).append("</bqmse>").append("         <xwqymse>").append(temp.getXwqymse()).append("</xwqymse>").append("         <wdqzdmse>").append(temp.getWdqzdmse()).append("</wdqzdmse>").append("         <ynsehj>").append(temp.getYnsehj()).append("</ynsehj>").append("         <bqyjse1>").append(temp.getBqyjse1()).append("</bqyjse1>").append("         <bqybtse>").append(temp.getBqybtse()).append("</bqybtse>").append("       </zzsxgmGridlb>");
                }
                stringBuffer.append("    </zzsxgmGrid>").append("    <slxxForm>").append("      <sfzxsb>Y</sfzxsb>").append("      <bsrxm>").append(this.getNullStr(request.getBsrxm())).append("</bsrxm>").append("      <cwfzrxm>").append(this.getNullStr(request.getCwfzrxm())).append("</cwfzrxm>").append("      <fddbrxm>").append(this.getNullStr(request.getFddbrxm())).append("</fddbrxm>").append("      <bsrlxdh>").append(this.getNullStr(request.getBsrlxdh())).append("</bsrlxdh>").append("      <dlrmc></dlrmc>").append("      <jbrxm></jbrxm>").append("      <slswjgDm>").append(this.getNullStr(request.getSlswjgDm())).append("</slswjgDm>").append("      <slswjgMc>").append(this.getNullStr(request.getSlswjgMc())).append("</slswjgMc>").append("      <jbrlxdh></jbrlxdh>").append("      <slrDm>").append(this.getNullStr(request.getSlrDm())).append("</slrDm>").append("      <slrxm>").append(this.getNullStr(request.getSlrxm())).append("</slrxm>").append("      <slrq>").append(this.getNullStr(request.getSlrq())).append("</slrq>").append("    </slxxForm>").append("   </zzssyyxgmnsr>").append("   <zzsxgmflzl/>").append("   <jdclscqyxsmxb/>").append("   <jdcxstyfpqdb/>").append("   <dlqyzzsxxsehjxsecdd/>").append("   <zzsxgmfjssb/>").append("   <zzsjmssbmxb/>").append("  </zzssyyxgmnsrySbSbbdxxVO>").append("  <sbbcTjqtxxVO>").append("    <djxh>").append(request.getDjxh()).append("</djxh>").append("    <zxbztzsuuid></zxbztzsuuid>").append("    <qzdbz></qzdbz>").append("    <scenceCs></scenceCs>").append("    <hyDm>").append(this.getNullStr(request.getHyDm())).append("</hyDm>").append("    <xzqhszDm>").append(this.getNullStr(request.getXzqhszDm())).append("</xzqhszDm>").append("    <jdxzDm>").append(this.getNullStr(request.getJdxzDm())).append("</jdxzDm>").append("    <zgswskfjDm></zgswskfjDm>").append("  </sbbcTjqtxxVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.BCZZSXGMSB");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", stringBuffer.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB00045ResponseDomain.class);
                    mapClass.put("SBSaveReturnVO", HXZGSB00045SBSaveReturnVODomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB00045ResponseDomain ret = (HXZGSB00045ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("Y".equals(ret.getSBSaveReturnVO().getReturnBz())) {
                            response.setMess("\u7533\u62a5\u6210\u529f\uff01");
                            response.setPzxh(ret.getSBSaveReturnVO().getPzxh());
                            response.setYbtse(ret.getSBSaveReturnVO().getYbtse());
                        } else {
                            response.setCode("01");
                            response.setMess("\u7533\u62a5\u5931\u8d25\uff01");
                        }
                    }
                    break block28;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSb00044(BaseAppServiceDomain appDomain) throws Exception {
        HXZGSB00044ResponseDomain response;
        block9: {
            HXZGSB00044RequestDomain request = (HXZGSB00044RequestDomain)appDomain;
            response = new HXZGSB00044ResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqq())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u6b62\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSbsxDm1())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7533\u62a5\u5c5e\u6027\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGSB00044Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/TaxMLBw_HXZG_SB_00044_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <sbNsrxxJhVO>").append("\t  <djxh>").append(request.getDjxh()).append("</djxh>").append("\t  <skssqq>").append(this.getNullStr(request.getSkssqq())).append("</skssqq>").append("\t  <skssqz>").append(this.getNullStr(request.getSkssqz())).append("</skssqz>").append("\t  <sbsxDm1>").append(this.getNullStr(request.getSbsxDm1())).append("</sbsxDm1>").append("\t  <yzpzzlDm>").append(this.getNullStr(request.getYzpzzlDm())).append("</yzpzzlDm>").append("\t  <sbuuid>").append(this.getNullStr(request.getSbuuid())).append("</sbuuid>").append("  </sbNsrxxJhVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.ZZSXGMSBSQJKJHQQCSJ");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB00044ResponseDomain.class);
                    mapClass.put("sbxxGrid", HXZGSB00044SbxxGridDomain.class);
                    mapClass.put("sbxxGridlb", HXZGSB00044SbxxGridlbDomain.class);
                    mapClass.put("jmxxGrid", HXZGSB00044JmxxGridDomain.class);
                    mapClass.put("jmxxGridlb", HXZGSB00044JmxxGridlbDomain.class);
                    mapClass.put("yjxxGrid", HXZGSB00044YjxxGridDomain.class);
                    mapClass.put("yjxxGridlb", HXZGSB00044YjxxGridlbDomain.class);
                    mapClass.put("zzsxgmnsrqcsxxGrid", HXZGSB00044ZzsxgmnsrqcsxxGridDomain.class);
                    mapClass.put("zzsxgmnsrqcsxxGridlb", HXZGSB00044ZzsxgmnsrqcsxxGridlbDomain.class);
                    mapClass.put("sbZzsxgmnsrqtxxVO", HXZGSB00044SbZzsxgmnsrqtxxVODomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB00044ResponseDomain ret = (HXZGSB00044ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        response = ret;
                        response.setCode("00");
                    }
                    break block9;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgDjCxNsrYhxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjCxNsrYhxxResponseDomain response;
        block7: {
            HxzgDjCxNsrYhxxRequestDomain request = (HxzgDjCxNsrYhxxRequestDomain)appDomain;
            response = new HxzgDjCxNsrYhxxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"BSDJ00094Request\" xmlmc=\"\u6839\u636e\u767b\u8bb0\u5e8f\u53f7\u67e5\u8be2\u7eb3\u7a0e\u4eba\u6709\u6548\u7684\u94f6\u884c\u8d26\u6237\u4fe1\u606f\" xmlbh=\"TaxMLBw_HXZG_DJ_00094_Request_V1.0.xsd\" bbh=\"V1.0\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.DJ.CXNSRYHZHXXBYDJXH");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", WebConstants.GT3_SHHBSPT_SJRY);
                map.put("sjjg", WebConstants.GT3_SHHBSPT_SJJG);
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGDJ00094ResponseDomain.class);
                    mapClass.put("ckzhzhbgGrid", HXZGDJ00094CkzhzhbgGridDomain.class);
                    mapClass.put("ckzhzhbgGridlb", HXZGDJ00094CkzhzhbgGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGDJ00094ResponseDomain ret = (HXZGDJ00094ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !ret.getCkzhzhbgGrid().getCkzhzhbgGridlb().isEmpty()) {
                        HxzgDjCxNsrYhxxDomain dom = null;
                        for (HXZGDJ00094CkzhzhbgGridlbDomain temp : ret.getCkzhzhbgGrid().getCkzhzhbgGridlb()) {
                            dom = new HxzgDjCxNsrYhxxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            response.getDataList().add(dom);
                        }
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgDjCxNsrSfzxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjCxNsrSfzxxResponseDomain response;
        block10: {
            HxzgDjCxNsrSfzxxRequestDomain request = (HxzgDjCxNsrSfzxxRequestDomain)appDomain;
            response = new HxzgDjCxNsrSfzxxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGRD00073Request\" xmlmc=\"\u7a0e\u8d39\u79cd\u8ba4\u5b9a\u4fe1\u606f\u67e5\u8be2\" xmlbh=\"HXZG_RD_00073_Request\" bbh=\"V1.0\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("\t  <djxh>").append(request.getDjxh()).append("</djxh>").append("\t  <skssqq>").append(this.getNullStr(request.getSkssqq())).append("</skssqq>").append("\t  <skssqz>").append(this.getNullStr(request.getSkssqz())).append("</skssqz>").append("\t  <zsxmDm>").append(this.getNullStr(request.getZsxmDm())).append("</zsxmDm>").append("\t  <zspmDm>").append(this.getNullStr(request.getZspmDm())).append("</zspmDm>").append("\t  <zgswskfjDm>").append(this.getNullStr(request.getZgswskfjDm())).append("</zgswskfjDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.RD.CXSFZRDXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", WebConstants.GT3_SHHBSPT_SJRY);
                map.put("sjjg", WebConstants.GT3_SHHBSPT_SJJG);
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGRD00073ResponseDomain.class);
                    mapClass.put("sfzrdxxGrid", HXZGRD00073SfzrdxxGridDomain.class);
                    mapClass.put("sfzrdxxGridlb", HXZGRD00073SfzrdxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGRD00073ResponseDomain ret = (HXZGRD00073ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !ret.getSfzrdxxGrid().getSfzrdxxGridlb().isEmpty()) {
                        Map<String, DmZspmDomain> zspmMap = this.dao.queryZspmxxMap();
                        HxzgDjCxNsrSfzxxDomain dom = null;
                        for (HXZGRD00073SfzrdxxGridlbDomain temp : ret.getSfzrdxxGrid().getSfzrdxxGridlb()) {
                            dom = new HxzgDjCxNsrSfzxxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            String key = String.valueOf(temp.getZsxmDm()) + temp.getZspmDm();
                            DmZspmDomain zspm = null;
                            if (zspmMap.containsKey(key)) {
                                zspm = zspmMap.get(key);
                                dom.setZspmMc(zspm.getZspmMc());
                                if ("Y".equals(zspm.getSfygzzspmbz()) || "Y".equals(zspm.getSf2016ygzbz())) {
                                    dom.setYgzBz("Y");
                                } else {
                                    dom.setYgzBz("N");
                                }
                            }
                            zspm = null;
                            response.getDataList().add(dom);
                        }
                        zspmMap = null;
                    }
                    break block10;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgDjCxNsrDsqcxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjCxNsrDsqcxxRequestDomain request = (HxzgDjCxNsrDsqcxxRequestDomain)appDomain;
        HxzgDjCxNsrDsqcxxResponseDomain response = new HxzgDjCxNsrDsqcxxResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            List<HXZGZS_HD_DQDEHD_JGDomain> dataList = this.dao.queyrNsrdqdexx(request.getDjxh());
            if (dataList != null && !dataList.isEmpty()) {
                HxzgDjCxNsrDsqcxxDomain dom = null;
                for (HXZGZS_HD_DQDEHD_JGDomain temp : dataList) {
                    dom = new HxzgDjCxNsrDsqcxxDomain();
                    BeanUtils.copyProperties((Object)dom, (Object)temp);
                    response.getDataList().add(dom);
                }
            }
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgDjCxWbnsrjydbydjxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjCxWbnsrjydbydjxxRequestDomain request = (HxzgDjCxWbnsrjydbydjxxRequestDomain)appDomain;
        HxzgDjCxWbnsrjydbydjxxResponseDomain response = new HxzgDjCxWbnsrjydbydjxxResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getNsrsbh()) || HstToolsUtil.isNullOrEmpty(request.getSwjgDm()) || HstToolsUtil.isNullOrEmpty(request.getByrqq()) || HstToolsUtil.isNullOrEmpty(request.getByrqz())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u7eb3\u7a0e\u4eba\u8bc6\u522b\u53f7\u3001\u7a0e\u52a1\u673a\u5173\u3001\u62a5\u9a8c\u65e5\u671f\u8d77\u6b62\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            List<HxzgDjWbnsrjydbydjxxDomain> dataList = this.dao.queyrWbnsrjydbydjxx(request);
            response.setDataList(dataList);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSbWtdzSbSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgSbWtdzSbSaveResponseDomain response;
        block17: {
            HxzgSbWtdzSbSaveRequestDomain request = (HxzgSbWtdzSbSaveRequestDomain)appDomain;
            response = new HxzgSbWtdzSbSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqq())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u8d77\u6b62\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u59d4\u6258\u4ee3\u5f81\u660e\u7ec6\u5217\u8868\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                HashMap<String, HxzgSbWtdzskbgbDomain> wtdzhzMap = new HashMap<String, HxzgSbWtdzskbgbDomain>();
                String key = null;
                HxzgSbWtdzskbgbDomain wtdzhzDomain = null;
                for (HxzgSbWtdzskmxbbgbDomain dom : request.getDataList()) {
                    if (HstToolsUtil.isNullOrEmpty(dom.getHyDm()) || HstToolsUtil.isNullOrEmpty(dom.getZsxmDm()) || HstToolsUtil.isNullOrEmpty(dom.getZspmDm()) || HstToolsUtil.isNullOrEmpty(dom.getSkssqq()) || HstToolsUtil.isNullOrEmpty(dom.getSkssqz()) || HstToolsUtil.isNullOrEmpty(dom.getJsyj()) || HstToolsUtil.isNullOrEmpty(dom.getSl1()) || HstToolsUtil.isNullOrEmpty(dom.getYnse())) {
                        response.setCode("01");
                        response.setMess("\u660e\u7ec6\u8868\u4e2d\u884c\u4e1a\u3001\u5f81\u6536\u9879\u76ee\u3001\u5f81\u6536\u54c1\u76ee\u3001\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u6b62\u3001\u8ba1\u7a0e\u4f9d\u636e\u3001\u7a0e\u7387\u3001\u5e94\u7eb3\u7a0e\u989d\u5747\u4e3a\u5fc5\u5f55\u9879\uff0c\u8bf7\u68c0\u67e5\uff01");
                    }
                    if (wtdzhzMap.containsKey(key = String.valueOf(dom.getHyDm()) + dom.getZsxmDm() + dom.getZspmDm() + dom.getSkssqq() + dom.getSkssqz())) {
                        wtdzhzDomain = (HxzgSbWtdzskbgbDomain)wtdzhzMap.get(key);
                        wtdzhzDomain.setYdzse(this.doubleAdd(wtdzhzDomain.getYdzse(), dom.getYdzse()));
                        wtdzhzDomain.setYdzse1(this.doubleAdd(wtdzhzDomain.getYdzse1(), dom.getYdzse1()));
                        wtdzhzDomain.setDzhcs(String.valueOf(Integer.parseInt(wtdzhzDomain.getDzhcs()) + 1));
                        String string = this.doubleAdd(dom.getJmse(), dom.getPhjmse());
                        wtdzhzDomain.setJmse(this.doubleAdd(wtdzhzDomain.getJmse(), string));
                        wtdzhzDomain.setJsyj(this.doubleAdd(wtdzhzDomain.getJsyj(), dom.getJsyj()));
                        wtdzhzDomain.setYjse(this.doubleAdd(wtdzhzDomain.getYjse(), dom.getYjse()));
                        wtdzhzMap.put(key, wtdzhzDomain);
                        continue;
                    }
                    wtdzhzDomain = new HxzgSbWtdzskbgbDomain();
                    wtdzhzDomain.setHyDm(dom.getHyDm());
                    wtdzhzDomain.setZsxmDm(dom.getZsxmDm());
                    wtdzhzDomain.setZspmDm(dom.getZspmDm());
                    wtdzhzDomain.setZszmDm(dom.getZszmDm());
                    wtdzhzDomain.setSkssqq(dom.getSkssqq());
                    wtdzhzDomain.setSkssqz(dom.getSkssqz());
                    wtdzhzDomain.setYdzse(dom.getYdzse());
                    wtdzhzDomain.setYdzse1(dom.getYdzse1());
                    wtdzhzDomain.setDzhcs("1");
                    wtdzhzDomain.setJmse(this.doubleAdd(dom.getJmse(), dom.getPhjmse()));
                    wtdzhzDomain.setSl1(dom.getSl1());
                    wtdzhzDomain.setJsyj(dom.getJsyj());
                    wtdzhzDomain.setYjse(dom.getYjse());
                    wtdzhzMap.put(key, wtdzhzDomain);
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGSB00099Request\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append(" <wtdzsbSbbdxxVO>").append("\t<wtdzskmxbbgb>").append("\t\t<nsrxxForm>").append("\t\t\t<nsrsbh>").append(request.getNsrsbh()).append("</nsrsbh>").append("\t\t\t<nsrmc>").append(request.getNsrmc()).append("</nsrmc>").append("\t\t\t<bsrq>").append(request.getBsrq()).append("</bsrq>").append("\t\t\t<skssqq>").append(request.getSkssqq()).append("</skssqq>").append("\t\t\t<skssqz>").append(request.getSkssqz()).append("</skssqz>").append("\t\t\t<djxh>").append(request.getDjxh()).append("</djxh>").append("\t\t\t<saveHz>").append(request.getSaveHz()).append("</saveHz>").append("\t\t</nsrxxForm>").append("\t\t<wtdzskmxbgbGrid>");
                int i = 1;
                for (HxzgSbWtdzskmxbbgbDomain hxzgSbWtdzskmxbbgbDomain : request.getDataList()) {
                    String hcs = HstToolsUtil.isNullOrEmpty(hxzgSbWtdzskmxbbgbDomain.getDzhcs()) ? "1" : hxzgSbWtdzskmxbbgbDomain.getDzhcs();
                    xml.append("\t\t\t<wtdzskmxbgbGridlb>").append("\t\t\t  <ewbhxh>").append(i++).append("</ewbhxh>").append("\t\t\t  <bdznsrsbh>").append(hxzgSbWtdzskmxbbgbDomain.getBdznsrsbh()).append("</bdznsrsbh>").append("\t\t\t  <bdznsrmc>").append(hxzgSbWtdzskmxbbgbDomain.getBdznsrmc()).append("</bdznsrmc>").append("\t\t\t  <sfzjlxDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getSfzjlxDm())).append("</sfzjlxDm>").append("\t\t\t  <zjhm>").append(hxzgSbWtdzskmxbbgbDomain.getZjhm()).append("</zjhm>").append("\t\t\t  <hyDm>").append(hxzgSbWtdzskmxbbgbDomain.getHyDm()).append("</hyDm>").append("    \t\t  <zsxmDm>").append(hxzgSbWtdzskmxbbgbDomain.getZsxmDm()).append("</zsxmDm>").append("    \t\t  <zspmDm>").append(hxzgSbWtdzskmxbbgbDomain.getZspmDm()).append("</zspmDm>").append("    \t\t  <zszmDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getZszmDm())).append("</zszmDm>").append("    \t\t  <skssqq>").append(hxzgSbWtdzskmxbbgbDomain.getSkssqq()).append("</skssqq>").append("    \t\t  <skssqz>").append(hxzgSbWtdzskmxbbgbDomain.getSkssqz()).append("</skssqz>").append("    \t\t  <jsyj>").append(hxzgSbWtdzskmxbbgbDomain.getJsyj()).append("</jsyj>").append("    \t      <sl1>").append(hxzgSbWtdzskmxbbgbDomain.getSl1()).append("</sl1>").append("    \t      <ydzse>").append(hxzgSbWtdzskmxbbgbDomain.getYdzse()).append("</ydzse>").append("              <ydzse1>").append(this.getNullDouble(hxzgSbWtdzskmxbbgbDomain.getYdzse1())).append("</ydzse1>").append("    \t      <jmse>").append(this.getNullDouble(hxzgSbWtdzskmxbbgbDomain.getJmse())).append("</jmse>").append("    \t\t  <dzhcs>").append(hcs).append("</dzhcs>").append("    \t      <bdzdjxh>").append(hxzgSbWtdzskmxbbgbDomain.getBdzdjxh()).append("</bdzdjxh>").append("    \t      <qzdbz>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getQzdbz())).append("</qzdbz>").append("    \t      <nsqxDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getNsqxDm())).append("</nsqxDm>").append("    \t      <jmxxbz>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getJmxxbz())).append("</jmxxbz>").append("    \t      <dwse>").append(this.getNullDouble(hxzgSbWtdzskmxbbgbDomain.getDwse())).append("</dwse>").append("    \t      <ynse>").append(hxzgSbWtdzskmxbbgbDomain.getYnse()).append("</ynse>").append("    \t      <djzclxDm>").append(hxzgSbWtdzskmxbbgbDomain.getDjzclxDm()).append("</djzclxDm>").append("    \t      <zgswjgDm>").append(hxzgSbWtdzskmxbbgbDomain.getZgswjgDm()).append("</zgswjgDm>").append("    \t\t  <gjhdqszDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getGjhdqszDm())).append("</gjhdqszDm>").append("    \t\t  <yjse>").append(this.getNullDouble(hxzgSbWtdzskmxbbgbDomain.getYjse())).append("</yjse>").append("    \t\t  <yskmDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getYskmDm())).append("</yskmDm>").append("    \t\t  <skgkDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getSkgkDm())).append("</skgkDm>").append("    \t\t  <ysfpblDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getYsfpblDm())).append("</ysfpblDm>").append("    \t\t  <phjmxzDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getPhjmxzDm())).append("</phjmxzDm>").append("    \t\t  <phjzbl>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getPhjzbl())).append("</phjzbl>").append("    \t\t  <phjmse>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getPhjmse())).append("</phjmse>").append("    \t\t  <phjmswsxDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getPhjmswsxDm())).append("</phjmswsxDm>").append("    \t\t</wtdzskmxbgbGridlb>");
                }
                xml.append("    \t</wtdzskmxbgbGrid>").append("    \t<wtdzskbgbGrid>");
                for (HxzgSbWtdzskbgbDomain hxzgSbWtdzskbgbDomain : wtdzhzMap.values()) {
                    xml.append("    \t\t<wtdzskbgbGridlb>").append("    \t\t  <hyDm>").append(hxzgSbWtdzskbgbDomain.getHyDm()).append("</hyDm>").append("    \t\t  <zsxmDm>").append(hxzgSbWtdzskbgbDomain.getZsxmDm()).append("</zsxmDm>").append("    \t\t  <zspmDm>").append(hxzgSbWtdzskbgbDomain.getZspmDm()).append("</zspmDm>").append("    \t\t  <zszmDm>").append(this.getNullStr(hxzgSbWtdzskbgbDomain.getZszmDm())).append("</zszmDm>").append("    \t\t  <skssqq>").append(hxzgSbWtdzskbgbDomain.getSkssqq()).append("</skssqq>").append("    \t\t  <skssqz>").append(hxzgSbWtdzskbgbDomain.getSkssqz()).append("</skssqz>").append("    \t\t  <ydzse>").append(hxzgSbWtdzskbgbDomain.getYdzse()).append("</ydzse>").append("    \t\t  <ydzse1>").append(this.getNullDouble(hxzgSbWtdzskbgbDomain.getYdzse1())).append("</ydzse1>").append("    \t\t  <dzhcs>").append(hxzgSbWtdzskbgbDomain.getDzhcs()).append("</dzhcs>").append("    \t\t  <jmse>").append(this.getNullDouble(hxzgSbWtdzskbgbDomain.getJmse())).append("</jmse>").append("    \t\t  <sl1>").append(hxzgSbWtdzskbgbDomain.getSl1()).append("</sl1>").append("    \t\t  <jsyj>").append(hxzgSbWtdzskbgbDomain.getJsyj()).append("</jsyj>").append("    \t\t  <yjse>").append(this.getNullDouble(hxzgSbWtdzskbgbDomain.getYjse())).append("</yjse>").append("    \t\t  </wtdzskbgbGridlb>");
                }
                xml.append("    \t</wtdzskbgbGrid>").append("        <slxxform>").append("          <sqr>").append(request.getSqr()).append("</sqr>").append("          <sbrq>").append(request.getBsrq()).append("</sbrq>").append("          <slr>").append(request.getSlr()).append("</slr>").append("          <slrq>").append(request.getBsrq()).append("</slrq>").append("      </slxxform>").append("  </wtdzskmxbbgb>").append("  <swjszyb>").append("     <swjszybGrid/>").append("  </swjszyb>").append("  <swsxzybgb>").append("      <swsxzyGrid>");
                for (HxzgSbWtdzskmxbbgbDomain hxzgSbWtdzskmxbbgbDomain : request.getDataList()) {
                    xml.append("    \t\t  <swsxzyGridlb>").append("    \t\t    <pzzg>").append(hxzgSbWtdzskmxbbgbDomain.getPzzg()).append("</pzzg>").append("    \t\t    <pzhm>").append(hxzgSbWtdzskmxbbgbDomain.getPzhm()).append("</pzhm>").append("    \t\t    <yskmDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getYskmDm())).append("</yskmDm>").append("    \t\t    <skgkDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getSkgkDm())).append("</skgkDm>").append("    \t\t    <jsje>").append(hxzgSbWtdzskmxbbgbDomain.getJsyj()).append("</jsje>").append("    \t\t    <sl1>").append(hxzgSbWtdzskmxbbgbDomain.getSl1()).append("</sl1>").append("    \t\t    <kce>").append(this.doubleAdd(hxzgSbWtdzskmxbbgbDomain.getKce(), hxzgSbWtdzskmxbbgbDomain.getPhjmse())).append("</kce>").append("    \t\t    <sjje>").append(this.getNullDouble(hxzgSbWtdzskmxbbgbDomain.getSjje())).append("</sjje>").append("    \t\t    <skssqq>").append(hxzgSbWtdzskmxbbgbDomain.getSkssqq()).append("</skssqq>").append("    \t\t    <skssqz>").append(hxzgSbWtdzskmxbbgbDomain.getSkssqz()).append("</skssqz>").append("    \t\t    <pzzlDm>").append(hxzgSbWtdzskmxbbgbDomain.getPzzlDm()).append("</pzzlDm>").append("    \t\t    <zsxmDm>").append(hxzgSbWtdzskmxbbgbDomain.getZsxmDm()).append("</zsxmDm>").append("    \t\t    <zspmDm>").append(hxzgSbWtdzskmxbbgbDomain.getZspmDm()).append("</zspmDm>").append("    \t\t    <zszmDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getZszmDm())).append("</zszmDm>").append("    \t\t    <kjrq>").append(hxzgSbWtdzskmxbbgbDomain.getKjrq()).append("</kjrq>").append("    \t\t    <tfrq>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getTfrq())).append("</tfrq>").append("    \t\t    <hyDm>").append(hxzgSbWtdzskmxbbgbDomain.getHyDm()).append("</hyDm>").append("    \t\t    <ysfpblDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getYsfpblDm())).append("</ysfpblDm>").append("    \t\t    <yje>").append(this.getNullDouble(hxzgSbWtdzskmxbbgbDomain.getYje())).append("</yje>").append("    \t\t    <zgswskfjDmSel>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getZgswskfjDmSel())).append("</zgswskfjDmSel>").append("    \t\t    <bdzdjxh>").append(hxzgSbWtdzskmxbbgbDomain.getBdzdjxh()).append("</bdzdjxh>").append("    \t\t    <nsqxDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getNsqxDm())).append("</nsqxDm>").append("    \t\t    <nsrsbh>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getBdznsrsbh())).append("</nsrsbh>").append("    \t\t    <nsrmc>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getBdznsrmc())).append("</nsrmc>").append("    \t\t    <djzclxDm>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getDjzclxDm())).append("</djzclxDm>").append("    \t\t    <ssdabh>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getSsdabh())).append("</ssdabh>").append("    \t\t    <sfzjzl>").append(this.getNullStr(hxzgSbWtdzskmxbbgbDomain.getSfzjlxDm())).append("</sfzjzl>").append("    \t\t    <zjhm>").append(hxzgSbWtdzskmxbbgbDomain.getZjhm()).append("</zjhm>").append("    \t</swsxzyGridlb>");
                }
                xml.append("      </swsxzyGrid>").append("  \t</swsxzybgb>").append("  </wtdzsbSbbdxxVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.BcWtdzsb");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", WebConstants.GT3_SHHBSPT_SJRY);
                map.put("sjjg", WebConstants.GT3_SHHBSPT_SJJG);
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB00099ResponseDomain.class);
                    mapClass.put("SBSaveReturnVO", HXZGSB00099SBSaveReturnVODomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB00099ResponseDomain ret = (HXZGSB00099ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("Y".equals(ret.getSBSaveReturnVO().getReturnBz())) {
                            response.setMess("\u7533\u62a5\u6210\u529f\uff01");
                            response.setPzxh(ret.getSBSaveReturnVO().getPzxh());
                            response.setYbtse(ret.getSBSaveReturnVO().getYbtse());
                        } else {
                            response.setCode("01");
                            response.setMess("\u7533\u62a5\u5931\u8d25\uff01");
                        }
                    }
                    break block17;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSbSbZf(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block10: {
            HxzgSbSbZfRequestDomain request = (HxzgSbSbZfRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqq())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u8d77\u6b62\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<taxML xsi:type=\"HXZGSB00067Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_SB_00067_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<sbSbzfxxVO xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\">").append("<pzxh>").append(request.getPzxh()).append("</pzxh>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<yzpzzlDm>").append(request.getYzpzzlDm()).append("</yzpzzlDm>").append("<skssqq>").append(request.getSkssqq()).append("</skssqq>").append("<skssqz>").append(request.getSkssqz()).append("</skssqz>").append("<zsxmDm>").append(this.getNullStr(request.getZsxmDm())).append("</zsxmDm>").append("<sjgsdq>").append(this.getNullStr(request.getSjgsdq())).append("</sjgsdq>").append("<sbuuid>").append(request.getSbuuid()).append("</sbuuid>").append("<sbrq1>").append(this.getNullStr(request.getSbrq())).append("</sbrq1>").append("<ybtse>").append(this.getNullStr(request.getYbtse())).append("</ybtse>").append("</sbSbzfxxVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.BCSBZF");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB00067ResponseDomain.class);
                    mapClass.put("SBSaveReturnVO", HXZGSB00067SBSaveReturnVODomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB00067ResponseDomain ret = (HXZGSB00067ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("1".equals(ret.getSBSaveReturnVO().getReturnBz())) {
                            response.setCode("00");
                            response.setMess("\u4f5c\u5e9f\u6210\u529f\uff01");
                        } else {
                            response.setCode("01");
                            response.setMess("\u4f5c\u5e9f\u5931\u8d25\uff01");
                        }
                    }
                    break block10;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsWszSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsWszSaveResponseDomain response;
        block9: {
            HxzgZsWszSaveRequestDomain request = (HxzgZsWszSaveRequestDomain)appDomain;
            response = new HxzgZsWszSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u7a0e\u52a1\u673a\u5173\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYzpzxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYzpzmxxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u660e\u7ec6\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<taxML xsi:type=\"HXZGZS10065Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_10065_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<skssswjgDm>").append(request.getSkssswjgDm()).append("</skssswjgDm>").append("<yzpzxh>").append(request.getYzpzxh()).append("</yzpzxh>").append("<yzpzmxxh>").append(request.getYzpzmxxh()).append("</yzpzmxxh>").append("<skgkDm>").append(this.getNullStr(request.getSkgkDm())).append("</skgkDm>").append("<ZSkpFormVO>").append("<sfjnfs>").append(request.getSfjnfs()).append("</sfjnfs>").append("<sfdysp>").append(request.getSfdysp()).append("</sfdysp>").append("<znjtsjscs>").append(request.getZnjtsjscs()).append("</znjtsjscs>").append("<pzzl>").append(request.getPzzl()).append("</pzzl>").append("<pzzg>").append(request.getPzzg()).append("</pzzg>").append("<pzqshm>").append(request.getPzqshm()).append("</pzqshm>").append("<yhyywdDm>").append(this.getNullStr(request.getYhyywdDm())).append("</yhyywdDm>").append("<yhzh>").append(this.getNullStr(request.getYhzh())).append("</yhzh>").append("<ckzhzhuuid>").append(this.getNullStr(request.getCkzhzhuuid())).append("</ckzhzhuuid>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<yhhbDm>").append(this.getNullStr(request.getYhhbDm())).append("</yhhbDm>").append("<yhyywdmc>").append(this.getNullStr(request.getYhyywdmc())).append("</yhyywdmc>").append("<sfxyh>").append(this.getNullStr(request.getSfxyh())).append("</sfxyh>").append("<qsyhhh>").append(this.getNullStr(request.getQsyhhh())).append("</qsyhhh>").append("<khyhhh>").append(this.getNullStr(request.getKhyhhh())).append("</khyhhh>").append("<jkzhmc>").append(this.getNullStr(request.getJkzhmc())).append("</jkzhmc>").append("<kprq>").append(request.getKprq()).append("</kprq>").append("<zspmDm>").append(request.getZspmDm()).append("</zspmDm>").append("<ghqysbh>").append(request.getGhqysbh()).append("</ghqysbh>").append("<ghqymc>").append(request.getGhqymc()).append("</ghqymc>").append("<ghqyhgDm>").append(this.getNullStr(request.getGhqyhgDm())).append("</ghqyhgDm>").append("<wtdzrnsrssbh>").append(this.getNullStr(request.getWtdzrnsrssbh())).append("</wtdzrnsrssbh>").append("<wtdzrdjxh>").append(this.getNullStr(request.getWtdzrdjxh())).append("</wtdzrdjxh>").append("</ZSkpFormVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.YBZSKPFPTOJK");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10065ResponseDomain.class);
                    mapClass.put("zskpGrid", HXZGZS10065ZskpGridDomain.class);
                    mapClass.put("zskpGridlb", HXZGZS10065ZskpGridlbDomain.class);
                    mapClass.put("printListGrid", HXZGZS10065PrintListGridDomain.class);
                    mapClass.put("printListGridlb", HXZGZS10065PrintListGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10065ResponseDomain ret = (HXZGZS10065ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !ret.getZskpGrid().getZskpGridlb().isEmpty()) {
                        response.setMess("\u5904\u7406\u6210\u529f\uff01");
                        response.setYwxh(request.getYwxh());
                        response.setJehjnum(ret.getZskpGrid().getZskpGridlb().get(0).getJehjnum());
                    }
                    break block9;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsFqyhkk(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsFqyhkkResponseDomain response;
        block15: {
            HxzgZsFqyhkkRequestDomain request = (HxzgZsFqyhkkRequestDomain)appDomain;
            response = new HxzgZsFqyhkkResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxyh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getZgswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e3b\u7ba1\u7a0e\u52a1\u673a\u5173\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getLrrDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f55\u5165\u4eba\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<taxML xsi:type=\"HXZGZS10025Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_10025_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<yzpzxhGrid>").append("<yzpzxhGridlb>").append("<yzpzxh>").append(request.getYzpzxh()).append("</yzpzxh>");
                if (request.getDataList() == null || request.getDataList().isEmpty()) {
                    xml.append("<yzpzmxxhGrid/>");
                } else {
                    xml.append("<yzpzmxxhGrid>");
                    for (HxzgZsFqyhkkYzpzmxxhGridlbDomain dom : request.getDataList()) {
                        xml.append("<yzpzmxxhGridlb>").append("<yzpzmxxh>").append(dom.getYzpzmxxh()).append("</yzpzmxxh>").append("<zsuuid>").append(dom.getZsuuid()).append("</zsuuid>").append("<kkje>").append(this.getNullStr(dom.getKkje())).append("</kkje>").append("</yzpzmxxhGridlb>");
                    }
                    xml.append("</yzpzmxxhGrid>");
                }
                xml.append("</yzpzxhGridlb>").append("</yzpzxhGrid>").append("<sfxyh>").append(request.getSfxyh()).append("</sfxyh>").append("<zgswjgDm>").append(request.getZgswjgDm()).append("</zgswjgDm>").append("<lrrDm>").append(request.getLrrDm()).append("</lrrDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.SKYSKJN");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10025ResponseDomain.class);
                    mapClass.put("yzxxGrid", HXZGZS10025YzxxGridDomain.class);
                    mapClass.put("yzxxGridlb", HXZGZS10025YzxxGridlbDomain.class);
                    mapClass.put("szmxGrid", HXZGZS10025SzmxGridDomain.class);
                    mapClass.put("szmxGridlb", HXZGZS10025SzmxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10025ResponseDomain ret = (HXZGZS10025ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !ret.getYzxxGrid().getYzxxGridlb().isEmpty()) {
                        HXZGZS10025YzxxGridlbDomain temp = ret.getYzxxGrid().getYzxxGridlb().get(0);
                        if ("000".equals(temp.getKkfhDm())) {
                            response.setMess("\u5904\u7406\u6210\u529f\uff01");
                        } else {
                            response.setCode("01");
                            response.setMess(temp.getKkfhmc());
                        }
                        response.setDzsphm(temp.getDzsphm());
                        response.setSjse(temp.getSjse());
                        response.setKkfhmc(temp.getKkfhmc());
                        response.setKkfhDm(temp.getKkfhDm());
                        if (temp.getSzmxGrid() != null && temp.getSzmxGrid().getSzmxGridlb() != null && temp.getSzmxGrid().getSzmxGridlb().isEmpty()) {
                            response.setZsswjgDm(temp.getSzmxGrid().getSzmxGridlb().get(0).getZsswjgDm());
                        }
                    }
                    break block15;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    public TaxCommonReturnDomain HxzgZs00038(BaseAppServiceDomain appDomain) throws Exception {
        HXZGZS00038ResponseDomain response;
        block6: {
            HXZGZS00038RequestDomain request = (HXZGZS00038RequestDomain)appDomain;
            response = new HXZGZS00038ResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getSkssswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u7a0e\u52a1\u673a\u5173\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS00038Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_00038_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <skssswjgDm>").append(request.getSkssswjgDm()).append("</skssswjgDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.SCSFXYXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZSSfxyxxResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZSSfxyxxResponseDomain ret = (HXZGZSSfxyxxResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        response.setMess("\u5904\u7406\u6210\u529f\uff01");
                        response.setSfxyh(ret.getSfxyh());
                    }
                    break block6;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsSfxyxxSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsSfxyxxSaveResponseDomain response;
        block16: {
            HxzgZsSfxyxxSaveRequestDomain request = (HxzgZsSfxyxxSaveRequestDomain)appDomain;
            response = new HxzgZsSfxyxxSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getPkbz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6279\u91cf\u6263\u6b3e\u6807\u5fd7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u7a0e\u52a1\u673a\u5173\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYhhbDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u94f6\u884c\u884c\u522b\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getQsyhhh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6e05\u7b97\u94f6\u884c\u884c\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getKhyhhh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f00\u6237\u94f6\u884c\u884c\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getJkzh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7f34\u6b3e\u8d26\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getXzqhszDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u884c\u653f\u533a\u548c\u6570\u5b57\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYhyywdDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u94f6\u884c\u8425\u4e1a\u7f51\u70b9\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                HXZGZS00038RequestDomain zs38RequestDomain = new HXZGZS00038RequestDomain();
                zs38RequestDomain.setSkssswjgDm(request.getSkssswjgDm());
                zs38RequestDomain.setSjry(request.getSjry());
                zs38RequestDomain.setSjjg(request.getSjjg());
                HXZGZS00038ResponseDomain zs38Domain = (HXZGZS00038ResponseDomain)this.HxzgZs00038(zs38RequestDomain);
                if (zs38Domain == null) {
                    response.setCode("01");
                    response.setMess("\u751f\u6210\u7eb3\u7a0e\u4eba\u4e09\u65b9\u534f\u8bae\u53f7\u5931\u8d25\uff01");
                    return response;
                }
                String sfxyh = "";
                if (zs38Domain != null && !"00".equals(zs38Domain.getCode())) {
                    response.setCode("01");
                    response.setMess(zs38Domain.getMess());
                    return response;
                }
                sfxyh = zs38Domain.getSfxyh();
                response.setSfxyh(sfxyh);
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS00039Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_00039_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<ZSsfxyVO>").append("<pkbz>").append(request.getPkbz()).append("</pkbz>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<skssswjgDm>").append(request.getSkssswjgDm()).append("</skssswjgDm>").append("<sfxyh>").append(sfxyh).append("</sfxyh>").append("<yhhbDm>").append(request.getYhhbDm()).append("</yhhbDm>").append("<qsyhhh>").append(request.getQsyhhh()).append("</qsyhhh>").append("<khyhhh>").append(request.getKhyhhh()).append("</khyhhh>").append("<jkzh>").append(request.getJkzh()).append("</jkzh>").append("<jkzhmc>").append(request.getJkzhmc()).append("</jkzhmc>").append("<xzqhszDm>").append(request.getXzqhszDm()).append("</xzqhszDm>").append("<sfxyztDm>01</sfxyztDm>").append("<yhyywdDm>").append(request.getYhyywdDm()).append("</yhyywdDm>").append("<lrrDm>").append(this.getSjry(request)).append("</lrrDm>").append("</ZSsfxyVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.BCSFXYXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZSSfxyxxResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZSSfxyxxResponseDomain ret = (HXZGZSSfxyxxResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        response.setMess("\u5904\u7406\u6210\u529f\uff01");
                        response.setSfxydjuuid(ret.getSfxydjuuid());
                    }
                    break block16;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsZfSfxyxx(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block9: {
            HxzgZsZfSfxyxxRequestDomain request = (HxzgZsZfSfxyxxRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getZfrDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4f5c\u5e9f\u4eba\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxydjuuid())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u767b\u8bb0uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS00040Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_00040_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <zfrDm>").append(request.getZfrDm()).append("</zfrDm>").append("  <sfxydjuuid>").append(request.getSfxydjuuid()).append("</sfxydjuuid>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.ZFSFXYXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZSSfxyxxResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZSSfxyxxResponseDomain ret = (HXZGZSSfxyxxResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("\u4f5c\u5e9f\u6210\u529f".equals(ret.getReturnmessage())) {
                            response.setMess("\u4f5c\u5e9f\u6210\u529f\uff01");
                        } else {
                            response.setCode("01");
                            response.setMess("\u4f5c\u5e9f\u5931\u8d25\uff01");
                        }
                    }
                    break block9;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsFsSfxyxx(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block15: {
            HxzgZsFsSfxyxxRequestDomain request = (HxzgZsFsSfxyxxRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxyh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxydjuuid())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u767b\u8bb0uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u7a0e\u52a1\u673a\u5173\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYhhbDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u94f6\u884c\u884c\u522b\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getQsyhhh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6e05\u7b97\u94f6\u884c\u884c\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getKhyhhh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f00\u6237\u94f6\u884c\u884c\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getJkzh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7f34\u6b3e\u8d26\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS00041Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_00041_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<ZSsfxyVO>").append("<sfxydjuuid>").append(request.getSfxydjuuid()).append("</sfxydjuuid>").append("<pkbz>").append(request.getPkbz()).append("</pkbz>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<skssswjgDm>").append(request.getSkssswjgDm()).append("</skssswjgDm>").append("<sfxyh>").append(request.getSfxyh()).append("</sfxyh>").append("<yhhbDm>").append(request.getYhhbDm()).append("</yhhbDm>").append("<qsyhhh>").append(request.getQsyhhh()).append("</qsyhhh>").append("<khyhhh>").append(request.getKhyhhh()).append("</khyhhh>").append("<jkzh>").append(request.getJkzh()).append("</jkzh>").append("<jkzhmc>").append(request.getJkzhmc()).append("</jkzhmc>").append("<xzqhszDm>").append(this.getNullStr(request.getXzqhszDm())).append("</xzqhszDm>").append("<yhyywdDm>").append(this.getNullStr(request.getYhyywdDm())).append("</yhyywdDm>").append("<sfxyztDm>02</sfxyztDm>").append("</ZSsfxyVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.FSSFXYXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZSSfxyxxResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZSSfxyxxResponseDomain ret = (HXZGZSSfxyxxResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("FDA".equals(ret.getRecode())) {
                            response.setMess(ret.getReturnmessage());
                        } else {
                            response.setCode(ret.getRecode());
                            response.setMess(ret.getReturnmessage());
                        }
                    }
                    break block15;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsQxSfxyxx(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block15: {
            HxzgZsQxSfxyxxRequestDomain request = (HxzgZsQxSfxyxxRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxyh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxydjuuid())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u767b\u8bb0uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u7a0e\u52a1\u673a\u5173\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYhhbDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u94f6\u884c\u884c\u522b\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getQsyhhh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6e05\u7b97\u94f6\u884c\u884c\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getKhyhhh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f00\u6237\u94f6\u884c\u884c\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getJkzh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7f34\u6b3e\u8d26\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS00042Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_00042_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<ZSsfxyVO>").append("<sfxydjuuid>").append(request.getSfxydjuuid()).append("</sfxydjuuid>").append("<pkbz>").append(request.getPkbz()).append("</pkbz>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<skssswjgDm>").append(request.getSkssswjgDm()).append("</skssswjgDm>").append("<sfxyh>").append(request.getSfxyh()).append("</sfxyh>").append("<yhhbDm>").append(request.getYhhbDm()).append("</yhhbDm>").append("<qsyhhh>").append(request.getQsyhhh()).append("</qsyhhh>").append("<khyhhh>").append(request.getKhyhhh()).append("</khyhhh>").append("<jkzh>").append(request.getJkzh()).append("</jkzh>").append("<jkzhmc>").append(request.getJkzhmc()).append("</jkzhmc>").append("<xzqhszDm>").append(this.getNullStr(request.getXzqhszDm())).append("</xzqhszDm>").append("<yhyywdDm>").append(this.getNullStr(request.getYhyywdDm())).append("</yhyywdDm>").append("</ZSsfxyVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.QXSFXYXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZSSfxyxxResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZSSfxyxxResponseDomain ret = (HXZGZSSfxyxxResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("FDC".equals(ret.getRecode()) || "FBD".equals(ret.getRecode())) {
                            response.setMess("\u5904\u7406\u6210\u529f\uff01");
                        } else {
                            response.setCode(ret.getRecode());
                            response.setMess(ret.getReturnmessage());
                        }
                    }
                    break block15;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsGxSfxyxx(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block15: {
            HxzgZsGxSfxyxxRequestDomain request = (HxzgZsGxSfxyxxRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxyh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxydjuuid())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u767b\u8bb0uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u7a0e\u52a1\u673a\u5173\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYhhbDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u94f6\u884c\u884c\u522b\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getQsyhhh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6e05\u7b97\u94f6\u884c\u884c\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getKhyhhh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f00\u6237\u94f6\u884c\u884c\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getJkzh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7f34\u6b3e\u8d26\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS00193Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_00193_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<ZSsfxyVO>").append("<sfxydjuuid>").append(request.getSfxydjuuid()).append("</sfxydjuuid>").append("<pkbz>").append(request.getPkbz()).append("</pkbz>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<skssswjgDm>").append(request.getSkssswjgDm()).append("</skssswjgDm>").append("<sfxyh>").append(request.getSfxyh()).append("</sfxyh>").append("<yhhbDm>").append(request.getYhhbDm()).append("</yhhbDm>").append("<qsyhhh>").append(request.getQsyhhh()).append("</qsyhhh>").append("<khyhhh>").append(request.getKhyhhh()).append("</khyhhh>").append("<jkzh>").append(request.getJkzh()).append("</jkzh>").append("<jkzhmc>").append(request.getJkzhmc()).append("</jkzhmc>").append("<xzqhszDm>").append(request.getXzqhszDm()).append("</xzqhszDm>").append("<yhyywdDm>").append(request.getYhyywdDm()).append("</yhyywdDm>").append("<sfxyztDm>").append(request.getSfxyztDm()).append("</sfxyztDm>").append("<xgrDm>").append(this.getSjry(request)).append("</xgrDm>").append("</ZSsfxyVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.GXSFXYXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZSSfxyxxResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZSSfxyxxResponseDomain ret = (HXZGZSSfxyxxResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("\u4fee\u6539\u6210\u529f".equals(ret.getReturnmessage())) {
                            response.setMess("\u4fee\u6539\u6210\u529f\uff01");
                        } else {
                            response.setCode("01");
                            response.setMess(ret.getReturnmessage());
                        }
                    }
                    break block15;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsCxSfxyxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsCxSfxyResponseDomain response;
        block7: {
            HxzgZsCxSfxyxxRequestDomain request = (HxzgZsCxSfxyxxRequestDomain)appDomain;
            response = new HxzgZsCxSfxyResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS00996RequestVO\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_00996_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.CXSFXYXXBYDJXH");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS00996ResponseDomain.class);
                    mapClass.put("sfxyxxGrid", HXZGZS00996SfxyxxGridDomain.class);
                    mapClass.put("sfxyxxGridlb", HXZGZS00996SfxyxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS00996ResponseDomain ret = (HXZGZS00996ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && ret.getSfxyxxGrid() != null && !ret.getSfxyxxGrid().getSfxyxxGridlb().isEmpty()) {
                        HxzgZsCxSfxyxxDomain dom = null;
                        for (HXZGZS00996SfxyxxGridlbDomain temp : ret.getSfxyxxGrid().getSfxyxxGridlb()) {
                            dom = new HxzgZsCxSfxyxxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            response.getDataList().add(dom);
                        }
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZsCxNsrdkfpyjxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsCxNsrdkfpyjxxRequestDomain request = (HxzgZsCxNsrdkfpyjxxRequestDomain)appDomain;
        HxzgZsCxNsrdkfpyjxxResponseDomain response = new HxzgZsCxNsrdkfpyjxxResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            if (HstToolsUtil.isNullOrEmpty(request.getSssqq())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u6240\u5c5e\u65f6\u671f\u8d77\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            if (HstToolsUtil.isNullOrEmpty(request.getSssqz())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u6240\u5c5e\u65f6\u671f\u6b62\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            HxzgZsCxnNsrdkfpyjxxDomain domain = this.dao.queryNsrDkfpYjxx(request.getDjxh(), request.getSssqq(), request.getSssqz());
            if (domain != null) {
                BeanUtils.copyProperties((Object)response, (Object)domain);
            }
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsDyyhdjkpz(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsDyyhdjkpzResponseDomain response;
        block10: {
            HxzgZsDyyhdjkpzRequestDomain request = (HxzgZsDyyhdjkpzRequestDomain)appDomain;
            response = new HxzgZsDyyhdjkpzResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYzpzxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList() == null || request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u660e\u7ec6\u5e8f\u53f7list\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS10007Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_10007_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<yzpzxh>").append(request.getYzpzxh()).append("</yzpzxh>").append("<yzxxGrid>");
                for (HxzgZsDyyhdjkpzYzxxGridlbDomain dom : request.getDataList()) {
                    xml.append("<yzxxGridlb>").append("<yzpzmxxh>").append(dom.getYzpzmxxh()).append("</yzpzmxxh>").append("<skgkDm>").append(dom.getSkgkDm()).append("</skgkDm>").append("</yzxxGridlb>");
                }
                xml.append("</yzxxGrid>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.DYYHDJKPZ");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10007ResponseDomain.class);
                    mapClass.put("jkxxGrid", HXZGZS10007JkxxGridDomain.class);
                    mapClass.put("jkxxGridlb", HXZGZS10007JkxxGridlbDomain.class);
                    mapClass.put("szxxGrid", HXZGZS10007SzxxGridDomain.class);
                    mapClass.put("szxxGridlb", HXZGZS10007SzxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10007ResponseDomain ret = (HXZGZS10007ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !ret.getJkxxGrid().getJkxxGridlb().isEmpty()) {
                        BeanUtils.copyProperties((Object)response, (Object)ret.getJkxxGrid().getJkxxGridlb().get(0));
                        HxzgZsDyyhdjkpzDomain dom = null;
                        for (HXZGZS10007SzxxGridlbDomain temp : ret.getJkxxGrid().getJkxxGridlb().get(0).getSzxxGrid().getSzxxGridlb()) {
                            dom = new HxzgZsDyyhdjkpzDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            response.getDataList().add(dom);
                        }
                    }
                    break block10;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsCxyhdjkpzwjkxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsCxyhdjkpzwjkxxResponseDomain response;
        block10: {
            HxzgZsCxyhdjkpzwjkxxRequestDomain request = (HxzgZsCxyhdjkpzwjkxxRequestDomain)appDomain;
            response = new HxzgZsCxyhdjkpzwjkxxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYzpzxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getDzsphm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7535\u5b50\u7a0e\u7968\u53f7\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS10008Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_10008_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<yzpzxh>").append(request.getYzpzxh()).append("</yzpzxh>").append("<dzsphm>").append(request.getDzsphm()).append("</dzsphm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.CXYHDJKPZWJKXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    if (HstToolsUtil.isNullOrEmpty(resStr)) {
                        return response;
                    }
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10007ResponseDomain.class);
                    mapClass.put("jkxxGrid", HXZGZS10007JkxxGridDomain.class);
                    mapClass.put("jkxxGridlb", HXZGZS10007JkxxGridlbDomain.class);
                    mapClass.put("szxxGrid", HXZGZS10007SzxxGridDomain.class);
                    mapClass.put("szxxGridlb", HXZGZS10007SzxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10007ResponseDomain ret = (HXZGZS10007ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        BeanUtils.copyProperties((Object)response, (Object)ret.getJkxxGrid().getJkxxGridlb().get(0));
                        HxzgZsCxyhdjkpzwjkxxDomain dom = null;
                        for (HXZGZS10007SzxxGridlbDomain temp : ret.getJkxxGrid().getJkxxGridlb().get(0).getSzxxGrid().getSzxxGridlb()) {
                            dom = new HxzgZsCxyhdjkpzwjkxxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            response.getDataList().add(dom);
                        }
                    }
                    break block10;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZsSkyDzspkkztcx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsSkyDzspkkztcxResponseDomain response;
        block7: {
            HxzgZsSkyDzspkkztcxRequestDomain request = (HxzgZsSkyDzspkkztcxRequestDomain)appDomain;
            response = new HxzgZsSkyDzspkkztcxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDzsphm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7535\u5b50\u7a0e\u7968\u53f7\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u673a\u5173\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<taxML xsi:type=\"HXZGZS10028Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_10028_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<dzsphm>").append(request.getDzsphm()).append("</dzsphm>").append("<skssswjgDm>").append(request.getSkssswjgDm()).append("</skssswjgDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.SKYDZSPKKZTCX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10028ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10028ResponseDomain ret = (HXZGZS10028ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        response.setKkfhmc(ret.getKkfhmc());
                        response.setKkfhDm(ret.getKkfhDm());
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZsDkfpsskk(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsDkfpsskkResponseDomain response;
        block10: {
            HxzgZsDkfpsskkRequestDomain request = (HxzgZsDkfpsskkRequestDomain)appDomain;
            response = new HxzgZsDkfpsskkResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxyh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getDksquuid())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4ee3\u5f00\u7533\u8bf7uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<taxML xsi:type=\"HXZGZS10040Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_10040_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<dksquuid>").append(request.getDksquuid()).append("</dksquuid>").append("<sfxyh>").append(request.getSfxyh()).append("</sfxyh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.DKFPSSKK");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10025ResponseDomain.class);
                    mapClass.put("yzxxGrid", HXZGZS10025YzxxGridDomain.class);
                    mapClass.put("yzxxGridlb", HXZGZS10025YzxxGridlbDomain.class);
                    mapClass.put("szmxGrid", HXZGZS10025SzmxGridDomain.class);
                    mapClass.put("szmxGridlb", HXZGZS10025SzmxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10025ResponseDomain ret = (HXZGZS10025ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !ret.getYzxxGrid().getYzxxGridlb().isEmpty()) {
                        HXZGZS10025YzxxGridlbDomain temp = ret.getYzxxGrid().getYzxxGridlb().get(0);
                        if ("000".equals(temp.getKkfhDm())) {
                            response.setMess("\u5904\u7406\u6210\u529f\uff01");
                        } else {
                            response.setCode(temp.getKkfhDm());
                            response.setMess(temp.getKkfhmc());
                        }
                        response.setDzsphm(temp.getDzsphm());
                    }
                    break block10;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsWtdzwszhzsskk(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsWtdzwszhzsskkResponseDomain response;
        block10: {
            HxzgZsWtdzwszhzsskkRequestDomain request = (HxzgZsWtdzwszhzsskkRequestDomain)appDomain;
            response = new HxzgZsWtdzwszhzsskkResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxyh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList() == null || request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u96c6\u5408\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS10186Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<yzpzxhGrid>");
                for (HxzgZsYzpzxhGridDomain dom : request.getDataList()) {
                    xml.append("<yzpzxhGridlb>").append("<yzpzxh>").append(dom.getYzpzxh()).append("</yzpzxh>").append("</yzpzxhGridlb>");
                }
                xml.append("</yzpzxhGrid>").append("<sfxyh>").append(request.getSfxyh()).append("</sfxyh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.WTDZWSZHZSSKK");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10186ResponseDomain.class);
                    mapClass.put("jkxxGrid", HXZGZS10186JkxxGridDomain.class);
                    mapClass.put("jkxxGridlb", HXZGZS10186JkxxGridlbDomain.class);
                    mapClass.put("wszGrid", HXZGZS10186WszGridDomain.class);
                    mapClass.put("wszGridlb", HXZGZS10186WszGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10186ResponseDomain ret = (HXZGZS10186ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !ret.getJkxxGrid().getJkxxGridlb().isEmpty()) {
                        BeanUtils.copyProperties((Object)response, (Object)ret.getJkxxGrid().getJkxxGridlb().get(0));
                        HxzgZsWtdzwszhzsskkDomain dom = null;
                        for (HXZGZS10186WszGridlbDomain temp : ret.getJkxxGrid().getJkxxGridlb().get(0).getWszGrid().getWszGridlb()) {
                            dom = new HxzgZsWtdzwszhzsskkDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            response.getDataList().add(dom);
                        }
                    }
                    break block10;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgZsYhdjspzcljk(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block9: {
            HxzgZsYhdjspzcljkRequestDomain request = (HxzgZsYhdjspzcljkRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDzsphm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7535\u5b50\u7a0e\u7968\u53f7\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS10193Request\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<dzsphm>").append(request.getDzsphm()).append("</dzsphm>").append("<skssswjgDm>").append(this.getNullStr(request.getSkssswjgDm())).append("</skssswjgDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.YHDJSPZCLJK");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    if (HstToolsUtil.isNullOrEmpty(resStr)) {
                        return response;
                    }
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10193ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10193ResponseDomain ret = (HXZGZS10193ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("000".equals(ret.getKkfhDm())) {
                            response.setMess(ret.getKkfhmc());
                        } else {
                            response.setCode(ret.getKkfhDm());
                            response.setMess(ret.getKkfhmc());
                        }
                    }
                    break block9;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZsCxRjtssh(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsCxRjtsshRequestDomain request = (HxzgZsCxRjtsshRequestDomain)appDomain;
        HxzgZsCxRjtsshResponseDomain response = new HxzgZsCxRjtsshResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getNsrsbh()) || HstToolsUtil.isNullOrEmpty(request.getSkssqq()) || HstToolsUtil.isNullOrEmpty(request.getSkssqz())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u7eb3\u7a0e\u4eba\u8bc6\u522b\u53f7\u3001\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u3001\u7a0e\u6b3e\u6240\u5c5e\u671f\u6b62\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            HxzgDjNsrjyxxDomain nsrDomain = this.dao.queyrNsrJyxx(request.getNsrsbh());
            if (nsrDomain == null) {
                response.setCode("01");
                response.setMess("\u7eb3\u7a0e\u4eba\u4e0d\u5b58\u5728\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            HxzgZsCxRjtsshDomain domain = this.dao.queryRjtssh(nsrDomain.getDjxh(), request.getSkssqq(), request.getSkssqz());
            if (domain != null) {
                BeanUtils.copyProperties((Object)response, (Object)domain);
                response.setCode("00");
            }
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpLgbjbxxSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpLgbjbxxSaveRequestDomain request = (HxzgFpLgbjbxxSaveRequestDomain)appDomain;
        TaxCommonReturnDomain response = new TaxCommonReturnDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP00006Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_00006_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<lgbffVO>").append("<fplgbuuid></fplgbuuid>").append("<lcslid>4B9D4C8F888592D2AEDFE24BFD4949F9</lcslid>").append("<djxh>11440600000000000103</djxh>").append("<fpglyxm>\u53d1\u7968\u7ba1\u7406\u5458\u59d3\u540dA</fpglyxm>").append("<fplgbhm>2015091700001</fplgbhm>").append("<slswjgDm>14406823600</slswjgDm>").append("<lrrDm>14406820320</lrrDm>").append("<xgrDm/>").append("<sjgsdq>14406823600</sjgsdq>").append("<wszzrq>2015-09-17</wszzrq>").append("<sfzjhm>1343123412341234</sfzjhm>").append("<sfzjlxDm>199</sfzjlxDm>").append("</lgbffVO>").append("<lgbVO>").append("<fplgbuuid></fplgbuuid>").append("<djxh>11440600000000000103</djxh>").append("<swzjzlDm>199</swzjzlDm>").append("<swzjhm>1343123412341234</swzjhm>").append("<swzjglztDm>01</swzjglztDm>").append("<ffrq>2015-09-17</ffrq>").append("<yxqq>2015-09-17</yxqq>").append("<yxqz>9999-12-30</yxqz>").append("<lrrDm>14406820320</lrrDm>").append("<sjgsdq>14406823600</sjgsdq>").append("<fplgbhm>2015091700001</fplgbhm>").append("</lgbVO>").append("<hsxxVO>").append("<djxh>11440600000000000103</djxh>").append("<hdhs>2</hdhs>").append("<jxhs></jxhs>").append("<gshs></gshs>").append("<yjhs></yjhs>").append("<tphs></tphs>").append("<lyhs></lyhs>").append("<sjtbSj></sjtbSj>").append("<sjgsdq>14406823600</sjgsdq>").append("<lrrDm>14406820320</lrrDm>").append("<swjgDm>14406823600</swjgDm>").append("</hsxxVO>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.BCLGBJBXX");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            String resStr = domain.getBody();
            HashMap<String, Class> mapClass = new HashMap<String, Class>();
            mapClass.put("taxML", HXZGFP10000ResponseDomain.class);
            mapClass.put("fpdkSqVOGrid", HXZGFP10000FpdkSqVOGridDomain.class);
            mapClass.put("fPdkSqVOGridlb", HXZGFP10000FPdkSqVOGridlbDomain.class);
            XmlHelper help = new XmlHelper("taxML", mapClass);
            HXZGFP10000ResponseDomain hXZGFP10000ResponseDomain = (HXZGFP10000ResponseDomain)help.xmlStrParser(resStr);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpFsxxSave(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block9: {
            HxzgFpFsxxSaveRequestDomain request = (HxzgFpFsxxSaveRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh()) || HstToolsUtil.isNullOrEmpty(request.getTgbz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u3001\u505c\u4f9b\u6807\u5fd7\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSjgsdq()) || HstToolsUtil.isNullOrEmpty(request.getFpkfDm()) || HstToolsUtil.isNullOrEmpty(request.getSfzjlxDm()) || HstToolsUtil.isNullOrEmpty(request.getSfzjhm()) || HstToolsUtil.isNullOrEmpty(request.getLrrDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6570\u636e\u5f52\u5c5e\u5730\u533a\u3001\u53d1\u7968\u5e93\u623f\u4ee3\u7801\u3001\u8eab\u4efd\u8bc1\u7c7b\u578b\u4ee3\u7801\u3001\u5f55\u5165\u4eba\u4ee3\u7801\u3001\u8eab\u4efd\u8bc1\u4ef6\u53f7\u7801\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u660e\u7ec6\u96c6\u5408\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP00051Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_00051_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<lyVO>").append("<sjgsdq>").append(request.getSjgsdq()).append("</sjgsdq>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<fplyuuid/>").append("<fpkfDm>").append(request.getFpkfDm()).append("</fpkfDm>").append("<sfzjlxDm>").append(request.getSfzjlxDm()).append("</sfzjlxDm>").append("<gprxm>").append(this.getNullStr(request.getGprxm())).append("</gprxm>").append("<lrrDm>").append(request.getLrrDm()).append("</lrrDm>").append("<slswjgDm>").append(this.getNullStr(request.getSlswjgDm())).append("</slswjgDm>").append("<slrq>").append(this.getNullStr(request.getSlrq())).append("</slrq>").append("<slrDm>").append(this.getNullStr(request.getSlrDm())).append("</slrDm>").append("<sfzjhm>").append(request.getSfzjhm()).append("</sfzjhm>").append("<fpdzxxlqfsDm>").append(this.getNullStr(request.getFpdzxxlqfsDm())).append("</fpdzxxlqfsDm>").append("<xydj>").append(this.getNullStr(request.getXydj())).append("</xydj>").append("<lpslsx>").append(this.getNullStr(request.getLpslsx())).append("</lpslsx>").append("<lprqq>").append(this.getNullStr(request.getLprqq())).append("</lprqq>").append("<lprqz>").append(this.getNullStr(request.getLprqz())).append("</lprqz>").append("<sytgtpje>").append(this.getNullStr(request.getSytgtpje())).append("</sytgtpje>").append("<sycxltpje>").append(this.getNullStr(request.getSycxltpje())).append("</sycxltpje>").append("</lyVO>").append("<mxVOList>");
                for (HxzgFpFsxxLymxDomain mx : request.getDataList()) {
                    if (HstToolsUtil.isNullOrEmpty(mx.getSjgsdq()) || HstToolsUtil.isNullOrEmpty(mx.getFpDm()) || HstToolsUtil.isNullOrEmpty(mx.getFpzlDm()) || HstToolsUtil.isNullOrEmpty(mx.getFpqshm()) || HstToolsUtil.isNullOrEmpty(mx.getFpzzhm()) || HstToolsUtil.isNullOrEmpty(mx.getFpsl())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u6570\u636e\u5f52\u5c5e\u5730\u533a\u3001\u53d1\u7968\u4ee3\u7801\u3001\u53d1\u7968\u79cd\u7c7b\u4ee3\u7801\u3001\u53d1\u7968\u8d77\u59cb\u53f7\u7801\u3001\u53d1\u7968\u7ec8\u6b62\u53f7\u7801\u3001\u53d1\u7968\u6570\u91cf\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("<mxVOListlb>").append("<fpDm>").append(mx.getFpDm()).append("</fpDm>").append("<fpqshm>").append(mx.getFpqshm()).append("</fpqshm>").append("<fpzzhm>").append(mx.getFpzzhm()).append("</fpzzhm>").append("<wtdkbz>").append(this.getNullStr(mx.getWtdkbz())).append("</wtdkbz>").append("<fpzlDm>").append(mx.getFpzlDm()).append("</fpzlDm>").append("<fpsl>").append(mx.getFpsl()).append("</fpsl>").append("<lrrDm>").append(mx.getLrrDm()).append("</lrrDm>").append("<sjgsdq>").append(mx.getSjgsdq()).append("</sjgsdq>").append("<defpbz>").append(this.getNullStr(mx.getDefpbz())).append("</defpbz>").append("<zppzDm>").append(this.getNullStr(mx.getZppzDm())).append("</zppzDm>").append("<fpme>").append(this.getNullStr(mx.getFpme())).append("</fpme>").append("<tdhyDm>").append(this.getNullStr(mx.getTdhyDm())).append("</tdhyDm>").append("<phcd>").append(this.getNullStr(mx.getPhcd())).append("</phcd>").append("<jldwDm>").append(this.getNullStr(mx.getJldwDm())).append("</jldwDm>").append("<fpdmmc>").append(this.getNullStr(mx.getFpdmmc())).append("</fpdmmc>").append("<skbz>").append(this.getNullStr(mx.getSkbz())).append("</skbz>").append("<mbfs>").append(this.getNullStr(mx.getMbfs())).append("</mbfs>").append("<bs>").append(this.getNullStr(mx.getBs())).append("</bs>").append("</mxVOListlb>");
                }
                xml.append("</mxVOList>").append("<tgbz>").append(request.getTgbz()).append("</tgbz>").append("<gptpsyje>").append(this.getNullDouble(request.getGptpsyje())).append("</gptpsyje>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.BCFSXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    response.setMess("\u5904\u7406\u6210\u529f\uff01");
                    break block9;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpFpyjjxxSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpFpyjjxxSaveResponseDomain response;
        block12: {
            HxzgFpFpyjjxxSaveRequestDomain request = (HxzgFpFpyjjxxSaveRequestDomain)appDomain;
            response = new HxzgFpFpyjjxxSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh()) || HstToolsUtil.isNullOrEmpty(request.getSaveType()) || HstToolsUtil.isNullOrEmpty(request.getWfwzdj())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u3001\u4fdd\u5b58\u7c7b\u578b\u3001\u662f\u5426\u53d1\u8d77\u8fdd\u6cd5\u8fdd\u7ae0\u767b\u8bb0\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSjgsdq()) || HstToolsUtil.isNullOrEmpty(request.getCyrDm()) || HstToolsUtil.isNullOrEmpty(request.getCyrq()) || HstToolsUtil.isNullOrEmpty(request.getYjjsjlyDm()) || HstToolsUtil.isNullOrEmpty(request.getCyswjgDm()) || HstToolsUtil.isNullOrEmpty(request.getLrrDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6570\u636e\u5f52\u5c5e\u5730\u533a\u3001\u67e5\u9a8c\u4eba\u4ee3\u7801\u3001\u67e5\u9a8c\u65e5\u671f\u3001\u9a8c\u4ea4\u65e7\u6570\u636e\u6765\u6e90\u4ee3\u7801\u3001\u67e5\u9a8c\u7a0e\u52a1\u673a\u5173\u3001\u5f55\u5165\u4eba\u4ee3\u7801\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u660e\u7ec6\u96c6\u5408\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP00057Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_00057_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<fpYjjcyqkVO>").append("<sjgsdq>").append(request.getSjgsdq()).append("</sjgsdq>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<cyrDm>").append(request.getCyrDm()).append("</cyrDm>").append("<cyswjgDm>").append(request.getCyswjgDm()).append("</cyswjgDm>").append("<cyrq>").append(request.getCyrq()).append("</cyrq>").append("<yjjsjlyDm>").append(request.getSaveType()).append("</yjjsjlyDm>").append("<fpwzjl>").append(this.getNullStr(request.getFpwzjl())).append("</fpwzjl>").append("<lrrDm>").append(request.getLrrDm()).append("</lrrDm>").append("<fpcyuuid />").append("<xgrDm>").append(this.getNullStr(request.getXgrDm())).append("</xgrDm>").append("</fpYjjcyqkVO>").append("<fpyjjcyqkMxVOList>");
                for (HxzgFpFpyjjcyqkMxVOListDomain mx : request.getDataList()) {
                    if (HstToolsUtil.isNullOrEmpty(mx.getSjgsdq()) || HstToolsUtil.isNullOrEmpty(mx.getFpDm()) || HstToolsUtil.isNullOrEmpty(mx.getFpzlDm()) || HstToolsUtil.isNullOrEmpty(mx.getFpqshm()) || HstToolsUtil.isNullOrEmpty(mx.getFpzzhm()) || HstToolsUtil.isNullOrEmpty(mx.getFpkjqkDm()) || HstToolsUtil.isNullOrEmpty(mx.getFpyjjgDm()) || HstToolsUtil.isNullOrEmpty(mx.getKpqsrq()) || HstToolsUtil.isNullOrEmpty(mx.getKpjzrq())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u6570\u636e\u5f52\u5c5e\u5730\u533a\u3001\u53d1\u7968\u4ee3\u7801\u3001\u53d1\u7968\u79cd\u7c7b\u4ee3\u7801\u3001\u53d1\u7968\u8d77\u59cb\u53f7\u7801\u3001\u53d1\u7968\u7ec8\u6b62\u53f7\u7801\u3001\u53d1\u7968\u5f00\u5177\u60c5\u51b5\u4ee3\u7801\u3001\u53d1\u7968\u9a8c\u65e7\u7ed3\u679c\u4ee3\u7801\u3001\u5f00\u7968\u8d77\u59cb\u65e5\u671f\u3001\u5f00\u7968\u622a\u6b62\u65e5\u671f\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("<fpyjjcyqkMxVOListlb>").append("<fpkjqkDm>").append(mx.getFpkjqkDm()).append("</fpkjqkDm>").append("<sjgsdq>").append(mx.getSjgsdq()).append("</sjgsdq>").append("<fpzlDm>").append(mx.getFpzlDm()).append("</fpzlDm>").append("<kpje>").append(this.getNullStr(mx.getKpje())).append("</kpje>").append("<se>").append(this.getNullStr(mx.getSe())).append("</se>").append("<fpzzhm>").append(mx.getFpzzhm()).append("</fpzzhm>").append("<fpyjjgDm>").append(mx.getFpyjjgDm()).append("</fpyjjgDm>").append("<ywuuid />").append("<fpqshm>").append(mx.getFpqshm()).append("</fpqshm>").append("<fs>").append(this.getNullStr(mx.getFs())).append("</fs>").append("<fpDm>").append(mx.getFpDm()).append("</fpDm>").append("<fpcyuuid />").append("<lrrDm>").append(mx.getLrrDm()).append("</lrrDm>").append("<kpqsrq>").append(mx.getKpqsrq()).append("</kpqsrq>").append("<cyfpmxuuid />").append("<xgrDm>").append(this.getNullStr(mx.getXgrDm())).append("</xgrDm>").append("<zfbz1>").append(this.getNullStr(mx.getZfbz())).append("</zfbz1>").append("<kpjzrq>").append(mx.getKpjzrq()).append("</kpjzrq>").append("</fpyjjcyqkMxVOListlb>");
                }
                xml.append("</fpyjjcyqkMxVOList>").append("<saveType>").append(request.getSaveType()).append("</saveType>").append("<wfwzdj>").append(request.getWfwzdj()).append("</wfwzdj>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.BCFPYJJXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP00057ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP00057ResponseDomain ret = (HXZGFP00057ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !HstToolsUtil.isNullOrEmpty(ret.getSwsxtzsnr())) {
                        String[] array = ret.getSwsxtzsnr().split("__");
                        if (array != null && array.length > 0) {
                            response.setFpcyuuid(array[0]);
                        }
                        if (array != null && array.length > 1) {
                            response.setMess(array[1]);
                        }
                    }
                    break block12;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    public TaxCommonReturnDomain HxzgFp00246(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsFqyhkkRequestDomain request = (HxzgZsFqyhkkRequestDomain)appDomain;
        HxzgZsFqyhkkResponseDomain response = new HxzgZsFqyhkkResponseDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10000Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10000_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.BCFPYJJCX");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            String resStr = domain.getBody();
            HashMap<String, Class> mapClass = new HashMap<String, Class>();
            mapClass.put("taxML", HXZGFP10000ResponseDomain.class);
            mapClass.put("fpdkSqVOGrid", HXZGFP10000FpdkSqVOGridDomain.class);
            mapClass.put("fPdkSqVOGridlb", HXZGFP10000FPdkSqVOGridlbDomain.class);
            XmlHelper help = new XmlHelper("taxML", mapClass);
            HXZGFP10000ResponseDomain hXZGFP10000ResponseDomain = (HXZGFP10000ResponseDomain)help.xmlStrParser(resStr);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpCxnsrpzhdxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpCxnsrpzhdxxResponseDomain response;
        block7: {
            HxzgFpCxnsrpzhdxxRequestDomain request = (HxzgFpCxnsrpzhdxxRequestDomain)appDomain;
            response = new HxzgFpCxnsrpzhdxxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP00251Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_00272_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.CXNSRPZHDXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP00251ResponseDomain.class);
                    mapClass.put("pzhdxxGrid", HXZGFP00251PzhdxxGridDomain.class);
                    mapClass.put("pzhdxxGridlb", HXZGFP00251PzhdxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP00251ResponseDomain ret = (HXZGFP00251ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && ret.getPzhdxxGrid() != null && !ret.getPzhdxxGrid().getPzhdxxGridlb().isEmpty()) {
                        HxzgFpPzhdxxDomain dom = null;
                        for (HXZGFP00251PzhdxxGridlbDomain temp : ret.getPzhdxxGrid().getPzhdxxGridlb()) {
                            dom = new HxzgFpPzhdxxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            dom.setYxqq(this.substringDate(dom.getYxqq()));
                            dom.setYxqz(this.substringDate(dom.getYxqz()));
                            response.getDataList().add(dom);
                        }
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpCxnsrfplgbqkxx(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block8: {
            HxzgFpCxnsrfplgbqkxxRequestDomain request = (HxzgFpCxnsrfplgbqkxxRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP00268Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_00268_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.CXNSRFPLGBQKXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP00268ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP00268ResponseDomain ret = (HXZGFP00268ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("Y".equals(ret.getReturncode())) {
                            response.setMess(ret.getReturnmessage());
                        } else {
                            response.setCode("01");
                            response.setMess("\u7eb3\u7a0e\u4eba\u4e0d\u5b58\u5728\u53d1\u7968\u9886\u8d2d\u7c3f");
                        }
                    }
                    break block8;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpCxnsrpzhdgprxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpCxnsrpzhdgprxxResponseDomain response;
        block7: {
            HxzgFpCxnsrpzhdgprxxRequestDomain request = (HxzgFpCxnsrpzhdgprxxRequestDomain)appDomain;
            response = new HxzgFpCxnsrpzhdgprxxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP00272Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_00272_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.CXNSRPZHDGPRXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP00272ResponseDomain.class);
                    mapClass.put("fppzhdgprxxGrid", HXZGFP00272FppzhdgprxxGridDomain.class);
                    mapClass.put("fppzhdgprxxGridlb", HXZGFP00272FppzhdgprxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP00272ResponseDomain ret = (HXZGFP00272ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && ret.getFppzhdgprxxGrid() != null && !ret.getFppzhdgprxxGrid().getFppzhdgprxxGridlb().isEmpty()) {
                        HxzgFpPzhdgprxxDomain dom = null;
                        for (HXZGFP00272FppzhdgprxxGridlbDomain temp : ret.getFppzhdgprxxGrid().getFppzhdgprxxGridlb()) {
                            dom = new HxzgFpPzhdgprxxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            dom.setYxqq(this.substringDate(dom.getYxqq()));
                            dom.setYxqz(this.substringDate(dom.getYxqz()));
                            response.getDataList().add(dom);
                        }
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpCxfpfsxxlb(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpCxfpfsxxlbResponseDomain response;
        block8: {
            HxzgFpCxfpfsxxlbRequestDomain request = (HxzgFpCxfpfsxxlbRequestDomain)appDomain;
            response = new HxzgFpCxfpfsxxlbResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP00276Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_00276_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<sssqq>").append(this.getNullStr(request.getSssqq())).append("</sssqq>").append("<sssqz>").append(this.getNullStr(request.getSssqz())).append("</sssqz>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.CXFPFSXXLB");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP00276ResponseDomain.class);
                    mapClass.put("fplgqcmxGrid", HXZGFP00276FplgqcmxGridDomain.class);
                    mapClass.put("fplgqcmxGridlb", HXZGFP00276FplgqcmxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP00276ResponseDomain ret = (HXZGFP00276ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && ret.getFplgqcmxGrid() != null) {
                        if (ret.getFplgqcmxGrid().getFplgqcmxGridlbb().isEmpty()) {
                            return response;
                        }
                        HxzgFplgqcmxDomain dom = null;
                        HashMap<String, HxzgFplgqcmxDomain> lgMap = new HashMap<String, HxzgFplgqcmxDomain>();
                        String key = "";
                        for (HXZGFP00276FplgqcmxGridlbDomain temp : ret.getFplgqcmxGrid().getFplgqcmxGridlbb()) {
                            key = String.valueOf(temp.getFpzlDm()) + temp.getFpDm() + temp.getFpsl() + temp.getFpqshm() + temp.getFpzzhm();
                            if (lgMap.containsKey(key)) continue;
                            dom = new HxzgFplgqcmxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            lgMap.put(key, dom);
                        }
                        response.getDataList().addAll(lgMap.values());
                    }
                    break block8;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    public TaxCommonReturnDomain HxzgFp10000(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsFqyhkkRequestDomain request = (HxzgZsFqyhkkRequestDomain)appDomain;
        HxzgZsFqyhkkResponseDomain response = new HxzgZsFqyhkkResponseDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10000Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10000_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>10113303000047232930</djxh>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.CXWJKDKSQLB");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            String resStr = domain.getBody();
            HashMap<String, Class> mapClass = new HashMap<String, Class>();
            mapClass.put("taxML", HXZGFP10000ResponseDomain.class);
            mapClass.put("fpdkSqVOGrid", HXZGFP10000FpdkSqVOGridDomain.class);
            mapClass.put("fPdkSqVOGridlb", HXZGFP10000FPdkSqVOGridlbDomain.class);
            XmlHelper help = new XmlHelper("taxML", mapClass);
            HXZGFP10000ResponseDomain hXZGFP10000ResponseDomain = (HXZGFP10000ResponseDomain)help.xmlStrParser(resStr);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpDkfpZf(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpDkfpkjxxRequestDomain request = (HxzgFpDkfpkjxxRequestDomain)appDomain;
        TaxCommonReturnDomain response = new TaxCommonReturnDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDksquuid())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u4ee3\u5f00\u7533\u8bf7uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10002Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10002_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <fpkjxxVO>").append("    <zfsqrq>").append(this.getNullStr(request.getZfsqrq())).append("</zfsqrq>").append("    <dksquuid>").append(request.getDksquuid()).append("</dksquuid>").append("    <zfsqr>").append(this.getNullDouble(request.getZfsqr())).append("</zfsqr>").append("    <zfyy>").append(this.getNullStr(request.getZfyy())).append("</zfyy>").append("  </fpkjxxVO>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.ZFDKFP");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            response.setMess("\u4f5c\u5e9f\u6210\u529f\uff01");
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpDkfpsqZf(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpDkfpkjxxRequestDomain request = (HxzgFpDkfpkjxxRequestDomain)appDomain;
        TaxCommonReturnDomain response = new TaxCommonReturnDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDksquuid())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u4ee3\u5f00\u7533\u8bf7uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10011Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10011_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<dksquuid>").append(request.getDksquuid()).append("</dksquuid>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.ZFDKSQ");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            response.setMess("\u4f5c\u5e9f\u6210\u529f\uff01");
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpKjdkfp(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpDkfpkjxxRequestDomain request = (HxzgFpDkfpkjxxRequestDomain)appDomain;
        TaxCommonReturnDomain response = new TaxCommonReturnDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh()) || HstToolsUtil.isNullOrEmpty(request.getDksquuid()) || HstToolsUtil.isNullOrEmpty(request.getDkfplbDm())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u3001\u4ee3\u5f00\u7533\u8bf7uuid\u3001\u4ee3\u5f00\u53d1\u7968\u7c7b\u522b\u4ee3\u7801\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            if (HstToolsUtil.isNullOrEmpty(request.getFpzlDm()) || HstToolsUtil.isNullOrEmpty(request.getFpDm()) || HstToolsUtil.isNullOrEmpty(request.getFphm()) || HstToolsUtil.isNullOrEmpty(request.getKpje())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u53d1\u7968\u79cd\u7c7b\u4ee3\u7801\u3001\u53d1\u7968\u4ee3\u7801\u3001\u53d1\u7968\u53f7\u7801\u3001\u5f00\u5177\u91d1\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            if ("01".equals(request.getDkfplbDm()) && HstToolsUtil.isNullOrEmpty(request.getTsnsrdjxh())) {
                response.setCode("01");
                response.setMess("\u589e\u503c\u7a0e\u4e13\u7528\u53d1\u7968\u5f00\u5177\u65f6\u4f20\u5165\u7279\u6b8a\u7eb3\u7a0e\u4eba\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10013Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10013_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<fpdkKjfpxxVO>").append("<fphm>").append(request.getFphm()).append("</fphm>").append("<fpzlDm>").append(request.getFpzlDm()).append("</fpzlDm>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<fpkfDm>").append(this.getNullStr(request.getFpkfDm())).append("</fpkfDm>").append("<kpje>").append(request.getKpje()).append("</kpje>").append("<fpDm>").append(request.getFpDm()).append("</fpDm>").append("<dksquuid>").append(request.getDksquuid()).append("</dksquuid>").append("<tsnsrdjxh>").append(this.getNullStr(request.getTsnsrdjxh())).append("</tsnsrdjxh>").append("<bz>").append(this.getNullStr(request.getBz())).append("</bz>").append("</fpdkKjfpxxVO>").append("<dkfplbDm>").append(request.getDkfplbDm()).append("</dkfplbDm>").append("<nsrjcVOGrid>").append("<nsrjcVOGridlb>").append("<fpDm>").append(request.getFpDm()).append("</fpDm>").append("<fpzlDm>").append(request.getFpzlDm()).append("</fpzlDm>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<fpzzhm>").append(request.getFphm()).append("</fpzzhm>").append("<fpqshm>").append(request.getFphm()).append("</fpqshm>").append("<nsrjcuuid>").append(this.getNullStr(request.getNsrjcuuid())).append("</nsrjcuuid>").append("</nsrjcVOGridlb>").append("</nsrjcVOGrid>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.KJDKFP");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            response.setMess("\u53d1\u7968\u5f00\u5177\u6210\u529f\uff01");
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    public TaxCommonReturnDomain HxzgFp10021(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpDkfpkjxxRequestDomain request = (HxzgFpDkfpkjxxRequestDomain)appDomain;
        TaxCommonReturnDomain response = new TaxCommonReturnDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10021Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10021_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.CSHFPDKSQZZS");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            String resStr = domain.getBody();
            HashMap<String, Class> mapClass = new HashMap<String, Class>();
            mapClass.put("taxML", HXZGFP10021ResponseDomain.class);
            mapClass.put("zzszyfpdksbdVO", HXZGFP10021ZzszyfpdksbdVODomain.class);
            mapClass.put("fpdkSqVO", HXZGFP10021FpdkSqVODomain.class);
            mapClass.put("fpdkZzsfpVO", HXZGFP10021FpdkZzsfpVODomain.class);
            mapClass.put("fpdkZzsfpHlmxGrid", HXZGFP10021FpdkZzsfpHlmxGridDomain.class);
            mapClass.put("fpdkZzsfpHlmxGridlb", HXZGFP10021FpdkZzsfpHlmxGridlbDomain.class);
            XmlHelper help = new XmlHelper("taxML", mapClass);
            HXZGFP10021ResponseDomain hXZGFP10021ResponseDomain = (HXZGFP10021ResponseDomain)help.xmlStrParser(resStr);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpDksqtyjdSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpDksqtyjdSaveResponseDomain response;
        block6: {
            HxzgFpDksqtyjdSaveRequestDomain request = (HxzgFpDksqtyjdSaveRequestDomain)appDomain;
            response = new HxzgFpDksqtyjdSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10025Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10025_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <tyjdFpdksbdVO>").append("      <fpdkSqVO>").append("          <zgswskfjDm>13303279100</zgswskfjDm>").append("          <zrrbz>N</zrrbz>").append("          <jdxzDm>330327101</jdxzDm>").append("          <lcslid>50BAC138AB87EC7033FEE76FEB24A264</lcslid>").append("          <hyDm>7240</hyDm>").append("          <djxh>10113303000047232930</djxh>").append("          <dksqje>100.0</dksqje>").append("          <ybsfe>3.0</ybsfe>").append("          <dkfplbDm>02</dkfplbDm>").append("          <sqrxm>\u6d4b\u8bd5\u7533\u8bf7</sqrxm>").append("          <xzqhszDm>330327</xzqhszDm>").append("          <kpje>100.0</kpje>").append("          <kplxDm>15</kplxDm>").append("          <jmslxDm></jmslxDm>").append("          <jmsbz>N</jmsbz>").append("          <jmyy></jmyy>").append("      </fpdkSqVO>").append("      <fpdkSfmxGrid>").append("          <fpdkSfmxGridlb>").append("              <jsfyj>100.0</jsfyj>").append("              <skssqz>2016-05-31</skssqz>").append("              <hyDm>7240</hyDm>").append("              <zszspmDm></zszspmDm>").append("              <gldksquuid></gldksquuid>").append("              <zszszmDm></zszszmDm>").append("              <zszsxmDm></zszsxmDm>").append("              <zszmDm></zszmDm>").append("              <jmspjguuid></jmspjguuid>").append("              <zsxmDm>10103</zsxmDm>").append("              <dksquuid></dksquuid>").append("              <sfmxuuid></sfmxuuid>").append("              <ybsfe>3.0</ybsfe>").append("              <ynsfe>3.0</ynsfe>").append("              <yxkcje>0.0</yxkcje>").append("              <srze>100.0</srze>").append("              <zspmDm>101030101</zspmDm>").append("              <sfl>0.03</sfl>").append("              <skssqq>2016-05-01</skssqq>").append("              <nsqnyjse></nsqnyjse>").append("          </fpdkSfmxGridlb>").append("      </fpdkSfmxGrid>").append("      <fpdkYsyskmxGrid/>").append("      <fpdkTyjdfpVO>").append("          <skfnsrsbh>3303271986041102783B</skfnsrsbh>").append("          <fkfsfzjhm></fkfsfzjhm>").append("          <dz>\u82cd\u5357\u53bf\u9f99\u6e2f\u9547\u9547\u524d\u8def127\u53f7\u4e00\u5c42</dz>").append("          <lxdh>13566133937</lxdh>").append("          <fkfnsrsbh>91330106MA27WQ870C</fkfnsrsbh>").append("          <fkfmc>\u6d59\u6c5f\u4e5d\u9704\u6c47\u8d38\u6613\u6709\u9650\u516c\u53f8</fkfmc>").append("          <fkfsfzjzlDm></fkfsfzjzlDm>").append("          <fybh></fybh>").append("          <skfsfzjlxDm></skfsfzjlxDm>").append("          <fkfdjxh></fkfdjxh>").append("          <skfmc>testtest</skfmc>").append("          <tdsybh></tdsybh>").append("          <skfsfzjhm></skfsfzjhm>").append("      </fpdkTyjdfpVO>").append("      <fpdkTyjdHlmxGrid>").append("          <fpdkTyjdHlmxGridlb>").append("              <dwslDm></dwslDm>").append("              <dj></dj>").append("              <hlsl></hlsl>").append("              <je>100.0</je>").append("              <hwlwmc>\u8d27\u7269</hwlwmc>").append("              <ggxh></ggxh>").append("              <bz></bz>").append("          </fpdkTyjdHlmxGridlb>").append("      </fpdkTyjdHlmxGrid>").append("  </tyjdFpdksbdVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.BCDKSQTYJD");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP10025ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP10025ResponseDomain ret = (HXZGFP10025ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        response.setMess("\u4fdd\u5b58\u6210\u529f\uff01");
                        response.setDksquuid(ret.getDksquuid());
                    }
                    break block6;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpDksqzzsSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpDksqzzsSaveResponseDomain response;
        block20: {
            HxzgFpDksqzzsSaveRequestDomain request = (HxzgFpDksqzzsSaveRequestDomain)appDomain;
            response = new HxzgFpDksqzzsSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getZrrbz()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getDjxh()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getLcslid()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getHyDm()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getDksqje()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getYbsfe())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u81ea\u7136\u4eba\u6807\u5fd7\u3001\u767b\u8bb0\u5e8f\u53f7\u3001\u6d41\u7a0b\u5b9e\u4f8bid\u3001\u884c\u4e1a\u3001\u4ee3\u5f00\u7533\u8bf7\u91d1\u989d\u3001\u5e94\u8865\u7a0e\u8d39\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getDkfplbDm()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getSqrxm()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getKjbz()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getKpje())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4ee3\u5f00\u53d1\u7968\u7c7b\u522b\u4ee3\u7801\u3001\u7533\u8bf7\u4eba\u3001\u5f00\u5177\u6807\u5fd7\u3001\u5f00\u7968\u91d1\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getXhfdjxh()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getXhflxdh()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getXhfdz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u9500\u8d27\u65b9\u767b\u8bb0\u5e8f\u53f7\u3001\u9500\u8d27\u65b9\u8054\u7cfb\u7535\u8bdd\u3001\u9500\u8d27\u65b9\u5730\u5740\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getJshj()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getGhflxdh()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getGhfdz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4ef7\u7a0e\u5408\u8ba1\u3001\u8d2d\u8d27\u65b9\u8054\u7cfb\u7535\u8bdd\u3001\u8d2d\u8d27\u65b9\u5730\u5740\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getGhfnsrsbh()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getGhfnsrmc()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getGhfkhyhDm()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getGhfyhzh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u8d2d\u8d27\u65b9\u7eb3\u7a0e\u4eba\u8bc6\u522b\u53f7\u3001\u8d2d\u8d27\u65b9\u7eb3\u7a0e\u4eba\u540d\u79f0\u3001\u8d2d\u8d27\u65b9\u5f00\u6237\u94f6\u884c\u4ee3\u7801\u3001\u8d2d\u8d27\u65b9\u94f6\u884c\u8d26\u53f7\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getZfbz1())) {
                    request.getFpdkSqVO().setZfbz1("N");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getKplxDm())) {
                    request.getFpdkSqVO().setKplxDm("90");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getFplxDm())) {
                    request.getFpdkSqVO().setFplxDm("10");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getJmsbz())) {
                    request.getFpdkSqVO().setJmsbz("N");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkZzsfpVO().getSfdkhzfp())) {
                    request.getFpdkZzsfpVO().setSfdkhzfp("N");
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10026Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10026_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<fpzzszyfpdksbdVO>").append("<fpdkSqVO>").append("<zfbz1>").append(request.getFpdkSqVO().getZfbz1()).append("</zfbz1>").append("<zrrbz>").append(request.getFpdkSqVO().getZrrbz()).append("</zrrbz>").append("<lcslid>").append(request.getFpdkSqVO().getLcslid()).append("</lcslid>").append("<hyDm>").append(request.getFpdkSqVO().getHyDm()).append("</hyDm>").append("<djxh>").append(request.getFpdkSqVO().getDjxh()).append("</djxh>").append("<dksqje>").append(request.getFpdkSqVO().getDksqje()).append("</dksqje>").append("<ybsfe>").append(request.getFpdkSqVO().getYbsfe()).append("</ybsfe>").append("<kplxDm>").append(this.getNullStr(request.getFpdkSqVO().getKplxDm())).append("</kplxDm>").append("<dkfplbDm>").append(request.getFpdkSqVO().getDkfplbDm()).append("</dkfplbDm>").append("<sqrxm>").append(request.getFpdkSqVO().getSqrxm()).append("</sqrxm>").append("<kjbz>").append(request.getFpdkSqVO().getKjbz()).append("</kjbz>").append("<kpje>").append(request.getFpdkSqVO().getKpje()).append("</kpje>").append("<jmslxDm>").append(this.getNullStr(request.getFpdkSqVO().getJmslxDm())).append("</jmslxDm>").append("<jmsbz>").append(this.getNullStr(request.getFpdkSqVO().getJmsbz())).append("</jmsbz>").append("<fplxDm>").append(this.getNullStr(request.getFpdkSqVO().getFplxDm())).append("</fplxDm>").append("<jdxzDm>").append(this.getNullStr(request.getFpdkSqVO().getJdxzDm())).append("</jdxzDm>").append("<xzqhszDm>").append(this.getNullStr(request.getFpdkSqVO().getXzqhszDm())).append("</xzqhszDm>").append("<fybh>").append(this.getNullStr(request.getFpdkSqVO().getFybh())).append("</fybh>").append("</fpdkSqVO>").append("<fpdkSfmxGrid>");
                for (HXZGFpdkSfmxGridlbDomain hXZGFpdkSfmxGridlbDomain : request.getFpdkSfmxGridlb()) {
                    if (HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getJsfyj()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getSkssqq()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getSkssqz()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getHyDm()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getZsxmDm()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getZspmDm())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u8ba1\u7a0e\u8d39\u4f9d\u636e\u3001\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u3001\u7a0e\u6b3e\u6240\u5c5e\u671f\u6b62\u3001\u884c\u4e1a\u3001\u5f81\u6536\u9879\u76ee\u3001\u5f81\u6536\u54c1\u76ee\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    if (HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getYbsfe()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getYnsfe()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getSrze()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getSfl())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u5e94\u8865\u7a0e\u8d39\u989d\u3001\u5e94\u7eb3\u7a0e\u8d39\u989d\u3001\u6536\u5165\u603b\u989d\u3001\u7a0e\u8d39\u7387\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("<fpdkSfmxGridlb>").append("<jsfyj>").append(hXZGFpdkSfmxGridlbDomain.getJsfyj()).append("</jsfyj>").append("<skssqz>").append(hXZGFpdkSfmxGridlbDomain.getSkssqz()).append("</skssqz>").append("<hyDm>").append(hXZGFpdkSfmxGridlbDomain.getHyDm()).append("</hyDm>").append("<zszspmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZszspmDm())).append("</zszspmDm>").append("<gldksquuid>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getGldksquuid())).append("</gldksquuid>").append("<zszszmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZszszmDm())).append("</zszszmDm>").append("<zszsxmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZszsxmDm())).append("</zszsxmDm>").append("<jmsfe>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getJmsfe())).append("</jmsfe>").append("<yjsfe>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getYjsfe())).append("</yjsfe>").append("<zszmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZszmDm())).append("</zszmDm>").append("<jmspjguuid>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getJmspjguuid())).append("</jmspjguuid>").append("<zsxmDm>").append(hXZGFpdkSfmxGridlbDomain.getZsxmDm()).append("</zsxmDm>").append("<dksquuid></dksquuid>").append("<sfmxuuid></sfmxuuid>").append("<sskcs>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getSskcs())).append("</sskcs>").append("<ybsfe>").append(hXZGFpdkSfmxGridlbDomain.getYbsfe()).append("</ybsfe>").append("<ynsfe>").append(hXZGFpdkSfmxGridlbDomain.getYnsfe()).append("</ynsfe>").append("<yxkcje>").append(this.getNullDouble(hXZGFpdkSfmxGridlbDomain.getYxkcje())).append("</yxkcje>").append("<srze>").append(hXZGFpdkSfmxGridlbDomain.getSrze()).append("</srze>").append("<zspmDm>").append(hXZGFpdkSfmxGridlbDomain.getZspmDm()).append("</zspmDm>").append("<sfl>").append(hXZGFpdkSfmxGridlbDomain.getSfl()).append("</sfl>").append("<skssqq>").append(hXZGFpdkSfmxGridlbDomain.getSkssqq()).append("</skssqq>").append("<jyxmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getJyxmDm())).append("</jyxmDm>").append("<nsqnyjse>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getNsqnyjse())).append("</nsqnyjse>").append("<tddjDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getTddjDm())).append("</tddjDm>").append("<zjsrsfft>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZjsrsfft())).append("</zjsrsfft>").append("<qxq>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getQxq())).append("</qxq>").append("<qxz>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getQxz())).append("</qxz>").append("<bz>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getBz())).append("</bz>").append("<sfzczf>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getSfzczf())).append("</sfzczf>").append("<jmje>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getJmje())).append("</jmje>").append("</fpdkSfmxGridlb>");
                }
                xml.append("</fpdkSfmxGrid>").append("<fpdkYsyskmxGrid/>").append("<fpdkZzsfpVO>").append("<jshj>").append(request.getFpdkZzsfpVO().getJshj()).append("</jshj>").append("<ghfdjxh>").append(this.getNullStr(request.getFpdkZzsfpVO().getGhfdjxh())).append("</ghfdjxh>").append("<ghfnsrsbh>").append(request.getFpdkZzsfpVO().getGhfnsrsbh()).append("</ghfnsrsbh>").append("<ghfnsrmc>").append(request.getFpdkZzsfpVO().getGhfnsrmc()).append("</ghfnsrmc>").append("<ghfyhzh>").append(request.getFpdkZzsfpVO().getGhfyhzh()).append("</ghfyhzh>").append("<ghflxdh>").append(request.getFpdkZzsfpVO().getGhflxdh()).append("</ghflxdh>").append("<ghfdz>").append(request.getFpdkZzsfpVO().getGhfdz()).append("</ghfdz>").append("<ghfkhyhDm>").append(request.getFpdkZzsfpVO().getGhfkhyhDm()).append("</ghfkhyhDm>").append("<ghfyhyywdmc>").append(this.getNullStr(request.getFpdkZzsfpVO().getGhfyhyywdmc())).append("</ghfyhyywdmc>").append("<xhflxdh>").append(request.getFpdkZzsfpVO().getXhflxdh()).append("</xhflxdh>").append("<xhfdjxh>").append(request.getFpdkZzsfpVO().getXhfdjxh()).append("</xhfdjxh>").append("<xhfkhyhDm>").append(this.getNullStr(request.getFpdkZzsfpVO().getXhfkhyhDm())).append("</xhfkhyhDm>").append("<xhfyhzh>").append(this.getNullStr(request.getFpdkZzsfpVO().getXhfyhzh())).append("</xhfyhzh>").append("<xhfyhyywdmc>").append(this.getNullStr(request.getFpdkZzsfpVO().getXhfyhyywdmc())).append("</xhfyhyywdmc>").append("<xhfdz>").append(request.getFpdkZzsfpVO().getXhfdz()).append("</xhfdz>").append("<bz>").append(this.getNullStr(request.getFpdkZzsfpVO().getBz())).append("</bz>").append("<yjse>").append(this.getNullDouble(request.getFpdkZzsfpVO().getYjse())).append("</yjse>").append("<sfdkhzfp>").append(request.getFpdkZzsfpVO().getSfdkhzfp()).append("</sfdkhzfp>").append("<kjhzzzszyfptzdhm>").append(this.getNullStr(request.getFpdkZzsfpVO().getKjhzzzszyfptzdhm())).append("</kjhzzzszyfptzdhm>").append("<lzfpdm>").append(this.getNullStr(request.getFpdkZzsfpVO().getLzfpdm())).append("</lzfpdm>").append("<lzfphm>").append(this.getNullStr(request.getFpdkZzsfpVO().getLzfpdm())).append("</lzfphm>").append("<zspmDm>").append(this.getNullStr(request.getFpdkZzsfpVO().getZspmDm())).append("</zspmDm>").append("</fpdkZzsfpVO>").append("<fpdkZzsfpHlmxGrid>");
                for (HXZGFpdkZzsfpHlmxGridlbDomain hXZGFpdkZzsfpHlmxGridlbDomain : request.getFpdkZzsfpHlmxGridlb()) {
                    if (HstToolsUtil.isNullOrEmpty(hXZGFpdkZzsfpHlmxGridlbDomain.getHwlwmc()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkZzsfpHlmxGridlbDomain.getSe()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkZzsfpHlmxGridlbDomain.getSlzsl()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkZzsfpHlmxGridlbDomain.getJe()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkZzsfpHlmxGridlbDomain.getJsxj())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u8d27\u7269\u52b3\u52a1\u540d\u79f0\u3001\u7a0e\u989d\u3001\u7a0e\u7387\u5f81\u6536\u7387\u3001\u91d1\u989d\u3001\u4ef7\u7a0e\u5c0f\u8ba1\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("<fpdkZzsfpHlmxGridlb>").append("<hwlwmc>").append(hXZGFpdkZzsfpHlmxGridlbDomain.getHwlwmc()).append("</hwlwmc>").append("<ggxh>").append(this.getNullStr(hXZGFpdkZzsfpHlmxGridlbDomain.getGgxh())).append("</ggxh>").append("<dwslDm>").append(this.getNullStr(hXZGFpdkZzsfpHlmxGridlbDomain.getDwslDm())).append("</dwslDm>").append("<hlsl>").append(this.getNullStr(hXZGFpdkZzsfpHlmxGridlbDomain.getHlsl())).append("</hlsl>").append("<se>").append(hXZGFpdkZzsfpHlmxGridlbDomain.getSe()).append("</se>").append("<slzsl>").append(hXZGFpdkZzsfpHlmxGridlbDomain.getSlzsl()).append("</slzsl>").append("<je>").append(hXZGFpdkZzsfpHlmxGridlbDomain.getJe()).append("</je>").append("<dj>").append(this.getNullStr(hXZGFpdkZzsfpHlmxGridlbDomain.getDj())).append("</dj>").append("<jsxj>").append(hXZGFpdkZzsfpHlmxGridlbDomain.getJsxj()).append("</jsxj>").append("<xse>").append(this.getNullStr(hXZGFpdkZzsfpHlmxGridlbDomain.getXse())).append("</xse>").append("<kce>").append(this.getNullStr(hXZGFpdkZzsfpHlmxGridlbDomain.getKce())).append("</kce>").append("</fpdkZzsfpHlmxGridlb>");
                }
                xml.append("</fpdkZzsfpHlmxGrid>").append("<fpdkZzsGhfnsrxxVO>").append("<uuid>").append(this.getNullStr(request.getFpdkZzsfpVO().getUuid())).append("</uuid>").append("<ghfyhzh>").append(request.getFpdkZzsfpVO().getGhfyhzh()).append("</ghfyhzh>").append("<ghfnsrsbh>").append(request.getFpdkZzsfpVO().getGhfnsrsbh()).append("</ghfnsrsbh>").append("<ghflxdh>").append(request.getFpdkZzsfpVO().getGhflxdh()).append("</ghflxdh>").append("<ghfkhyhDm>").append(request.getFpdkZzsfpVO().getGhfkhyhDm()).append("</ghfkhyhDm>").append("<ghfdz>").append(request.getFpdkZzsfpVO().getGhfdz()).append("</ghfdz>").append("<ghfnsrmc>").append(request.getFpdkZzsfpVO().getGhfnsrmc()).append("</ghfnsrmc>").append("<ghfyhyywdmc>").append(this.getNullStr(request.getFpdkZzsfpVO().getGhfyhyywdmc())).append("</ghfyhyywdmc>").append("</fpdkZzsGhfnsrxxVO>").append("</fpzzszyfpdksbdVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.BCDKSQZZS");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP10026ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP10026ResponseDomain ret = (HXZGFP10026ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        response.setMess("\u4fdd\u5b58\u6210\u529f\uff01");
                        response.setDksquuid(ret.getDksquuid());
                    }
                    break block20;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    public TaxCommonReturnDomain HxzgFp10032(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpDkfpkjxxRequestDomain request = (HxzgFpDkfpkjxxRequestDomain)appDomain;
        HxzgZsFqyhkkResponseDomain response = new HxzgZsFqyhkkResponseDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10032Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10032_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<swryDm>").append(request.getSwryDm()).append("</swryDm>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.CSHDKKJTYJD");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            String resStr = domain.getBody();
            HashMap<String, Class> mapClass = new HashMap<String, Class>();
            mapClass.put("taxML", HXZGFP10032ResponseDomain.class);
            mapClass.put("dksqVO", HXZGFpdkSqVODomain.class);
            mapClass.put("sfmxVOGrid", HXZGFpSfmxVOGridDomain.class);
            mapClass.put("sfmxVOGridlb", HXZGFpSfmxVOGridlbDomain.class);
            mapClass.put("tyjdfpVO", HXZGFpDkTyjdfpVODomain.class);
            mapClass.put("tyjdhlmxVOGrid", HXZGFPFpdkTyjdHlmxGridDomain.class);
            mapClass.put("tyjdhlmxVOGridlb", HXZGFPFpdkTyjdHlmxGridlbDomain.class);
            XmlHelper help = new XmlHelper("taxML", mapClass);
            HXZGFP10032ResponseDomain hXZGFP10032ResponseDomain = (HXZGFP10032ResponseDomain)help.xmlStrParser(resStr);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    public TaxCommonReturnDomain HxzgFp10033(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsFqyhkkRequestDomain request = (HxzgZsFqyhkkRequestDomain)appDomain;
        HxzgZsFqyhkkResponseDomain response = new HxzgZsFqyhkkResponseDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10033Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10033_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<dksquuid>10113303000047232930</dksquuid>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.CSHDKKJZZS");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            String resStr = domain.getBody();
            HashMap<String, Class> mapClass = new HashMap<String, Class>();
            mapClass.put("taxML", HXZGFP10033ResponseDomain.class);
            mapClass.put("FPZzszyfpdksbdVO", HXZGFP10033FPZzszyfpdksbdVODomain.class);
            mapClass.put("fpdkSqVO", HXZGFP10021FpdkSqVODomain.class);
            mapClass.put("fpdkSfmxGrid", HXZGFP10033FpdkSfmxGridDomain.class);
            mapClass.put("fpdkSfmxGridlb", HXZGFP10033FpdkSfmxGridlbDomain.class);
            mapClass.put("fpdkZzsfpVO", HXZGFP10021FpdkZzsfpVODomain.class);
            mapClass.put("fpdkZzsfpHlmxGrid", HXZGFP10021FpdkZzsfpHlmxGridDomain.class);
            mapClass.put("fpdkZzsfpHlmxGridlb", HXZGFP10021FpdkZzsfpHlmxGridlbDomain.class);
            XmlHelper help = new XmlHelper("taxML", mapClass);
            HXZGFP10033ResponseDomain hXZGFP10033ResponseDomain = (HXZGFP10033ResponseDomain)help.xmlStrParser(resStr);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    public TaxCommonReturnDomain HxzgFp15003(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsFqyhkkRequestDomain request = (HxzgZsFqyhkkRequestDomain)appDomain;
        HxzgZsFqyhkkResponseDomain response = new HxzgZsFqyhkkResponseDomain();
        HashMap<String, String> map = null;
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            StringBuffer xml = new StringBuffer();
            xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP10000Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_10000_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>10113303000047232930</djxh>").append("</taxML>");
            map = new HashMap<String, String>();
            map.put("tran_id", "SWZJ.HXZG.FP.CXWJKDKSQLB");
            map.put("tran_seq", EjbJ3Util.getUUID());
            Date date = new Date();
            map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
            map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
            map.put("sjry", this.getSjry(request));
            map.put("sjjg", this.getSjjg(request));
            map.put("ywbw", xml.toString());
            Gt3ServiceDomain domain = this.doGt3Ejb(map);
            if (domain == null) {
                response.setCode("01");
                response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                return response;
            }
            if (!"0".equals(domain.getHead().getRtn_code()) || !"000".equals(domain.getHead().getRtn_msg().getCode())) {
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            String resStr = domain.getBody();
            HashMap<String, Class> mapClass = new HashMap<String, Class>();
            mapClass.put("taxML", HXZGFP10000ResponseDomain.class);
            mapClass.put("fpdkSqVOGrid", HXZGFP10000FpdkSqVOGridDomain.class);
            mapClass.put("fPdkSqVOGridlb", HXZGFP10000FPdkSqVOGridlbDomain.class);
            XmlHelper help = new XmlHelper("taxML", mapClass);
            HXZGFP10000ResponseDomain hXZGFP10000ResponseDomain = (HXZGFP10000ResponseDomain)help.xmlStrParser(resStr);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpDksqzzsptfpSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpDksqzzsptfpSaveResponseDomain response;
        block18: {
            HxzgFpDksqzzsptfpSaveRequestDomain request = (HxzgFpDksqzzsptfpSaveRequestDomain)appDomain;
            response = new HxzgFpDksqzzsptfpSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getZrrbz()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getDjxh()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getLcslid()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getHyDm()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getDksqje()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getYbsfe())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u81ea\u7136\u4eba\u6807\u5fd7\u3001\u767b\u8bb0\u5e8f\u53f7\u3001\u6d41\u7a0b\u5b9e\u4f8bid\u3001\u884c\u4e1a\u3001\u4ee3\u5f00\u7533\u8bf7\u91d1\u989d\u3001\u5e94\u8865\u7a0e\u8d39\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getDkfplbDm()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getSqrxm()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getKjbz()) || HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getKpje())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4ee3\u5f00\u53d1\u7968\u7c7b\u522b\u4ee3\u7801\u3001\u7533\u8bf7\u4eba\u3001\u5f00\u5177\u6807\u5fd7\u3001\u5f00\u7968\u91d1\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkZzsptfpVO().getGhfnsrmc()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsptfpVO().getXhfnsrsbh()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsptfpVO().getXhfsfzjzlDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4ed8\u6b3e\u65b9\u7eb3\u7a0e\u4eba\u540d\u79f0\u3001\u6536\u6b3e\u65b9\u7eb3\u7a0e\u4eba\u8bc6\u522b\u53f7\u3001\u6536\u6b3e\u65b9\u8eab\u4efd\u8bc1\u4ef6\u79cd\u7c7b\u4ee3\u7801\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkZzsptfpVO().getXhfsfzjhm()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsptfpVO().getXhflxdh()) || HstToolsUtil.isNullOrEmpty(request.getFpdkZzsptfpVO().getXhfdz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6536\u6b3e\u65b9\u8eab\u4efd\u8bc1\u4ef6\u53f7\u7801\u3001\u6536\u6b3e\u65b9\u8054\u7cfb\u7535\u8bdd\u3001\u6536\u6b3e\u65b9\u5730\u5740\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getZfbz1())) {
                    request.getFpdkSqVO().setZfbz1("N");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getKplxDm())) {
                    request.getFpdkSqVO().setKplxDm("90");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getFplxDm())) {
                    request.getFpdkSqVO().setFplxDm("10");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getFpdkSqVO().getJmsbz())) {
                    request.getFpdkSqVO().setJmsbz("N");
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP15155Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_15155_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<zzsptfpFpdksbdVO>").append("<fpdkSqVO>").append("<zfbz1>").append(request.getFpdkSqVO().getZfbz1()).append("</zfbz1>").append("<zrrbz>").append(request.getFpdkSqVO().getZrrbz()).append("</zrrbz>").append("<lcslid>").append(request.getFpdkSqVO().getLcslid()).append("</lcslid>").append("<hyDm>").append(request.getFpdkSqVO().getHyDm()).append("</hyDm>").append("<djxh>").append(request.getFpdkSqVO().getDjxh()).append("</djxh>").append("<dksqje>").append(request.getFpdkSqVO().getDksqje()).append("</dksqje>").append("<ybsfe>").append(request.getFpdkSqVO().getYbsfe()).append("</ybsfe>").append("<kplxDm>").append(this.getNullStr(request.getFpdkSqVO().getKplxDm())).append("</kplxDm>").append("<dkfplbDm>").append(request.getFpdkSqVO().getDkfplbDm()).append("</dkfplbDm>").append("<sqrxm>").append(request.getFpdkSqVO().getSqrxm()).append("</sqrxm>").append("<kjbz>").append(request.getFpdkSqVO().getKjbz()).append("</kjbz>").append("<kpje>").append(request.getFpdkSqVO().getKpje()).append("</kpje>").append("<jmslxDm>").append(this.getNullStr(request.getFpdkSqVO().getJmslxDm())).append("</jmslxDm>").append("<jmsbz>").append(this.getNullStr(request.getFpdkSqVO().getJmsbz())).append("</jmsbz>").append("<jmyy>").append(this.getNullStr(request.getFpdkSqVO().getJmyy())).append("</jmyy>").append("<fplxDm>").append(this.getNullStr(request.getFpdkSqVO().getFplxDm())).append("</fplxDm>").append("<jdxzDm>").append(this.getNullStr(request.getFpdkSqVO().getJdxzDm())).append("</jdxzDm>").append("<xzqhszDm>").append(this.getNullStr(request.getFpdkSqVO().getXzqhszDm())).append("</xzqhszDm>").append("<zjsrsfft>").append(this.getNullStr(request.getFpdkSqVO().getZjsrsfft())).append("</zjsrsfft>").append("<qxq>").append(this.getNullStr(request.getFpdkSqVO().getQxq())).append("</qxq>").append("<qxz>").append(this.getNullStr(request.getFpdkSqVO().getQxz())).append("</qxz>").append("<bz>").append(this.getNullStr(request.getFpdkSqVO().getBz())).append("</bz>").append("<sfzczf>").append(this.getNullStr(request.getFpdkSqVO().getSfzczf())).append("</sfzczf>").append("<fybh>").append(this.getNullStr(request.getFpdkSqVO().getFybh())).append("</fybh>").append("</fpdkSqVO>").append("<fpdkSfmxGrid>");
                for (HXZGFpdkSfmxGridlbDomain hXZGFpdkSfmxGridlbDomain : request.getFpdkSfmxGridlb()) {
                    if (HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getJsfyj()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getSkssqq()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getSkssqz()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getHyDm()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getZsxmDm()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getZspmDm())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u8ba1\u7a0e\u8d39\u4f9d\u636e\u3001\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u3001\u7a0e\u6b3e\u6240\u5c5e\u671f\u6b62\u3001\u884c\u4e1a\u3001\u5f81\u6536\u9879\u76ee\u3001\u5f81\u6536\u54c1\u76ee\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    if (HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getYbsfe()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getYnsfe()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getSrze()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkSfmxGridlbDomain.getSfl())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u5e94\u8865\u7a0e\u8d39\u989d\u3001\u5e94\u7eb3\u7a0e\u8d39\u989d\u3001\u6536\u5165\u603b\u989d\u3001\u7a0e\u8d39\u7387\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("<fpdkSfmxGridlb>").append("<jsfyj>").append(hXZGFpdkSfmxGridlbDomain.getJsfyj()).append("</jsfyj>").append("<skssqz>").append(hXZGFpdkSfmxGridlbDomain.getSkssqz()).append("</skssqz>").append("<hyDm>").append(hXZGFpdkSfmxGridlbDomain.getHyDm()).append("</hyDm>").append("<zszspmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZszspmDm())).append("</zszspmDm>").append("<gldksquuid>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getGldksquuid())).append("</gldksquuid>").append("<zszszmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZszszmDm())).append("</zszszmDm>").append("<zszsxmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZszsxmDm())).append("</zszsxmDm>").append("<jmsfe>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getJmsfe())).append("</jmsfe>").append("<yjsfe>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getYjsfe())).append("</yjsfe>").append("<zszmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZszmDm())).append("</zszmDm>").append("<jmspjguuid>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getJmspjguuid())).append("</jmspjguuid>").append("<zsxmDm>").append(hXZGFpdkSfmxGridlbDomain.getZsxmDm()).append("</zsxmDm>").append("<dksquuid></dksquuid>").append("<sfmxuuid></sfmxuuid>").append("<sskcs>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getSskcs())).append("</sskcs>").append("<ybsfe>").append(hXZGFpdkSfmxGridlbDomain.getYbsfe()).append("</ybsfe>").append("<ynsfe>").append(hXZGFpdkSfmxGridlbDomain.getYnsfe()).append("</ynsfe>").append("<yxkcje>").append(this.getNullDouble(hXZGFpdkSfmxGridlbDomain.getYxkcje())).append("</yxkcje>").append("<srze>").append(hXZGFpdkSfmxGridlbDomain.getSrze()).append("</srze>").append("<zspmDm>").append(hXZGFpdkSfmxGridlbDomain.getZspmDm()).append("</zspmDm>").append("<sfl>").append(hXZGFpdkSfmxGridlbDomain.getSfl()).append("</sfl>").append("<skssqq>").append(hXZGFpdkSfmxGridlbDomain.getSkssqq()).append("</skssqq>").append("<jyxmDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getJyxmDm())).append("</jyxmDm>").append("<nsqnyjse>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getNsqnyjse())).append("</nsqnyjse>").append("<tddjDm>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getTddjDm())).append("</tddjDm>").append("<zjsrsfft>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getZjsrsfft())).append("</zjsrsfft>").append("<qxq>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getQxq())).append("</qxq>").append("<qxz>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getQxz())).append("</qxz>").append("<bz>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getBz())).append("</bz>").append("<sfzczf>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getSfzczf())).append("</sfzczf>").append("<jmje>").append(this.getNullStr(hXZGFpdkSfmxGridlbDomain.getJmje())).append("</jmje>").append("</fpdkSfmxGridlb>");
                }
                xml.append("</fpdkSfmxGrid>").append("<fpdkYsyskmxGrid/>").append("<fpdkZzsptfpVO>").append("<ghfdjxh>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhfdjxh())).append("</ghfdjxh>").append("<ghfnsrsbh>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhfnsrsbh())).append("</ghfnsrsbh>").append("<ghfnsrmc>").append(request.getFpdkZzsptfpVO().getGhfnsrmc()).append("</ghfnsrmc>").append("<ghfsfzjzlDm>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhfsfzjzlDm())).append("</ghfsfzjzlDm>").append("<ghfsfzjhm>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhfsfzjhm())).append("</ghfsfzjhm>").append("<ghfyhzh>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhfyhzh())).append("</ghfyhzh>").append("<ghflxdh>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhflxdh())).append("</ghflxdh>").append("<ghfdz>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhfdz())).append("</ghfdz>").append("<ghfkhyhDm>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhfkhyhDm())).append("</ghfkhyhDm>").append("<ghfyhyywdmc>").append(this.getNullStr(request.getFpdkZzsptfpVO().getGhfyhyywdmc())).append("</ghfyhyywdmc>").append("<xhfdjxh>").append(request.getFpdkZzsptfpVO().getXhfdjxh()).append("</xhfdjxh>").append("<xhfnsrsbh>").append(request.getFpdkZzsptfpVO().getXhfnsrsbh()).append("</xhfnsrsbh>").append("<xhfnsrmc>").append(this.getNullStr(request.getFpdkZzsptfpVO().getXhfnsrmc())).append("</xhfnsrmc>").append("<xhfsfzjzlDm>").append(request.getFpdkZzsptfpVO().getXhfsfzjzlDm()).append("</xhfsfzjzlDm>").append("<xhfsfzjhm>").append(request.getFpdkZzsptfpVO().getXhfsfzjhm()).append("</xhfsfzjhm>").append("<xhflxdh>").append(request.getFpdkZzsptfpVO().getXhflxdh()).append("</xhflxdh>").append("<xhfdz>").append(request.getFpdkZzsptfpVO().getXhfdz()).append("</xhfdz>").append("<xhfkhyhDm>").append(this.getNullStr(request.getFpdkZzsptfpVO().getXhfkhyhDm())).append("</xhfkhyhDm>").append("<xhfyhzh>").append(this.getNullStr(request.getFpdkZzsptfpVO().getXhfyhzh())).append("</xhfyhzh>").append("<xhfyhyywdmc>").append(this.getNullStr(request.getFpdkZzsptfpVO().getXhfyhyywdmc())).append("</xhfyhyywdmc>").append("<bz>").append(this.getNullStr(request.getFpdkZzsptfpVO().getBz())).append("</bz>").append("<sflrhyxx>").append(this.getNullStr(request.getFpdkZzsptfpVO().getSflrhyxx())).append("</sflrhyxx>").append("</fpdkZzsptfpVO>").append("<fpdkZzsptfpHlmxGrid>");
                for (HXZGFpdkZzsptfpHlmxGridlbDomain hXZGFpdkZzsptfpHlmxGridlbDomain : request.getFpdkZzsptfpHlmxGridlb()) {
                    if (HstToolsUtil.isNullOrEmpty(hXZGFpdkZzsptfpHlmxGridlbDomain.getHwlwmc()) || HstToolsUtil.isNullOrEmpty(hXZGFpdkZzsptfpHlmxGridlbDomain.getJe())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u8d27\u7269\u52b3\u52a1\u540d\u79f0\u3001\u91d1\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("<fpdkZzsptfpHlmxGridlb>").append("<hwlwmc>").append(hXZGFpdkZzsptfpHlmxGridlbDomain.getHwlwmc()).append("</hwlwmc>").append("<ggxh>").append(this.getNullStr(hXZGFpdkZzsptfpHlmxGridlbDomain.getGgxh())).append("</ggxh>").append("<dwslDm>").append(this.getNullStr(hXZGFpdkZzsptfpHlmxGridlbDomain.getDwslDm())).append("</dwslDm>").append("<hlsl>").append(this.getNullStr(hXZGFpdkZzsptfpHlmxGridlbDomain.getHlsl())).append("</hlsl>").append("<hldj>").append(this.getNullStr(hXZGFpdkZzsptfpHlmxGridlbDomain.getHldj())).append("</hldj>").append("<se>").append(this.getNullStr(hXZGFpdkZzsptfpHlmxGridlbDomain.getSe())).append("</se>").append("<slzsl>").append(this.getNullStr(hXZGFpdkZzsptfpHlmxGridlbDomain.getSlzsl())).append("</slzsl>").append("<je>").append(hXZGFpdkZzsptfpHlmxGridlbDomain.getJe()).append("</je>").append("<xse>").append(this.getNullStr(hXZGFpdkZzsptfpHlmxGridlbDomain.getXse())).append("</xse>").append("<kce>").append(this.getNullStr(hXZGFpdkZzsptfpHlmxGridlbDomain.getKce())).append("</kce>").append("</fpdkZzsptfpHlmxGridlb>");
                }
                xml.append("</fpdkZzsptfpHlmxGrid>").append("</zzsptfpFpdksbdVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.BCDKSQZZSPTFP");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP15155ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP15155ResponseDomain ret = (HXZGFP15155ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        response.setMess("\u4fdd\u5b58\u6210\u529f\uff01");
                        response.setDksquuid(ret.getDksquuid());
                    }
                    break block18;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgFpCxnsrfpjc(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpCxnsrfpjcResponseDomain response;
        block10: {
            HxzgFpCxnsrfpjcRequestDomain request = (HxzgFpCxnsrfpjcRequestDomain)appDomain;
            response = new HxzgFpCxnsrfpjcResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getTdzsbmbz())) {
                    request.setTdzsbmbz("N");
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGFP00279Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_FP_00279_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>");
                if ("N".equals(request.getTdzsbmbz())) {
                    xml.append("<zppzDm></zppzDm>").append("<tdzsbmbz>N</tdzsbmbz>");
                } else {
                    xml.append("<zppzDm></zppzDm>").append("<tdzsbmbz>Y</tdzsbmbz>");
                }
                xml.append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.FP.CXNSRFPJC");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGFP00279ResponseDomain.class);
                    mapClass.put("fpNsrfpjcVOList", HXZGFP00279FpNsrfpjcVOListDomain.class);
                    mapClass.put("fpNsrfpjcVOListlb", HXZGFP00279FpNsrfpjcVOListlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGFP00279ResponseDomain ret = (HXZGFP00279ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        HxzgFpCxnsrfpjcDomain dom = null;
                        for (HXZGFP00279FpNsrfpjcVOListlbDomain temp : ret.getFpNsrfpjcVOList().getFpNsrfpjcVOListlb()) {
                            dom = new HxzgFpCxnsrfpjcDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            response.getDataList().add(dom);
                        }
                    }
                    break block10;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgFpCxTdzsbmDjxh(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpCxTdzsbmDjxhRequestDomain request = (HxzgFpCxTdzsbmDjxhRequestDomain)appDomain;
        HxzgFpCxTdzsbmDjxhResponseDomain response = new HxzgFpCxTdzsbmDjxhResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getSwryDm())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u7a0e\u52a1\u4eba\u5458\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            List<HxzgFpCxTdzsbmDjxhDomain> dataList = this.dao.queyrTdzsbmDjxh(request);
            response.setDataList(dataList);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgSbCxsddwpzkc(BaseAppServiceDomain appDomain) throws Exception {
        HxzgSbCxsddwpzkcResponseDomain response;
        block9: {
            HxzgSbCxsddwpzkcRequestDomain request = (HxzgSbCxsddwpzkcRequestDomain)appDomain;
            response = new HxzgSbCxsddwpzkcResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGSB00744Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_SB_00744_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<sddwdjxh>").append(request.getDjxh()).append("</sddwdjxh>").append("<pzztDm>01</pzztDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.CXSDDWPZKCBYDJXH");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB00744ResponseDomain.class);
                    mapClass.put("pzjcVoList", HXZGSB00744pzjcVoListDomain.class);
                    mapClass.put("pzjcVo", HXZGSB00744PzjcVoDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB00744ResponseDomain ret = (HXZGSB00744ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        Map<String, String> pzzlMap = this.dao.queryPzzlMap();
                        Map<String, String> pzzgMap = this.dao.queryPzzgMap();
                        HxzgSbCxsddwpzkcDomain dom = null;
                        for (HXZGSB00744PzjcVoDomain temp : ret.getPzjcVoList().getPzjcVo()) {
                            String key;
                            dom = new HxzgSbCxsddwpzkcDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            dom.setRkrq(this.substringDate(dom.getRkrq()));
                            if (pzzlMap.containsKey(dom.getPzzlDm())) {
                                dom.setPzzlmc(pzzlMap.get(dom.getPzzlDm()));
                            }
                            if (pzzgMap.containsKey(key = String.valueOf(dom.getPzzlDm()) + dom.getPzzgDm())) {
                                dom.setPzzgmc(pzzgMap.get(key));
                            }
                            response.getDataList().add(dom);
                        }
                        pzzlMap = null;
                        pzzgMap = null;
                    }
                    break block9;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain HxzgPzCxsddwkcxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgPzCxsddwkcxxResponseDomain response;
        block9: {
            HxzgPzCxsddwkcxxRequestDomain request = (HxzgPzCxsddwkcxxRequestDomain)appDomain;
            response = new HxzgPzCxsddwkcxxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"BSPZ10012Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_BS_PZ_10012_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.PZ.HQKCXXBYDJXH");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGPZ10012ResponseDomain.class);
                    mapClass.put("kcxxGrid", HXZGPZ10012KcxxGridDomain.class);
                    mapClass.put("kcxxGridlb", HXZGPZ10012KcxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGPZ10012ResponseDomain ret = (HXZGPZ10012ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        Map<String, String> pzzlMap = this.dao.queryPzzlMap();
                        Map<String, String> pzzgMap = this.dao.queryPzzgMap();
                        HxzgPzCxsddwkcxxDomain dom = null;
                        for (HXZGPZ10012KcxxGridlbDomain temp : ret.getKcxxGrid().getKcxxGridlb()) {
                            String key;
                            dom = new HxzgPzCxsddwkcxxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            if (pzzlMap.containsKey(dom.getPzzlDm())) {
                                dom.setPzzlmc(pzzlMap.get(dom.getPzzlDm()));
                            }
                            if (pzzgMap.containsKey(key = String.valueOf(dom.getPzzlDm()) + dom.getPzzgDm())) {
                                dom.setPzzgmc(pzzgMap.get(key));
                            }
                            response.getDataList().add(dom);
                        }
                        pzzlMap = null;
                        pzzgMap = null;
                    }
                    break block9;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZmWcjyhdssglzmsqbxxSave(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZmWcjyhdssglzmsqbxxSaveResponseDomain response;
        block22: {
            HxzgZmWcjyhdssglzmsqbxxSaveRequestDomain request = (HxzgZmWcjyhdssglzmsqbxxSaveRequestDomain)appDomain;
            response = new HxzgZmWcjyhdssglzmsqbxxSaveResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh()) || HstToolsUtil.isNullOrEmpty(request.getLcslid()) || HstToolsUtil.isNullOrEmpty(request.getZgswskfjDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u3001\u6d41\u7a0b\u5b9e\u4f8bid\u3001\u4e3b\u7ba1\u7a0e\u52a1\u6240\u79d1\u5206\u5c40\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getWcjydxzqhszDm()) || HstToolsUtil.isNullOrEmpty(request.getWcjyd()) || HstToolsUtil.isNullOrEmpty(request.getSlrDm()) || HstToolsUtil.isNullOrEmpty(request.getSlrq())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5916\u51fa\u7ecf\u8425\u5730\u884c\u653f\u533a\u5212\u6570\u5b57\u4ee3\u7801\u3001\u5916\u51fa\u7ecf\u8425\u5730\u3001\u53d7\u7406\u4eba\u4ee3\u7801\u3001\u53d7\u7406\u65e5\u671f\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getWszzrq()) || HstToolsUtil.isNullOrEmpty(request.getZmyxqxq()) || HstToolsUtil.isNullOrEmpty(request.getZmyxqxz()) || HstToolsUtil.isNullOrEmpty(request.getWcjyhtzje())) {
                    response.setCode("01");
                    response.setMess("\u6587\u4e66\u5236\u4f5c\u65e5\u671f\u3001\u4f20\u5165\u8bc1\u660e\u6709\u6548\u671f\u9650\u8d77\u3001\u8bc1\u660e\u6709\u6548\u671f\u9650\u6b62\u3001\u5916\u51fa\u7ecf\u8425\u5408\u540c\u603b\u91d1\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList() == null || request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u52b3\u52a1\u8d27\u7269\u4fe1\u606f\u96c6\u5408\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer().append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZM00004Request\" xmlmc=\"\u4fdd\u5b58\u5916\u51fa\u7ecf\u8425\u6d3b\u52a8\u7a0e\u6536\u7ba1\u7406\u8bc1\u660e\u7533\u8bf7\u8868\u4fe1\u606f\" xmlbh=\"TaxMLBw_HXZG_ZM_00004_Request_V1.0.xsd\" bbh=\"V1.0\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("      <djxh>").append(request.getDjxh()).append("</djxh>").append("      <lcslid>").append(request.getLcslid()).append("</lcslid>").append("      <zgswskfjDm>").append(request.getZgswskfjDm()).append("</zgswskfjDm>").append("      <wjcyzmsqb>").append("          <zmWcjyhdssglzmxxVO>").append("              <wcjyzmuuid>").append(this.getNullStr(request.getWcjyzmuuid())).append("</wcjyzmuuid>").append("              <wcjydxzqhszDm>").append(request.getWcjydxzqhszDm()).append("</wcjydxzqhszDm>").append("              <wcjyd>").append(request.getWcjyd()).append("</wcjyd>").append("              <wcjyhdssglzmbh>").append(this.getNullStr(request.getWcjyhdssglzmbh())).append("</wcjyhdssglzmbh>").append("              <swdjd>").append(this.getNullStr(request.getSwdjd())).append("</swdjd>").append("              <ywcjyhdssglzmbh>").append(this.getNullStr(request.getYwcjyhdssglzmbh())).append("</ywcjyhdssglzmbh>").append("              <jyfsdmjh>").append(this.getNullStr(request.getJyfsdmjh())).append("</jyfsdmjh>").append("              <jdxzDm>").append(this.getNullStr(request.getJdxzDm())).append("</jdxzDm>").append("              <swjgjbrxm>").append(this.getNullStr(request.getJbr())).append("</swjgjbrxm>").append("              <swjgfzrxm>").append(this.getNullStr(request.getFzr())).append("</swjgfzrxm>").append("              <swjgjbrqzrq>").append(this.getNullStr(request.getSwjgjbrqzrq())).append("</swjgjbrqzrq>").append("              <swjgfzrqzrq>").append(this.getNullStr(request.getSwjgfzrqzrq())).append("</swjgfzrqzrq>").append("              <wszzrq>").append(request.getWszzrq()).append("</wszzrq>").append("              <zmyxqxq>").append(request.getZmyxqxq()).append("</zmyxqxq>").append("              <zmyxqxz>").append(request.getZmyxqxz()).append("</zmyxqxz>").append("              <wcjyhtzje>").append(this.getNullDouble(request.getWcjyhtzje())).append("</wcjyhtzje>").append("              <jydswjgDm>").append(this.getNullStr(request.getJydswjgDm())).append("</jydswjgDm>").append("              <sqr>").append(this.getNullStr(request.getSqr())).append("</sqr>").append("              <lxr>").append(this.getNullStr(request.getSqr())).append("</lxr>").append("              <lxdh>").append(this.getNullStr(request.getLxdh())).append("</lxdh>").append("              <wcjyzhyDm>").append(this.getNullStr(request.getWcjyHyDm())).append("</wcjyzhyDm>").append("              <swjglxdh>").append(this.getNullStr(request.getSwjglxdh())).append("</swjglxdh>").append("              <htdfnsrsbh>").append(this.getNullStr(request.getHtdfNsrsbh())).append("</htdfnsrsbh>").append("              <htdfnsrdjxh>").append(this.getNullStr(request.getHtdfDjxh())).append("</htdfnsrdjxh>").append("              <htdfnsrmc>").append(this.getNullStr(request.getHtdfNsrmc())).append("</htdfnsrmc>").append("          </zmWcjyhdssglzmxxVO>");
                for (HxzgZmWcjyzmhwxxGridlbDomain mx : request.getDataList()) {
                    if (HstToolsUtil.isNullOrEmpty(mx.getLwhwbz()) || HstToolsUtil.isNullOrEmpty(mx.getClbz())) {
                        response.setCode("01");
                        response.setMess("\u52b3\u52a1\u3001\u8d27\u7269\u6807\u5fd7\u3001\u5904\u7406\u6807\u5fd7\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    if ("1".equals(mx.getLwhwbz())) {
                        if ("1".equals(mx.getClbz())) {
                            if (HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwmc()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwdd()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwyxqxq()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwyxqxz()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwdhtje())) {
                                response.setCode("01");
                                response.setMess("\u52b3\u52a1\u540d\u79f0\u3001\u52b3\u52a1\u5730\u70b9\u3001\u52b3\u52a1\u6709\u6548\u671f\u9650\u8d77\u3001\u52b3\u52a1\u6709\u6548\u671f\u9650\u6b62\u3001\u52b3\u52a1\u5408\u540c\u91d1\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                                return response;
                            }
                            xml.append("          <insertLwxxGrid>").append("              <WcjyzmlwxxGridlb>").append("                  <lwuuid></lwuuid>").append("                  <wcjyzmuuid></wcjyzmuuid>").append("                  <wcjylwmc>").append(mx.getWcjylwhwmc()).append("</wcjylwmc>").append("                  <wcjylwdd>").append(mx.getWcjylwhwdd()).append("</wcjylwdd>").append("                  <wcjylwyxqxq>").append(mx.getWcjylwhwyxqxq()).append("</wcjylwyxqxq>").append("                  <wcjylwyxqxz>").append(mx.getWcjylwhwyxqxz()).append("</wcjylwyxqxz>").append("                  <wcjylwdhtje>").append(mx.getWcjylwdhtje()).append("</wcjylwdhtje>").append("              </WcjyzmlwxxGridlb>").append("          </insertLwxxGrid>");
                            continue;
                        }
                        if ("2".equals(mx.getClbz())) {
                            if (HstToolsUtil.isNullOrEmpty(mx.getLwhwuuid()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwmc()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwdd()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwyxqxq()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwyxqxz()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwdhtje())) {
                                response.setCode("01");
                                response.setMess("\u52b3\u52a1uuid\u3001\u52b3\u52a1\u540d\u79f0\u3001\u52b3\u52a1\u5730\u70b9\u3001\u52b3\u52a1\u6709\u6548\u671f\u9650\u8d77\u3001\u52b3\u52a1\u6709\u6548\u671f\u9650\u6b62\u3001\u52b3\u52a1\u5408\u540c\u91d1\u989d\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                                return response;
                            }
                            xml.append("          <updateLwxxGrid>").append("            <WcjyzmlwxxGridlb>").append("              \t   <lwuuid>").append(mx.getLwhwuuid()).append("</lwuuid>").append("              \t   <wcjyzmuuid></wcjyzmuuid>").append("              \t   <wcjylwmc>").append(mx.getWcjylwhwmc()).append("</wcjylwmc>").append("                  <wcjylwdd>").append(mx.getWcjylwhwdd()).append("</wcjylwdd>").append("                  <wcjylwyxqxq>").append(mx.getWcjylwhwyxqxq()).append("</wcjylwyxqxq>").append("                  <wcjylwyxqxz>").append(mx.getWcjylwhwyxqxz()).append("</wcjylwyxqxz>").append("                  <wcjylwdhtje>").append(mx.getWcjylwdhtje()).append("</wcjylwdhtje>").append("            </WcjyzmlwxxGridlb>").append("        </updateLwxxGrid>");
                            continue;
                        }
                        if (!"3".equals(mx.getClbz())) continue;
                        if (HstToolsUtil.isNullOrEmpty(mx.getLwhwuuid())) {
                            response.setCode("01");
                            response.setMess("\u52b3\u52a1uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                            return response;
                        }
                        xml.append("        <deleteLwxxGrid>").append("          <WcjyzmlwxxGridlb>").append("            <lwuuid>").append(mx.getLwhwuuid()).append("</lwuuid>").append("            <wcjyzmuuid></wcjyzmuuid>").append("            <wcjylwmc></wcjylwmc>").append("            <wcjylwdd></wcjylwdd>").append("            <wcjylwyxqxq></wcjylwyxqxq>").append("            <wcjylwyxqxz></wcjylwyxqxz>").append("            <wcjylwdhtje></wcjylwdhtje>").append("          </WcjyzmlwxxGridlb>").append("        </deleteLwxxGrid>");
                        continue;
                    }
                    if (!"2".equals(mx.getLwhwbz())) continue;
                    if ("1".equals(mx.getClbz())) {
                        if (HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwmc()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwdd()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwyxqxq()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwyxqxz()) || HstToolsUtil.isNullOrEmpty(mx.getWcjyhwsl()) || HstToolsUtil.isNullOrEmpty(mx.getWcjyhwzz())) {
                            response.setCode("01");
                            response.setMess("\u8d27\u7269\u540d\u79f0\u3001\u8d27\u7269\u5730\u70b9\u3001\u8d27\u7269\u6709\u6548\u671f\u9650\u8d77\u3001\u8d27\u7269\u6709\u6548\u671f\u9650\u6b62\u3001\u8d27\u7269\u6570\u91cf\u3001\u8d27\u7269\u8d27\u7269\u603b\u503c\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                            return response;
                        }
                        xml.append("        <insertHwxxGrid>").append("          <wcjyzmhwxxGridlb>").append("            <hwuuid></hwuuid>").append("            <wcjyzmuuid></wcjyzmuuid>").append("            <wcjyhwmc>").append(mx.getWcjylwhwmc()).append("</wcjyhwmc>").append("            <wcjyhwsl>").append(mx.getWcjyhwsl()).append("</wcjyhwsl>").append("            <wcjyhwxsdd>").append(mx.getWcjylwhwdd()).append("</wcjyhwxsdd>").append("            <wcjyhwyxqxq>").append(mx.getWcjylwhwyxqxq()).append("</wcjyhwyxqxq>").append("            <wcjyhwyxqxz>").append(mx.getWcjylwhwyxqxz()).append("</wcjyhwyxqxz>").append("            <wcjyhwzz>").append(mx.getWcjyhwzz()).append("</wcjyhwzz>").append("          </wcjyzmhwxxGridlb>").append("       </insertHwxxGrid>");
                        continue;
                    }
                    if ("2".equals(mx.getClbz())) {
                        if (HstToolsUtil.isNullOrEmpty(mx.getLwhwuuid()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwmc()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwdd()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwyxqxq()) || HstToolsUtil.isNullOrEmpty(mx.getWcjylwhwyxqxz()) || HstToolsUtil.isNullOrEmpty(mx.getWcjyhwsl()) || HstToolsUtil.isNullOrEmpty(mx.getWcjyhwzz())) {
                            response.setCode("01");
                            response.setMess("\u8d27\u7269uuid\u3001\u8d27\u7269\u540d\u79f0\u3001\u8d27\u7269\u5730\u70b9\u3001\u8d27\u7269\u6709\u6548\u671f\u9650\u8d77\u3001\u8d27\u7269\u6709\u6548\u671f\u9650\u6b62\u3001\u8d27\u7269\u6570\u91cf\u3001\u8d27\u7269\u8d27\u7269\u603b\u503c\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                            return response;
                        }
                        xml.append("       <updateHwxxGrid>").append("        <wcjyzmhwxxGridlb>").append("          <hwuuid>").append(mx.getLwhwuuid()).append("</hwuuid>").append("          <wcjyzmuuid></wcjyzmuuid>").append("          <wcjyhwmc>").append(mx.getWcjylwhwmc()).append("</wcjyhwmc>").append("          <wcjyhwsl>").append(mx.getWcjyhwsl()).append("</wcjyhwsl>").append("          <wcjyhwxsdd>").append(mx.getWcjylwhwdd()).append("</wcjyhwxsdd>").append("          <wcjyhwyxqxq>").append(mx.getWcjylwhwyxqxq()).append("</wcjyhwyxqxq>").append("          <wcjyhwyxqxz>").append(mx.getWcjylwhwyxqxz()).append("</wcjyhwyxqxz>").append("          <wcjyhwzz>").append(mx.getWcjyhwzz()).append("</wcjyhwzz>").append("        </wcjyzmhwxxGridlb>").append("      </updateHwxxGrid>");
                        continue;
                    }
                    if (!"3".equals(mx.getClbz())) continue;
                    if (HstToolsUtil.isNullOrEmpty(mx.getLwhwuuid())) {
                        response.setCode("01");
                        response.setMess("\u8d27\u7269uuid\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("      <deleteHwxxGrid>").append("        <wcjyzmhwxxGridlb>").append("          <hwuuid>").append(mx.getLwhwuuid()).append("</hwuuid>").append("          <wcjyzmuuid></wcjyzmuuid>").append("          <wcjyhwmc></wcjyhwmc>").append("          <wcjyhwsl></wcjyhwsl>").append("          <wcjyhwxsdd></wcjyhwxsdd>").append("          <wcjyhwyxqxq></wcjyhwyxqxq>").append("          <wcjyhwyxqxz></wcjyhwyxqxz>").append("          <wcjyhwzz></wcjyhwzz>").append("        </wcjyzmhwxxGridlb>").append("      </deleteHwxxGrid>");
                }
                xml.append("  </wjcyzmsqb>").append("  <SwjgVO>").append("      <zmyxqxq>").append(request.getZmyxqxq()).append("</zmyxqxq>").append("      <zmyxqxz>").append(request.getZmyxqxz()).append("</zmyxqxz>").append("      <jydswjgDm>").append(this.getNullStr(request.getJydswjgDm())).append("</jydswjgDm>").append("      <slrDm>").append(request.getSlrDm()).append("</slrDm>").append("      <slswjgmc>").append(this.getNullStr(request.getSlswjgmc())).append("</slswjgmc>").append("      <slrq>").append(request.getSlrq()).append("</slrq>").append("      <swdjdswjgyj>").append(this.getNullStr(request.getSwdjdswjgyj())).append("</swdjdswjgyj>").append("      <jbr>").append(this.getNullStr(request.getJbr())).append("</jbr>").append("      <fzr>").append(this.getNullStr(request.getFzr())).append("</fzr>").append("      <swjg>").append(this.getNullStr(request.getSlswjgmc())).append("</swjg>").append("      <swjglxdh>").append(this.getNullStr(request.getSwjglxdh())).append("</swjglxdh>").append("      <htdfnsrsbh>").append(this.getNullStr(request.getHtdfNsrsbh())).append("</htdfnsrsbh>").append("      <htdfnsrdjxh>").append(this.getNullStr(request.getHtdfDjxh())).append("</htdfnsrdjxh>").append("      <htdfnsrmc>").append(this.getNullStr(request.getHtdfNsrmc())).append("</htdfnsrmc>").append("  </SwjgVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZM.BCWCJYHDSSGLZMSQBXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZM00004ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZM00004ResponseDomain ret = (HXZGZM00004ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        response.setMess("\u5904\u7406\u6210\u529f\uff01");
                        response.setWcjyhdssglzmbh(ret.getWcjyhdssglzmbh());
                    }
                    break block22;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgPzSwrySpjc(BaseAppServiceDomain appDomain) throws Exception {
        HxzgPzSwrySpjcRequestDomain request = (HxzgPzSwrySpjcRequestDomain)appDomain;
        HxzgPzSwrySpjcResponseDomain response = new HxzgPzSwrySpjcResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getSwryDm())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u7a0e\u52a1\u4eba\u5458\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            List<HxzgPzSwrySpjcDomain> dataList = this.dao.queyrHxzgPzSwrySpjc(request);
            response.setDataList(dataList);
            response.setCode("00");
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZrrDjExists(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZrrDjExistsRequestDomain request = (HxzgZrrDjExistsRequestDomain)appDomain;
        HxzgZrrDjExistsResponseDomain response = new HxzgZrrDjExistsResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u81ea\u7136\u4eba\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            this.dao.hxzgZrrDjExists(request, response);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSbSbqkcxss(BaseAppServiceDomain appDomain) throws Exception {
        HxzgSbSbqkcxssResponseDomain response;
        block7: {
            HxzgSbSbqkcxssRequestDomain request = (HxzgSbSbqkcxssRequestDomain)appDomain;
            response = new HxzgSbSbqkcxssResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGSB00494Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_SB_00494_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<sbqkQueryVO>").append(" <djxh>").append(request.getDjxh()).append("</djxh>").append(" <skssqq>").append(this.getNullStr(request.getSkssqq())).append("</skssqq>").append(" <skssqz>").append(this.getNullStr(request.getSkssqz())).append("</skssqz>").append(" <sbrq1>").append(this.getNullStr(request.getSbrq())).append("</sbrq1>").append("</sbqkQueryVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.SBQKCXSS");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB00494ResponseDomain.class);
                    mapClass.put("sbqkGrid", HXZGSB00494SbqkGridDomain.class);
                    mapClass.put("sbqkGridlb", HXZGSB00494SbqkGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB00494ResponseDomain ret = (HXZGSB00494ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        HxzgSbSbqkcxssDomain dom = null;
                        for (HXZGSB00494SbqkGridlbDomain temp : ret.getSbqkGrid().getSbqkGridlb()) {
                            dom = new HxzgSbSbqkcxssDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            dom.setSbrq(this.substringDate(temp.getSbrq1()));
                            dom.setZfbz(temp.getZfbz1());
                            response.getDataList().add(dom);
                        }
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSbWsbxxcx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgSbWsbxxcxResponseDomain response;
        block7: {
            HxzgSbWsbxxcxRequestDomain request = (HxzgSbWsbxxcxRequestDomain)appDomain;
            response = new HxzgSbWsbxxcxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGSB00507Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_SB_00507_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<dqrq>").append(this.getNullStr(request.getDqrq())).append("</dqrq>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.WSBXXCX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB00507ResponseDomain.class);
                    mapClass.put("SBWsbxxGrid", HXZGSB00507SBWsbxxGridDomain.class);
                    mapClass.put("SBWsbxxGridlb", HXZGSB00507SBWsbxxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB00507ResponseDomain ret = (HXZGSB00507ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        HxzgSbWsbxxcxDomain dom = null;
                        for (HXZGSB00507SBWsbxxGridlbDomain temp : ret.getSBWsbxxGrid().getSBWsbxxGridlb()) {
                            dom = new HxzgSbWsbxxcxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            dom.setSkssqq(this.substringDate(dom.getSkssqq()));
                            dom.setSkssqz(this.substringDate(dom.getSkssqz()));
                            dom.setSbqx(this.substringDate(dom.getSbqx()));
                            dom.setCbrq(this.substringDate(dom.getCbrq()));
                            dom.setTjrq(this.substringDate(dom.getTjrq()));
                            response.getDataList().add(dom);
                        }
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZsCxrkxxtofx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsCxrkxxtofxResponseDomain response;
        block7: {
            HxzgZsCxrkxxtofxRequestDomain request = (HxzgZsCxrkxxtofxRequestDomain)appDomain;
            response = new HxzgZsCxrkxxtofxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS10126RequestVO\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/TaxMLBw_HXZG_ZS_10126_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<yzpzxh>").append(request.getYzpzxh()).append("</yzpzxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.CXRKXXTOFX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10126ResponseDomain.class);
                    mapClass.put("YzxxVO", HXZGZS10126YzxxVODomain.class);
                    mapClass.put("YzxxGridlbVO", HXZGZS10126YzxxGridlbVODomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10126ResponseDomain ret = (HXZGZS10126ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        HxzgZsCxrkxxtofxDomain dom = null;
                        for (HXZGZS10126YzxxGridlbVODomain temp : ret.getYzxxVO().getYzxxGridlbVO()) {
                            dom = new HxzgZsCxrkxxtofxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            dom.setSkssqq(this.substringDate(dom.getSkssqq()));
                            dom.setSkssqz(this.substringDate(dom.getSkssqz()));
                            dom.setJkqx(this.substringDate(dom.getJkqx()));
                            dom.setYzclrq(this.substringDate(dom.getYzclrq()));
                            dom.setJkrq(this.substringDate(dom.getJkrq()));
                            response.getDataList().add(dom);
                        }
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZsCxwkksbbxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsCxwkksbbxxResponseDomain response;
        block7: {
            HxzgZsCxwkksbbxxRequestDomain request = (HxzgZsCxwkksbbxxRequestDomain)appDomain;
            response = new HxzgZsCxwkksbbxxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS10227Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/TaxMLBw_HXZG_ZS_10227_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.CXWKKSBBXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10227ResponseDomain.class);
                    mapClass.put("wkksbbxxgGrid", HXZGZS10227WkksbbxxGridDomain.class);
                    mapClass.put("wkksbbxxGridlb", HXZGZS10227WkksbbxxgGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10227ResponseDomain ret = (HXZGZS10227ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        HxzgZsCxwkksbbxxDomain dom = null;
                        for (HXZGZS10227WkksbbxxgGridlbDomain temp : ret.getWkksbbxxgGrid().getWkksbbxxGridlb()) {
                            dom = new HxzgZsCxwkksbbxxDomain();
                            BeanUtils.copyProperties((Object)dom, (Object)temp);
                            dom.setSkssqq(this.substringDate(dom.getSkssqq()));
                            dom.setSkssqz(this.substringDate(dom.getSkssqz()));
                            dom.setJkqx(this.substringDate(dom.getJkqx()));
                            dom.setSbrq(this.substringDate(dom.getSbrq()));
                            response.getDataList().add(dom);
                        }
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgDjBcswjdbxxjysjx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjBcswjdbxxjysjxResponseDomain response;
        block14: {
            HxzgDjBcswjdbxxjysjxRequestDomain request = (HxzgDjBcswjdbxxjysjxRequestDomain)appDomain;
            response = new HxzgDjBcswjdbxxjysjxResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh()) || HstToolsUtil.isNullOrEmpty(request.getZgswskfjDm()) || HstToolsUtil.isNullOrEmpty(request.getSlswsxDm()) || HstToolsUtil.isNullOrEmpty(request.getSlrDm()) || HstToolsUtil.isNullOrEmpty(request.getSlrq()) || HstToolsUtil.isNullOrEmpty(request.getSlswjgDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u3001\u4e3b\u7ba1\u7a0e\u52a1\u6240\uff08\u79d1\uff0c\u5206\u5c40\uff09\u3001\u53d7\u7406\u7a0e\u52a1\u4e8b\u9879\u4ee3\u7801\u3001\u53d7\u7406\u4eba\u4ee3\u7801\u3001\u53d7\u7406\u65e5\u671f\u3001\u53d7\u7406\u7a0e\u52a1\u673a\u5173\u4ee3\u7801\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSqr()) || HstToolsUtil.isNullOrEmpty(request.getSqrq()) || HstToolsUtil.isNullOrEmpty(request.getLrrDm()) || HstToolsUtil.isNullOrEmpty(request.getSjgsdq())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7533\u8bf7\u4eba\u3001\u7533\u8bf7\u65e5\u671f\u3001\u5f55\u5165\u4eba\u3001\u6570\u636e\u5f52\u5c5e\u5730\u533a\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getBgdjmxGridlb().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u53d8\u66f4\u4fe1\u606f\u96c6\u5408\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getLcslid())) {
                    request.setLcslid(EjbJ3Util.getUUID());
                }
                if (HstToolsUtil.isNullOrEmpty(request.getBgnsrsbhbz())) {
                    request.setBgnsrsbhbz("0");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSlswsxDm())) {
                    request.setSlswsxDm("SLSXA011002002");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSlyj())) {
                    request.setSlyj("\u540c\u610f");
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGDJ00075Request\" xmlmc=\"\u4fdd\u5b58\u53d8\u66f4\u7a0e\u52a1\u767b\u8bb0\u8868\u4fe1\u606f\u548c\u5bf9\u76f8\u5e94\u7684\u6570\u636e\u8fdb\u884c\u6821\u9a8c\" xmlbh=\"TaxMLBw_HXZG_DJ_00075_Request_V1.0.xsd\" bbh=\"1.0\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <bgswdjb>").append("    <djxh>").append(request.getDjxh()).append("</djxh>").append("    <lcslid>").append(request.getLcslid()).append("</lcslid>").append("    <zgswskfjDm>").append(request.getZgswskfjDm()).append("</zgswskfjDm>").append("    <pzjguuid>").append(this.getNullStr(request.getPzjguuid())).append("</pzjguuid>").append("    <xnsrsbh>").append(this.getNullStr(request.getXnsrsbh())).append("</xnsrsbh>").append("    <bgnsrsbhbz>").append(request.getBgnsrsbhbz()).append("</bgnsrsbhbz>").append("    <bgslxxvo>").append("      <djxh>").append(request.getDjxh()).append("</djxh>").append("      <slswsxDm>").append(request.getSlswsxDm()).append("</slswsxDm>").append("      <lcslid>").append(request.getLcslid()).append("</lcslid>").append("      <slrDm>").append(request.getSlrDm()).append("</slrDm>").append("      <slrq>").append(request.getSlrq()).append("</slrq>").append("      <slswjgDm>").append(request.getSlswjgDm()).append("</slswjgDm>").append("      <slyj>").append(this.getNullStr(request.getSlyj())).append("</slyj>").append("      <xgslrqly>").append(this.getNullStr(request.getXgslrqly())).append("</xgslrqly>").append("      <sqr>").append(request.getSqr()).append("</sqr>").append("      <sqrq>").append(request.getSqrq()).append("</sqrq>").append("      <lrrDm>").append(request.getLrrDm()).append("</lrrDm>").append("      <sjgsdq>").append(this.getNullStr(request.getSjgsdq())).append("</sjgsdq>").append("    </bgslxxvo>").append("    <bgdjmxGrid>");
                for (HxzgDjBcswjdbxxjysjxBgdjmxGridlbDomain temp : request.getBgdjmxGridlb()) {
                    if (HstToolsUtil.isNullOrEmpty(temp.getBgxmDm())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u53d8\u66f4\u9879\u76ee\u4ee3\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("      <bgdjmxGridlb>").append("        <bgxmDm>").append(temp.getBgxmDm()).append("</bgxmDm>").append("        <bgqnr>").append(this.getNullStr(temp.getBgqnr())).append("</bgqnr>").append("        <bghnr>").append(this.getNullStr(temp.getBghnr())).append("</bghnr>").append("        <pzjgmc>").append(this.getNullStr(temp.getPzjgmc())).append("</pzjgmc>").append("        <pzwj>").append(this.getNullStr(temp.getPzwj())).append("</pzwj>").append("      </bgdjmxGridlb>");
                }
                xml.append("    </bgdjmxGrid>").append("    <djZjgxxvo>").append("      <zjgnsrsbh/>").append("      <zjgdjxh/>").append("      <zjgmc/>").append("      <zjgzcdz/>").append("      <zjgzcdzyzbm/>").append("      <zjgfddbrxm/>").append("      <zjglxdh/>").append("      <zjgjyfw/>").append("    </djZjgxxvo>").append("    <insertnsrfyhyxxGrid/>").append("    <insertfzjgxxGrid/>").append("    <inserttzfxxGrid/>").append("    <insertTzzexxGrid/>").append("    <insertZczbxxGrid/>").append("    <updatensrfyhyxxGrid/>").append("    <updatefzjgxxGrid/>").append("    <updatetzfxxGrid/>").append("    <updateTzzexxGrid/>").append("    <updateZczbxxGrid/>").append("    <deletensrfyhyxxGrid/>").append("    <deletefzjgxxGrid/>").append("    <deletetzfxxGrid/>").append("    <deleteTzzexxGrid/>").append("    <deleteZczbxxGrid/>").append("  </bgswdjb>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.DJ.BCBGSWJDBXXJYSJX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGDJ00075ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGDJ00075ResponseDomain bg = (HXZGDJ00075ResponseDomain)help.xmlStrParser(resStr);
                    if (bg != null) {
                        BeanUtils.copyProperties((Object)response, (Object)bg);
                    }
                    break block14;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSbZfYzpzxh(BaseAppServiceDomain appDomain) throws Exception {
        HxzgSbZfYzpzxhRequestDomain request = (HxzgSbZfYzpzxhRequestDomain)appDomain;
        TaxCommonReturnDomain response = new TaxCommonReturnDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getYzpzxh())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            HxzgSbSbZfRequestDomain req = this.dao.querySbxxByZf(request);
            if (req == null) {
                response.setCode("01");
                response.setMess("\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u4e0d\u5b58\u5728\u6216\u5df2\u4f5c\u5e9f!");
                return response;
            }
            TaxCommonReturnDomain res = this.hxzgSbSbZf(req);
            return res;
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
    }

    @Override
    public TaxCommonReturnDomain hxzgFpCxZrrDkfp(BaseAppServiceDomain appDomain) throws Exception {
        HxzgFpCxZrrDkfpRequestDomain request = (HxzgFpCxZrrDkfpRequestDomain)appDomain;
        HxzgFpCxZrrDkfpResponseDomain response = new HxzgFpCxZrrDkfpResponseDomain();
        try {
            response.setCode("00");
            if (HstToolsUtil.isNullOrEmpty(request.getSfzhm())) {
                response.setCode("01");
                response.setMess("\u4f20\u5165\u8eab\u4efd\u8bc1\u53f7\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                return response;
            }
            this.dao.queryZrrDkfpqk(request, response);
        }
        catch (Exception e) {
            e.getStackTrace();
            _logger.error((Object)e.getMessage());
            throw new Exception(e);
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgQtGetCurtime(BaseAppServiceDomain appDomain) throws Exception {
        HxzgQtGetCurtimeResponseDomain response = new HxzgQtGetCurtimeResponseDomain();
        Connection conn = null;
        ResultSet rs = null;
        PreparedStatement pstmt = null;
        try {
            try {
                response.setCode("00");
                conn = this.dao.getGt3Conn();
                pstmt = conn.prepareStatement("SELECT TO_CHAR(SYSDATE,'YYYY-MM-DD') CURDATE ,TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS') CURTIME FROM DUAL");
                rs = pstmt.executeQuery();
                if (rs.next()) {
                    response.setCurdate(rs.getString("CURDATE"));
                    response.setCurtime(rs.getString("CURTIME"));
                }
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        catch (Throwable throwable) {
            DBUtil.close(rs, pstmt);
            DBUtil.close(conn);
            throw throwable;
        }
        DBUtil.close(rs, pstmt);
        DBUtil.close(conn);
        return response;
    }

    public TaxCommonReturnDomain gsglDjBcZrrGjxxjjDjfw(BaseAppServiceDomain appDomain) throws Exception {
        HxzgDjZrrjjDjResponseDomain response;
        block6: {
            HxzgDjZrrjjDjRequestDomain request = (HxzgDjZrrjjDjRequestDomain)appDomain;
            response = new HxzgDjZrrjjDjResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getSfzjhm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u8eab\u4efd\u8bc1\u4ef6\u53f7\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<taxML xsi:type=\"zrrjjdjRequest\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_GSGL_DJ_001_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">  ").append(" <zrrxxGrid>").append("   <zrrxxList>").append("     <sfzjlx_dm>").append(request.getSfzjlxDm()).append("</sfzjlx_dm>").append("     <sfzjhm>").append(request.getSfzjhm()).append("</sfzjhm>").append("     <xm>").append(request.getXm()).append("</xm>").append("     <gj_dm>").append(request.getGjDm()).append("</gj_dm>").append("     <csrq>").append(request.getCsrq()).append("</csrq>").append("     <csd></csd>").append("     <xb>").append(request.getXb()).append("</xb>").append("     <slrDm>").append(request.getSlrDm()).append("</slrDm>").append("     <slswjgDm>").append(request.getSlswjgDm()).append("</slswjgDm>").append("     <slswsxDm></slswsxDm>").append("     <lyqdDm>").append(WebConstants.GT3_CHANNEL_ID).append("</lyqdDm>").append("   </zrrxxList>").append(" </zrrxxGrid></taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.GSGL.DJ.BCZRRGJXXJJDJFW");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", GSGLDJ00001ResponseDomain.class);
                    mapClass.put("zrrxxResGrid", GSGLDJ00001ZrrxxResGridDomain.class);
                    mapClass.put("zrrxxResList", GSGLDJ00001ZrrxxResListDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    GSGLDJ00001ResponseDomain dj = (GSGLDJ00001ResponseDomain)help.xmlStrParser(resStr);
                    if (dj != null && dj.getZrrxxResGrid() != null && !dj.getZrrxxResGrid().getZrrxxResList().isEmpty()) {
                        GSGLDJ00001ZrrxxResListDomain temp = dj.getZrrxxResGrid().getZrrxxResList().get(0);
                        BeanUtils.copyProperties((Object)response, (Object)temp);
                    }
                    break block6;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain gsglDjCxZrrDjxxWbxt(BaseAppServiceDomain appDomain) throws Exception {
        GsglDjCxZrrDjxxWbxtjResponseDomain response;
        block8: {
            GsglDjCxZrrDjxxWbxtRequestDomain request = (GsglDjCxZrrDjxxWbxtRequestDomain)appDomain;
            response = new GsglDjCxZrrDjxxWbxtjResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                StringBuffer xml = new StringBuffer();
                xml.append("<taxML xsi:type=\"zrrxxcxrequest\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_GSGL_SB_001_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("     <djxh>").append(this.getNullStr(request.getDjxh())).append("</djxh>").append("     <zjzlDm>").append(this.getNullStr(request.getZjzlDm())).append("</zjzlDm>").append("     <zjhm>").append(this.getNullStr(request.getZjhm())).append("</zjhm>").append("     <xm>").append(this.getNullStr(request.getXm())).append("</xm>").append("     <nsrsbh>").append(this.getNullStr(request.getNsrsbh())).append("</nsrsbh>").append("     <gjhdq>").append(this.getNullStr(request.getGjhdq())).append("</gjhdq>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.GSGL.SB.CXZRRDJXXWBXT");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", GSGLSB00001ResponseDomain.class);
                    mapClass.put("zrrxxgrid", GSGLSB00001ZrrxxgridDomain.class);
                    mapClass.put("zrrxxlb", GSGLSB00001ZrrxxlbDomain.class);
                    mapClass.put("zrrzgswfplb", GSGLSB00001ZrrzgswfplbDomain.class);
                    mapClass.put("zrrzgswfp", GSGLSB00001ZrrzgswfpDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    GSGLSB00001ResponseDomain dj = (GSGLSB00001ResponseDomain)help.xmlStrParser(resStr);
                    if (dj != null && dj.getZrrxxgrid() != null && !dj.getZrrxxgrid().getZrrxxlb().isEmpty()) {
                        GsglDjCxZrrDjxxWbxtjDomain zrrDomain = null;
                        for (GSGLSB00001ZrrxxlbDomain temp : dj.getZrrxxgrid().getZrrxxlb()) {
                            zrrDomain = new GsglDjCxZrrDjxxWbxtjDomain();
                            BeanUtils.copyProperties((Object)zrrDomain, (Object)temp);
                            if (temp.getZrrzgswfplb() != null && !temp.getZrrzgswfplb().getZrrzgswfp().isEmpty()) {
                                GsglDjCxZrrDjxxWbxtjZrrzgswfplbDomain swjgDom = null;
                                for (GSGLSB00001ZrrzgswfpDomain stemp : temp.getZrrzgswfplb().getZrrzgswfp()) {
                                    swjgDom = new GsglDjCxZrrDjxxWbxtjZrrzgswfplbDomain();
                                    BeanUtils.copyProperties((Object)swjgDom, (Object)stemp);
                                    zrrDomain.getSwjgList().add(swjgDom);
                                }
                            }
                            response.getDataList().add(zrrDomain);
                        }
                    }
                    break block8;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZsGrsbplfqsskkByQyzh(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsGrsbplfqsskkByQyzhResponseDomain response;
        block12: {
            HxzgZsGrsbplfqsskkByQyzhRequestDomain request = (HxzgZsGrsbplfqsskkByQyzhRequestDomain)appDomain;
            response = new HxzgZsGrsbplfqsskkByQyzhResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getQyDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4f01\u4e1a\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfxyh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e09\u65b9\u534f\u8bae\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList() == null || request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u96c6\u5408\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGZS10215Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_ZS_10215_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<sfxyh>").append(request.getSfxyh()).append("</sfxyh>").append("<sfxydjxh>").append(request.getQyDjxh()).append("</sfxydjxh>").append("<grxxGrid>").append("    <grxxGridlb>").append("       <djxh>").append(request.getDjxh()).append("</djxh>").append("       <yzpzxhGrid>");
                for (HxzgZsYzpzxhGridDomain dom : request.getDataList()) {
                    xml.append("<yzpzxhGridlb>").append("<yzpzxh>").append(dom.getYzpzxh()).append("</yzpzxh>").append("</yzpzxhGridlb>");
                }
                xml.append("        </yzpzxhGrid>").append("    </grxxGridlb>").append("</grxxGrid>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.GRSBPLFQSSKKBYQYZH");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS10215ResponseDomain.class);
                    mapClass.put("grjkxxGrid", HXZGZS10215GrjkxxGridDomain.class);
                    mapClass.put("grjkxxGridlb", HXZGZS10215GrjkxxGridlbDomain.class);
                    mapClass.put("yzxxGrid", HXZGZS10215YzxxGridDomain.class);
                    mapClass.put("yzxxGridlb", HXZGZS10215YzxxGridlbDomain.class);
                    mapClass.put("szmxGrid", HXZGZS10215SzmxGridDomain.class);
                    mapClass.put("szmxGridlb", HXZGZS10215SzmxGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS10215ResponseDomain ret = (HXZGZS10215ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null && !ret.getGrjkxxGrid().getGrjkxxGridlb().isEmpty()) {
                        response.setDjxh(ret.getGrjkxxGrid().getGrjkxxGridlb().get(0).getDjxh());
                        if (!ret.getGrjkxxGrid().getGrjkxxGridlb().get(0).getYzxxGrid().getYzxxGridlb().isEmpty()) {
                            response.setDzsphm(ret.getGrjkxxGrid().getGrjkxxGridlb().get(0).getYzxxGrid().getYzxxGridlb().get(0).getDzsphm());
                            response.setSjse(ret.getGrjkxxGrid().getGrjkxxGridlb().get(0).getYzxxGrid().getYzxxGridlb().get(0).getSjse());
                            response.setKkfhmc(ret.getGrjkxxGrid().getGrjkxxGridlb().get(0).getYzxxGrid().getYzxxGridlb().get(0).getKkfhmc());
                            response.setKkfhDm(ret.getGrjkxxGrid().getGrjkxxGridlb().get(0).getYzxxGrid().getYzxxGridlb().get(0).getKkfhDm());
                            HxzgZsGrsbplfqsskkByQyzhDomain dom = null;
                            for (HXZGZS10215SzmxGridlbDomain temp : ret.getGrjkxxGrid().getGrjkxxGridlb().get(0).getYzxxGrid().getYzxxGridlb().get(0).getSzmxGrid().getSzmxGridlb()) {
                                dom = new HxzgZsGrsbplfqsskkByQyzhDomain();
                                BeanUtils.copyProperties((Object)dom, (Object)temp);
                                response.getDataList().add(dom);
                            }
                        }
                    }
                    break block12;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    public TaxCommonReturnDomain gsglSb00088(BaseAppServiceDomain appDomain) throws Exception {
        GSGLSB00088ResponseDomain response;
        block14: {
            GSGLSB00088RequestDomain request = (GSGLSB00088RequestDomain)appDomain;
            response = new GSGLSB00088ResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getTzrdjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6295\u8d44\u4eba\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getBtzdwdjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u88ab\u6295\u8d44\u5355\u4f4d\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqq()) || HstToolsUtil.isNullOrEmpty(request.getSkssqz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSwjgdm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4e3b\u7ba1\u79d1\u6240\u673a\u5173\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSdxm())) {
                    request.setSdxm("0200");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSblxDm())) {
                    request.setSblxDm("0");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getLrrDm())) {
                    request.setLrrDm(this.getSjjg(request));
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"sbcshxxrequest\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_GSGL_SB_088_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <tzrdjxh>").append(request.getTzrdjxh()).append("</tzrdjxh>").append("  <btzdwdjxh>").append(request.getBtzdwdjxh()).append("</btzdwdjxh>").append("  <swjgdm>").append(request.getSwjgdm()).append("</swjgdm>").append("  <sdxm>").append(request.getSdxm()).append("</sdxm>").append("  <sblxDm>").append(request.getSblxDm()).append("</sblxDm>").append("  <skssqq>").append(request.getSkssqq()).append("</skssqq>").append("  <skssqz>").append(request.getSkssqz()).append("</skssqz>").append("  <lrrDm>").append(request.getLrrDm()).append("</lrrDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.GSGL.SB.CXSCJYSBCSH");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", GSGLSB00088ResponseDomain.class);
                    mapClass.put("sbcshxx", GSGLSB00088SbcshxxDomain.class);
                    mapClass.put("sbcshzsfsxx", GSGLSB00088SbcshzsfsxxDomain.class);
                    mapClass.put("sbcshyjse", GSGLSB00088SbcshyjseDomain.class);
                    mapClass.put("sbcshjmxxlb", GSGLSB00088SbcshjmxxlbDomain.class);
                    mapClass.put("sbcshtzfxx", GSGLSB00088SbcshtzfxxDomain.class);
                    mapClass.put("sbcshjmxx", GSGLSB00088SbcshjmxxDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    GSGLSB00088ResponseDomain ret = (GSGLSB00088ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("00".equals(ret.getSbcshxx().getRtncode()) || "05".equals(ret.getSbcshxx().getRtncode())) {
                            response = ret;
                            response.setCode("00");
                        } else {
                            response.setCode("01");
                            response.setMess("\u91d1\u4e09\u8fd4\u56de\uff1a\u751f\u4ea7\u7ecf\u8425A\u8868\u7533\u62a5\u521d\u59cb\u5316rtnCode\u3010" + ret.getSbcshxx().getRtncode() + "\u3011rtnmesg\u3010" + ret.getSbcshxx().getRtnmesg() + "\u3011");
                        }
                    }
                    break block14;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain gsglSbGrsdsScjysdA(BaseAppServiceDomain appDomain) throws Exception {
        GsglSbGrsdsScjysdAResponseDomain response;
        block16: {
            GsglSbGrsdsScjysdARequestDomain request = (GsglSbGrsdsScjysdARequestDomain)appDomain;
            response = new GsglSbGrsdsScjysdAResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getQyDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4f01\u4e1a\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSssqq()) || HstToolsUtil.isNullOrEmpty(request.getSssqz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u6240\u5c5e\u65f6\u671f\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getQyNsrsbh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u4f01\u4e1a\u7eb3\u7a0e\u4eba\u8bc6\u522b\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSfzjhm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u8eab\u4efd\u8bc1\u4ef6\u53f7\u7801\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYzpzzlDm())) {
                    request.setYzpzzlDm("BDA0610753");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSblxDm())) {
                    request.setSblxDm("0");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getYwlxDm())) {
                    request.setYwlxDm("A061001026");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSdxmDm())) {
                    request.setSdxmDm("0200");
                    request.setGrsdssdxmMc("\u4e2a\u4f53\u5de5\u5546\u6237\u751f\u4ea7\u7ecf\u8425\u6240\u5f97");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getZspmDm())) {
                    request.setZspmDm("101060200");
                    request.setZspmMc("\u4e2a\u4f53\u6237\u751f\u4ea7\u7ecf\u8425\u6240\u5f97");
                }
                if (HstToolsUtil.isNullOrEmpty(request.getVersion())) {
                    request.setVersion("V1.1");
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"sbxxbcrequest\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_GSGL_SB_079_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">  ").append(" <jywysbh></jywysbh>").append(" <ywlxDm>").append(request.getYwlxDm()).append("</ywlxDm>").append(" <yzpzzlDm>").append(request.getYzpzzlDm()).append("</yzpzzlDm>").append(" <djxh>").append(request.getDjxh()).append("</djxh>").append(" <sblxDm>").append(request.getSblxDm()).append("</sblxDm>").append(" <sssqq>").append(request.getSssqq()).append("</sssqq>").append(" <sssqz>").append(request.getSssqz()).append("</sssqz>").append(" <ywbw>").append(this.getGrsdsSbYwbw(request)).append("</ywbw>").append(" <slswjgDm>").append(request.getSlswjgDm()).append("</slswjgDm>").append(" <version>").append(request.getVersion()).append("</version>").append(" <yzpzxh></yzpzxh>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.GSGL.SB.JSWWXTSBXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", GSGLSB00079ResponseDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    GSGLSB00079ResponseDomain ret = (GSGLSB00079ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        BeanUtils.copyProperties((Object)response, (Object)ret);
                    }
                    break block16;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain gsglSbGrsdsScjysdAZf(BaseAppServiceDomain appDomain) throws Exception {
        TaxCommonReturnDomain response;
        block9: {
            GsglSbGrsdsScjysdAZfRequestDomain request = (GsglSbGrsdsScjysdAZfRequestDomain)appDomain;
            response = new TaxCommonReturnDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getYzpzxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getLrrDm())) {
                    request.setLrrDm(this.getSjry(request));
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append(" <taxML xsi:type=\"sbbzftjrequest\" xmlbh=\"String\" bbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_GSGL_SB_340_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("   <yzpzxh>").append(request.getYzpzxh()).append("</yzpzxh>").append("   <lrrDm>").append(request.getLrrDm()).append("</lrrDm>").append(" </taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.GSGL.SB.JSWWXTSBZF");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("sbbzftjresponse", GSGLSB00340ResponseDomain.class);
                    XmlHelper help = new XmlHelper("sbbzftjresponse", mapClass);
                    GSGLSB00340ResponseDomain ret = (GSGLSB00340ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("1".equals(ret.getCljgDm())) {
                            response.setCode("00");
                            response.setMess("\u4f5c\u5e9f\u6210\u529f");
                        } else {
                            response.setCode("01");
                            response.setMess("\u4e2a\u7a0e\u63a5\u53e3\u8fd4\u56de\uff1a\u5904\u7406\u7ed3\u679c\u4ee3\u7801[" + ret.getCljgDm() + "]\u5904\u7406\u7ed3\u8bfe" + ret.getCljg());
                        }
                    }
                    break block9;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSbBcFxmtysb(BaseAppServiceDomain appDomain) throws Exception {
        HxzgSbBcFxmtysbResponseDomain response;
        block13: {
            HxzgSbBcFxmtysbRequestDomain request = (HxzgSbBcFxmtysbRequestDomain)appDomain;
            response = new HxzgSbBcFxmtysbResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqq()) || HstToolsUtil.isNullOrEmpty(request.getSkssqz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList() == null || request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u96c6\u5408\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSbrq1())) {
                    request.setSbrq1("11");
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGSB00038Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_SB_00038_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<sbxxGrid/>").append("<jmxxGrid/>").append("<yjxxGrid/>").append("<fxmtysbbdVO bbh=\"String\" xmlmc=\"String\" xmlbh=\"String\">").append("<fxmtySbb>").append("<sbbhead>").append("<nsrsbh>").append(request.getNsrsbh()).append("</nsrsbh>").append("<nsrmc>").append(request.getNsrmc()).append("</nsrmc>").append("<skssqq>").append(request.getSkssqq()).append("</skssqq>").append("<skssqz>").append(request.getSkssqz()).append("</skssqz>").append("<sbsxDm1>").append(request.getSbsxDm1()).append("</sbsxDm1>").append("<sbrq1>").append(request.getSbrq1()).append("</sbrq1>").append("<bsr>").append(request.getBsr()).append("</bsr>").append("<hyDm>").append(this.getNullStr(request.getHyDm())).append("</hyDm>").append("<xzqhszDm>").append(this.getNullStr(request.getXzqhszDm())).append("</xzqhszDm>").append("<jdxzDm>").append(this.getNullStr(request.getJdxzDm())).append("</jdxzDm>").append("<zgswskfjDm>").append(request.getZgswskfjDm()).append("</zgswskfjDm>").append("</sbbhead>").append("<sbxxGrid>");
                int i = 1;
                for (HxzgSbBcFxmtysbDomain dom : request.getDataList()) {
                    if (HstToolsUtil.isNullOrEmpty(dom.getSfkssqq()) || HstToolsUtil.isNullOrEmpty(dom.getSfkssqz()) || HstToolsUtil.isNullOrEmpty(dom.getZsxmDm()) || HstToolsUtil.isNullOrEmpty(dom.getZspmDm())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u8d77\u3001\u7a0e\u6b3e\u6240\u5c5e\u671f\u6b62\u3001\u5f81\u6536\u9879\u76ee\u3001\u5f81\u6536\u54c1\u76ee\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("<sbxxGridlb>").append("<yssdl>").append(dom.getYssdl()).append("</yssdl>").append("<xh>").append(i++).append("</xh>").append("<sybzDm1/>").append("<sybh1/>").append("<syzldz/>").append("<zsxmDm>").append(dom.getZsxmDm()).append("</zsxmDm>").append("<zspmDm>").append(dom.getZspmDm()).append("</zspmDm>").append("<zszmDm>").append(this.getNullStr(dom.getZszmDm())).append("</zszmDm>").append("<sfkssqq>").append(dom.getSfkssqq()).append("</sfkssqq>").append("<sfkssqz>").append(dom.getSfkssqz()).append("</sfkssqz>").append("<ysx>").append(this.getNullDouble(dom.getYsx())).append("</ysx>").append("<jcx>").append(this.getNullDouble(dom.getJcx())).append("</jcx>").append("<jsfyj>").append(this.getNullDouble(dom.getJsfyj())).append("</jsfyj>").append("<sflhdwse>").append(this.getNullDouble(dom.getSflhdwse())).append("</sflhdwse>").append("<sskcs>").append(this.getNullDouble(dom.getSskcs())).append("</sskcs>").append("<bqynsfe>").append(this.getNullDouble(dom.getBqynsfe())).append("</bqynsfe>").append("<bqjmsfe>").append(this.getNullDouble(dom.getBqjmsfe())).append("</bqjmsfe>").append("<bqyjsfe>").append(this.getNullDouble(dom.getBqyjsfe())).append("</bqyjsfe>").append("<bqybtsfe>").append(this.getNullDouble(dom.getBqybtsfe())).append("</bqybtsfe>").append("<wdqzdbz/>").append("<rdpzuuid/>").append("<rdzsuuid/>").append("<ysbse/>").append("<ssjmxzDm/>").append("<phjmxzDm>").append(this.getNullStr(dom.getPhjmxzDm())).append("</phjmxzDm>").append("<phjzbl>").append(this.getNullDouble(dom.getPhjzbl())).append("</phjzbl>").append("<phjmse>").append(this.getNullDouble(dom.getPhjmse())).append("</phjmse>").append("<phjmswsxDm>").append(this.getNullStr(dom.getPhjmswsxDm())).append("</phjmswsxDm>").append("</sbxxGridlb>");
                }
                xml.append("</sbxxGrid>").append("<slrxxForm>").append("<blrysfzjlxDm>").append(request.getBsrysfzjlxDm()).append("</blrysfzjlxDm>").append("<blrysfzjhm>").append(request.getBsrysfzjhm()).append("</blrysfzjhm>").append("<bsr>").append(request.getBsr()).append("</bsr>").append("<slrq>").append(request.getSbrq1()).append("</slrq>").append("</slrxxForm>").append("</fxmtySbb>").append("</fxmtysbbdVO>").append("<sbSBbcTjqtxxVO>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<zxbztzsuuid/>").append("<qzdbz>").append(this.getNullStr(request.getQzdbz())).append("</qzdbz>").append("<scenceCs/>").append("<hyDm>").append(this.getNullStr(request.getHyDm())).append("</hyDm>").append("<xzqhszDm>").append(this.getNullStr(request.getXzqhszDm())).append("</xzqhszDm>").append("<jdxzDm>").append(this.getNullStr(request.getJdxzDm())).append("</jdxzDm>").append("<zgswskfjDm>").append(request.getZgswskfjDm()).append("</zgswskfjDm>").append("</sbSBbcTjqtxxVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.BCFXMTYSB");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB00038ResponseDomain.class);
                    mapClass.put("SBSaveReturnVO", HXZGSB00038SBSaveReturnVODomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB00038ResponseDomain ret = (HXZGSB00038ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("Y".equals(ret.getSBSaveReturnVO().getReturnBz())) {
                            response.setMess("\u7533\u62a5\u6210\u529f\uff01");
                            response.setPzxh(ret.getSBSaveReturnVO().getPzxh());
                            response.setYbtse(ret.getSBSaveReturnVO().getYbtse());
                        } else {
                            response.setCode("01");
                            response.setMess("\u7533\u62a5\u5931\u8d25\uff01");
                        }
                    }
                    break block13;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgSbBcFjssbb(BaseAppServiceDomain appDomain) throws Exception {
        HxzgSbBcFjssbbResponseDomain response;
        block13: {
            HxzgSbBcFjssbbRequestDomain request = (HxzgSbBcFjssbbRequestDomain)appDomain;
            response = new HxzgSbBcFjssbbResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getDjxh())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u767b\u8bb0\u5e8f\u53f7\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSkssqq()) || HstToolsUtil.isNullOrEmpty(request.getSkssqz())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u7a0e\u6b3e\u6240\u5c5e\u671f\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (request.getDataList() == null || request.getDataList().isEmpty()) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5e94\u5f81\u51ed\u8bc1\u5e8f\u53f7\u96c6\u5408\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getSbrq1())) {
                    request.setSbrq1("11");
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("<taxML xsi:type=\"HXZGSB01285Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/ TaxMLBw_HXZG_SB_01285_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("<sbxxGrid/>").append("<jmxxGrid/>").append("<yjxxGrid/>").append("<fjsSbbdxxVO bbh=\"String\" xmlmc=\"String\" xmlbh=\"String\">").append("<fjssbb>").append("<fjsnsrxxForm>").append("<nsrsbh>").append(request.getNsrsbh()).append("</nsrsbh>").append("<nsrmc>").append(request.getNsrmc()).append("</nsrmc>").append("<skssqq>").append(request.getSkssqq()).append("</skssqq>").append("<skssqz>").append(request.getSkssqz()).append("</skssqz>").append("<sbsxDm1>").append(request.getSbsxDm1()).append("</sbsxDm1>").append("<sbrq1>").append(request.getSbrq1()).append("</sbrq1>").append("<djlx>").append(request.getDjlx()).append("</djlx>").append("<djzclxDm>").append(this.getNullStr(request.getDjzclxDm())).append("</djzclxDm>").append("<sfzjlx>").append(this.getNullStr(request.getSfzjlx())).append("</sfzjlx>").append("<zjhm>").append(this.getNullStr(request.getZjhm())).append("</zjhm>").append("<hyDm>").append(this.getNullStr(request.getHyDm())).append("</hyDm>").append("<lxfs>").append(request.getLxfs()).append("</lxfs>").append("</fjsnsrxxForm>").append("<sbxxGrid>");
                for (HxzgSbBcFjssbbDomain dom : request.getDataList()) {
                    if (HstToolsUtil.isNullOrEmpty(dom.getZsxmDm()) || HstToolsUtil.isNullOrEmpty(dom.getZspmDm())) {
                        response.setCode("01");
                        response.setMess("\u4f20\u5165\u5f81\u6536\u9879\u76ee\u3001\u5f81\u6536\u54c1\u76ee\u5747\u4e0d\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                        return response;
                    }
                    xml.append("<sbxxGridlbVO>").append("<zsxmDm>").append(dom.getZsxmDm()).append("</zsxmDm>").append("<zspmDm>").append(dom.getZspmDm()).append("</zspmDm>").append("<ybzzs>").append(this.getNullDouble(dom.getYbzzs())).append("</ybzzs>").append("<xfs>").append(this.getNullDouble(dom.getXfs())).append("</xfs>").append("<yys>").append(this.getNullDouble(dom.getYys())).append("</yys>").append("<hj>").append(this.getNullDouble(dom.getHj())).append("</hj>").append("<sl1>").append(this.getNullDouble(dom.getSl1())).append("</sl1>").append("<bqynsfe>").append(this.getNullDouble(dom.getBqynsfe())).append("</bqynsfe>").append("<ssjmxzDm>").append(this.getNullStr(dom.getSsjmxzDm())).append("</ssjmxzDm>").append("<jmxzDm>").append(this.getNullStr(dom.getJmxzDm())).append("</jmxzDm>").append("<jme>").append(this.getNullDouble(dom.getJme())).append("</jme>").append("<bqyjse>").append(this.getNullDouble(dom.getBqyjse())).append("</bqyjse>").append("<bqybtse>").append(this.getNullDouble(dom.getBqybtse())).append("</bqybtse>").append("<wdqzdbz/>").append("<rdpzuuid/>").append("</sbxxGridlbVO>");
                }
                xml.append("</sbxxGrid>").append("<fjsslxxForm>").append("<dlr>").append(this.getNullStr(request.getDlr())).append("</dlr>").append("<dlrsfzh>").append(this.getNullStr(request.getDlrsfzh())).append("</dlrsfzh>").append("<slr>").append(request.getSlr()).append("</slr>").append("<slrq>").append(request.getSlrq()).append("</slrq>").append("<slswjg>").append(request.getSlswjg()).append("</slswjg>").append("</fjsslxxForm>").append("</fjssbb>").append("</fjsSbbdxxVO>").append("<sbSBbcTjqtxxVO>").append("<djxh>").append(request.getDjxh()).append("</djxh>").append("<zxbztzsuuid/>").append("<qzdbz>").append(this.getNullStr(request.getQzdbz())).append("</qzdbz>").append("<scenceCs/>").append("<hyDm>").append(this.getNullStr(request.getHyDm())).append("</hyDm>").append("<xzqhszDm>").append(this.getNullStr(request.getXzqhszDm())).append("</xzqhszDm>").append("<jdxzDm>").append(this.getNullStr(request.getJdxzDm())).append("</jdxzDm>").append("<zgswskfjDm>").append(request.getZgswskfjDm()).append("</zgswskfjDm>").append("</sbSBbcTjqtxxVO>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.SB.BCFJSSBB");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGSB01285ResponseDomain.class);
                    mapClass.put("SBSaveReturnVO", HXZGSB01285SBSaveReturnVODomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGSB01285ResponseDomain ret = (HXZGSB01285ResponseDomain)help.xmlStrParser(resStr);
                    if (ret != null) {
                        if ("Y".equals(ret.getSBSaveReturnVO().getReturnBz())) {
                            response.setMess("\u7533\u62a5\u6210\u529f\uff01");
                            response.setPzxh(ret.getSBSaveReturnVO().getPzxh());
                            response.setYbtse(ret.getSBSaveReturnVO().getYbtse());
                        } else {
                            response.setCode("01");
                            response.setMess("\u7533\u62a5\u5931\u8d25\uff01");
                        }
                    }
                    break block13;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    @Override
    public TaxCommonReturnDomain hxzgZsCxYskmYsfpblxx(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsCxYskmYsfpblxxResponseDomain response;
        block12: {
            HxzgZsCxYskmYsfpblxxRequestDomain request = (HxzgZsCxYskmYsfpblxxRequestDomain)appDomain;
            response = new HxzgZsCxYskmYsfpblxxResponseDomain();
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getZsxmDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f81\u6536\u9879\u76ee\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getZspmDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f81\u6536\u54c1\u76ee\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                request.setKmblbz("1");
                request.setYskmDm("");
                request.setYsfpblDm("");
                HxzgZsCxYskmYsfpblxx2ResponseDomain res = (HxzgZsCxYskmYsfpblxx2ResponseDomain)this.hxzsZs00326(request);
                if ("00".equals(res.getCode())) {
                    if (res.getDataList().isEmpty()) {
                        response.setCode("01");
                        response.setMess("\u91d1\u4e09\u8fd4\u56de\u9884\u7b97\u79d1\u76ee\u4e3a\u7a7a!");
                        return response;
                    }
                    if (res.getDataList().size() > 1) {
                        response.setCode("01");
                        StringBuffer mess = new StringBuffer("\u8fd4\u56de\u591a\u4e2a\u9884\u7b97\u79d1\u76ee\uff1a");
                        for (HXZGZS00326YskmblGridlbDomain temp : res.getDataList()) {
                            mess.append(String.valueOf(temp.getCode()) + "\u540d\u79f0" + temp.getCaption()).append(",");
                        }
                        response.setMess(mess.toString());
                        return response;
                    }
                    response.setYskmDm(res.getDataList().get(0).getCode());
                    response.setYskmmc(res.getDataList().get(0).getCaption());
                    request.setYskmDm(response.getYskmDm());
                    request.setKmblbz("2");
                    HxzgZsCxYskmYsfpblxx2ResponseDomain res2 = (HxzgZsCxYskmYsfpblxx2ResponseDomain)this.hxzsZs00326(request);
                    if ("00".equals(res2.getCode())) {
                        if (res2.getDataList().isEmpty()) {
                            response.setCode("01");
                            response.setMess("\u91d1\u4e09\u8fd4\u56de\u9884\u7b97\u5206\u6279\u6bd4\u4f8b\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                            return response;
                        }
                        if (res2.getDataList().size() > 1) {
                            response.setCode("01");
                            StringBuffer mess = new StringBuffer("\u8fd4\u56de\u591a\u4e2a\u9884\u7b97\u5206\u914d\u6bd4\u4f8b\uff1a");
                            for (HXZGZS00326YskmblGridlbDomain temp : res2.getDataList()) {
                                mess.append(String.valueOf(temp.getCode()) + "\u540d\u79f0" + temp.getCaption()).append(",");
                            }
                            response.setMess(mess.toString());
                            return response;
                        }
                        response.setYsfpblDm(res2.getDataList().get(0).getCode());
                        response.setYsfpblmc(res2.getDataList().get(0).getCaption());
                        break block12;
                    }
                    response.setCode("01");
                    response.setMess(res2.getMess());
                    return response;
                }
                response.setCode("01");
                response.setMess(res.getMess());
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    public TaxCommonReturnDomain hxzsZs00326(BaseAppServiceDomain appDomain) throws Exception {
        HxzgZsCxYskmYsfpblxx2ResponseDomain response;
        block7: {
            HxzgZsCxYskmYsfpblxxRequestDomain request = (HxzgZsCxYskmYsfpblxxRequestDomain)appDomain;
            response = new HxzgZsCxYskmYsfpblxx2ResponseDomain();
            HashMap<String, String> map = null;
            try {
                response.setCode("00");
                if (HstToolsUtil.isNullOrEmpty(request.getZsxmDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f81\u6536\u9879\u76ee\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                if (HstToolsUtil.isNullOrEmpty(request.getZspmDm())) {
                    response.setCode("01");
                    response.setMess("\u4f20\u5165\u5f81\u6536\u54c1\u76ee\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u68c0\u67e5!");
                    return response;
                }
                StringBuffer xml = new StringBuffer();
                xml.append("<taxML xsi:type=\"HXZGZS00326Request\" bbh=\"String\" xmlbh=\"String\" xmlmc=\"String\" xsi:schemaLocation=\"http://www.chinatax.gov.cn/dataspec/TaxMLBw_HXZG_ZS_00326_Request_V1.0.xsd\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("     <kmblbz>").append(request.getKmblbz()).append("</kmblbz>").append("     <hyDm>").append(request.getHyDm()).append("</hyDm>").append("     <zgswskfjDm>").append(request.getZgswskfjDm()).append("</zgswskfjDm>").append("     <zsxmDm>").append(request.getZsxmDm()).append("</zsxmDm>").append("     <zspmDm>").append(request.getZspmDm()).append("</zspmDm>").append("     <djzclxDm>").append(this.getNullStr(request.getDjzclxDm())).append("</djzclxDm>").append("     <dwlsgxDm>").append(this.getNullStr(request.getDwlsgxDm())).append("</dwlsgxDm>").append("     <yskmDm>").append(this.getNullStr(request.getYskmDm())).append("</yskmDm>").append("     <ysfpblDm>").append(this.getNullStr(request.getYsfpblDm())).append("</ysfpblDm>").append("     <jdxzDm>").append(this.getNullStr(request.getJdxzDm())).append("</jdxzDm>").append("     <sksxDm>").append(this.getNullStr(request.getSksxDm())).append("</sksxDm>").append("    <skzlDm>").append(this.getNullStr(request.getSkzlDm())).append("</skzlDm>").append("     <zfjglxDm>").append(this.getNullStr(request.getZfjglxDm())).append("</zfjglxDm>").append("     <kdqsszyqylxDm>").append(this.getNullStr(request.getKdqsszyqylxDm())).append("</kdqsszyqylxDm>").append("</taxML>");
                map = new HashMap<String, String>();
                map.put("tran_id", "SWZJ.HXZG.ZS.CXYSKMYSFPBLXX");
                map.put("tran_seq", EjbJ3Util.getUUID());
                Date date = new Date();
                map.put("tran_date", HstDateUtil.toDateString(date, "yyyyMMdd"));
                map.put("tran_time", HstDateUtil.toDateString(date, "HHmmssSSS"));
                map.put("sjry", this.getSjry(request));
                map.put("sjjg", this.getSjjg(request));
                map.put("ywbw", xml.toString());
                Gt3ServiceDomain domain = this.doGt3Ejb(map);
                if (domain == null) {
                    response.setCode("01");
                    response.setMess("\u89e3\u6790\u5bf9\u8c61\u4e3a\u7a7a\uff0c\u8bf7\u60a8\u8054\u7cfb\u6709\u5173\u4eba\u5458!");
                    return response;
                }
                if ("0".equals(domain.getHead().getRtn_code()) && "000".equals(domain.getHead().getRtn_msg().getCode())) {
                    String resStr = domain.getBody();
                    HashMap<String, Class> mapClass = new HashMap<String, Class>();
                    mapClass.put("taxML", HXZGZS00326ResponseDomain.class);
                    mapClass.put("yskmblGrid", HXZGZS00326YskmblGridDomain.class);
                    mapClass.put("yskmblGridlb", HXZGZS00326YskmblGridlbDomain.class);
                    XmlHelper help = new XmlHelper("taxML", mapClass);
                    HXZGZS00326ResponseDomain res = (HXZGZS00326ResponseDomain)help.xmlStrParser(resStr);
                    if (res != null && res.getYskmblGrid() != null && !res.getYskmblGrid().getYskmblGridlb().isEmpty()) {
                        response.getDataList().addAll(res.getYskmblGrid().getYskmblGridlb());
                    }
                    break block7;
                }
                response.setCode("01");
                response.setMess("\u91d1\u4e09\u9519\u8bef\u8fd4\u56de\uff1aMessage[" + domain.getHead().getRtn_msg().getMessage() + "]Reason[" + domain.getHead().getRtn_msg().getReason() + "]");
                return response;
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                throw new Exception(e);
            }
        }
        return response;
    }

    public Gt3ServiceDomain doGt3Ejb(Map<String, String> map) throws Exception {
        String strResult;
        Gt3ServiceDomain domain;
        XtGt3LogDomain gt3LogDomain;
        block20: {
            Gt3ServiceDomain gt3ServiceDomain;
            block21: {
                block22: {
                    block17: {
                        Gt3ServiceDomain gt3ServiceDomain2;
                        block18: {
                            block19: {
                                gt3LogDomain = null;
                                domain = null;
                                EjbJ3Util ejb = new EjbJ3Util();
                                String requestXml = ejb.creatEjbXml(map);
                                if ("Y".equals(WebConstants.GT3_LOG)) {
                                    gt3LogDomain = new XtGt3LogDomain();
                                    gt3LogDomain.setTranId(map.get("tran_id"));
                                    gt3LogDomain.setReqData(requestXml);
                                    this.saveGt3Log(gt3LogDomain);
                                }
                                _logger.debug((Object)("tran_id[" + map.get("tran_id") + "]tran_seq[" + map.get("tran_seq") + "]\u8bf7\u6c42\u62a5\u6587[" + requestXml + "]"));
                                strResult = ejb.doCommService(requestXml);
                                _logger.debug((Object)("tran_id[" + map.get("tran_id") + "]tran_seq[" + map.get("tran_seq") + "]\u8fd4\u56de\u62a5\u6587[" + strResult + "]"));
                                if (!HstToolsUtil.isNullOrEmpty(strResult)) break block17;
                                gt3ServiceDomain2 = domain;
                                if (!"Y".equals(WebConstants.GT3_LOG)) break block18;
                                if (domain == null || "9999".equals(domain.getHead().getRtn_code())) break block19;
                                gt3LogDomain.setClbz("1");
                                gt3LogDomain.setResData(domain.getBody());
                                gt3LogDomain.setResCode(String.valueOf(domain.getHead().getRtn_code()) + domain.getHead().getRtn_msg().getCode());
                                gt3LogDomain.setResMess(String.valueOf(domain.getHead().getRtn_msg().getMessage()) + domain.getHead().getRtn_msg().getReason());
                            }
                            this.updateGt3Log(gt3LogDomain);
                        }
                        return gt3ServiceDomain2;
                    }
                    if (!strResult.startsWith("<ns0:service")) break block20;
                    domain = new Gt3ServiceDomain();
                    domain.getHead().setRtn_code("9999");
                    domain.getHead().getRtn_msg().setMessage("\u89e3\u6790\u8fd4\u56de\u62a5\u6587\u4e2d\u5305\u542b\u5df2<ns0:service\u5f00\u5934\uff0c\u8be6\u7ec6\u89c1\u65e5\u5fd7\u6216\u8005\u6570\u636e\u8868XT_GT3_LOG");
                    _logger.error((Object)("tran_id[" + map.get("tran_id") + "]tran_seq[" + map.get("tran_seq") + "]\u8fd4\u56de\u9519\u8bef\u62a5\u6587[" + strResult + "]"));
                    if ("Y".equals(WebConstants.GT3_LOG)) {
                        gt3LogDomain.setClbz("1");
                        if (strResult.length() > 2000) {
                            gt3LogDomain.setErrMess(strResult.substring(0, 1999));
                        } else {
                            gt3LogDomain.setErrMess(strResult);
                        }
                    }
                    gt3ServiceDomain = domain;
                    if (!"Y".equals(WebConstants.GT3_LOG)) break block21;
                    if (domain == null || "9999".equals(domain.getHead().getRtn_code())) break block22;
                    gt3LogDomain.setClbz("1");
                    gt3LogDomain.setResData(domain.getBody());
                    gt3LogDomain.setResCode(String.valueOf(domain.getHead().getRtn_code()) + domain.getHead().getRtn_msg().getCode());
                    gt3LogDomain.setResMess(String.valueOf(domain.getHead().getRtn_msg().getMessage()) + domain.getHead().getRtn_msg().getReason());
                }
                this.updateGt3Log(gt3LogDomain);
            }
            return gt3ServiceDomain;
        }
        try {
            try {
                domain = this.parseJsbw(strResult);
            }
            catch (Exception e) {
                e.getStackTrace();
                _logger.error((Object)e.getMessage());
                if ("Y".equals(WebConstants.GT3_LOG)) {
                    gt3LogDomain.setClbz("9");
                    if (e.toString().length() > 2000) {
                        gt3LogDomain.setErrMess(e.toString().substring(0, 1999));
                    } else {
                        gt3LogDomain.setErrMess(e.toString());
                    }
                }
                throw new Exception(e);
            }
        }
        catch (Throwable throwable) {
            if ("Y".equals(WebConstants.GT3_LOG)) {
                if (domain != null && !"9999".equals(domain.getHead().getRtn_code())) {
                    gt3LogDomain.setClbz("1");
                    gt3LogDomain.setResData(domain.getBody());
                    gt3LogDomain.setResCode(String.valueOf(domain.getHead().getRtn_code()) + domain.getHead().getRtn_msg().getCode());
                    gt3LogDomain.setResMess(String.valueOf(domain.getHead().getRtn_msg().getMessage()) + domain.getHead().getRtn_msg().getReason());
                }
                this.updateGt3Log(gt3LogDomain);
            }
            throw throwable;
        }
        if ("Y".equals(WebConstants.GT3_LOG)) {
            if (domain != null && !"9999".equals(domain.getHead().getRtn_code())) {
                gt3LogDomain.setClbz("1");
                gt3LogDomain.setResData(domain.getBody());
                gt3LogDomain.setResCode(String.valueOf(domain.getHead().getRtn_code()) + domain.getHead().getRtn_msg().getCode());
                gt3LogDomain.setResMess(String.valueOf(domain.getHead().getRtn_msg().getMessage()) + domain.getHead().getRtn_msg().getReason());
            }
            this.updateGt3Log(gt3LogDomain);
        }
        return domain;
    }

    public Gt3ServiceDomain parseJsbw(String strResult) {
        HashMap<String, Class> mapClass = new HashMap<String, Class>();
        mapClass.put("head", Gt3HeadDomain.class);
        mapClass.put("rtn_msg", Gt3RtnMsgDomain.class);
        Gt3ServiceDomain domain = XmlUtil.xmlStrToBean(strResult, Gt3ServiceDomain.class, "service", mapClass);
        return domain;
    }

    @Override
    @Transactional(readOnly=false, propagation=Propagation.REQUIRED)
    public void saveGt3Log(XtGt3LogDomain logDomain) throws Exception {
        logDomain.setReqTime(HstDateUtil.getYyyyMmddHhMmSs(HstDateUtil.toDateString(new Date(), AppServiceConstants.TIME_DATETIME_FORMAT)));
        logDomain.setClbz("0");
        this.logDao.saveGt3LogDomain(logDomain);
    }

    @Override
    @Transactional(readOnly=false, propagation=Propagation.REQUIRED)
    public void updateGt3Log(XtGt3LogDomain logDomain) throws Exception {
        if (logDomain == null) {
            return;
        }
        logDomain.setResTime(HstDateUtil.getYyyyMmddHhMmSs(HstDateUtil.toDateString(new Date(), AppServiceConstants.TIME_DATETIME_FORMAT)));
        this.logDao.saveGt3LogDomain(logDomain);
    }

    public String getNullStr(String str) {
        if (HstToolsUtil.isNullOrEmpty(str)) {
            return "";
        }
        return str;
    }

    public String doubleAdd(String d1, String d2) {
        if (HstToolsUtil.isNullOrEmpty(d1)) {
            d1 = "0.00";
        }
        if (HstToolsUtil.isNullOrEmpty(d2)) {
            d2 = "0.00";
        }
        double hj = Double.parseDouble(d1) + Double.parseDouble(d2);
        return String.valueOf(DecimalFormatUtil.DecimalFormat(hj));
    }

    public String getNullDouble(String str) {
        if (HstToolsUtil.isNullOrEmpty(str)) {
            return "0.00";
        }
        return str;
    }

    public String formatDate(String str) {
        if (HstToolsUtil.isNullOrEmpty(str)) {
            return "";
        }
        if (str.indexOf(".") >= 0) {
            str = str.substring(0, str.indexOf("."));
        }
        return str;
    }

    public String substringDate(String date) {
        if (HstToolsUtil.isNullOrEmpty(date)) {
            return "";
        }
        if (date.length() <= 10) {
            return date;
        }
        date = date.substring(0, 10);
        return date;
    }

    public String getGrsdsSbYwbw(GsglSbGrsdsScjysdARequestDomain scjyA) {
        HashMap<String, String> map = new HashMap<String, String>();
        String scyjsdXml = this.getGrscjysdXml(scjyA);
        map.put("TaxMLBd_BDA0610753_v1.1.xsd", scyjsdXml);
        System.out.println(scyjsdXml);
        String ywbw = IitmsNfjrMessageCompressor.compressAndBase64(map);
        return ywbw;
    }

    public String getGrscjysdXml(GsglSbGrsdsScjysdARequestDomain dom) {
        StringBuffer sb = new StringBuffer("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>").append("<taxML xsi:type=\"scjysdgrsdsnssbbaljbYwbw\" xmlbh=\"BDA0610753\" bbh=\"v1.1\" xmlmc=\"\u751f\u4ea7\u3001\u7ecf\u8425\u6240\u5f97\u4e2a\u4eba\u6240\u5f97\u7a0e\u7eb3\u7a0e\u7533\u62a5\u8868\uff08A\u8868\uff09\" xmlns=\"http://www.chinatax.gov.cn/dataspec/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">").append("  <scjysdgrsdsnssbbaljb>").append("    <scjysdgrsdsnssbbaljbHead>").append("      <skssqq>").append(dom.getSssqq()).append("</skssqq>").append("      <skssqz>").append(dom.getSssqz()).append("</skssqz>").append("      <tbrq>").append(dom.getTbrq()).append("</tbrq>").append("      <dljg>").append(this.getNullStr(dom.getDljg())).append("</dljg>").append("      <jbr>").append(dom.getJbr()).append("</jbr>").append("      <dljbrzyzjhm>").append(this.getNullStr(dom.getDljbrzyzjhm())).append("</dljbrzyzjhm>").append("      <dlsbrq>").append(this.getNullStr(dom.getDlsbrq())).append("</dlsbrq>").append("      <slswjgDm>").append(dom.getSlswjgDm()).append("</slswjgDm>").append("      <slswjgmc>").append(this.getNullStr(dom.getSlswjgmc())).append("</slswjgmc>").append("      <slrDm>").append(dom.getSlrDm()).append("</slrDm>").append("      <slr>").append(this.getNullStr(dom.getSlr())).append("</slr>").append("      <slrq>").append(dom.getSlrq()).append("</slrq>").append("      <sblxDm>").append(dom.getSblxDm()).append("</sblxDm>").append("      <ssglyDm>").append(this.getNullStr(dom.getSsglyDm())).append("</ssglyDm>").append("    </scjysdgrsdsnssbbaljbHead>").append("    <scjysdgrsdsnssbbaljbBody>").append("      <tzzxx>").append("        <xm>").append(dom.getXm()).append("</xm>").append("        <sfzjlxDm>").append(dom.getSfzjlxDm()).append("</sfzjlxDm>").append("        <sfzjlxmc>").append(this.getNullStr(dom.getSfzjlxmc())).append("</sfzjlxmc>").append("        <sfzjhm>").append(dom.getSfzjhm()).append("</sfzjhm>").append("        <gjdqdm>").append(dom.getGjdqdm()).append("</gjdqdm>").append("        <gjdqmc>").append(this.getNullStr(dom.getGjdqmc())).append("</gjdqmc>").append("        <nsrsbh>").append(dom.getNsrsbh()).append("</nsrsbh>").append("        <djxh>").append(dom.getDjxh()).append("</djxh>").append("      </tzzxx>").append("      <btzdwxx>").append("        <djxh>").append(dom.getQyDjxh()).append("</djxh>").append("        <zgswjgDm>").append(dom.getZgswjgDm()).append("</zgswjgDm>").append("        <zgswksDm>").append(dom.getZgswksDm()).append("</zgswksDm>").append("        <nsrsbh>").append(dom.getQyNsrsbh()).append("</nsrsbh>").append("        <mc>").append(dom.getMc()).append("</mc>").append("        <zsfsdldm>").append(dom.getZsfsdldm()).append("</zsfsdldm>").append("        <zsfsxldm>").append(dom.getZsfsxldm()).append("</zsfsxldm>").append("        <lx>").append(dom.getLx()).append("</lx>").append("      </btzdwxx>").append("      <sre>").append(this.getNullDouble(dom.getSre())).append("</sre>").append("      <cbfyze>").append(this.getNullDouble(dom.getCbfyze())).append("</cbfyze>").append("      <lrze>").append(this.getNullDouble(dom.getLrze())).append("</lrze>").append("      <mbksje>").append(this.getNullDouble(dom.getMbksje())).append("</mbksje>").append("      <fpbl>").append(this.getNullDouble(dom.getFpbl())).append("</fpbl>").append("      <tzzbzfykce>").append(this.getNullDouble(dom.getTzzbzfykce())).append("</tzzbzfykce>").append("      <ynssde>").append(this.getNullDouble(dom.getYnssde())).append("</ynssde>").append("      <yssdl>").append(this.getNullDouble(dom.getYssdl())).append("</yssdl>").append("      <sl>").append(this.getNullDouble(dom.getSl())).append("</sl>").append("      <sskcs>").append(this.getNullDouble(dom.getSskcs())).append("</sskcs>").append("      <ynse>").append(this.getNullDouble(dom.getYnse())).append("</ynse>").append("      <jmse>").append(this.getNullDouble(dom.getJmse())).append("</jmse>").append("      <yijse>").append(this.getNullDouble(dom.getYijse())).append("</yijse>").append("      <ybtse>").append(this.getNullDouble(dom.getYbtse())).append("</ybtse>").append("      <sdxmDm>").append(dom.getSdxmDm()).append("</sdxmDm>").append("      <grsdssdxmMc>").append(this.getNullStr(dom.getGrsdssdxmMc())).append("</grsdssdxmMc>").append("      <zspmDm>").append(dom.getZspmDm()).append("</zspmDm>").append("      <zspmMc>").append(this.getNullStr(dom.getZspmMc())).append("</zspmMc>").append("      <zszmDm>").append(this.getNullStr(dom.getZszmDm())).append("</zszmDm>").append("    </scjysdgrsdsnssbbaljbBody>").append("  </scjysdgrsdsnssbbaljb>").append("</taxML>");
        return sb.toString();
    }

    public String getSjry(BaseGt3ServiceDomain request) {
        return HstToolsUtil.isNullOrEmpty(request.getSjry()) ? WebConstants.GT3_SHHBSPT_SJRY : request.getSjry();
    }

    public String getSjjg(BaseGt3ServiceDomain request) {
        return HstToolsUtil.isNullOrEmpty(request.getSjjg()) ? WebConstants.GT3_SHHBSPT_SJJG : request.getSjjg();
    }
}
