Browse Source

1、流程附件修改问题

dongpo 3 weeks ago
parent
commit
f1a00c2b0e
12 changed files with 24 additions and 0 deletions
  1. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/business/OaBusinessServiceImpl.java
  2. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/conversion/OaConversionServiceImpl.java
  3. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/entry/OaEntryServiceImpl.java
  4. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/expense/OaExpenseServiceImpl.java
  5. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/leave/OaLeaveServiceImpl.java
  6. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/out/OaOutServiceImpl.java
  7. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/purchase/OaPurchaseServiceImpl.java
  8. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/receive/OaReceiveServiceImpl.java
  9. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/renew/OaRenewServiceImpl.java
  10. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/stamp/OaStampServiceImpl.java
  11. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/turnover/OaTurnoverServiceImpl.java
  12. 2 0
      yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/universal/OaUniversalServiceImpl.java

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/business/OaBusinessServiceImpl.java

@@ -128,6 +128,7 @@ public class OaBusinessServiceImpl implements OaBusinessService {
         if (oaBusiness.getId() != null) {
         if (oaBusiness.getId() != null) {
             OaBusinessDO oaBusinessDO = validateOaBusinessExists(oaBusiness.getId());
             OaBusinessDO oaBusinessDO = validateOaBusinessExists(oaBusiness.getId());
             validateOperator(loginUserId, Long.valueOf(oaBusinessDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaBusinessDO.getCreator()));
+            oaBusiness.setBusinessId(oaBusinessDO.getBusinessId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -197,6 +198,7 @@ public class OaBusinessServiceImpl implements OaBusinessService {
         if (oaBusiness.getId() != null) {
         if (oaBusiness.getId() != null) {
             OaBusinessDO oaBusinessDO = validateOaBusinessExists(oaBusiness.getId());
             OaBusinessDO oaBusinessDO = validateOaBusinessExists(oaBusiness.getId());
             validateOperator(loginUserId, Long.valueOf(oaBusinessDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaBusinessDO.getCreator()));
+            oaBusiness.setBusinessId(oaBusinessDO.getBusinessId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/conversion/OaConversionServiceImpl.java

@@ -132,6 +132,7 @@ public class OaConversionServiceImpl implements OaConversionService {
         if (oaConversion.getId() != null) {
         if (oaConversion.getId() != null) {
             OaConversionDO oaConversionDO = validateOaConversionExists(oaConversion.getId());
             OaConversionDO oaConversionDO = validateOaConversionExists(oaConversion.getId());
             validateOperator(loginUserId, Long.valueOf(oaConversionDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaConversionDO.getCreator()));
+            oaConversion.setConversionId(oaConversionDO.getConversionId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -213,6 +214,7 @@ public class OaConversionServiceImpl implements OaConversionService {
         if (oaConversion.getId() != null) {
         if (oaConversion.getId() != null) {
             OaConversionDO oaConversionDO = validateOaConversionExists(oaConversion.getId());
             OaConversionDO oaConversionDO = validateOaConversionExists(oaConversion.getId());
             validateOperator(loginUserId, Long.valueOf(oaConversionDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaConversionDO.getCreator()));
+            oaConversion.setConversionId(oaConversionDO.getConversionId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/entry/OaEntryServiceImpl.java

@@ -132,6 +132,7 @@ public class OaEntryServiceImpl implements OaEntryService {
         if (oaEntry.getId() != null) {
         if (oaEntry.getId() != null) {
             OaEntryDO oaEntryDO = validateOaEntryExists(oaEntry.getId());
             OaEntryDO oaEntryDO = validateOaEntryExists(oaEntry.getId());
             validateOperator(loginUserId, Long.valueOf(oaEntryDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaEntryDO.getCreator()));
+            oaEntry.setEntryId(oaEntryDO.getEntryId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -189,6 +190,7 @@ public class OaEntryServiceImpl implements OaEntryService {
         if (oaEntry.getId() != null) {
         if (oaEntry.getId() != null) {
             OaEntryDO oaEntryDO = validateOaEntryExists(oaEntry.getId());
             OaEntryDO oaEntryDO = validateOaEntryExists(oaEntry.getId());
             validateOperator(loginUserId, Long.valueOf(oaEntryDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaEntryDO.getCreator()));
+            oaEntry.setEntryId(oaEntryDO.getEntryId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/expense/OaExpenseServiceImpl.java

@@ -148,6 +148,7 @@ public class OaExpenseServiceImpl implements OaExpenseService {
         if (oaExpense.getId() != null) {
         if (oaExpense.getId() != null) {
             OaExpenseDO oaExpenseDO = validateOaExpenseExists(oaExpense.getId());
             OaExpenseDO oaExpenseDO = validateOaExpenseExists(oaExpense.getId());
             validateOperator(loginUserId, Long.valueOf(oaExpenseDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaExpenseDO.getCreator()));
+            oaExpense.setExpenseUuid(oaExpenseDO.getExpenseUuid());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -220,6 +221,7 @@ public class OaExpenseServiceImpl implements OaExpenseService {
         if (oaExpense.getId() != null) {
         if (oaExpense.getId() != null) {
             OaExpenseDO oaExpenseDO = validateOaExpenseExists(oaExpense.getId());
             OaExpenseDO oaExpenseDO = validateOaExpenseExists(oaExpense.getId());
             validateOperator(loginUserId, Long.valueOf(oaExpenseDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaExpenseDO.getCreator()));
+            oaExpense.setExpenseUuid(oaExpenseDO.getExpenseUuid());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/leave/OaLeaveServiceImpl.java

@@ -135,6 +135,7 @@ public class OaLeaveServiceImpl implements OaLeaveService {
         if (oaLeave.getId() != null) {
         if (oaLeave.getId() != null) {
             OaLeaveDO oaLeaveDO = validateOaLeaveExists(oaLeave.getId());
             OaLeaveDO oaLeaveDO = validateOaLeaveExists(oaLeave.getId());
             validateOperator(loginUserId, Long.valueOf(oaLeaveDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaLeaveDO.getCreator()));
+            oaLeave.setLeaveId(oaLeaveDO.getLeaveId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -215,6 +216,7 @@ public class OaLeaveServiceImpl implements OaLeaveService {
         if (oaLeave.getId() != null) {
         if (oaLeave.getId() != null) {
             OaLeaveDO oaLeaveDO = validateOaLeaveExists(oaLeave.getId());
             OaLeaveDO oaLeaveDO = validateOaLeaveExists(oaLeave.getId());
             validateOperator(loginUserId, Long.valueOf(oaLeaveDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaLeaveDO.getCreator()));
+            oaLeave.setLeaveId(oaLeaveDO.getLeaveId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/out/OaOutServiceImpl.java

@@ -127,6 +127,7 @@ public class OaOutServiceImpl implements OaOutService {
         if (oaOut.getId() != null) {
         if (oaOut.getId() != null) {
             OaOutDO oaOutDO = validateOaOutExists(oaOut.getId());
             OaOutDO oaOutDO = validateOaOutExists(oaOut.getId());
             validateOperator(loginUserId, Long.valueOf(oaOutDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaOutDO.getCreator()));
+            oaOut.setOutId(oaOutDO.getOutId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -192,6 +193,7 @@ public class OaOutServiceImpl implements OaOutService {
         if (oaOut.getId() != null) {
         if (oaOut.getId() != null) {
             OaOutDO oaOutDO = validateOaOutExists(oaOut.getId());
             OaOutDO oaOutDO = validateOaOutExists(oaOut.getId());
             validateOperator(loginUserId, Long.valueOf(oaOutDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaOutDO.getCreator()));
+            oaOut.setOutId(oaOutDO.getOutId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/purchase/OaPurchaseServiceImpl.java

@@ -125,6 +125,7 @@ public class OaPurchaseServiceImpl implements OaPurchaseService {
         if (oaPurchase.getId() != null) {
         if (oaPurchase.getId() != null) {
             OaPurchaseDO oaPurchaseDO = validateOaPurchaseExists(oaPurchase.getId());
             OaPurchaseDO oaPurchaseDO = validateOaPurchaseExists(oaPurchase.getId());
             validateOperator(loginUserId, Long.valueOf(oaPurchaseDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaPurchaseDO.getCreator()));
+            oaPurchase.setPurchaseUuid(oaPurchaseDO.getPurchaseUuid());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -197,6 +198,7 @@ public class OaPurchaseServiceImpl implements OaPurchaseService {
         if (oaPurchase.getId() != null) {
         if (oaPurchase.getId() != null) {
             OaPurchaseDO oaPurchaseDO = validateOaPurchaseExists(oaPurchase.getId());
             OaPurchaseDO oaPurchaseDO = validateOaPurchaseExists(oaPurchase.getId());
             validateOperator(loginUserId, Long.valueOf(oaPurchaseDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaPurchaseDO.getCreator()));
+            oaPurchase.setPurchaseUuid(oaPurchaseDO.getPurchaseUuid());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/receive/OaReceiveServiceImpl.java

@@ -127,6 +127,7 @@ public class OaReceiveServiceImpl implements OaReceiveService {
         if (oaReceive.getId() != null) {
         if (oaReceive.getId() != null) {
             OaReceiveDO oaReceiveDO = validateOaReceiveExists(oaReceive.getId());
             OaReceiveDO oaReceiveDO = validateOaReceiveExists(oaReceive.getId());
             validateOperator(loginUserId, Long.valueOf(oaReceiveDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaReceiveDO.getCreator()));
+            oaReceive.setReceiveUuid(oaReceiveDO.getReceiveUuid());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -204,6 +205,7 @@ public class OaReceiveServiceImpl implements OaReceiveService {
         if (oaReceive.getId() != null) {
         if (oaReceive.getId() != null) {
             OaReceiveDO oaReceiveDO = validateOaReceiveExists(oaReceive.getId());
             OaReceiveDO oaReceiveDO = validateOaReceiveExists(oaReceive.getId());
             validateOperator(loginUserId, Long.valueOf(oaReceiveDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaReceiveDO.getCreator()));
+            oaReceive.setReceiveUuid(oaReceiveDO.getReceiveUuid());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/renew/OaRenewServiceImpl.java

@@ -139,6 +139,7 @@ public class OaRenewServiceImpl implements OaRenewService {
         if (oaRenew.getId() != null) {
         if (oaRenew.getId() != null) {
             OaRenewDO oaRenewDO = validateOaRenewExists(oaRenew.getId());
             OaRenewDO oaRenewDO = validateOaRenewExists(oaRenew.getId());
             validateOperator(loginUserId, Long.valueOf(oaRenewDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaRenewDO.getCreator()));
+            oaRenew.setRenewId(oaRenewDO.getRenewId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -228,6 +229,7 @@ public class OaRenewServiceImpl implements OaRenewService {
         if (oaRenew.getId() != null) {
         if (oaRenew.getId() != null) {
             OaRenewDO oaRenewDO = validateOaRenewExists(oaRenew.getId());
             OaRenewDO oaRenewDO = validateOaRenewExists(oaRenew.getId());
             validateOperator(loginUserId, Long.valueOf(oaRenewDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaRenewDO.getCreator()));
+            oaRenew.setRenewId(oaRenewDO.getRenewId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/stamp/OaStampServiceImpl.java

@@ -128,6 +128,7 @@ public class OaStampServiceImpl implements OaStampService {
         if (oaStamp.getId() != null) {
         if (oaStamp.getId() != null) {
             OaStampDO oaStampDO = validateOaStampExists(oaStamp.getId());
             OaStampDO oaStampDO = validateOaStampExists(oaStamp.getId());
             validateOperator(loginUserId, Long.valueOf(oaStampDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaStampDO.getCreator()));
+            oaStamp.setStampUuid(oaStampDO.getStampUuid());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -199,6 +200,7 @@ public class OaStampServiceImpl implements OaStampService {
         if (oaStamp.getId() != null) {
         if (oaStamp.getId() != null) {
             OaStampDO oaStampDO = validateOaStampExists(oaStamp.getId());
             OaStampDO oaStampDO = validateOaStampExists(oaStamp.getId());
             validateOperator(loginUserId, Long.valueOf(oaStampDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaStampDO.getCreator()));
+            oaStamp.setStampUuid(oaStampDO.getStampUuid());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/turnover/OaTurnoverServiceImpl.java

@@ -139,6 +139,7 @@ public class OaTurnoverServiceImpl implements OaTurnoverService {
         if (oaTurnover.getId() != null) {
         if (oaTurnover.getId() != null) {
             OaTurnoverDO oaTurnoverDO = validateOaTurnoverExists(oaTurnover.getId());
             OaTurnoverDO oaTurnoverDO = validateOaTurnoverExists(oaTurnover.getId());
             validateOperator(loginUserId, Long.valueOf(oaTurnoverDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaTurnoverDO.getCreator()));
+            oaTurnover.setTurnoverId(oaTurnoverDO.getTurnoverId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -213,6 +214,7 @@ public class OaTurnoverServiceImpl implements OaTurnoverService {
         if (oaTurnover.getId() != null) {
         if (oaTurnover.getId() != null) {
             OaTurnoverDO oaTurnoverDO = validateOaTurnoverExists(oaTurnover.getId());
             OaTurnoverDO oaTurnoverDO = validateOaTurnoverExists(oaTurnover.getId());
             validateOperator(loginUserId, Long.valueOf(oaTurnoverDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaTurnoverDO.getCreator()));
+            oaTurnover.setTurnoverId(oaTurnoverDO.getTurnoverId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();

+ 2 - 0
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/oa/universal/OaUniversalServiceImpl.java

@@ -117,6 +117,7 @@ public class OaUniversalServiceImpl implements OaUniversalService {
         if (oaUniversal.getId() != null) {
         if (oaUniversal.getId() != null) {
             OaUniversalDO oaUniversalDO = validateOaUniversalExists(oaUniversal.getId());
             OaUniversalDO oaUniversalDO = validateOaUniversalExists(oaUniversal.getId());
             validateOperator(loginUserId, Long.valueOf(oaUniversalDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaUniversalDO.getCreator()));
+            oaUniversal.setUniversalId(oaUniversalDO.getUniversalId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();
@@ -176,6 +177,7 @@ public class OaUniversalServiceImpl implements OaUniversalService {
         if (oaUniversal.getId() != null) {
         if (oaUniversal.getId() != null) {
             OaUniversalDO oaUniversalDO = validateOaUniversalExists(oaUniversal.getId());
             OaUniversalDO oaUniversalDO = validateOaUniversalExists(oaUniversal.getId());
             validateOperator(loginUserId, Long.valueOf(oaUniversalDO.getCreator()));
             validateOperator(loginUserId, Long.valueOf(oaUniversalDO.getCreator()));
+            oaUniversal.setUniversalId(oaUniversalDO.getUniversalId());
         } else {
         } else {
             // 创建单据uuid
             // 创建单据uuid
             String uuid = IdUtil.fastSimpleUUID();
             String uuid = IdUtil.fastSimpleUUID();