|
|
@@ -113,6 +113,9 @@ public class SysQuotationController extends BaseController {
|
|
|
@ApiOperation(value = "报价单授权批量编辑")
|
|
|
@PostMapping(value = "/batch")
|
|
|
public HttpResult<SysOrganizationQuotation> batch(@RequestBody SysOrganizationQuotation sysOrganizationQuotation) {
|
|
|
+ if (sysOrganizationQuotation.getOrganizationIds().size() == 0){
|
|
|
+ return HttpResult.ok("编辑失败,未选中修改机构");
|
|
|
+ }
|
|
|
// 构造查询条件,根据提供的组织ID集合查询出对应的报价单授权信息,然后进行删除
|
|
|
LambdaQueryWrapper<SysOrganizationQuotation> removeWrapper = new LambdaQueryWrapper<>();
|
|
|
removeWrapper.in(SysOrganizationQuotation::getOrganizationId, sysOrganizationQuotation.getOrganizationIds());
|
|
|
@@ -124,6 +127,7 @@ public class SysQuotationController extends BaseController {
|
|
|
SysOrganizationQuotation quotation = new SysOrganizationQuotation();
|
|
|
quotation.setOrganizationId(organizationId);
|
|
|
quotation.setThemeId(sysOrganizationQuotation.getThemeId());
|
|
|
+ quotation.setThemeCode(sysOrganizationQuotation.getThemeCode());
|
|
|
quotation.setUserId(getUserId());
|
|
|
quotation.setCreateTime(new Date());
|
|
|
quotations.add(quotation);
|