|
@@ -43,6 +43,8 @@ public class MaintenanceOptionController {
|
|
|
new Page<>(req.getPageNum(), req.getPageSize()), new QueryWrapper<MaintenanceOption>()
|
|
|
//10086是平台的团队id
|
|
|
.in("mt_company_id", 10086L, 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")
|
|
@@ -70,6 +72,8 @@ public class MaintenanceOptionController {
|
|
|
new QueryWrapper<MaintenanceOption>()
|
|
|
//10086是平台的团队id
|
|
|
.in("mt_company_id", 10086L, 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)
|
|
@@ -88,6 +92,8 @@ 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(), "成功");
|
|
|
}
|