1550076451 2 years ago
parent
commit
4f404aa4db

+ 8 - 4
zxkf-api/src/main/java/api/controller/system/CustomerController.java

65
 
65
 
66
 
66
 
67
 
67
 
68
-    @ApiOperation("详情")
69
-    @Log(title = "通过code查询sys_customer详情",businessType = BusinessType.QUERY)
70
-    @GetMapping("/CodeInfo")
71
-    public AjaxResult getCodeInfo(@PathVariable String  Code) {
68
+
69
+
70
+      @ApiOperation("详情")
71
+      @Log(title = "通过code查询sys_customer详情",businessType = BusinessType.QUERY)
72
+      @GetMapping("/CodeInfo/{Code}")
73
+      public AjaxResult getCodeInfo(@PathVariable String  Code) {
72
         LambdaQueryWrapper<Customer> qw = new LambdaQueryWrapper<>();
74
         LambdaQueryWrapper<Customer> qw = new LambdaQueryWrapper<>();
73
         if (Code.isEmpty())
75
         if (Code.isEmpty())
76
+        {
74
             return Error("Code不能为空");
77
             return Error("Code不能为空");
78
+        }
75
         qw.eq( Customer::getCustomerNo, Code);
79
         qw.eq( Customer::getCustomerNo, Code);
76
         qw.eq(Customer::getFIsdelete, 0);
80
         qw.eq(Customer::getFIsdelete, 0);
77
         var customer=customerService.getEntity(qw);
81
         var customer=customerService.getEntity(qw);