|
@@ -66,8 +66,12 @@ public class ParkSystemController {
|
|
|
@ApiOperation("收费记录数据推送")
|
|
|
@PostMapping("/parkCharge")
|
|
|
public Levi parkCharge(@RequestBody Map params) {
|
|
|
- parkSystemService.parkCharge(params);
|
|
|
- return Levi.by("code", 1).set("msg", "成功");
|
|
|
+ try {
|
|
|
+ parkSystemService.parkCharge(params);
|
|
|
+ return Levi.by("code", 1).set("msg", "成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ return Levi.by("code", 0).set("msg", "失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@ApiOperation("服务信息数据推送")
|