dingxin 6 年前
父节点
当前提交
bdf97e6a8a

+ 6
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AliPayController.java 查看文件

14
 import io.swagger.annotations.ApiImplicitParam;
14
 import io.swagger.annotations.ApiImplicitParam;
15
 import io.swagger.annotations.ApiImplicitParams;
15
 import io.swagger.annotations.ApiImplicitParams;
16
 import io.swagger.annotations.ApiOperation;
16
 import io.swagger.annotations.ApiOperation;
17
+import lombok.extern.slf4j.Slf4j;
17
 import org.slf4j.Logger;
18
 import org.slf4j.Logger;
18
 import org.slf4j.LoggerFactory;
19
 import org.slf4j.LoggerFactory;
19
 import org.springframework.beans.factory.annotation.Autowired;
20
 import org.springframework.beans.factory.annotation.Autowired;
40
 @RefreshScope
41
 @RefreshScope
41
 @RequestMapping("/")
42
 @RequestMapping("/")
42
 @Api(value = "支付宝支付 API", description = "支付宝支付 API")
43
 @Api(value = "支付宝支付 API", description = "支付宝支付 API")
44
+@Slf4j
43
 public class AliPayController {
45
 public class AliPayController {
44
 	
46
 	
45
 	private Logger log = LoggerFactory.getLogger(AliPayController.class);
47
 	private Logger log = LoggerFactory.getLogger(AliPayController.class);
56
 	@ApiOperation(value = "统一下单", notes = "统一下单")
58
 	@ApiOperation(value = "统一下单", notes = "统一下单")
57
 	@ApiImplicitParams({
59
 	@ApiImplicitParams({
58
 			@ApiImplicitParam(paramType = "path", dataType = "String", name = "outTradeNo", value = "订单号"),
60
 			@ApiImplicitParam(paramType = "path", dataType = "String", name = "outTradeNo", value = "订单号"),
59
-			@ApiImplicitParam(paramType = "form", dataType = "String", name = "type", value = "订单类型:type: 类型(car 车缴费, bill 物业缴费)"),
61
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "type", value = "订单类型:type: 类型(car 车缴费, bill 物业缴费)"),
60
 			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
62
 			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
61
 	@RequestMapping(value = "/aliPayOrder/{outTradeNo}",method = RequestMethod.GET)
63
 	@RequestMapping(value = "/aliPayOrder/{outTradeNo}",method = RequestMethod.GET)
62
 	public ResponseBean wxUnifiedOrder(@PathVariable("outTradeNo") String outTradeNo, @RequestParam("type") String type, HttpSession session){
64
 	public ResponseBean wxUnifiedOrder(@PathVariable("outTradeNo") String outTradeNo, @RequestParam("type") String type, HttpSession session){
77
 	@ApiOperation(value = "支付宝手机订单支付完成后回调 物业缴费", notes = "支付宝手机订单支付完成后回调")
79
 	@ApiOperation(value = "支付宝手机订单支付完成后回调 物业缴费", notes = "支付宝手机订单支付完成后回调")
78
 	@RequestMapping(value = "/aliPayBillNotify",method = RequestMethod.POST)
80
 	@RequestMapping(value = "/aliPayBillNotify",method = RequestMethod.POST)
79
 	public void aliPayBillNotify(HttpServletRequest request, HttpServletResponse response){
81
 	public void aliPayBillNotify(HttpServletRequest request, HttpServletResponse response){
82
+		log.info("支付宝手机订单支付完成后回调 物业缴费");
80
 		wxNotify(request, Constant.PAY_TYPE_BILL);
83
 		wxNotify(request, Constant.PAY_TYPE_BILL);
81
 	}
84
 	}
82
 
85
 
83
 	@ApiOperation(value = "支付宝手机订单支付完成后回调 车缴费", notes = "支付宝手机订单支付完成后回调 车缴费")
86
 	@ApiOperation(value = "支付宝手机订单支付完成后回调 车缴费", notes = "支付宝手机订单支付完成后回调 车缴费")
84
 	@RequestMapping(value = "/aliPayCarNotify",method = RequestMethod.POST)
87
 	@RequestMapping(value = "/aliPayCarNotify",method = RequestMethod.POST)
85
 	public void aliPayCarNotify(HttpServletRequest request, HttpServletResponse response){
88
 	public void aliPayCarNotify(HttpServletRequest request, HttpServletResponse response){
89
+		log.info("支付宝手机订单支付完成后回调 车缴费");
86
 		wxNotify(request, Constant.PAY_TYPE_CAR);
90
 		wxNotify(request, Constant.PAY_TYPE_CAR);
87
 	}
91
 	}
88
 
92
 
92
 	 * @param type
96
 	 * @param type
93
 	 */
97
 	 */
94
 	private void wxNotify(HttpServletRequest request, String type) {
98
 	private void wxNotify(HttpServletRequest request, String type) {
95
-		System.out.println("alipay result  start =======");
99
+		log.info("支付宝 alipay result  start =======");
96
 		Map<String,String> params = new HashMap<String,String>();
100
 		Map<String,String> params = new HashMap<String,String>();
97
 		Map requestParams = request.getParameterMap();
101
 		Map requestParams = request.getParameterMap();
98
 		for (Iterator iter = requestParams.keySet().iterator(); iter.hasNext();) {
102
 		for (Iterator iter = requestParams.keySet().iterator(); iter.hasNext();) {

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/AliPayServiceI.java 查看文件

6
 
6
 
7
 public interface AliPayServiceI {
7
 public interface AliPayServiceI {
8
 	/**
8
 	/**
9
-	 * 微信支付统一下单
9
+	 * 支付宝支付统一下单
10
 	 * @return
10
 	 * @return
11
 	 * @param outTradeNo
11
 	 * @param outTradeNo
12
 	 * @param type  类型(car 车缴费, bill 物业缴费)
12
 	 * @param type  类型(car 车缴费, bill 物业缴费)

+ 1
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/WxPayServiceImpl.java 查看文件

495
 			TaUserLicense taUserLicense = null;
495
 			TaUserLicense taUserLicense = null;
496
 			if (null != licenseData && licenseData instanceof TaUserLicense) {
496
 			if (null != licenseData && licenseData instanceof TaUserLicense) {
497
 				taUserLicense = (TaUserLicense) licenseData;
497
 				taUserLicense = (TaUserLicense) licenseData;
498
+				e.setExpireDate(taUserLicense.getExpireDate());
498
 			}
499
 			}
499
-
500
-			e.setExpireDate(taUserLicense.getExpireDate());
501
 			e.setPaymentType(pay_type);
500
 			e.setPaymentType(pay_type);
502
 
501
 
503
 			taUserLicenseOrderMapper.updateByPrimaryKeySelective(e);
502
 			taUserLicenseOrderMapper.updateByPrimaryKeySelective(e);

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaUserLicenseOrderServiceImpl.java 查看文件

46
         page.setSize(pageSize);
46
         page.setSize(pageSize);
47
         page.setCurrent(pageNum);
47
         page.setCurrent(pageNum);
48
         QueryWrapper<TaUserLicenseOrder> queryWrapper = new QueryWrapper<>();
48
         QueryWrapper<TaUserLicenseOrder> queryWrapper = new QueryWrapper<>();
49
-        queryWrapper.eq(id != null ,"id", id);
49
+        queryWrapper.like(id != null ,"id", id);
50
         queryWrapper.like(StringUtils.isNotBlank(licensePlate), "license_plate", licensePlate);
50
         queryWrapper.like(StringUtils.isNotBlank(licensePlate), "license_plate", licensePlate);
51
         queryWrapper.like(StringUtils.isNotBlank(orderNumber), "order_number", orderNumber);
51
         queryWrapper.like(StringUtils.isNotBlank(orderNumber), "order_number", orderNumber);
52
         queryWrapper.like(StringUtils.isNotBlank(paymentName), "payment_name", paymentName);
52
         queryWrapper.like(StringUtils.isNotBlank(paymentName), "payment_name", paymentName);

+ 15
- 1
VUECODE/smart-property-manage/src/views/bill/license/index.vue 查看文件

83
         prop="updateDate"
83
         prop="updateDate"
84
         align="center"
84
         align="center"
85
         label="缴费完成时间">
85
         label="缴费完成时间">
86
-        <template slot-scope="scope">{{ formatDate(scope.row.updateDate) }}</template>
86
+        <template slot-scope="scope">{{ formatDateTime(scope.row.updateDate) }}</template>
87
       </el-table-column>
87
       </el-table-column>
88
     </el-table>
88
     </el-table>
89
     <div class="block-page">
89
     <div class="block-page">
147
       // return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
147
       // return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
148
       return year + '-' + month + '-' + day
148
       return year + '-' + month + '-' + day
149
     },
149
     },
150
+    formatDateTime(val) {
151
+      if (val === null || val === '') {
152
+        return ''
153
+      }
154
+      var value = new Date(val)
155
+      var year = value.getFullYear()
156
+      var month = value.getMonth() + 1
157
+      var day = value.getDate()
158
+      var hour = value.getHours()
159
+      var minutes = value.getMinutes()
160
+      var seconds = value.getSeconds()
161
+      // return year + '-' + month + '-' + day
162
+      return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
163
+    },
150
     showPayType(obj) {
164
     showPayType(obj) {
151
       let str = ''
165
       let str = ''
152
       switch (obj) {
166
       switch (obj) {