Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
3319ac9b6f
@ -4,6 +4,7 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.module.base.entity.RepairRecordsItem;
|
||||
import cn.iocoder.yudao.module.base.service.RepairRecordsItemService;
|
||||
import cn.iocoder.yudao.module.base.service.RepairRecordsService;
|
||||
import cn.iocoder.yudao.module.base.vo.RepairRecordsPageReqVO;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@ -56,5 +57,16 @@ public class RepairRecordsController {
|
||||
return CommonResult.success("");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据条件查询维修记录
|
||||
*
|
||||
* @author 小李
|
||||
* @date 9:48 2024/10/25
|
||||
* @param reqVO RepairRecordsPageReqVO实体
|
||||
**/
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "根据条件查询维修记录")
|
||||
public CommonResult<?> queryList(RepairRecordsPageReqVO reqVO) {
|
||||
return CommonResult.success(repairRecordsService.queryList(reqVO));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,34 @@
|
||||
package cn.iocoder.yudao.module.base.controller.admin;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.module.base.service.RepairRecordsItemService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/dl/repair-records-item")
|
||||
public class RepairRecordsItemController {
|
||||
|
||||
@Resource
|
||||
private RepairRecordsItemService repairRecordsItemService;
|
||||
|
||||
/**
|
||||
* 设置图片是否开放给用户
|
||||
*
|
||||
* @author 小李
|
||||
* @date 9:53 2024/10/25
|
||||
* @param ids 前端选中图片id(多个用“,”分隔)
|
||||
* @param isOpen 0否1是
|
||||
**/
|
||||
@GetMapping("/updateOpen")
|
||||
@Operation(summary = "设置图片是否开放给用户")
|
||||
public CommonResult<?> updateOpen(@RequestParam("ids") String ids, @RequestParam("isOpen") String isOpen) {
|
||||
repairRecordsItemService.setRepairOpen(ids, isOpen);
|
||||
return CommonResult.ok();
|
||||
}
|
||||
}
|
@ -13,5 +13,4 @@ import lombok.ToString;
|
||||
public class RepairRecordsPageReqVO extends RepairRecords {
|
||||
/**是否开放给用户*/
|
||||
private String isOpen;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user