| | |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pmsGlobal.aop.Log; |
| | | import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan; |
| | | import com.dy.pmsGlobal.pojoPr.PrDevOpsPlan; |
| | | import jakarta.validation.Valid; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 安装运维任务计划 |
| | |
| | | |
| | | |
| | | @PostMapping(path="save") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200005") |
| | | @Log("保存组装任务计划") |
| | | public BaseResponse<Boolean> save(@RequestBody @Valid PrDevOpsPlan plan){ |
| | | int count = sv.save(plan); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping(path="update") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200005") |
| | | @Log("更新组装任务计划") |
| | | public BaseResponse<Boolean> update(@RequestBody @Valid PrDevOpsPlan plan){ |
| | | int count = sv.update(plan); |
| | |
| | | } |
| | | |
| | | @PostMapping(path="updateStatus") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200005") |
| | | @Log("更新任务计划状态") |
| | | public BaseResponse<Boolean> updateStatus(@RequestBody PrDevOpsPlan plan){ |
| | | int count = sv.updateStatus(plan); |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping(path="one") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200004") |
| | | @Log("根据ID查询组装任务计划") |
| | | public BaseResponse<PrDevOpsPlan> one(Long id){ |
| | | PrDevOpsPlan plan=sv.selectById(id); |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping(path="some") |
| | | @SsoPowerAop(power = "-1") |
| | | @SsoPowerAop(power = "10200004") |
| | | @Log("分页查询组装任务计划") |
| | | public BaseResponse<QueryResultVo<List<PrDevOpsPlan>>> some(@RequestBody QueryVo vo){ |
| | | QueryResultVo<List<PrDevOpsPlan>> list = sv.selectSome(vo) ; |