diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/drafting/controller/PayDraftingGroupSubItemController.java b/jero-boot-incoming-payment/src/main/java/com/jero/drafting/controller/PayDraftingGroupSubItemController.java index c8bec5bf..06a385ff 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/drafting/controller/PayDraftingGroupSubItemController.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/drafting/controller/PayDraftingGroupSubItemController.java @@ -23,6 +23,7 @@ import com.jero.drafting.vo.CheckVo; import com.jero.drafting.vo.PayDraftingGroupSubItemExcel; import com.jero.modules.system.entity.SysUser; import com.jero.modules.system.service.ISysUserService; +import com.jero.project.entity.PayWorkingGroupSubItemContacts; import com.jero.temporary.entity.PayContactsManagementTemporary; import com.jero.temporary.service.IPayContactsManagementTemporaryService; import io.swagger.annotations.Api; @@ -33,6 +34,7 @@ import org.apache.commons.lang3.StringUtils; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.BeanUtils; +import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.ModelAndView; @@ -240,6 +242,7 @@ public class PayDraftingGroupSubItemController extends JeroController batchAdd(@RequestBody PayDraftingGroupSubItem payDraftingGroupSubItem) { String draftingGroupIds = payDraftingGroupSubItem.getDraftingGroupIds(); if (StringUtils.isBlank(draftingGroupIds)) { @@ -247,6 +250,10 @@ public class PayDraftingGroupSubItemController extends JeroController payDraftingGroupSubItemContacts = + payDraftingGroupSubItem.getPayDraftingGroupSubItemContactsList(); + payDraftingGroupSubItemContacts.forEach(p-> p.setId(null)); payDraftingGroupSubItem.setDraftingGroupId(draftingGroupId); StringBuilder msg = ValidUtil.validateAll(payDraftingGroupSubItem); if (!StringUtils.isBlank(msg)) {