多级驳回至贷审会时返回状态

master
river 4 years ago
parent dafcc60758
commit c4b0fc85fb
  1. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgLoanCommitteeConsiderMapper.java
  2. 5
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java
  3. 4
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgLoanCommitteeConsiderServiceImpl.java
  4. 5
      dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanCommitteeConsiderMapper.xml

@ -54,6 +54,8 @@ public interface DgLoanCommitteeConsiderMapper extends BaseMapper<DgLoanCommitte
@Param("auditStatus") Integer auditStatus, @Param("operatingStatus") Integer operatingStatus,
@Param("auditOpinion") String auditOpinion);
Boolean updateGuaranteeLetterAuditStatusByBusinessId(@Param("businessId") Integer businessId, @Param("auditStatus") Integer auditStatus);
Integer getAuditStatus(Integer id);
Boolean updateLoanCommitteeConsiderUserIdById(@Param("id") Integer id, @Param("userId") Integer userId);

@ -22,8 +22,7 @@ import com.daqing.financial.guarantee.util.DateUtils;
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo;
import com.daqing.framework.domain.guarantee.DgAuditProcess;
import com.daqing.framework.domain.guarantee.GuaranteeCode;
import com.daqing.framework.domain.guarantee.po.DgWorkConferencePO;
import com.daqing.framework.domain.guarantee.po.StatusPO;
import com.daqing.framework.domain.guarantee.po.*;
import com.daqing.framework.exception.ExceptionCast;
import com.daqing.framework.model.StatusCode;
import com.daqing.framework.model.response.PromptSuccess;
@ -42,8 +41,6 @@ import com.google.common.collect.Maps;
import org.springframework.stereotype.Service;
import com.daqing.framework.domain.guarantee.po.DgTeamEfficiencyPO;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

@ -134,6 +134,10 @@ public class DgLoanCommitteeConsiderServiceImpl extends ServiceImpl<DgLoanCommit
result1 = this.getBaseMapper().updateGuaranteeLetterAssignUser(
this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(),
PromptSuccess.FG_JL_ID, StatusCode.SP_IN_REVIEW, StatusCode.CZ_ON_HAND,"");
// 此时有可能是多级驳回至贷审会,所以要以业务id更新担保函审核状态
this.getBaseMapper().updateGuaranteeLetterAuditStatusByBusinessId(
this.getBaseMapper().getDgLoanCommitteeConsider(dgLoanCommitteeConsiderRequest.getId()).getBusinessId(),
StatusCode.SP_IN_REVIEW);
} else {
// 当前贷审会的操作状态不为驳回,表示不是担保函驳回数据,在担保函表中插入一条数据
DgGuaranteeLetterAssignUser guaranteeLetterAssignUser = new DgGuaranteeLetterAssignUser();

@ -143,6 +143,11 @@
WHERE business_id = #{businessId} AND role_id = #{roleId}
</update>
<!-- 根据业务id更新担保函的审核状态 -->
<update id="updateGuaranteeLetterAuditStatusByBusinessId">
UPDATE dg_guarantee_letter_assign_user SET status = #{auditStatus} WHERE business_id = #{businessId}
</update>
<!-- 根据id绑定用户id -->
<update id="updateLoanCommitteeConsiderUserIdById">
UPDATE dg_loan_committee_consider SET consider_id = #{userId} WHERE id = #{id}

Loading…
Cancel
Save