|
@@ -19,7 +19,6 @@ import lombok.extern.log4j.Log4j2;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -43,16 +42,11 @@ public class PartController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
public PartService partService;
|
|
public PartService partService;
|
|
|
|
|
|
-// @Autowired
|
|
|
|
-// public FileService fileService;
|
|
|
|
-
|
|
|
|
-// @Value("${output.file.path}")
|
|
|
|
-// private String OUT_PATH;
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("列表/条件筛选")
|
|
@ApiOperation("列表/条件筛选")
|
|
@PostMapping("list")
|
|
@PostMapping("list")
|
|
- public Result list(@Valid @RequestBody NavRequest param) {
|
|
|
|
|
|
+ public Result<PartEntity> list(@Valid @RequestBody NavRequest param) {
|
|
startPage(param);
|
|
startPage(param);
|
|
PageInfo<PartEntity> page = new PageInfo<>(partService.findByNav(param));
|
|
PageInfo<PartEntity> page = new PageInfo<>(partService.findByNav(param));
|
|
return Result.success(page);
|
|
return Result.success(page);
|
|
@@ -146,4 +140,13 @@ public class PartController extends BaseController {
|
|
return Result.success();
|
|
return Result.success();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @ApiOperation("测试")
|
|
|
|
+ @PostMapping("test")
|
|
|
|
+ public Result test(@RequestBody PartEntity param ) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return Result.success(param);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|