|
@@ -111,6 +111,23 @@ public class PtlAgreementController extends BaseController {
|
|
|
return HttpResult.ok("批量修改协议成功");
|
|
return HttpResult.ok("批量修改协议成功");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/batchAuditType")
|
|
|
|
|
+ @ApiOperation("批量修改协议是否启用状态")
|
|
|
|
|
+ public HttpResult<Object> batchAuditType(@RequestBody PltAgreementBatchVo pltAgreementBatchVo) {
|
|
|
|
|
+ List<PtlAgreement> ptlAgreements = new ArrayList<>();
|
|
|
|
|
+ for (String agreementId : pltAgreementBatchVo.getAgreementIds()) {
|
|
|
|
|
+ PtlAgreement ptlAgreement = new PtlAgreement();
|
|
|
|
|
+ ptlAgreement.setId(agreementId);
|
|
|
|
|
+ ptlAgreement.setAuditType(pltAgreementBatchVo.getAuditType());
|
|
|
|
|
+ ptlAgreements.add(ptlAgreement);
|
|
|
|
|
+ }
|
|
|
|
|
+ boolean b = ptlAgreementService.updateBatchById(ptlAgreements);
|
|
|
|
|
+ AssertionUtils.isSucceed(b, "批量修改协议失败");
|
|
|
|
|
+ return HttpResult.ok("批量修改协议成功");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@GetMapping("/{agreementId}")
|
|
@GetMapping("/{agreementId}")
|
|
|
@ApiOperation("通过协议id查询所有信息")
|
|
@ApiOperation("通过协议id查询所有信息")
|
|
|
public HttpResult<PtlAgreementQueryVo> getByAgreementId(@PathVariable String agreementId) {
|
|
public HttpResult<PtlAgreementQueryVo> getByAgreementId(@PathVariable String agreementId) {
|