|
@@ -1,7 +1,9 @@
|
|
|
package com.fdkankan.agent.controller;
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.fdkankan.agent.common.ResultData;
|
|
|
+import com.fdkankan.agent.entity.IncrementUseType;
|
|
|
import com.fdkankan.agent.service.IIncrementUseTypeService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -26,7 +28,9 @@ public class IncrementUseTypeController {
|
|
|
|
|
|
@GetMapping("/allList")
|
|
|
public ResultData allList(){
|
|
|
- return ResultData.ok(incrementUseTypeService.list());
|
|
|
+ LambdaQueryWrapper<IncrementUseType> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.orderByAsc(IncrementUseType::getSort);
|
|
|
+ return ResultData.ok( incrementUseTypeService.list(wrapper));
|
|
|
}
|
|
|
}
|
|
|
|