Browse Source

阿米巴发起划拨开发

anderx 3 years ago
parent
commit
b465055ae4

+ 3 - 1
src/main/java/com/goafanti/ambSystem/service/Impl/AmbInvestServiceImpl.java

@@ -41,6 +41,7 @@ public class AmbInvestServiceImpl extends BaseMybatisDao<AmbInvestMapper> implem
     @Override
     @Transactional
     public int pushInvestTransfer(InputAmbInvest in) {
+        AmbSystem myAmb = ambSystemMapper.selectByPrimaryKey(in.getMyAmbId());
         AmbSystem other=ambSystemMapper.selectByPrimaryKey(in.getOtherAmbId());
         AmbInvest ambInvest=new AmbInvest();
         ambInvest.setInitiateAmbId(in.getMyAmbId());
@@ -56,7 +57,8 @@ public class AmbInvestServiceImpl extends BaseMybatisDao<AmbInvestMapper> implem
         log.setOperator(TokenManager.getAdminId());
         log.setStatus(1);
         ambInvestLogMapper.insertSelective(log);
-        asyncUtils.addNoticAndEmail(other.getAccountant(), NoticeStatus.AMB_INVEST_START.getCode(),"阿米巴" );
+        String str="["+myAmb.getName()+"]管理员发起了对["+other.getName()+"]"+"的金额投资,请及时确认!";
+        asyncUtils.addNoticAndEmail(myAmb.getAccountant(), NoticeStatus.AMB_INVEST_START.getCode(),str );
         return 1;
     }
 

+ 3 - 3
src/main/java/com/goafanti/common/enums/NoticeStatus.java

@@ -75,9 +75,9 @@ public enum NoticeStatus {
 	PROJECT_RENEW_START(66,"项目重启流程发起"),
 	PROJECT_RENEW_YES(67,"项目重启流程通过"),
 	PROJECT_RENEW_NO(68,"项目重启流程拒绝"),
-	AMB_INVEST_START(69,"阿米巴划拨发起"),
-	AMB_INVEST_YES(70,"阿米巴划拨通过"),
-	AMB_INVEST_NO(71,"阿米巴划拨拒绝"),
+	AMB_INVEST_START(69,"阿米巴投资发起"),
+	AMB_INVEST_YES(70,"阿米巴投资通过"),
+	AMB_INVEST_NO(71,"阿米巴投资拒绝"),
 	OTHER(0, "其他");
 
 	private NoticeStatus(Integer code, String desc) {