|
@@ -43,8 +43,6 @@ public class MaintenanceOptionController {
|
|
|
new Page<>(req.getPageNum(), req.getPageSize()), new QueryWrapper<MaintenanceOption>()
|
|
|
//0L是固定数据的公司id
|
|
|
.in("mt_company_id", 0L, req.getMtCompanyId())
|
|
|
- //留1是为了兼容以前数据,2.0使用的status版本1 , 3.0使用的status版本2
|
|
|
- .eq("status", 2)
|
|
|
.in(req.getType() != null, "type", type(req))
|
|
|
.eq(req.getLiftType() != null, "lift_type", req.getLiftType())
|
|
|
.orderByDesc("mt_company_id")
|
|
@@ -72,8 +70,6 @@ public class MaintenanceOptionController {
|
|
|
new QueryWrapper<MaintenanceOption>()
|
|
|
//0L是固定数据的公司id
|
|
|
.in("mt_company_id", 0L, req.getMtCompanyId())
|
|
|
- //留1是为了兼容以前数据,2.0使用的status版本1 , 3.0使用的status版本2
|
|
|
- .eq("status", 2)
|
|
|
.in(req.getType() != null, "type", type(req))
|
|
|
.eq(req.getLiftType() != null, "lift_type", req.getLiftType())
|
|
|
.in(sort != null, "sort", sort)
|
|
@@ -92,8 +88,6 @@ public class MaintenanceOptionController {
|
|
|
*/
|
|
|
@PostMapping("/add")
|
|
|
public RestResponse add(@RequestBody MaintenanceOption option) {
|
|
|
- //留1是为了兼容以前数据,2.0使用的status版本1 , 3.0使用的status版本2
|
|
|
- option.setStatus(2);
|
|
|
if (optionService.save(option)) {
|
|
|
return RestResponse.success(option.getId(), "成功");
|
|
|
}
|