添加保后管理数据,指定jdk

master
chen 4 years ago
parent b99bddf4ff
commit ab0b165ba4
  1. 13
      dq-financial-api/pom.xml
  2. 15
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgLoanNoticeServiceImpl.java
  3. 8
      dq-financial-hrms/src/main/resources/mapper/hrms/RoleDao.xml
  4. 13
      dq-framework-model/pom.xml
  5. 13
      pom.xml

@ -35,4 +35,17 @@
</dependency>--> </dependency>-->
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

@ -62,6 +62,9 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL
@Autowired @Autowired
private DgLoanCommitteeConsiderMapper loanCommitteeConsiderMapper; private DgLoanCommitteeConsiderMapper loanCommitteeConsiderMapper;
@Autowired
private AlInsuranceListMapper alInsuranceListMapper;
@Autowired @Autowired
private HrmsFeignService hrmsFeignService; private HrmsFeignService hrmsFeignService;
/** /**
@ -135,13 +138,13 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL
businessProcessStatusQueryWrapper.eq("business_id",businessId); businessProcessStatusQueryWrapper.eq("business_id",businessId);
DgBusinessProcessStatus dgBusinessProcessStatus = businessProcessStatusMapper.selectOne(businessProcessStatusQueryWrapper); DgBusinessProcessStatus dgBusinessProcessStatus = businessProcessStatusMapper.selectOne(businessProcessStatusQueryWrapper);
dgBusinessProcessStatus.setBusinessStatus(StatusCode.YW_COMPLETED); dgBusinessProcessStatus.setBusinessStatus(StatusCode.YW_COMPLETED);
int updateById = businessProcessStatusMapper.updateById(dgBusinessProcessStatus); businessProcessStatusMapper.updateById(dgBusinessProcessStatus);
//查询保后管理的相关数据
DgApplyAmountInfo applyAmountInfo = applyAmountInfoMapper.selectById(businessId); DgApplyAmountInfo applyAmountInfo = applyAmountInfoMapper.selectById(businessId);
String bank = applyAmountInfo.getBank(); String bank = applyAmountInfo.getBank();
String businessCode = applyAmountInfo.getBusinessCode(); String businessCode = applyAmountInfo.getBusinessCode();
String businessType = applyAmountInfo.getBusinessType(); String businessType = applyAmountInfo.getBusinessType();
Date createTime = applyAmountInfo.getCreateTime(); Date createTime = applyAmountInfo.getCreateTime();
Integer companyId = applyAmountInfo.getCompanyId();
String amountWide = applyAmountInfo.getAmountWide(); String amountWide = applyAmountInfo.getAmountWide();
Integer presenterId = applyAmountInfo.getPresenterId(); Integer presenterId = applyAmountInfo.getPresenterId();
DgBusinessCompany businessCompany = businessCompanyMapper.selectOne(new QueryWrapper<DgBusinessCompany>().eq("business_id", businessId)); DgBusinessCompany businessCompany = businessCompanyMapper.selectOne(new QueryWrapper<DgBusinessCompany>().eq("business_id", businessId));
@ -161,6 +164,7 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL
alInsuranceList.setGuaranteeAmount(BigDecimal.valueOf(loanMoney*10000)); alInsuranceList.setGuaranteeAmount(BigDecimal.valueOf(loanMoney*10000));
alInsuranceList.setGuaranteeTime(loanTern); alInsuranceList.setGuaranteeTime(loanTern);
alInsuranceList.setAmountWide(amountWide); alInsuranceList.setAmountWide(amountWide);
alInsuranceList.setPaymentStatus(1);
ArrayList<Integer> arr = new ArrayList<>(); ArrayList<Integer> arr = new ArrayList<>();
arr.add(presenterId); arr.add(presenterId);
//根据提单人id查询其部门名称 //根据提单人id查询其部门名称
@ -176,9 +180,10 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL
} }
} }
} }
//更新成功,返回操作结果 int insert = alInsuranceListMapper.insert(alInsuranceList);
log.info(updateById > 0 ? "业务流程已完成" : "业务流程已完成更新失败"); //添加成功,返回操作结果
return updateById > 0; log.info(insert > 0 ? "业务流程已完成,进入保后管理" : "业务流程更新失败");
return insert > 0;
} }
} }

@ -33,4 +33,12 @@
role_id = #{roleId} role_id = #{roleId}
</select> </select>
<select id="selectUserRole" resultType="java.lang.Integer">
SELECT count(*)
FROM
hrms_employee_role
WHERE
role_id = #{roleId} and user_id = #{userId}
</select>
</mapper> </mapper>

@ -22,4 +22,17 @@
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

@ -21,4 +21,17 @@
<!--<module>dq-financial-workflow</module>--> <!--<module>dq-financial-workflow</module>-->
<module>dq-financial-guarantee</module> <module>dq-financial-guarantee</module>
</modules> </modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

Loading…
Cancel
Save