sqg 3 years ago
parent
commit
108cbfc193

+ 76 - 30
sc-service/src/main/java/com/huyi/service/common/flowable/controller/FlowableController.java

@@ -2,14 +2,8 @@ package com.huyi.service.common.flowable.controller;
 
 
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.huyi.service.base.entity.PubApprovalProcess;
-import com.huyi.service.base.entity.ZcFinanceInf;
-import com.huyi.service.base.entity.ZcFinanceProduct;
-import com.huyi.service.base.entity.ZcFinanceRecord;
-import com.huyi.service.base.service.IPubApprovalProcessService;
-import com.huyi.service.base.service.IZcFinanceInfService;
-import com.huyi.service.base.service.IZcFinanceProductService;
-import com.huyi.service.base.service.IZcFinanceRecordService;
+import com.huyi.service.base.entity.*;
+import com.huyi.service.base.service.*;
 import com.huyi.service.common.flowable.service.ApprovalService;
 import com.huyi.service.common.flowable.service.ApprovalService;
 import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
 import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
 import com.tianhu.common.core.utils.CommonUtil;
 import com.tianhu.common.core.utils.CommonUtil;
@@ -22,6 +16,7 @@ import com.tianhu.common.log.enums.BusinessType;
 import com.tianhu.common.security.annotation.PreAuthorize;
 import com.tianhu.common.security.annotation.PreAuthorize;
 import com.tianhu.common.security.service.TokenService;
 import com.tianhu.common.security.service.TokenService;
 import com.tianhu.system.api.RemoteCommonService;
 import com.tianhu.system.api.RemoteCommonService;
+import com.tianhu.system.api.RemoteSystemService;
 import com.tianhu.system.api.model.LoginUser;
 import com.tianhu.system.api.model.LoginUser;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cglib.beans.BeanMap;
 import org.springframework.cglib.beans.BeanMap;
@@ -31,6 +26,7 @@ import org.springframework.web.bind.annotation.*;
 
 
 import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.InvocationTargetException;
 import java.text.ParseException;
 import java.text.ParseException;
+import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashMap;
 import java.util.List;
 import java.util.List;
 import java.util.Map;
 import java.util.Map;
@@ -43,6 +39,9 @@ import java.util.Map;
 public class  FlowableController extends BaseController
 public class  FlowableController extends BaseController
 {
 {
 
 
+    @Autowired
+    private RemoteSystemService remoteSystemService;
+
     /**
     /**
      *  自动生成的流程审批服务类
      *  自动生成的流程审批服务类
      */
      */
@@ -68,6 +67,10 @@ public class  FlowableController extends BaseController
     private IZcFinanceInfService zcFinanceInfService;
     private IZcFinanceInfService zcFinanceInfService;
     @Autowired
     @Autowired
     private IZcFinanceProductService iZcFinanceProductService;
     private IZcFinanceProductService iZcFinanceProductService;
+    @Autowired
+    private ISysUserService iSysUserService;
+    @Autowired
+    private ISysUserCompanyRelService iSysUserCompanyRelService;
 
 
 
 
 
 
@@ -106,38 +109,81 @@ public class  FlowableController extends BaseController
             @RequestParam("companyId") String companyId) throws Exception {
             @RequestParam("companyId") String companyId) throws Exception {
         //核心企业融信开立审批
         //核心企业融信开立审批
         if("1000000000".equals(menuId)){
         if("1000000000".equals(menuId)){
+            //修改
             ZcFinanceInf zcFinanceInf = new ZcFinanceInf();
             ZcFinanceInf zcFinanceInf = new ZcFinanceInf();
             //主键
             //主键
             zcFinanceInf.setZfiId(id);
             zcFinanceInf.setZfiId(id);
             //审批通过
             //审批通过
             zcFinanceInf.setZfiCoreStatus("01");
             zcFinanceInf.setZfiCoreStatus("01");
-            zcFinanceInf.setZfiSupplierStatus("00");
-            //待签收
-            //TODO 不更改融信状态
-            //TODo 给核心企业经办人生成盖章待办
-            //TODO 发起人最终结果【通过】消息通知
-            zcFinanceInf.setZfiStatus("01");
             zcFinanceInfService.updateById(zcFinanceInf);
             zcFinanceInfService.updateById(zcFinanceInf);
-        //核心企业确权审批
+            //根据id获取融信信息
+            ZcFinanceInf financeInf = zcFinanceInfService.getById(id);
+            //核心企业id
+            String zfiCoreId = financeInf.getZfiCoreId();
+            //发起人
+            Long userId = Long.valueOf(financeInf.getCreateBy());
+            //融信编号
+            String zfiNumber = financeInf.getZfiNumber();
+            //获取发起人的姓名
+            SysUser sysUser = iSysUserService.getById(userId);
+            String userName = sysUser.getNickName();
+            //查询企业经办人
+            LambdaQueryWrapper<SysUserCompanyRel> lambdaQueryWrapper = new LambdaQueryWrapper<>();
+            //核心企业id
+            lambdaQueryWrapper.eq(SysUserCompanyRel::getSucrCompanyId,zfiCoreId);
+            //是否经办人(1:是)
+            lambdaQueryWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
+            List<SysUserCompanyRel> listUser = iSysUserCompanyRelService.findSysUserCompanyRels(lambdaQueryWrapper);
+            //获取发送人
+            Long use = null;
+            List<Long> longUserList = new ArrayList<>();
+            if(listUser.size() > 0) {
+                use = listUser.get(0).getSucrUserId();
+                longUserList.add(use);
+            }
+            //发送盖章待办
+            remoteSystemService.sendNotice(zfiCoreId, id,
+                    "核心企业开立审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
+                    "00",null,"03","0", longUserList,null);
+            //向发起人发起最终结果
+            //发送人
+            List<Long> longUser = new ArrayList<>();
+            longUser.add(userId);
+            remoteSystemService.sendNotice(zfiCoreId, id,
+                    "核心企业开立融信编号为" + zfiNumber + "的资料审批已通过",
+                    "01","01",null,"0", longUser, null);
+            //核心企业确权审批
         }else if("1000000007".equals(menuId)){
         }else if("1000000007".equals(menuId)){
             //融信主键
             //融信主键
             ZcFinanceInf zcFinanceInf = zcFinanceInfService.getById(id);
             ZcFinanceInf zcFinanceInf = zcFinanceInfService.getById(id);
-            //融信创建(0:供应商申请, 1:核心企业开立, 2:供应商开立)
-            String type = zcFinanceInf.getZfiCreateType();
-            if("0".equals(type)){
-                //TODO  删除不需要调用签收审批
-                //调用融资企业签收审批
-                approvalService.addSignApproval(CommonUtil.entityToMap(zcFinanceInf));
-            }else if("2".equals(type)){
-                //TODO  删除
-                //已生效
-                zcFinanceInf.setZfiStatus("02");
-                //签收时间
-                zcFinanceInf.setZfiSignDate(DateUtils.getNowDate());
-                zcFinanceInfService.updateById(zcFinanceInf);
+            zcFinanceInf.setZfiCoreStatus("01");
+            zcFinanceInfService.updateById(zcFinanceInf);
+            //核心企业Id
+            String zfiCoreId = zcFinanceInf.getZfiCoreId();
+            //融信编号
+            String zfiNumber = zcFinanceInf.getZfiNumber();
+            //发起人Id
+            Long userId = Long.valueOf(zcFinanceInf.getCreateBy());
+            //根据发起人Id获取发送人姓名
+            SysUser sysUser = iSysUserService.getById(userId);
+            //姓名
+            String userName = sysUser.getNickName();
+            //获取核心企业经办人
+            LambdaQueryWrapper<SysUserCompanyRel> queryWrapper = new LambdaQueryWrapper<>();
+            //核心企业Id
+            queryWrapper.eq(SysUserCompanyRel::getSucrCompanyId,zfiCoreId);
+            //是否经办人(1:是)
+            queryWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
+            List<SysUserCompanyRel> list = iSysUserCompanyRelService.findSysUserCompanyRels(queryWrapper);
+            Long use = null;
+            List<Long> longUserList = new ArrayList<>();
+            if(list.size() > 0){
+                use = list.get(0).getSucrUserId();
+                longUserList.add(use);
             }
             }
-            //TODO 将核心企业审批状态改为审批通过
-            //TODo 核心企业经办人盖章待办
+            remoteSystemService.sendNotice(zfiCoreId, id,
+                    "确权审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
+                    "00",null,"03","0", longUserList,null);
         }
         }
         //融资企业融信申请审批通过
         //融资企业融信申请审批通过
         else if("1000000002".equals(menuId)){
         else if("1000000002".equals(menuId)){

+ 102 - 49
sc-service/src/main/java/com/huyi/service/common/flowable/service/impl/ApprovalServiceImpl.java

@@ -8,17 +8,25 @@ import com.huyi.service.common.flowable.service.ApprovalService;
 import com.huyi.service.util.FlowableService;
 import com.huyi.service.util.FlowableService;
 import com.tianhu.common.core.utils.CommonUtil;
 import com.tianhu.common.core.utils.CommonUtil;
 import com.tianhu.common.core.utils.DateUtils;
 import com.tianhu.common.core.utils.DateUtils;
+import com.tianhu.common.security.service.TokenService;
+import com.tianhu.system.api.RemoteSystemService;
+import com.tianhu.system.api.model.LoginUser;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cglib.beans.BeanMap;
 import org.springframework.cglib.beans.BeanMap;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestBody;
 
 
+import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashMap;
 import java.util.List;
 import java.util.List;
 import java.util.Map;
 import java.util.Map;
 
 
 @Service
 @Service
 public class ApprovalServiceImpl implements ApprovalService {
 public class ApprovalServiceImpl implements ApprovalService {
+
+    @Autowired
+    private RemoteSystemService remoteSystemService;
+
     @Autowired
     @Autowired
     private FlowableService flowableService;
     private FlowableService flowableService;
     // 开始流程
     // 开始流程
@@ -41,6 +49,9 @@ public class ApprovalServiceImpl implements ApprovalService {
     private ApprovalService approvalService;
     private ApprovalService approvalService;
     @Autowired
     @Autowired
     private IZcFinanceProductService zcFinanceProductService;
     private IZcFinanceProductService zcFinanceProductService;
+    @Autowired
+    private TokenService tokenService;
+
 
 
 
 
     /**
     /**
@@ -52,36 +63,41 @@ public class ApprovalServiceImpl implements ApprovalService {
     @Override
     @Override
     public void coreApproval(@RequestBody Map map) throws Exception {
     public void coreApproval(@RequestBody Map map) throws Exception {
         Map<String, Object> flowParam = new HashMap<String, Object>();
         Map<String, Object> flowParam = new HashMap<String, Object>();
+        //融信Id
+        String zfiId = CommonUtil.objToString(map.get("zfiId"));
+        //融信编号
+        String zfiNumber = CommonUtil.objToString(map.get("zfiNumber"));
         //核心企业Id
         //核心企业Id
         String zfiCoreId = 	CommonUtil.objToString(map.get("zfiCoreId"));
         String zfiCoreId = 	CommonUtil.objToString(map.get("zfiCoreId"));
+        //融资企业Id
+        String zfiSupplierId = CommonUtil.objToString(map.get("zfiSupplierId"));
         LambdaQueryWrapper<SysCompany> queryWrapper = new LambdaQueryWrapper<>();
         LambdaQueryWrapper<SysCompany> queryWrapper = new LambdaQueryWrapper<>();
         queryWrapper.eq(SysCompany::getScyId,zfiCoreId);
         queryWrapper.eq(SysCompany::getScyId,zfiCoreId);
         List<SysCompany> list = iSysCompanyService.findSysCompanys(queryWrapper);
         List<SysCompany> list = iSysCompanyService.findSysCompanys(queryWrapper);
-        //根据企业id获取用户id
-        LambdaQueryWrapper<SysUserCompanyRel> userQuery = new LambdaQueryWrapper<>();
-        userQuery.eq(SysUserCompanyRel::getSucrCompanyId,zfiCoreId);
-        //是否经办人
-        userQuery.eq(SysUserCompanyRel::getSucrHandler,"1");
-        List<SysUserCompanyRel> userList = iSysUserCompanyRelService.findSysUserCompanyRels(userQuery);
-        //获取userId
-        String userId = String.valueOf(userList.get(0).getSucrUserId());
-        //获取userName
-        SysUser sysUser = iSysUserService.getById(userId);
-        String userName = sysUser.getNickName();
+        //核心企业名称
+        String scyName = list.get(0).getScyName();
         //查询当前操作员
         //查询当前操作员
+        LoginUser user = tokenService.getLoginUser();
+        //当前企业ID
+        String companyId = user.getSysUser().getCompanyId();
+        Long userId = user.getSysUser().getUserId();
         flowParam.put("menuId", "1000000000");
         flowParam.put("menuId", "1000000000");
-        flowParam.put("companyId", zfiCoreId);
+        flowParam.put("companyId", user.getSysUser().getCompanyId());
         //双主键
         //双主键
-        flowParam.put("businessKey", CommonUtil.objToString(map.get("zfiId")));
+        flowParam.put("businessKey", zfiId);
         //员工编号
         //员工编号
         flowParam.put("sessionUserId", userId);
         flowParam.put("sessionUserId", userId);
-            flowParam.put("name",userName + "在" + DateUtils.getDate() + "发起融信开立审批");
+        if (!CommonUtil.isEmpty(scyName)){
+            flowParam.put("name",scyName + "在" + DateUtils.getDate() + "发起融信开立审批");
+        }
         JSONObject jsonObj = new JSONObject(map);
         JSONObject jsonObj = new JSONObject(map);
         flowParam.put("paras", jsonObj.toString());
         flowParam.put("paras", jsonObj.toString());
         Map<String, Object> resMap = flowableService.apiPost(STRART_FLOW, flowParam);
         Map<String, Object> resMap = flowableService.apiPost(STRART_FLOW, flowParam);
         if("200".equals(resMap.get("code"))){
         if("200".equals(resMap.get("code"))){
             ZcFinanceInf zcFinanceInf = new ZcFinanceInf();
             ZcFinanceInf zcFinanceInf = new ZcFinanceInf();
-            zcFinanceInf.setZfiId(CommonUtil.objToString(map.get("zfiId")));
+            //主键
+            zcFinanceInf.setZfiId(zfiId);
+            //核心企业融资状态(00:审批中, 01:审批通过, 02:审批拒绝, 03:暂存)
             zcFinanceInf.setZfiCoreStatus("00");
             zcFinanceInf.setZfiCoreStatus("00");
             zcFinanceInfService.updateById(zcFinanceInf);
             zcFinanceInfService.updateById(zcFinanceInf);
         }else
         }else
@@ -90,15 +106,35 @@ public class ApprovalServiceImpl implements ApprovalService {
                 //修改状态为通过
                 //修改状态为通过
                 ZcFinanceInf zcFinanceInf = new ZcFinanceInf();
                 ZcFinanceInf zcFinanceInf = new ZcFinanceInf();
                 //融信Id
                 //融信Id
-                zcFinanceInf.setZfiId(CommonUtil.objToString(map.get("zfiId")));
+                zcFinanceInf.setZfiId(zfiId);
                 //核心企业融资状态(审批通过)
                 //核心企业融资状态(审批通过)
                 zcFinanceInf.setZfiCoreStatus("01");
                 zcFinanceInf.setZfiCoreStatus("01");
-                //审核通过(待签收)
-                zcFinanceInf.setZfiStatus("01");
-                zcFinanceInf.setUpdateBy(userId);
-                zcFinanceInf.setUpdateTime(DateUtils.getNowDate());
                 zcFinanceInfService.updateById(zcFinanceInf);
                 zcFinanceInfService.updateById(zcFinanceInf);
-                //TODO 发起人最终结果【通过】消息通知
+                //查询融资企业经办人
+                LambdaQueryWrapper<SysUserCompanyRel> lambdaQueryWrapper = new LambdaQueryWrapper<>();
+                //融资企业id
+                lambdaQueryWrapper.eq(SysUserCompanyRel::getSucrCompanyId,zfiSupplierId);
+                //是否经办人(1:是)
+                lambdaQueryWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
+                List<SysUserCompanyRel> listUser = iSysUserCompanyRelService.findSysUserCompanyRels(lambdaQueryWrapper);
+                //获取发送人
+                Long use = null;
+                List<Long> userIdList = new ArrayList<>();
+                if(listUser.size() > 0) {
+                    use = listUser.get(0).getSucrUserId();
+                    userIdList.add(use);
+                }
+                //发送盖章待办
+                remoteSystemService.sendNotice(zfiSupplierId, zfiId,
+                        "核心企业开立审批由"+ scyName + "发起的融信编号为" + zfiNumber + "的资料待盖章",
+                        "00",null,"03","0", userIdList,null);
+                //获取发送人
+                List<Long> longUser = new ArrayList<>();
+                longUser.add(userId);
+                //向发起人发送最终结果【通过】消息通知
+                remoteSystemService.sendNotice(companyId, String.valueOf(userId),
+                        "核心企业开立审批融信编号为" + zfiNumber + "的资料审批已通过",
+                        "01","01",null,"0", longUser, null);
             }else if ("450".equals(resMap.get("code"))) {
             }else if ("450".equals(resMap.get("code"))) {
                 throw new Exception("未配置审批流程");
                 throw new Exception("未配置审批流程");
             }else if (!"200".equals(resMap.get("code"))) {
             }else if (!"200".equals(resMap.get("code"))) {
@@ -180,24 +216,36 @@ public class ApprovalServiceImpl implements ApprovalService {
     @Override
     @Override
     public void coreConfirmationApproval(@RequestBody Map map) throws Exception {
     public void coreConfirmationApproval(@RequestBody Map map) throws Exception {
         Map<String, Object> flowParam = new HashMap<String, Object>();
         Map<String, Object> flowParam = new HashMap<String, Object>();
+        //主键
+        String zfiId = CommonUtil.objToString(map.get("zfiId"));
         //核心企业Id
         //核心企业Id
         String zfiCoreId = 	CommonUtil.objToString(map.get("zfiCoreId"));
         String zfiCoreId = 	CommonUtil.objToString(map.get("zfiCoreId"));
-        //根据企业id获取用户id
+        //根据主键获取实体
+        ZcFinanceInf financeInf = zcFinanceInfService.getById(zfiId);
+        //融信编号
+        String zfiNumber = financeInf.getZfiNumber();
+        //发起人
+        Long user = Long.valueOf(financeInf.getCreateBy());
+        //获取userName
+        SysUser sysUser = iSysUserService.getById(user);
+        String userName = sysUser.getNickName();
+        //获取核心企业经办人
         LambdaQueryWrapper<SysUserCompanyRel> userQuery = new LambdaQueryWrapper<>();
         LambdaQueryWrapper<SysUserCompanyRel> userQuery = new LambdaQueryWrapper<>();
         userQuery.eq(SysUserCompanyRel::getSucrCompanyId,zfiCoreId);
         userQuery.eq(SysUserCompanyRel::getSucrCompanyId,zfiCoreId);
         //是否经办人
         //是否经办人
         userQuery.eq(SysUserCompanyRel::getSucrHandler,"1");
         userQuery.eq(SysUserCompanyRel::getSucrHandler,"1");
         List<SysUserCompanyRel> userList = iSysUserCompanyRelService.findSysUserCompanyRels(userQuery);
         List<SysUserCompanyRel> userList = iSysUserCompanyRelService.findSysUserCompanyRels(userQuery);
-        //获取userId
-        String userId = String.valueOf(userList.get(0).getSucrUserId());
-        //获取userName
-        SysUser sysUser = iSysUserService.getById(userId);
-        String userName = sysUser.getNickName();
-
+        //获取经办人Id
+        Long userId = null;
+        List<Long> longUserList = new ArrayList<>();
+        if(userList.size() > 0) {
+            userId = userList.get(0).getSucrUserId();
+            longUserList.add(userId);
+        }
         flowParam.put("menuId", "1000000007");
         flowParam.put("menuId", "1000000007");
         flowParam.put("companyId", zfiCoreId);
         flowParam.put("companyId", zfiCoreId);
         //双主键
         //双主键
-        flowParam.put("businessKey", CommonUtil.objToString(map.get("zfiId")));
+        flowParam.put("businessKey", zfiId);
         //员工编号
         //员工编号
         flowParam.put("sessionUserId", userId);
         flowParam.put("sessionUserId", userId);
         flowParam.put("name", userName + "在" + DateUtils.getDate() + "发起确权审批");
         flowParam.put("name", userName + "在" + DateUtils.getDate() + "发起确权审批");
@@ -206,29 +254,34 @@ public class ApprovalServiceImpl implements ApprovalService {
         Map<String, Object> resMap = flowableService.apiPost(STRART_FLOW, flowParam);
         Map<String, Object> resMap = flowableService.apiPost(STRART_FLOW, flowParam);
         //成功
         //成功
         if("200".equals(resMap.get("code"))){
         if("200".equals(resMap.get("code"))){
-            //TODo 核心企业经办人盖章待办
+            //改为审批中
+            ZcFinanceInf zcFinanceInf = new ZcFinanceInf();
+            zcFinanceInf.setZfiId(zfiId);
+            zcFinanceInf.setZfiCoreStatus("00");
+            zcFinanceInfService.updateById(zcFinanceInf);
         }else
         }else
-        //未开启流程实例
-        if("300".equals(resMap.get("code")) || "350".equals(resMap.get("code"))){
-            ZcFinanceInf zcFinanceInf = zcFinanceInfService.getById(CommonUtil.objToString(map.get("zfiId")));
-            String type = zcFinanceInf.getZfiCreateType();
-            if("0".equals(type)){
-                approvalService.addSignApproval(map);
-            }else if("2".equals(type)){
-                //已生效
-                zcFinanceInf.setZfiStatus("02");
-                //签收时间
-                zcFinanceInf.setZfiSignDate(DateUtils.getNowDate());
+            //未开启流程实例
+            if("300".equals(resMap.get("code")) || "350".equals(resMap.get("code"))){
+                //审批通过
+                ZcFinanceInf zcFinanceInf = new ZcFinanceInf();
+                zcFinanceInf.setZfiId(zfiId);
+                zcFinanceInf.setZfiCoreStatus("01");
                 zcFinanceInfService.updateById(zcFinanceInf);
                 zcFinanceInfService.updateById(zcFinanceInf);
+                List<Long> longUser = new ArrayList<>();
+                longUser.add(user);
+                remoteSystemService.sendNotice(zfiCoreId, zfiId,
+                        "确权审批融信编号为" + zfiNumber + "的资料审批已通过",
+                        "01","01",null,"0", longUser, null);
+                //向核心企业经办人发送盖章待办
+                remoteSystemService.sendNotice(zfiCoreId, zfiId,
+                        "确权审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
+                        "00",null,"03","0", longUserList,null);
+                //未配置审批流程
+            }else if ("450".equals(resMap.get("code"))) {
+                throw new Exception("未配置审批流程");
+            }else if (!"200".equals(resMap.get("code"))) {
+                throw new Exception(resMap.get("message").toString());
             }
             }
-            //TODO 核心企业经办人最终结果【通过】消息通知
-            //TODo  核心企业盖章待办事项。
-            //未配置审批流程
-        }else if ("450".equals(resMap.get("code"))) {
-            throw new Exception("未配置审批流程");
-        }else if (!"200".equals(resMap.get("code"))) {
-            throw new Exception(resMap.get("message").toString());
-        }
     }
     }