|
@@ -0,0 +1,390 @@
|
|
|
+package com.jeeplus.modules.ruralprojectrecords.utils;
|
|
|
+
|
|
|
+import com.google.common.collect.Lists;
|
|
|
+import com.jeeplus.common.utils.StringUtils;
|
|
|
+import com.jeeplus.modules.ruralprojectrecords.entity.ReportedConsultant;
|
|
|
+import com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecordsReported;
|
|
|
+import com.jeeplus.modules.sys.entity.MainDictDetail;
|
|
|
+import com.jeeplus.modules.sys.entity.User;
|
|
|
+import com.jeeplus.modules.sys.utils.DictUtils;
|
|
|
+import com.jeeplus.modules.sys.utils.UserUtils;
|
|
|
+import org.apache.cxf.endpoint.Client;
|
|
|
+import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
|
|
|
+
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
+import java.util.*;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author: 大猫
|
|
|
+ * @create: 2020-12-18 10:42
|
|
|
+ **/
|
|
|
+public class RuralProjectReportedUtil {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 项目上报数据处理(转map)
|
|
|
+ * @param reported
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static Map<String ,String> reportedDataManage(RuralProjectRecordsReported reported){
|
|
|
+ Map<String,String> map = new LinkedHashMap<>();
|
|
|
+ //业务系统项目主键,consulting_project表rowguid字段
|
|
|
+ map.put("Project_Guid",reported.getId());
|
|
|
+ //咨询企业组织机构代码
|
|
|
+ map.put("JiGou_Guid","");
|
|
|
+ //咨询企业唯一标识,省站系统可以查询到
|
|
|
+ map.put("DanWei_Guid","46bc2ef1-5590-461a-8877-fc6c658c9cd1");
|
|
|
+ //项目名称,consulting_project表projectname字段
|
|
|
+ map.put("ProjectName",reported.getProjectName());
|
|
|
+ //项目档案编号,consulting_project表danganno字段
|
|
|
+ map.put("ProjectCode",reported.getProjectRecordId());
|
|
|
+ //工程用途,直接手填
|
|
|
+
|
|
|
+ List<MainDictDetail> PorjectUseList = DictUtils.getMainDictList("PorjectUse");
|
|
|
+ for (MainDictDetail info: PorjectUseList) {
|
|
|
+ if(info.getValue().equals(reported.getPorjectUse())) {
|
|
|
+ map.put("PorjectUse",info.getLabel());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //工程结构,直接手填
|
|
|
+ List<MainDictDetail> PorjectStructList = DictUtils.getMainDictList("PorjectStruct");
|
|
|
+ for (MainDictDetail info: PorjectStructList) {
|
|
|
+ if(info.getValue().equals(reported.getPorjectStruct())) {
|
|
|
+ map.put("PorjectStruct",info.getLabel());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //地上层数,直接手填
|
|
|
+ map.put("FloorUp",reported.getFloorUp().toString());
|
|
|
+ //地下层数,直接手填
|
|
|
+ map.put("FloorDown",reported.getFloorDown().toString());
|
|
|
+ //省份
|
|
|
+ map.put("SuoZaiDi_Sheng",reported.getProvince());
|
|
|
+ //地市
|
|
|
+ map.put("SuoZaiDi_Shi",reported.getCity());
|
|
|
+ //区县
|
|
|
+ map.put("SuoZaiDi_Xian",reported.getCounty());
|
|
|
+ //咨询项目类型,直接手填
|
|
|
+ List<MainDictDetail> ProjectTypeList = DictUtils.getMainDictList("ProjectType");
|
|
|
+ for (MainDictDetail info: ProjectTypeList) {
|
|
|
+ if(info.getValue().equals(reported.getProjectType())) {
|
|
|
+ map.put("ProjectType",info.getLabel());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //建筑面积(m2),直接手填
|
|
|
+ map.put("GCGM_Value",reported.getGCGMValue().toString());
|
|
|
+ //计量单位,直接手填
|
|
|
+
|
|
|
+ List<MainDictDetail> GCGMUnitList = DictUtils.getMainDictList("GCGM_Unit");
|
|
|
+ for (MainDictDetail info: GCGMUnitList) {
|
|
|
+ if(info.getValue().equals(reported.getGCGMUnit())) {
|
|
|
+ map.put("GCGM_Unit",info.getLabel());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //投资性质,直接手填
|
|
|
+ List<MainDictDetail> touZiXZList = DictUtils.getMainDictList("TouZiXZ");
|
|
|
+ for (MainDictDetail info: touZiXZList) {
|
|
|
+ if(info.getValue().equals(reported.getTouZiXZ())) {
|
|
|
+ map.put("TouZiXZ",info.getLabel());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //咨询标的额(万元)
|
|
|
+ map.put("ZiXunBDE",reported.getZiXunBDE().toString());
|
|
|
+ //其中土建造价(万元)
|
|
|
+ map.put("ZiXunBDE_TJ",reported.getZiXunBDETJ().toString());
|
|
|
+ //其中安装造价(万元)
|
|
|
+ map.put("ZiXunBDE_AZ",reported.getZiXunBDEAZ().toString());
|
|
|
+ //合同估算价(万元)
|
|
|
+ map.put("HeTongJia",reported.getHeTongJia().toString());
|
|
|
+ //送审价(万元)
|
|
|
+ map.put("SongShenJia",reported.getSongShenJia().toString());
|
|
|
+ //审定价(万元)
|
|
|
+ map.put("ShenDingJia",reported.getShenDingJia().toString());
|
|
|
+ //审核增减额(万元)
|
|
|
+ map.put("JingHeJianE",reported.getJingHeJianE().toString());
|
|
|
+ //审核增减率(%)
|
|
|
+ map.put("JingHeJianLv",reported.getJingHeJianLv().toString());
|
|
|
+ //咨询营业收入(万元)
|
|
|
+ map.put("ZiXunShouRu",reported.getZiXunShouRu());
|
|
|
+ //项目合同编号,consulting表contractno字段
|
|
|
+ map.put("ZiXunHTBH",reported.getZiXunHTBH());
|
|
|
+ //报告签发日期,consulting_report表issuredate字段
|
|
|
+ map.put("BaoGaoShuQianFaDate",reported.getBaoGaoShuQianFaDate());
|
|
|
+ //报告号,consulting_report表reportno字段
|
|
|
+ map.put("DangABH",reported.getDangABH());
|
|
|
+ //造价师姓名,直接手填
|
|
|
+ User user = UserUtils.get(reported.getXmFZR());
|
|
|
+ map.put("ProjectFZR",user.getName());
|
|
|
+ //造价师注册证号,直接手填
|
|
|
+ map.put("ZJSZhuCeZH",reported.getZaoJiaShiZhengHao());
|
|
|
+
|
|
|
+ //咨询员
|
|
|
+ List<ReportedConsultant> reportedConsultantList = reported.getReportedConsultantList();
|
|
|
+
|
|
|
+ Iterator iterator = reportedConsultantList.iterator();
|
|
|
+ while (iterator.hasNext()) {
|
|
|
+ ReportedConsultant data = (ReportedConsultant) iterator.next();
|
|
|
+ if (null == data.getId()){
|
|
|
+ iterator.remove();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //获取填写的咨询员数量
|
|
|
+ Integer count = reportedConsultantList.size();
|
|
|
+ for (int i = 1;i<=count; i++){
|
|
|
+ User ziXunYuaUser = UserUtils.get(reportedConsultantList.get(i-1).getZixunyuan());
|
|
|
+ map.put("ZiXunYuan_"+i,ziXunYuaUser.getName());
|
|
|
+ map.put("ZhuCe_ZiGe_ZH"+i,reportedConsultantList.get(i-1).getZhucezigezhID());
|
|
|
+ map.put("WorkNR_"+i,reportedConsultantList.get(i-1).getWordnr());
|
|
|
+ }
|
|
|
+ //如果咨询员人数小于20人,则进行补齐
|
|
|
+ if(count<20){
|
|
|
+ for (int i = count+1;i<=20; i++){
|
|
|
+ map.put("ZiXunYuan_"+i,"");
|
|
|
+ map.put("ZhuCe_ZiGe_ZH"+i,"");
|
|
|
+ map.put("WorkNR_"+i,"");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //委托单位名称,consulting_project表clientname字段
|
|
|
+ map.put("WeiTuoDW",reported.getWeiTuoDW());
|
|
|
+ //委托单位联系电话
|
|
|
+ map.put("LianXiDH",reported.getLianXiDH());
|
|
|
+ //报告签发日期,consulting_report表issuredate字段
|
|
|
+ map.put("ReportDate",reported.getBaoGaoShuQianFaDate());
|
|
|
+ //上报日期,当天
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ String date = sdf.format(new Date());
|
|
|
+ map.put("UpdateDate",date);
|
|
|
+ //钢材用量
|
|
|
+ map.put("GCYL",reported.getGCYL().toString());
|
|
|
+ //水泥用量
|
|
|
+ map.put("SNYL",reported.getSNYL().toString());
|
|
|
+ //预拌砼用量
|
|
|
+ map.put("YBTYL",reported.getYBTYL().toString());
|
|
|
+ //人工工日用量
|
|
|
+ map.put("RGGRYL",reported.getRGGRYL().toString());
|
|
|
+ //状态,默认0
|
|
|
+ map.put("Status","0");
|
|
|
+ //合同类型
|
|
|
+ List<MainDictDetail> HeTongLeiXingList = DictUtils.getMainDictList("HeTongLeiXing");
|
|
|
+ for (MainDictDetail info: HeTongLeiXingList) {
|
|
|
+ if(info.getValue().equals(reported.getHeTongLeiXing())) {
|
|
|
+ map.put("HeTongLeiXing",info.getLabel());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //土建
|
|
|
+ List<MainDictDetail> civilList = DictUtils.getMainDictList("civil_project");
|
|
|
+ String civilStr = getValue(civilList,reported.getTJProjectList());
|
|
|
+ //装饰
|
|
|
+ List<MainDictDetail> zsList = DictUtils.getMainDictList("decorate_project");
|
|
|
+ String zsStr = getValue(zsList,reported.getZSProjectList());
|
|
|
+
|
|
|
+ String tjzsStr = "";
|
|
|
+ //判断土建和装饰是否已选择值
|
|
|
+ if(StringUtils.isNotBlank(civilStr) && StringUtils.isNotBlank(zsStr)){
|
|
|
+ tjzsStr = civilStr+";"+zsStr;
|
|
|
+ }else if(StringUtils.isBlank(civilStr) && StringUtils.isNotBlank(zsStr)){
|
|
|
+ tjzsStr = zsStr;
|
|
|
+ }else if(StringUtils.isNotBlank(civilStr) && StringUtils.isBlank(zsStr)){
|
|
|
+ tjzsStr = civilStr;
|
|
|
+ }
|
|
|
+ //包含内容土建,包含内容装饰
|
|
|
+ map.put("ZxxmNr_TuJianAndZhuangShi",tjzsStr);
|
|
|
+
|
|
|
+ //安装
|
|
|
+ List<MainDictDetail> azList = DictUtils.getMainDictList("install_project");
|
|
|
+ String azStr = getValue(azList,reported.getAZProjectList());
|
|
|
+ //包含内容安装
|
|
|
+ map.put("ZxxmNr_AnZhuang",azStr);
|
|
|
+
|
|
|
+ //市政
|
|
|
+ List<MainDictDetail> szList = DictUtils.getMainDictList("services_project");
|
|
|
+ String szStr = getValue(szList,reported.getSZProjectList());
|
|
|
+ //包含内容市政
|
|
|
+ map.put("ZxxmNr_ShiZheng",szStr);
|
|
|
+
|
|
|
+ //园林
|
|
|
+ List<MainDictDetail> fgList = DictUtils.getMainDictList("park_project");
|
|
|
+ String fgStr = getValue(fgList,reported.getFGYLProjectList());
|
|
|
+ //包含内容仿古园林
|
|
|
+ map.put("ZxxmNr_FangGuYuanLin",fgStr);
|
|
|
+ //其它包含内容
|
|
|
+ map.put("GCTZ11",reported.getQTProjec());
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 处理多选框内容
|
|
|
+ * @param detailList
|
|
|
+ * @param xmNrList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static String getValue(List<MainDictDetail> detailList,List<String> xmNrList){
|
|
|
+ List<String> result = Lists.newArrayList();
|
|
|
+ if(xmNrList != null){
|
|
|
+ for (String xmNr: xmNrList) {
|
|
|
+ for (MainDictDetail detail: detailList) {
|
|
|
+ if(xmNr.equals(detail.getValue())){
|
|
|
+ result.add(detail.getLabel());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ String str = StringUtils.join(result.toArray(), ";");
|
|
|
+ return str;
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ public static String client(String xml) {
|
|
|
+ try {
|
|
|
+
|
|
|
+ JaxWsDynamicClientFactory factroy = JaxWsDynamicClientFactory.newInstance();
|
|
|
+ //DynamicClientFactory factroy = DynamicClientFactory.newInstance();
|
|
|
+ Client client = factroy.createClient("http://www.jszj.com.cn/SOA12345/UploadExpenseToConstract.asmx?wsdl");
|
|
|
+ Object[] results = client.invoke("InsertZjzxProject", xml);
|
|
|
+ System.out.println("client方式:" + results[0]);
|
|
|
+ return results[0].toString();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void main(String[] args) {
|
|
|
+ try {
|
|
|
+ String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
|
|
+ "<Data>\n" +
|
|
|
+ " <DataBody>\n" +
|
|
|
+ " <DATA>\n" +
|
|
|
+ " <ZiXunXM>\n" +
|
|
|
+ " <List>\n" +
|
|
|
+ " <Row>\n" +
|
|
|
+ " <Project_Guid>0f462eaebc9048c98567965dbdf727fa</Project_Guid>\n" +
|
|
|
+ " <JiGou_Guid/>\n" +
|
|
|
+ " <DanWei_Guid>46bc2ef1-5590-461a-8877-fc6c658c9cd1</DanWei_Guid>\n" +
|
|
|
+ " <ProjectName>测试项目1204-03</ProjectName>\n" +
|
|
|
+ " <ProjectCode>2020-咨询-0193</ProjectCode>\n" +
|
|
|
+ " <PorjectUse>电力工程</PorjectUse>\n" +
|
|
|
+ " <PorjectStruct>其他</PorjectStruct>\n" +
|
|
|
+ " <FloorUp>0</FloorUp>\n" +
|
|
|
+ " <FloorDown>0</FloorDown>\n" +
|
|
|
+ " <SuoZaiDi_Sheng>江苏省</SuoZaiDi_Sheng>\n" +
|
|
|
+ " <SuoZaiDi_Shi>苏州</SuoZaiDi_Shi>\n" +
|
|
|
+ " <SuoZaiDi_Xian>太仓</SuoZaiDi_Xian>\n" +
|
|
|
+ " <ProjectType>工程结算审核</ProjectType>\n" +
|
|
|
+ " <GCGM_Value>1000.0</GCGM_Value>\n" +
|
|
|
+ " <GCGM_Unit>项</GCGM_Unit>\n" +
|
|
|
+ " <TouZiXZ>国有投资</TouZiXZ>\n" +
|
|
|
+ " <ZiXunBDE>560.0</ZiXunBDE>\n" +
|
|
|
+ " <ZiXunBDE_TJ>200.0</ZiXunBDE_TJ>\n" +
|
|
|
+ " <ZiXunBDE_AZ>230.0</ZiXunBDE_AZ>\n" +
|
|
|
+ " <HeTongJia>5000.0</HeTongJia>\n" +
|
|
|
+ " <SongShenJia>4000.0</SongShenJia>\n" +
|
|
|
+ " <ShenDingJia>5000.0</ShenDingJia>\n" +
|
|
|
+ " <JingHeJianE>1000.0</JingHeJianE>\n" +
|
|
|
+ " <JingHeJianLv>25.0</JingHeJianLv>\n" +
|
|
|
+ " <ZiXunShouRu>14</ZiXunShouRu>\n" +
|
|
|
+ " <ZiXunHTBH>2020兴光/工程咨询0005</ZiXunHTBH>\n" +
|
|
|
+ " <BaoGaoShuQianFaDate>2020-12-18</BaoGaoShuQianFaDate>\n" +
|
|
|
+ " <DangABH>苏兴咨字【2020】0092</DangABH>\n" +
|
|
|
+ " <ProjectFZR>市场主任</ProjectFZR>\n" +
|
|
|
+ " <ZJSZhuCeZH>KZ157310</ZJSZhuCeZH>\n" +
|
|
|
+ " <ZiXunYuan_1>市场</ZiXunYuan_1>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH1>ZS12357</ZhuCe_ZiGe_ZH1>\n" +
|
|
|
+ " <WorkNR_1>审核</WorkNR_1>\n" +
|
|
|
+ " <ZiXunYuan_2/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH2/>\n" +
|
|
|
+ " <WorkNR_2/>\n" +
|
|
|
+ " <ZiXunYuan_3/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH3/>\n" +
|
|
|
+ " <WorkNR_3/>\n" +
|
|
|
+ " <ZiXunYuan_4/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH4/>\n" +
|
|
|
+ " <WorkNR_4/>\n" +
|
|
|
+ " <ZiXunYuan_5/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH5/>\n" +
|
|
|
+ " <WorkNR_5/>\n" +
|
|
|
+ " <ZiXunYuan_6/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH6/>\n" +
|
|
|
+ " <WorkNR_6/>\n" +
|
|
|
+ " <ZiXunYuan_7/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH7/>\n" +
|
|
|
+ " <WorkNR_7/>\n" +
|
|
|
+ " <ZiXunYuan_8/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH8/>\n" +
|
|
|
+ " <WorkNR_8/>\n" +
|
|
|
+ " <ZiXunYuan_9/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH9/>\n" +
|
|
|
+ " <WorkNR_9/>\n" +
|
|
|
+ " <ZiXunYuan_10/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH10/>\n" +
|
|
|
+ " <WorkNR_10/>\n" +
|
|
|
+ " <ZiXunYuan_11/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH11/>\n" +
|
|
|
+ " <WorkNR_11/>\n" +
|
|
|
+ " <ZiXunYuan_12/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH12/>\n" +
|
|
|
+ " <WorkNR_12/>\n" +
|
|
|
+ " <ZiXunYuan_13/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH13/>\n" +
|
|
|
+ " <WorkNR_13/>\n" +
|
|
|
+ " <ZiXunYuan_14/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH14/>\n" +
|
|
|
+ " <WorkNR_14/>\n" +
|
|
|
+ " <ZiXunYuan_15/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH15/>\n" +
|
|
|
+ " <WorkNR_15/>\n" +
|
|
|
+ " <ZiXunYuan_16/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH16/>\n" +
|
|
|
+ " <WorkNR_16/>\n" +
|
|
|
+ " <ZiXunYuan_17/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH17/>\n" +
|
|
|
+ " <WorkNR_17/>\n" +
|
|
|
+ " <ZiXunYuan_18/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH18/>\n" +
|
|
|
+ " <WorkNR_18/>\n" +
|
|
|
+ " <ZiXunYuan_19/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH19/>\n" +
|
|
|
+ " <WorkNR_19/>\n" +
|
|
|
+ " <ZiXunYuan_20/>\n" +
|
|
|
+ " <ZhuCe_ZiGe_ZH20/>\n" +
|
|
|
+ " <WorkNR_20/>\n" +
|
|
|
+ " <WeiTuoDW>委托施工1125-01</WeiTuoDW>\n" +
|
|
|
+ " <LianXiDH>025-8805213</LianXiDH>\n" +
|
|
|
+ " <ReportDate>2020-12-18</ReportDate>\n" +
|
|
|
+ " <UpdateDate>2020-12-18</UpdateDate>\n" +
|
|
|
+ " <GCYL>0.0</GCYL>\n" +
|
|
|
+ " <SNYL>0.0</SNYL>\n" +
|
|
|
+ " <YBTYL>0.0</YBTYL>\n" +
|
|
|
+ " <RGGRYL>1100.0</RGGRYL>\n" +
|
|
|
+ " <Status>0</Status>\n" +
|
|
|
+ " <HeTongLeiXing>造价咨询合同</HeTongLeiXing>\n" +
|
|
|
+ " <ZxxmNr_TuJianAndZhuangShi>主体结构工程;外墙饰面(不含幕墙);门窗工程</ZxxmNr_TuJianAndZhuangShi>\n" +
|
|
|
+ " <ZxxmNr_AnZhuang>通讯与智能化工程</ZxxmNr_AnZhuang>\n" +
|
|
|
+ " <ZxxmNr_ShiZheng>防洪堤挡土墙</ZxxmNr_ShiZheng>\n" +
|
|
|
+ " <ZxxmNr_FangGuYuanLin/>\n" +
|
|
|
+ " <GCTZ11>其他专业工程咨询项目造价包含内容说明</GCTZ11>\n" +
|
|
|
+ " </Row>\n" +
|
|
|
+ " </List>\n" +
|
|
|
+ " </ZiXunXM>\n" +
|
|
|
+ " </DATA>\n" +
|
|
|
+ " </DataBody>\n" +
|
|
|
+ "</Data>\n";
|
|
|
+ JaxWsDynamicClientFactory factroy = JaxWsDynamicClientFactory.newInstance();
|
|
|
+ //DynamicClientFactory factroy = DynamicClientFactory.newInstance();
|
|
|
+ Client client = factroy.createClient("http://www.jszj.com.cn/SOA12345/UploadExpenseToConstract.asmx?wsdl");
|
|
|
+ Object[] results = client.invoke("InsertZjzxProject", xml);
|
|
|
+ System.out.println("client方式:" + results[0]);
|
|
|
+ System.out.println(results[0]);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|