|
@@ -79,4 +79,16 @@ public class ReplacementInstrumentCooperationController extends BaseController {
|
|
|
public HttpResponseResult<ReplacementInstrumentCooperation> openPay(Integer id) {
|
|
|
return succeed(replacementInstrumentCooperationService.openPay(id));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "修改")
|
|
|
+ @PostMapping("/update")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('replacementInstrumentCooperation/update')")
|
|
|
+ public Object update(Integer id,String title) {
|
|
|
+ ReplacementInstrumentCooperation cooperation = replacementInstrumentCooperationService.get(id);
|
|
|
+ if(cooperation == null){
|
|
|
+ return failed("活动不存在");
|
|
|
+ }
|
|
|
+ cooperation.setTitle(title);
|
|
|
+ return succeed(replacementInstrumentCooperationService.update(cooperation));
|
|
|
+ }
|
|
|
}
|