1550076451 лет назад: 2
Родитель
Сommit
4f404aa4db

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

@@ -65,13 +65,17 @@ public class CustomerController extends BaseController {
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 74
         LambdaQueryWrapper<Customer> qw = new LambdaQueryWrapper<>();
73 75
         if (Code.isEmpty())
76
+        {
74 77
             return Error("Code不能为空");
78
+        }
75 79
         qw.eq( Customer::getCustomerNo, Code);
76 80
         qw.eq(Customer::getFIsdelete, 0);
77 81
         var customer=customerService.getEntity(qw);