|
@@ -0,0 +1,44 @@
|
|
1
|
+package com.community.huiju.controller;
|
|
2
|
+
|
|
3
|
+import com.community.commom.constant.Constant;
|
|
4
|
+import com.community.commom.mode.HkResponseBean;
|
|
5
|
+import com.community.commom.mode.ResponseBean;
|
|
6
|
+import com.community.commom.session.UserElement;
|
|
7
|
+import com.community.huiju.model.HkVisitorBill;
|
|
8
|
+import io.swagger.annotations.Api;
|
|
9
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
10
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
11
|
+import io.swagger.annotations.ApiOperation;
|
|
12
|
+import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
13
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
14
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
15
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
16
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
17
|
+import org.springframework.web.bind.annotation.RestController;
|
|
18
|
+
|
|
19
|
+import javax.servlet.http.HttpSession;
|
|
20
|
+
|
|
21
|
+/**
|
|
22
|
+ * @author FXF
|
|
23
|
+ * @date 2019-01-23
|
|
24
|
+ */
|
|
25
|
+@RestController
|
|
26
|
+@RefreshScope
|
|
27
|
+@RequestMapping("/")
|
|
28
|
+@Api(value = "海康相关的API",description = "海康相关的API")
|
|
29
|
+public class HkController {
|
|
30
|
+
|
|
31
|
+ @ApiOperation(value = "发送访客账单", notes = "发送访客账单")
|
|
32
|
+ @ApiImplicitParams({ @ApiImplicitParam(paramType = "body", name = "hkVisitorBill", dataType = "String",value = "billNum: 账单号,reservationNum:预约单号,plateNum:出场车牌号,leaveTime:出场时间,billFee:账单金额")})
|
|
33
|
+ @RequestMapping(value = "/sendVisitorBill",method = RequestMethod.POST)
|
|
34
|
+ public HkResponseBean allMessageRead(@RequestBody HkVisitorBill hkVisitorBill){
|
|
35
|
+ HkResponseBean hkResponseBean = new HkResponseBean();
|
|
36
|
+ System.out.println("测试:"+hkVisitorBill.getBillFee());
|
|
37
|
+ System.out.println("测试:"+hkVisitorBill.getBillNum());
|
|
38
|
+ System.out.println("测试:"+hkVisitorBill.getPlateNum());
|
|
39
|
+ System.out.println("测试:"+hkVisitorBill.getReservationNum());
|
|
40
|
+ System.out.println("测试:"+hkVisitorBill.getLeaveTime());
|
|
41
|
+ hkResponseBean.addSuccess("账单发送成功","");
|
|
42
|
+ return hkResponseBean;
|
|
43
|
+ }
|
|
44
|
+}
|