微调
This commit is contained in:
@@ -38,7 +38,7 @@ public class LibModelController extends BaseController {
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/pageLibModelQuery")
|
||||
@ApiOperation("分页查询案例库")
|
||||
@ApiOperation("分页查询模型库")
|
||||
@ApiImplicitParam(name = "param", value = "参数", required = true)
|
||||
public HttpResult<Page<LibModel>> pageLibModelQuery(@RequestBody @Validated LibModelParam.LibModelParamQuery param) {
|
||||
String methodDescribe = getMethodDescribe("pageLibModelQuery");
|
||||
@@ -48,7 +48,7 @@ public class LibModelController extends BaseController {
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@PostMapping("/addLibModel")
|
||||
@ApiOperation("新增")
|
||||
@ApiOperation("新增模型库")
|
||||
@ApiImplicitParam(name = "param", value = "实体参数", required = true)
|
||||
public HttpResult<Boolean> addLibModel(@RequestBody @Validated LibModelParam param) {
|
||||
String methodDescribe = getMethodDescribe("addLibModel");
|
||||
@@ -58,7 +58,7 @@ public class LibModelController extends BaseController {
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.UPDATE)
|
||||
@PostMapping("/updateLibModel")
|
||||
@ApiOperation("更新")
|
||||
@ApiOperation("更新模型库")
|
||||
@ApiImplicitParam(name = "param", value = "实体参数", required = true)
|
||||
public HttpResult<Boolean> updateLibModel(@RequestBody @Validated LibModelParam.LibModelParamUpdate param) {
|
||||
String methodDescribe = getMethodDescribe("updateLibModel");
|
||||
@@ -68,7 +68,7 @@ public class LibModelController extends BaseController {
|
||||
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON,operateType = OperateType.DELETE)
|
||||
@GetMapping("/deleteByLibModelId")
|
||||
@ApiOperation("通过id删除")
|
||||
@ApiOperation("通过id删除模型库")
|
||||
public HttpResult<Boolean> deleteByLibModelId(@RequestParam("id") String id) {
|
||||
String methodDescribe = getMethodDescribe("deleteByLibModelId");
|
||||
boolean update = libModelService.lambdaUpdate().set(LibModel::getStatus, 0).eq(LibModel::getId, id).update();
|
||||
@@ -77,7 +77,7 @@ public class LibModelController extends BaseController {
|
||||
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@GetMapping("/queryByLibModelId")
|
||||
@ApiOperation("根据id查询")
|
||||
@ApiOperation("根据id查询模型库")
|
||||
public HttpResult<LibModel> queryByLibModelId(@RequestParam("id") String id) {
|
||||
String methodDescribe = getMethodDescribe("queryByLibModelId");
|
||||
LibModel result = libModelService.lambdaQuery().eq(LibModel::getId,id).one();
|
||||
|
||||
@@ -56,7 +56,7 @@ public class LibModelServiceImpl extends ServiceImpl<LibModelMapper, LibModel> i
|
||||
DateUtil.beginOfDay(DateUtil.parse(param.getSearchBeginTime())),
|
||||
DateUtil.endOfDay(DateUtil.parse(param.getSearchEndTime())));
|
||||
}
|
||||
queryWrapper.orderByDesc(LibModel::getUpdateTime);
|
||||
queryWrapper.orderByDesc(LibModel::getName);
|
||||
return this.page(new Page<>(PageFactory.getPageNum(param), PageFactory.getPageSize(param)), queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user