|
@@ -1,23 +1,15 @@
|
|
package com.jpsoft.smart.modules.wechat.controller;
|
|
package com.jpsoft.smart.modules.wechat.controller;
|
|
|
|
|
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.jpsoft.smart.config.WxConfig;
|
|
import com.jpsoft.smart.config.WxConfig;
|
|
-import com.jpsoft.smart.modules.base.entity.CompanyInfo;
|
|
|
|
-import com.jpsoft.smart.modules.base.entity.InformationInfo;
|
|
|
|
-import com.jpsoft.smart.modules.base.entity.OwnerInfo;
|
|
|
|
-import com.jpsoft.smart.modules.base.entity.WarningPusher;
|
|
|
|
-import com.jpsoft.smart.modules.base.service.CompanyInfoService;
|
|
|
|
-import com.jpsoft.smart.modules.base.service.InformationInfoService;
|
|
|
|
-import com.jpsoft.smart.modules.base.service.OwnerInfoService;
|
|
|
|
-import com.jpsoft.smart.modules.base.service.WarningPusherService;
|
|
|
|
|
|
+import com.jpsoft.smart.modules.base.entity.*;
|
|
|
|
+import com.jpsoft.smart.modules.base.service.*;
|
|
import com.jpsoft.smart.modules.common.dto.MessageResult;
|
|
import com.jpsoft.smart.modules.common.dto.MessageResult;
|
|
import com.jpsoft.smart.modules.common.service.impl.RedisServiceImpl;
|
|
import com.jpsoft.smart.modules.common.service.impl.RedisServiceImpl;
|
|
-import com.jpsoft.smart.modules.common.utils.ApiUtil;
|
|
|
|
|
|
+import com.jpsoft.smart.modules.common.utils.*;
|
|
import com.jpsoft.smart.modules.common.utils.Generator.CaptchaUtilA;
|
|
import com.jpsoft.smart.modules.common.utils.Generator.CaptchaUtilA;
|
|
import com.jpsoft.smart.modules.common.utils.Generator.CircleCaptchaA;
|
|
import com.jpsoft.smart.modules.common.utils.Generator.CircleCaptchaA;
|
|
-import com.jpsoft.smart.modules.common.utils.SMSUtil;
|
|
|
|
-import com.jpsoft.smart.modules.common.utils.Sign;
|
|
|
|
-import com.jpsoft.smart.modules.common.utils.WeixinUtil;
|
|
|
|
import com.jpsoft.smart.modules.pay.properties.WxPayProperties;
|
|
import com.jpsoft.smart.modules.pay.properties.WxPayProperties;
|
|
import com.jpsoft.smart.modules.wechat.entity.AccessControl;
|
|
import com.jpsoft.smart.modules.wechat.entity.AccessControl;
|
|
import com.jpsoft.smart.modules.wechat.entity.AccessToken;
|
|
import com.jpsoft.smart.modules.wechat.entity.AccessToken;
|
|
@@ -47,6 +39,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
import java.io.BufferedReader;
|
|
import java.io.BufferedReader;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.io.InputStreamReader;
|
|
import java.io.InputStreamReader;
|
|
|
|
+import java.math.BigDecimal;
|
|
import java.net.URLEncoder;
|
|
import java.net.URLEncoder;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeUnit;
|
|
@@ -66,6 +59,9 @@ public class WxController {
|
|
@Autowired
|
|
@Autowired
|
|
private ApiUtil apiUtil;
|
|
private ApiUtil apiUtil;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ParkApiUtil parkApiUtil;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private WxConfig wxConfig;
|
|
private WxConfig wxConfig;
|
|
|
|
|
|
@@ -96,6 +92,12 @@ public class WxController {
|
|
@Autowired
|
|
@Autowired
|
|
private CompanyInfoService companyInfoService;
|
|
private CompanyInfoService companyInfoService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ParkingRecordService parkingRecordService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private CompanyPaymentInfoService companyPaymentInfoService;
|
|
|
|
+
|
|
|
|
|
|
@ApiOperation(value = "获取微信配置")
|
|
@ApiOperation(value = "获取微信配置")
|
|
@GetMapping(value = "/getConfig")
|
|
@GetMapping(value = "/getConfig")
|
|
@@ -171,6 +173,38 @@ public class WxController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "获取公众号用户信息")
|
|
|
|
+ @GetMapping(value = "/findParkUserInfo")
|
|
|
|
+ public MessageResult findParkUserInfo(String code,String companyInfoId) {
|
|
|
|
+ try {
|
|
|
|
+ System.out.println("获取微信用户openId");
|
|
|
|
+ CompanyPaymentInfo companyPaymentInfo = companyPaymentInfoService.findByCompanyId(companyInfoId);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ AccessToken at = WeixinUtil.getAccessToken(companyPaymentInfo.getSubAppId(), companyPaymentInfo.getSubAppSecret(), code);
|
|
|
|
+
|
|
|
|
+ if (at != null && StringUtils.isNotBlank(at.getOpenid())) {
|
|
|
|
+ String openId = at.getOpenid();
|
|
|
|
+ System.out.println("openId:" + openId);
|
|
|
|
+
|
|
|
|
+ UserInfo userInfo = WeixinUtil.getUserInfo(openId, at.getToken());
|
|
|
|
+
|
|
|
|
+ HashMap<String, Object> dataMap = new HashMap<String, Object>();
|
|
|
|
+
|
|
|
|
+ dataMap.put("userInfo", userInfo);
|
|
|
|
+
|
|
|
|
+ return new MessageResult(true, "获取微信信息成功", userInfo, 200);
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ return new MessageResult(false, "获取微信信息失败", "", 400);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ } catch (Exception ex) {
|
|
|
|
+ ex.printStackTrace();
|
|
|
|
+ return new MessageResult(false, "系统错误", "", 500);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
@GetMapping(value = "getAppId/{id}")
|
|
@GetMapping(value = "getAppId/{id}")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public MessageResult getAppId(@PathVariable("id") String id) {
|
|
public MessageResult getAppId(@PathVariable("id") String id) {
|
|
@@ -857,12 +891,12 @@ public class WxController {
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- if ("4000".equals(eventCode)){
|
|
|
|
|
|
+ if ("4000".equals(eventCode)) {
|
|
CompanyInfo companyInfo = companyInfoService.get(id);
|
|
CompanyInfo companyInfo = companyInfoService.get(id);
|
|
- if (companyInfo == null){
|
|
|
|
- WeixinUtil.replyTextMessage(response,wechatId,openId,"您的公司暂时不在我们的管辖内,请联系管理员!");
|
|
|
|
- }else {
|
|
|
|
- WeixinUtil.replyArticlesMessage(response,wechatId,openId,companyInfo.getName(),replyMessage.getMessage(),companyInfo.getLogo(),"http://wisdomhousewechat.sudaonline.net/prevention-xxd/upyes.html");
|
|
|
|
|
|
+ if (companyInfo == null) {
|
|
|
|
+ WeixinUtil.replyTextMessage(response, wechatId, openId, "您的公司暂时不在我们的管辖内,请联系管理员!");
|
|
|
|
+ } else {
|
|
|
|
+ WeixinUtil.replyArticlesMessage(response, wechatId, openId, companyInfo.getName(), replyMessage.getMessage(), companyInfo.getLogo(), "http://wisdomhousewechat.sudaonline.net/prevention-xxd/upyes.html");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -907,4 +941,274 @@ public class WxController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @GetMapping("/getMsgByCarNum")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @ApiOperation(value = "输入车牌号获取停车信息")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "companyInfoId", paramType = "query", required = true, value = "公司id"),
|
|
|
|
+ @ApiImplicitParam(name = "carNum", paramType = "query", required = true, value = "车牌号"),
|
|
|
|
+ @ApiImplicitParam(name = "openId", paramType = "query", required = false, value = "openId")
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ public MessageResult getMsgByCarNum(String companyInfoId, String carNum,String openId) {
|
|
|
|
+ int code = 200;
|
|
|
|
+ String message = "查询成功";
|
|
|
|
+ Object data = "";
|
|
|
|
+ boolean result = true;
|
|
|
|
+
|
|
|
|
+ HashMap<String, Object> dataMap = new HashMap<>();
|
|
|
|
+ try {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isBlank(companyInfoId)) {
|
|
|
|
+ return new MessageResult(false, "公司为空", "", 400);
|
|
|
|
+ }
|
|
|
|
+ CompanyInfo companyInfo = companyInfoService.get(companyInfoId);
|
|
|
|
+ if (companyInfo == null) {
|
|
|
|
+ return new MessageResult(false, "公司不存在", "", 400);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isBlank(carNum)) {
|
|
|
|
+ return new MessageResult(false, "车牌号为空", "", 400);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String accessToken = (String) redisService.get("accessToken", "accessToken");
|
|
|
|
+ if (StringUtils.isBlank(accessToken)) {
|
|
|
|
+ accessToken = parkApiUtil.getXToken();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ HashMap<String, Object> map = new HashMap<>();
|
|
|
|
+ map.put("carNum", carNum);
|
|
|
|
+ map.put("queryType", 1);
|
|
|
|
+ net.sf.json.JSONObject jsonObject = parkApiUtil.httpRequest("/ipms/integration/kingdo/payment/info", accessToken, "POST", map);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if (jsonObject.getString("errMsg").equals("success")) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ net.sf.json.JSONObject dataJson = jsonObject.getJSONObject("data");
|
|
|
|
+ if (dataJson.size()>0){
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ BigDecimal parkingTime = new BigDecimal(dataJson.getString("parkTime"));
|
|
|
|
+ Date inParkingTime = DateUtil.date(dataJson.getLong("inParkTime"));
|
|
|
|
+ BigDecimal payAmount = new BigDecimal(dataJson.getString("receivableMoney"));
|
|
|
|
+ String serialNumber = com.jpsoft.smart.modules.common.utils.StringUtils.getOutTradeNo();
|
|
|
|
+ ParkingRecord parkingRecord = new ParkingRecord();
|
|
|
|
+ parkingRecord.setId(UUID.randomUUID().toString());
|
|
|
|
+ parkingRecord.setCarNum(carNum);
|
|
|
|
+ parkingRecord.setCompanyId(companyInfoId);
|
|
|
|
+ parkingRecord.setInParkingTime(inParkingTime);
|
|
|
|
+ parkingRecord.setParkingTime(parkingTime);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // parkingRecord.setPayAmount(payAmount);
|
|
|
|
+ parkingRecord.setPayAmount(new BigDecimal(0.01));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ parkingRecord.setSerialNumber(serialNumber);
|
|
|
|
+ parkingRecord.setPayStatus("10");
|
|
|
|
+ parkingRecord.setProductTheme("停车费");
|
|
|
|
+ parkingRecord.setOpenId(openId);
|
|
|
|
+ parkingRecord.setCreateTime(new Date());
|
|
|
|
+ parkingRecord.setDelFlag(false);
|
|
|
|
+ parkingRecordService.insert(parkingRecord);
|
|
|
|
+
|
|
|
|
+ HashMap<String, Object> parkMap = new HashMap<>();
|
|
|
|
+ parkMap.put("carNum", carNum);
|
|
|
|
+ parkMap.put("receivableMoney", parkingRecord.getPayAmount());
|
|
|
|
+ parkMap.put("parkTime", TimeZonesUtil.parseSecond(dataJson.getLong("parkTime")));
|
|
|
|
+ parkMap.put("inParkTime", DateUtil.formatDateTime(inParkingTime));
|
|
|
|
+ parkMap.put("parkName",dataJson.getString("parkName"));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ dataMap.put("parkingData", parkMap);
|
|
|
|
+ dataMap.put("parkingRecordId", parkingRecord.getId());
|
|
|
|
+
|
|
|
|
+ }else {
|
|
|
|
+ return new MessageResult(false,"无停车信息","",400);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ code = 400;
|
|
|
|
+ message = "查询失败";
|
|
|
|
+ result = false;
|
|
|
|
+ return new MessageResult(result, message, data, code);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /*HashMap<String,Object> map = new HashMap<>();
|
|
|
|
+ map.put("carInNumPicUrl","http://172.7.2.185:8082/d/1000033$1$0$0/20170629/10/2859-427-1.jpg");
|
|
|
|
+ map.put("carInPicUrl", "http://172.7.2.185:8082/d/1000033$1$0$0/20170629/10/2859-427-0.jpg");
|
|
|
|
+ map.put("carNum",carNum);
|
|
|
|
+ map.put("carType",1);
|
|
|
|
+ map.put("inParkTime","2017-11-15");
|
|
|
|
+ map.put("ownerType",0);
|
|
|
|
+ map.put("parkCode","null_yu");
|
|
|
|
+ map.put("parkName","yu");
|
|
|
|
+ map.put("parkTime","1000");
|
|
|
|
+ map.put("queryType",1);
|
|
|
|
+ map.put("receivableMoney",0.01);*/
|
|
|
|
+
|
|
|
|
+ // data = map;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ code = 400;
|
|
|
|
+ message = "查询失败";
|
|
|
|
+ result = false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return new MessageResult(result, message, dataMap, code);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @GetMapping("/getMsgByDeviceCode")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @ApiOperation(value = "输入设备号获取停车信息")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "companyInfoId", paramType = "query", required = true, value = "公司id"),
|
|
|
|
+ @ApiImplicitParam(name = "deviceCode", paramType = "query", required = true, value = "设备号"),
|
|
|
|
+ @ApiImplicitParam(name = "openId", paramType = "query", required = false, value = "openId")
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ public MessageResult getMsgByDeviceCode(String companyInfoId,String deviceCode,String openId) {
|
|
|
|
+ int code = 200;
|
|
|
|
+ String message = "查询成功";
|
|
|
|
+ Object data = "";
|
|
|
|
+ boolean result = true;
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isBlank(deviceCode)) {
|
|
|
|
+ code = 400;
|
|
|
|
+ message = "道闸设备编码为空";
|
|
|
|
+ result = false;
|
|
|
|
+ return new MessageResult(result, message, data, code);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String accessToken = (String) redisService.get("accessToken", "accessToken");
|
|
|
|
+ if (StringUtils.isBlank(accessToken)) {
|
|
|
|
+ accessToken = parkApiUtil.getXToken();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ HashMap<String, Object> map = new HashMap<>();
|
|
|
|
+ map.put("deviceCode", deviceCode);
|
|
|
|
+ // net.sf.json.JSONObject jsonObject = parkApiUtil.httpRequest("/ipms/payment/bydevice", accessToken, "POST", map);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //测试死数据,部署是删除
|
|
|
|
+ net.sf.json.JSONObject jsonObject1 = new net.sf.json.JSONObject();
|
|
|
|
+ jsonObject1.put("errMsg","success");
|
|
|
|
+ HashMap<String,Object> ceMap = new HashMap<>();
|
|
|
|
+ ceMap.put("carNumImgUrl","http://172.7.2.185:8082/d/1000033$1$0$0/20170629/10/2859-427-1.jpg");
|
|
|
|
+ ceMap.put("carImgUrl", "http://172.7.2.185:8082/d/1000033$1$0$0/20170629/10/2859-427-0.jpg");
|
|
|
|
+ ceMap.put("carNum","鄂D1234");
|
|
|
|
+ ceMap.put("carType",1);
|
|
|
|
+ ceMap.put("chargeDetail","停车时长42秒,收费金额0.01元");
|
|
|
|
+ ceMap.put("inParkTime",1586926518000L);
|
|
|
|
+ ceMap.put("ownerType",0);
|
|
|
|
+ ceMap.put("parkCode","null_yu");
|
|
|
|
+ ceMap.put("parkName","yu");
|
|
|
|
+ ceMap.put("parkTime",42);
|
|
|
|
+ ceMap.put("state",1);
|
|
|
|
+ ceMap.put("receivableMoney",0.01);
|
|
|
|
+ jsonObject1.put("data",ceMap);
|
|
|
|
+
|
|
|
|
+ if (jsonObject1.getString("errMsg").equals("success")) {
|
|
|
|
+
|
|
|
|
+ net.sf.json.JSONObject dataJson = (net.sf.json.JSONObject) jsonObject1.get("data");
|
|
|
|
+ Integer state = dataJson.getInt("state");
|
|
|
|
+ HashMap<String, Object> dataMap = new HashMap<>();
|
|
|
|
+ if (dataJson.size()>0) {
|
|
|
|
+
|
|
|
|
+ BigDecimal parkingTime = new BigDecimal(dataJson.getString("parkTime"));
|
|
|
|
+ Date inParkingTime = DateUtil.date(dataJson.getLong("inParkTime"));
|
|
|
|
+ BigDecimal payAmount = new BigDecimal(dataJson.getString("receivableMoney"));
|
|
|
|
+ String serialNumber = com.jpsoft.smart.modules.common.utils.StringUtils.getOutTradeNo();
|
|
|
|
+ ParkingRecord parkingRecord = new ParkingRecord();
|
|
|
|
+ parkingRecord.setId(UUID.randomUUID().toString());
|
|
|
|
+ parkingRecord.setCarNum(dataJson.getString("carNum"));
|
|
|
|
+ parkingRecord.setParkingDeviceNo(deviceCode);
|
|
|
|
+ parkingRecord.setCompanyId(companyInfoId);
|
|
|
|
+ parkingRecord.setInParkingTime(inParkingTime);
|
|
|
|
+ parkingRecord.setParkingTime(parkingTime);
|
|
|
|
+ parkingRecord.setPayAmount(payAmount);
|
|
|
|
+ parkingRecord.setSerialNumber(serialNumber);
|
|
|
|
+ parkingRecord.setPayStatus("10");
|
|
|
|
+ parkingRecord.setProductTheme("停车费");
|
|
|
|
+ parkingRecord.setOpenId(openId);
|
|
|
|
+ parkingRecord.setCreateTime(new Date());
|
|
|
|
+ parkingRecord.setDelFlag(false);
|
|
|
|
+ parkingRecordService.insert(parkingRecord);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ HashMap<String, Object> parkMap = new HashMap<>();
|
|
|
|
+ parkMap.put("carNum", dataJson.getString("carNum"));
|
|
|
|
+ parkMap.put("receivableMoney", payAmount);
|
|
|
|
+ parkMap.put("parkTime", TimeZonesUtil.parseSecond(dataJson.getLong("parkTime")));
|
|
|
|
+ parkMap.put("inParkTime", DateUtil.formatDateTime(inParkingTime));
|
|
|
|
+ parkMap.put("parkName",dataJson.getString("parkName"));
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ dataMap.put("parkingData", parkMap);
|
|
|
|
+ dataMap.put("parkingRecordId", parkingRecord.getId());
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /* dataMap.put("carNumImgUrl", dataJson.getString("carNumImgUrl"));
|
|
|
|
+ dataMap.put("carImgUrl", dataJson.getString("carImgUrl"));
|
|
|
|
+ dataMap.put("carNum", dataJson.getString("carNum"));
|
|
|
|
+ dataMap.put("carType", 1);
|
|
|
|
+ dataMap.put("chargeDetail", dataJson.getString("chargeDetail"));
|
|
|
|
+ dataMap.put("inParkTime", dataJson.getString("inParkTime"));
|
|
|
|
+ dataMap.put("ownerType", 0);
|
|
|
|
+ dataMap.put("parkCode", dataJson.getString("parkCode"));
|
|
|
|
+ dataMap.put("parkName", dataJson.getString("parkName"));
|
|
|
|
+ dataMap.put("parkTime", dataJson.getString("parkTime"));
|
|
|
|
+ dataMap.put("state", 1);
|
|
|
|
+ dataMap.put("receivableMoney", dataJson.getString("receivableMoney"));*/
|
|
|
|
+
|
|
|
|
+ data = dataMap;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ code = 400;
|
|
|
|
+ message = "查询失败";
|
|
|
|
+ result = false;
|
|
|
|
+ return new MessageResult(result, message, data, code);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /* HashMap<String,Object> map = new HashMap<>();
|
|
|
|
+ map.put("carNumImgUrl","http://172.7.2.185:8082/d/1000033$1$0$0/20170629/10/2859-427-1.jpg");
|
|
|
|
+ map.put("carImgUrl", "http://172.7.2.185:8082/d/1000033$1$0$0/20170629/10/2859-427-0.jpg");
|
|
|
|
+ map.put("carNum","鄂D1234");
|
|
|
|
+ map.put("carType",1);
|
|
|
|
+ map.put("chargeDetail","停车时长42秒,收费金额0.01元");
|
|
|
|
+ map.put("inParkTime","2017-11-15");
|
|
|
|
+ map.put("ownerType",0);
|
|
|
|
+ map.put("parkCode","null_yu");
|
|
|
|
+ map.put("parkName","yu");
|
|
|
|
+ map.put("parkTime","42");
|
|
|
|
+ map.put("state",1);
|
|
|
|
+ map.put("receivableMoney",0.01);
|
|
|
|
+
|
|
|
|
+ data = map;*/
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ code = 500;
|
|
|
|
+ message = "查询失败";
|
|
|
|
+ result = false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return new MessageResult(result, message, data, code);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|