dingxin 6 jaren geleden
bovenliggende
commit
bdf97e6a8a

+ 6
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AliPayController.java Bestand weergeven

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

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

+ 1
- 2
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/WxPayServiceImpl.java Bestand weergeven

@@ -495,9 +495,8 @@ public class WxPayServiceImpl implements WxPayServiceI {
495 495
 			TaUserLicense taUserLicense = null;
496 496
 			if (null != licenseData && licenseData instanceof TaUserLicense) {
497 497
 				taUserLicense = (TaUserLicense) licenseData;
498
+				e.setExpireDate(taUserLicense.getExpireDate());
498 499
 			}
499
-
500
-			e.setExpireDate(taUserLicense.getExpireDate());
501 500
 			e.setPaymentType(pay_type);
502 501
 
503 502
 			taUserLicenseOrderMapper.updateByPrimaryKeySelective(e);

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TaUserLicenseOrderServiceImpl.java Bestand weergeven

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

+ 15
- 1
VUECODE/smart-property-manage/src/views/bill/license/index.vue Bestand weergeven

@@ -83,7 +83,7 @@
83 83
         prop="updateDate"
84 84
         align="center"
85 85
         label="缴费完成时间">
86
-        <template slot-scope="scope">{{ formatDate(scope.row.updateDate) }}</template>
86
+        <template slot-scope="scope">{{ formatDateTime(scope.row.updateDate) }}</template>
87 87
       </el-table-column>
88 88
     </el-table>
89 89
     <div class="block-page">
@@ -147,6 +147,20 @@ export default {
147 147
       // return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
148 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 164
     showPayType(obj) {
151 165
       let str = ''
152 166
       switch (obj) {