|  |  | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 更新 | 
 |  |  |      * @param line | 
 |  |  | 
 |  |  |     @Log("更新生产线") | 
 |  |  |     public BaseResponse<Boolean> update(@RequestBody @Valid PltProductionLine line){ | 
 |  |  |         int count = sv.update(line); | 
 |  |  |         if (count <= 0) { | 
 |  |  |             return BaseResponseUtils.buildFail("数据库存储失败"); | 
 |  |  |         } else { | 
 |  |  |             return BaseResponseUtils.buildSuccess(true); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 启用\禁用生产线 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping(path="disabled") | 
 |  |  |     @SsoPowerAop(power = "10300005") | 
 |  |  |     @Log("设置生产线状态") | 
 |  |  |     //{id: "2", disabled: true} | 
 |  |  |     public BaseResponse<Boolean> disabled(@RequestBody PltProductionLine line){ | 
 |  |  |         int count = sv.updateStatus(line); | 
 |  |  |         if (count <= 0) { | 
 |  |  |             return BaseResponseUtils.buildFail("数据库存储失败"); | 
 |  |  |         } else { | 
 |  |  | 
 |  |  |             return BaseResponseUtils.buildSuccess(true); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据ID查询 | 
 |  |  | 
 |  |  |  | 
 |  |  |         return BaseResponseUtils.buildSuccess(list); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } | 
 |  |  |  |