Pārlūkot izejas kodu

消息通知和融信操作日志

tudc 3 gadi atpakaļ
vecāks
revīzija
b134aa1bb7

+ 22 - 11
sc-service/src/main/java/com/huyi/service/base/entity/SysNotice.java

@@ -1,22 +1,21 @@
 package com.huyi.service.base.entity;
 
-import com.baomidou.mybatisplus.annotation.TableField;
-import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.experimental.Accessors;
 
-import java.io.Serializable;
-import java.util.Date;
-
 /**
  * <p>
  * 消息通知表
  * </p>
  *
- * @author xuefy
- * @since 2021-09-08
+ * @author cuixq
+ * @since 2021-09-14
  */
 @Data
 @EqualsAndHashCode(callSuper = false)
@@ -45,7 +44,7 @@ public class SysNotice implements Serializable {
     private String tableId;
 
     /**
-     * 公告标题
+     * 标题
      */
     @TableField("notice_title")
     private String noticeTitle;
@@ -57,19 +56,19 @@ public class SysNotice implements Serializable {
     private String type;
 
     /**
-     * 消息提醒类型(00:平台欢迎信, 01:发起人审批结果通知, 02:经办人的平台审批结果通知, 03:融资企业经办人融信失效消息通知, 04:融资企业经办人融信生效消息通知)
+     * 消息提醒类型00:平台欢迎信, 01:发起人审批结果通知, 02:经办人的平台审批结果通知, 03:融资企业经办人融信失效消息通知, 04:融资企业经办人融信生效消息通知, 05:融信即将失效消息通知, 06:还款消息通知)
      */
     @TableField("notice_type")
     private String noticeType;
 
     /**
-     * 待办类型:(00:融信审批待审批, 01:审批拒绝待编辑, 02:核心企业待确权, 03:待盖章, 04:待签收, 05:待融资, 06:待还款)
+     * 待办类型:(00:融信审批待审批, 01:审批拒绝待编辑, 02:核心企业待确权, 03:待盖章, 04:待签收, 05:待融资, 06:待还款, 07:平台内部待办)
      */
     @TableField("work_type")
     private String workType;
 
     /**
-     * 状态(0待办 1已办)
+     * 状态(0待办 1已办 2删除
      */
     @TableField("status")
     private String status;
@@ -99,6 +98,18 @@ public class SysNotice implements Serializable {
     private String messageStatus;
 
     /**
+     * 打开方式(00:弹窗 01:链接)
+     */
+    @TableField("open_type")
+    private String openType;
+
+    /**
+     * 打开链接
+     */
+    @TableField("open_url")
+    private String openUrl;
+
+    /**
      * 备注
      */
     @TableField("remark")

+ 65 - 0
sc-service/src/main/java/com/huyi/service/base/entity/ZcFinanceLog.java

@@ -0,0 +1,65 @@
+package com.huyi.service.base.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 融信操作日志表
+ * </p>
+ *
+ * @author cuixq
+ * @since 2021-09-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("zc_finance_log")
+public class ZcFinanceLog implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * ID
+     */
+    @TableId("zfl_id")
+    private String zflId;
+
+    /**
+     * 融信ID(zc_finance_inf.zfi_id)
+     */
+    @TableField("zfl_finance_id")
+    private String zflFinanceId;
+
+    /**
+     * 操作内容
+     */
+    @TableField("zfl_content")
+    private String zflContent;
+
+    /**
+     * 操作人员
+     */
+    @TableField("zfl_user_id")
+    private Long zflUserId;
+
+    /**
+     * 操作时间
+     */
+    @TableField("create_time")
+    private Date createTime;
+
+    /**
+     * 操作完成后的节点
+     */
+    @TableField("create_node")
+    private String createNode;
+
+
+}

+ 16 - 0
sc-service/src/main/java/com/huyi/service/base/mapper/ZcFinanceLogMapper.java

@@ -0,0 +1,16 @@
+package com.huyi.service.base.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.huyi.service.base.entity.ZcFinanceLog;
+
+/**
+ * <p>
+ * 融信操作日志表 Mapper 接口
+ * </p>
+ *
+ * @author cuixq
+ * @since 2021-09-14
+ */
+public interface ZcFinanceLogMapper extends BaseMapper<ZcFinanceLog> {
+
+}

+ 60 - 0
sc-service/src/main/java/com/huyi/service/base/service/IZcFinanceLogService.java

@@ -0,0 +1,60 @@
+package com.huyi.service.base.service;
+
+import com.huyi.service.base.entity.ZcFinanceLog;
+
+import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+
+
+import java.util.List;
+
+/**
+ * ClassName: IZcFinanceLogService<br>
+ * Description: ZcFinanceLogService接口 <br>
+ * Company: keao
+ *
+ * @author cuixq
+ * @version v1.0.0    2021-09-14  cuixq    由Generator自动创建
+ */
+public interface IZcFinanceLogService extends IService<ZcFinanceLog> {
+    /**
+     * 查询(分页)
+     *
+     * @param request QueryRequest
+     * @param wrapper LambdaQueryWrapper<ZcFinanceLog>
+     * @return IPage<ZcFinanceLog>
+     */
+    IPage<ZcFinanceLog> findZcFinanceLogs(QueryRequest request, LambdaQueryWrapper<ZcFinanceLog> wrapper);
+
+    /**
+     * 查询(所有)
+     *
+     * @param wrapper LambdaQueryWrapper<ZcFinanceLog>
+     * @return List<ZcFinanceLog>
+     */
+    List<ZcFinanceLog> findZcFinanceLogs(LambdaQueryWrapper<ZcFinanceLog> wrapper);
+
+    /**
+     * 新增
+     *
+     * @param zcFinanceLog zcFinanceLog
+     */
+    void createZcFinanceLog(ZcFinanceLog zcFinanceLog);
+
+    /**
+     * 修改
+     *
+     * @param zcFinanceLog zcFinanceLog
+     */
+    void updateZcFinanceLog(ZcFinanceLog zcFinanceLog);
+
+    /**
+     * 删除
+     *
+     * @param wrapper LambdaQueryWrapper<ZcFinanceLog>
+     */
+    void deleteZcFinanceLog(LambdaQueryWrapper<ZcFinanceLog> wrapper);
+}

+ 64 - 0
sc-service/src/main/java/com/huyi/service/base/service/impl/ZcFinanceLogServiceImpl.java

@@ -0,0 +1,64 @@
+package com.huyi.service.base.service.impl;
+
+import com.huyi.service.base.entity.ZcFinanceLog;
+import com.huyi.service.base.mapper.ZcFinanceLogMapper;
+import com.huyi.service.base.service.IZcFinanceLogService;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.transaction.annotation.Propagation;
+import org.springframework.beans.factory.annotation.Autowired;
+import com.keao.tianhu.starter.mybatis.plus.entity.QueryRequest;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+
+
+import java.util.List;
+
+/**
+ * ClassName: ZcFinanceLogServiceImpl<br>
+ * Description: IZcFinanceLogService实现 <br>
+ * Company: keao
+ *
+ * @author cuixq
+ * @version v1.0.0    2021-09-14  cuixq    由Generator自动创建
+ */
+@Service
+@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
+public class ZcFinanceLogServiceImpl extends ServiceImpl<ZcFinanceLogMapper, ZcFinanceLog> implements IZcFinanceLogService {
+
+    @Autowired
+    private ZcFinanceLogMapper zcFinanceLogMapper;
+
+    @Override
+    public IPage<ZcFinanceLog> findZcFinanceLogs(QueryRequest request, LambdaQueryWrapper<ZcFinanceLog> wrapper) {
+        Page<ZcFinanceLog> page = new Page<>(request.getPageNum(), request.getPageSize());
+        return this.page(page, wrapper);
+    }
+
+    @Override
+    public List<ZcFinanceLog> findZcFinanceLogs(LambdaQueryWrapper<ZcFinanceLog> wrapper) {
+		return this.list(wrapper);
+    }
+
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public void createZcFinanceLog(ZcFinanceLog zcFinanceLog) {
+        this.save(zcFinanceLog);
+    }
+
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public void updateZcFinanceLog(ZcFinanceLog zcFinanceLog) {
+        this.saveOrUpdate(zcFinanceLog);
+    }
+
+    @Override
+    @Transactional(rollbackFor = Exception.class)
+    public void deleteZcFinanceLog(LambdaQueryWrapper<ZcFinanceLog> wrapper) {
+	    this.remove(wrapper);
+	}
+}

+ 15 - 15
sc-service/src/main/java/com/huyi/service/common/flowable/controller/FlowableController.java

@@ -141,12 +141,12 @@ public class  FlowableController extends BaseController
             //发送盖章待办
             remoteSystemService.sendNotice(zfiCoreId, id,
                     "核心企业开立审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
-                    "00",null,"03","0", use.toString(),null);
+                    "00",null,"03","0", use.toString(),null, null, null);
             //向发起人发起最终结果
             //发送人
             remoteSystemService.sendNotice(zfiCoreId, id,
                     "核心企业开立融信编号为" + zfiNumber + "的资料审批已通过",
-                    "01","01",null,"0", userId.toString(), null);
+                    "01","01",null,"0", userId.toString(), null, null, null);
             //核心企业确权审批
         }else if("1000000007".equals(menuId)){
             //融信主键
@@ -173,7 +173,7 @@ public class  FlowableController extends BaseController
             Long use = list.get(0).getSucrUserId();
             remoteSystemService.sendNotice(zfiCoreId, id,
                     "确权审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
-                    "00",null,"03","0", use.toString(),null);
+                    "00",null,"03","0", use.toString(),null, null, null);
         }
         //融资企业融信申请审批通过
         else if("1000000002".equals(menuId)){
@@ -201,7 +201,7 @@ public class  FlowableController extends BaseController
             String userName = sysUser.getNickName();
             //TODO  发起人最终结果【通过】消息通知
             String title = "【审批通过】由"+ userName +"于"+ createTime +"发起的:融信"+ number +"资料审核已通过,请进行下一步业务操作;";
-            remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"");
+            remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"", null, null);
             //调用平台审批接口
             Map map = new HashMap();
             //实体类转map
@@ -270,7 +270,7 @@ public class  FlowableController extends BaseController
                     user = list.get(0).getSucrUserId();
                 }
                 String title = "【合同签署】由【" + companyName +"】发起的融信【" + zfiNumber + "】资料待签署合同";
-                remoteSystemService.sendNotice(company,zfiId,title,"00","","03","1",user.toString(),"");
+                remoteSystemService.sendNotice(company,zfiId,title,"00","","03","1",user.toString(),"", null, null);
             }
             //TODO 发起人最终结果【通过】消息通知
             //查询发起人,融资企业Id
@@ -287,7 +287,7 @@ public class  FlowableController extends BaseController
             SysUser sysUser = sysUserService.getById(user);
             String userName = sysUser.getNickName();
             String title = "【审批通过】由"+ userName +"于"+ createTime +"发起的:融信"+ number +"资料审核已通过,请进行下一步业务操作;";
-            remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"");
+            remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"", null, null);
         }//融资企业补充资料审批通过
         else if("1000000003".equals(menuId)){
             LambdaQueryWrapper<ZcFinanceInf> wrapper = new LambdaQueryWrapper<>();
@@ -353,7 +353,7 @@ public class  FlowableController extends BaseController
                 String supplierName = supplierCompany.getScyName();
                 //标题
                 String title = "【合同签署】由【"+supplierName+"】发起的融信【"+zfiNumber+"】资料待签署合同";
-                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"");
+                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"", null, null);
 
             }
         } //平台审批通过
@@ -417,7 +417,7 @@ public class  FlowableController extends BaseController
             else if ("2".equals(zfiCreateType)){
                 //标题
                 String title = "【合同签署】由【"+supplierName+"】发起的融信【"+zfiNumber+"】资料待签署合同";
-                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"");
+                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"", null, null);
             }
             //更新融信表状态
             wrapper.eq(ZcFinanceInf::getZfiId,zfiId);
@@ -425,7 +425,7 @@ public class  FlowableController extends BaseController
             // TODO 不管什么类型都给 融资企业经办人 最终结果【通过】消息通知
             //标题
             String title = "【审批通过】您提交于【"+coreName +"】的融信【"+zfiNumber+"】已审批通过,请进行下一步业务操作";
-            remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"");
+            remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"", null, null);
             if ("2".equals(zfiCreateType)){
                 Map map = new HashMap();
                 if (inf != null) {
@@ -455,7 +455,7 @@ public class  FlowableController extends BaseController
             zcFinanceInfService.update(zcfInf,lambdaQueryWrapper);
             //待办标题
             String tittle = "【融资企业签收】由【"+sysCompany.getScyName() +"】发起的融信编号为【"+ id+"】的资料待签署";
-            remoteSystemService.sendNotice(companyId,id,tittle,"00","","03","0",userId,"");
+            remoteSystemService.sendNotice(companyId,id,tittle,"00","","03","0",userId,"", null, null);
             //TODo 给融资企业生成盖章待办
         }
         //融资审批通过
@@ -560,10 +560,10 @@ public class  FlowableController extends BaseController
             SysUser sysUser = sysUserService.getById(user);
             String userName = sysUser.getNickName();
             String title = "【审批拒绝】由"+ userName +"于"+ createTime +"发起的:融信"+ number +"审批被拒绝,拒绝的理由为:"+ reason;
-            remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"");
+            remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"", null, null);
             //TODO 发起人生成待办
             title = "【内部审批】融信【"+number+"】资料待审批,审批发起人【" + userName +"】";
-            remoteSystemService.sendNotice(company,zfiId,title,"00","","01","0",user.toString(),"");
+            remoteSystemService.sendNotice(company,zfiId,title,"00","","01","0",user.toString(),"", null, null);
         }//融资企业融信开立拒绝
         else if("1000000001".equals(menuId)){
             LambdaQueryWrapper<ZcFinanceInf> lambdaQueryWrapper = new LambdaQueryWrapper<>();
@@ -599,7 +599,7 @@ public class  FlowableController extends BaseController
             List list = new ArrayList();
             list.add(user);
             String title = "【审批拒绝】由"+ userName +"于"+ createTime +"发起的:融信"+ number +"审批被拒绝,拒绝的理由为:"+reason;
-            remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"");
+            remoteSystemService.sendNotice(company,zfiId,title,"01","01","","0",user.toString(),"", null, null);
         }//融资企业补充资料审批拒绝
         else if("1000000003".equals(menuId)){
             LambdaQueryWrapper<ZcFinanceInf> wrapper = new LambdaQueryWrapper<>();
@@ -662,7 +662,7 @@ public class  FlowableController extends BaseController
             String coreName = coreCompany.getScyName();
             //标题
             String title = "【审批拒绝】您提交于【"+coreName +"】的融信【"+zfiNumber+"】审批被拒绝,拒绝的理由为:【审批意见】";
-            remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"");
+            remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"", null, null);
         }//融资企业签收审批拒绝
         else if("1000000005".equals(menuId)){
             LambdaQueryWrapper<SysUserCompanyRel> userQueryWrapper = new LambdaQueryWrapper<>();
@@ -680,7 +680,7 @@ public class  FlowableController extends BaseController
             zcFinanceInfService.update(zcFinanceInf,lambdaQueryWrapper);
             //待办标题
             String tittle = "融资企业签收由"+sysCompany.getScyName() +"发起的:融信编号为:"+ id+"的资料代签收";
-            remoteSystemService.sendNotice(companyId,id,tittle,"00",null,"03","0",userId,null);
+            remoteSystemService.sendNotice(companyId,id,tittle,"00",null,"03","0",userId,null, null, null);
             //TODO 给融资企业经办人签收待办
         }//融资审批
         else if("1000000006".equals(menuId)){

+ 10 - 10
sc-service/src/main/java/com/huyi/service/common/flowable/service/impl/ApprovalServiceImpl.java

@@ -125,11 +125,11 @@ public class ApprovalServiceImpl implements ApprovalService {
                 //发送盖章待办
                 remoteSystemService.sendNotice(zfiSupplierId, zfiId,
                         "核心企业开立审批由"+ scyName + "发起的融信编号为" + zfiNumber + "的资料待盖章",
-                        "00",null,"03","0", listUser.get(0).getSucrUserId().toString(),null);
+                        "00",null,"03","0", listUser.get(0).getSucrUserId().toString(),null, null, null);
                 //向发起人发送最终结果【通过】消息通知
                 remoteSystemService.sendNotice(companyId, String.valueOf(userId),
                         "核心企业开立审批融信编号为" + zfiNumber + "的资料审批已通过",
-                        "01","01",null,"0", userId.toString(), null);
+                        "01","01",null,"0", userId.toString(), null, null, null);
             }else if ("450".equals(resMap.get("code"))) {
                 throw new Exception("未配置审批流程");
             }else if (!"200".equals(resMap.get("code"))) {
@@ -231,7 +231,7 @@ public class ApprovalServiceImpl implements ApprovalService {
                 zcFinanceInf.setZfiSignDate(DateUtils.getNowDate());
                 //TODO 融资企业经办人盖章代办
                 String title = "【合同签署】由【"+supplierName+"】发起的融信【"+zfiNumber+"】资料待签署合同";
-                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"");
+                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"", null, null);
                 //查询供应商授信额度表
             }else if ("0".equals(zfiCreateType)){
                 //融信状态(00:待确权 01:待签收 02:已生效 03:已失效 04:融资中 05:已融资 06:平台退回)
@@ -239,14 +239,14 @@ public class ApprovalServiceImpl implements ApprovalService {
                 //TODO 融资企业经办人 最终结果【通过】消息通知
                 //标题
                 String title = "【审批通过】您提交于【"+coreName +"】的融信【"+zfiNumber+"】已审批通过,请进行下一步业务操作";
-                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"");
+                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"01","02","","0",supplierUserId.toString(),"", null, null);
                 // TODO 给核心企业经办人确权待办
                 String coreTitle = "【融信确权】由【"+supplierName+"】发起的融信【融信编号:"+zfiNumber+"】【融信金额:"+zfiAmount+"元】资料待确权";
-                remoteSystemService.sendNotice(zfiSupplierId, zfiId,coreTitle,"00","","02","0",coreUserId.toString(),"");
+                remoteSystemService.sendNotice(zfiSupplierId, zfiId,coreTitle,"00","","02","0",coreUserId.toString(),"", null, null);
             }else if ("2".equals(zfiCreateType)){
                 //TODO 融资企业开立时, 给融资企业经办人生成盖章待办
                 String title = "【合同签署】由【"+supplierName+"】发起的融信【"+zfiNumber+"】资料待签署合同";
-                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"");
+                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"", null, null);
             }
             zcFinanceInfService.updateById(zcFinanceInf);
         }else if (!"200".equals(resMap.get("code"))) {
@@ -314,11 +314,11 @@ public class ApprovalServiceImpl implements ApprovalService {
                 longUser.add(user);
                 remoteSystemService.sendNotice(zfiCoreId, zfiId,
                         "确权审批融信编号为" + zfiNumber + "的资料审批已通过",
-                        "01","01",null,"0", user.toString(), null);
+                        "01","01",null,"0", user.toString(), null, null, null);
                 //向核心企业经办人发送盖章待办
                 remoteSystemService.sendNotice(zfiCoreId, zfiId,
                         "确权审批融信编号为" + zfiNumber + "的资料待盖章,审批发起人为" + userName,
-                        "00",null,"03","0", userId.toString(),null);
+                        "00",null,"03","0", userId.toString(),null, null, null);
                 //未配置审批流程
             }else if ("450".equals(resMap.get("code"))) {
                 throw new Exception("未配置审批流程");
@@ -383,7 +383,7 @@ public class ApprovalServiceImpl implements ApprovalService {
             zcFinanceInfService.updateById(zcFinanceInf);
             //待办标题
             String tittle = "【融资企业签收】由【"+sysCompany.getScyName() +"】发起的:融信编号为【"+ CommonUtil.objToString(map.get("zfiNumber"))+"】的资料待签署";
-            remoteSystemService.sendNotice(companyId,CommonUtil.objToString(map.get("zfiId")),tittle,"00",null,"03","0",userId,null);
+            remoteSystemService.sendNotice(companyId,CommonUtil.objToString(map.get("zfiId")),tittle,"00",null,"03","0",userId,null, null, null);
             //TODO 给融资企业经办人盖章待办
         }else if ("450".equals(resMap.get("code"))) {
             throw new Exception("未配置审批流程");
@@ -576,7 +576,7 @@ public class ApprovalServiceImpl implements ApprovalService {
                 zcFinanceInfService.updateById(financeInf);
                 //TODO 给融资企业经办人生成一条盖章待办
                 String title = "【合同签署】由【"+supplierName+"】发起的融信【"+zfiNumber+"】资料待签署合同";
-                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"");
+                remoteSystemService.sendNotice(zfiSupplierId, zfiId,title,"00","","03","0",supplierUserId.toString(),"", null, null);
             }
         }else if ("450".equals(resMap.get("code"))){
             throw new Exception("未配置审批流程!");

+ 2 - 2
sc-service/src/main/java/com/huyi/service/credit/controller/CreditHandleController.java

@@ -239,7 +239,7 @@ public class CreditHandleController extends BaseController {
             }
             //给融资方经办人添加失效消息
             String title = "【确权失败】您提交于"+coreName+"的【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+bigAmt+"),确权失败,该融信已失效";
-            remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"01","03","","0",handler,"");
+            remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"01","03","","0",handler,"", null, null);
 
         }else if("00".equals(flag)){
             //调确权审批
@@ -440,7 +440,7 @@ public class CreditHandleController extends BaseController {
         }
         //核心企业开立时拒签 需要给核心企业经办人失效消息
         String title = "【融信拒签】您提交于"+supplierName+"的【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+bigAmt+"),融信拒签,该融信已失效";
-        remoteSystemService.sendNotice(zfiCoreId,zfiId,title,"01","03","","0",handler,"");
+        remoteSystemService.sendNotice(zfiCoreId,zfiId,title,"01","03","","0",handler,"", null, null);
 
         return AjaxResult.success();
     }

+ 8 - 8
sc-service/src/main/java/com/huyi/service/credit/controller/OwnMessageController.java

@@ -674,7 +674,7 @@ public class OwnMessageController extends BaseController {
                 financeInfService.updateById(finance);
                 //给融资企业经办人添加一条签收待办
                 String title = "【融资签收】您提交于"+openName+"的【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+"),融信待签收";
-                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","04","0",supplierHandler,"");
+                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","04","0",supplierHandler,"", null, null);
             }else if("02".equals(companyType)){
                 //融资企业
                 //修改融信状态
@@ -691,10 +691,10 @@ public class OwnMessageController extends BaseController {
                 financeInfService.updateById(finance);
                 // 融资企业经办人生成一条去融资待办
                 String title = "【融资待办】"+openName+"签发的融信【"+zfiNumber+"】已生效,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+")";
-                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","05","0",supplierHandler,"");
+                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","05","0",supplierHandler,"", null, null);
                 // 核心企业经办人生成一条已生效消息
                 String  titleName = "【融信生效】您提交于"+receiverName+"的融信【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+")承诺还款日期:"+expireDateA+"融信已生效";
-                remoteSystemService.sendNotice(zfiCoreId,zfiId,titleName,"01","04","","0",coreHandler,"");
+                remoteSystemService.sendNotice(zfiCoreId,zfiId,titleName,"01","04","","0",coreHandler,"", null, null);
             }
 
         }
@@ -721,7 +721,7 @@ public class OwnMessageController extends BaseController {
                 }
                 //给融资企业经办人生成签收待办
                 String title = "【融资签收】您提交于"+openName+"的【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+"),融信待签收";
-                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","04","0",supplierHandler,"");
+                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","04","0",supplierHandler,"", null, null);
 
             }else if("02".equals(companyType)){
                 //融资企业
@@ -739,7 +739,7 @@ public class OwnMessageController extends BaseController {
                 financeInfService.updateById(finance);
                 //给融资企业生成去融资待办
                 String title = "【融资待办】"+openName+"签发的融信【"+zfiNumber+"】已生效,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+")";
-                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","05","0",supplierHandler,"");
+                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","05","0",supplierHandler,"", null, null);
             }
 
         }
@@ -762,10 +762,10 @@ public class OwnMessageController extends BaseController {
                 financeInfService.updateById(finance);
                 //给融资企业经办人生成一条去融资待办
                 String title = "【融资待办】"+openName+"签发的融信【"+zfiNumber+"】已生效,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+")";
-                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","05","0",supplierHandler,"");
+                remoteSystemService.sendNotice(zfiSupplierId,zfiId,title,"00","","05","0",supplierHandler,"", null, null);
                 //给融资企业经办人生成一条生效消息
                 String  titleName = "【融信生效】您提交于"+openName+"的融信【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+")承诺还款日期:"+expireDateA+"融信已生效";
-                remoteSystemService.sendNotice(zfiSupplierId,zfiId,titleName,"01","04","","0",supplierHandler,"");
+                remoteSystemService.sendNotice(zfiSupplierId,zfiId,titleName,"01","04","","0",supplierHandler,"", null, null);
             }else if("02".equals(companyType)){
                 //融资企业
                 //修改融信状态
@@ -780,7 +780,7 @@ public class OwnMessageController extends BaseController {
                 financeInfService.updateById(finance);
                 //给核心企业经办人生成一条确权待办
                 String  title = "【融信待确权】由"+receiverName+"提交的融信【"+zfiNumber+"】,融信金额【"+AmtUtil.moneyFormat(zfiAmount)+"】,(大写:"+zfiAmountBig+"),融信待确权";
-                remoteSystemService.sendNotice(zfiCoreId,zfiId,title,"00","","02","0",coreHandler,"");
+                remoteSystemService.sendNotice(zfiCoreId,zfiId,title,"00","","02","0",coreHandler,"", null, null);
             }
 
         }

+ 2 - 2
sc-service/src/main/java/com/huyi/service/repayment/controller/repaymentController.java

@@ -439,7 +439,7 @@ public class repaymentController extends BaseController {
                 sysNoticeService.updateSysNotice(notice);
             }
             String title = "【还款成功】您开立给【"+companyName+"】的一笔【"+amount+"】(大写:"+ ConvertUpMoneyUtil.toChinese(amount)+")的融信【"+ number +"】,已还款成功!";
-            remoteSystemService.sendNotice(company,zfrId,title,"01","07","","0",user,"");
+            remoteSystemService.sendNotice(company,zfrId,title,"01","07","","0",user,"", null, null);
         }else {
             LambdaQueryWrapper<SysNotice> lambdaQueryWrapper = new LambdaQueryWrapper<>();
             lambdaQueryWrapper.eq(SysNotice::getTableId,zfrId);
@@ -451,7 +451,7 @@ public class repaymentController extends BaseController {
                 sysNoticeService.updateSysNotice(notice);
             }
             String title = "【还款成功】您开立给【"+companyName+"】的一笔【"+amount+"】(大写:"+ ConvertUpMoneyUtil.toChinese(amount) +")的融信【"+ number +"】,已还款成功!";
-            remoteSystemService.sendNotice(coreCompany,zfrId,title,"01","07","","0",handler,"");
+            remoteSystemService.sendNotice(coreCompany,zfrId,title,"01","07","","0",handler,"", null, null);
         }
 
     }

+ 2 - 0
sc-service/src/main/resources/mapper/base/SysNoticeMapper.xml

@@ -16,6 +16,8 @@
         <result column="message_id" property="messageId" />
         <result column="message_code" property="messageCode" />
         <result column="message_status" property="messageStatus" />
+        <result column="open_type" property="openType" />
+        <result column="open_url" property="openUrl" />
         <result column="remark" property="remark" />
         <result column="create_time" property="createTime" />
     </resultMap>

+ 15 - 0
sc-service/src/main/resources/mapper/base/ZcFinanceLogMapper.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huyi.service.base.mapper.ZcFinanceLogMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huyi.service.base.entity.ZcFinanceLog">
+        <id column="zfl_id" property="zflId" />
+        <result column="zfl_finance_id" property="zflFinanceId" />
+        <result column="zfl_content" property="zflContent" />
+        <result column="zfl_user_id" property="zflUserId" />
+        <result column="create_time" property="createTime" />
+        <result column="create_node" property="createNode" />
+    </resultMap>
+
+</mapper>