|  |  | 
 |  |  | 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.Map; | 
 |  |  | import java.util.Objects; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 生产流程 | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping(path="save") | 
 |  |  |     @SsoPowerAop(power = "-1") | 
 |  |  |     @SsoPowerAop(power = "10200003") | 
 |  |  |     @Log("保存生产流程") | 
 |  |  |     public BaseResponse<Boolean> save(@RequestBody @Valid PrProductionProcess process){ | 
 |  |  |         int count = sv.save(process); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping(path="update") | 
 |  |  |     @SsoPowerAop(power = "-1") | 
 |  |  |     @SsoPowerAop(power = "10200003") | 
 |  |  |     @Log("更新生产流程") | 
 |  |  |     public BaseResponse<Boolean> update(@RequestBody @Valid PrProductionProcess process){ | 
 |  |  |         int count = sv.update(process); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping(path="one") | 
 |  |  |     @SsoPowerAop(power = "-1") | 
 |  |  |     @SsoPowerAop(power = "10200002") | 
 |  |  |     @Log("根据ID查询生产流程") | 
 |  |  |     public BaseResponse<PrProductionProcess> one(Long id){ | 
 |  |  |         PrProductionProcess process=sv.selectById(id); | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping(path="some") | 
 |  |  |     @SsoPowerAop(power = "-1") | 
 |  |  |     @SsoPowerAop(power = "10200002") | 
 |  |  |     @Log("分页查询生产流程") | 
 |  |  |     public BaseResponse<QueryResultVo<List<PrProductionProcess>>> some(@RequestBody QueryVo vo){ | 
 |  |  |         QueryResultVo<List<PrProductionProcess>> list = sv.selectSome(vo) ; | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping(path="queryAll") | 
 |  |  |     @SsoPowerAop(power = "-1") | 
 |  |  |     @SsoPowerAop(power = "10200002") | 
 |  |  |     @Log("查询所有生产流程") | 
 |  |  |     public BaseResponse<List<Map<String,String>>> queryAll(Long proId){ | 
 |  |  |         return BaseResponseUtils.buildSuccess(sv.queryAll(proId)); |