master
shijie 4 years ago
parent b2decc89a6
commit 2f4c0bad77
  1. 4
      dq-financial-crms/src/main/resources/mapper/crms/CustomerAppletDao.xml
  2. 3
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java
  3. 11
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java

@ -97,8 +97,8 @@
FROM FROM
dg_audit_process dg_audit_process
WHERE WHERE
( reason != NULL OR reason != '' ) /*( reason != NULL OR reason != '' )*/
AND business_id = #{businessId} business_id = #{businessId}
ORDER BY ORDER BY
create_time DESC create_time DESC
LIMIT 1 LIMIT 1

@ -200,7 +200,8 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
// 计算当前部门在当前节点的累计时间 // 计算当前部门在当前节点的累计时间
String existTime = existMap.get(processId).substring(0, existMap.get(processId).indexOf(",")); String existTime = existMap.get(processId).substring(0, existMap.get(processId).indexOf(","));
// 累计时间加上本次时间 // 累计时间加上本次时间
existMap.put(processId, (Integer.parseInt(existTime) + Integer.parseInt(time)) + "," + count); //existMap.put(processId, (Integer.parseInt(existTime) + Integer.parseInt(time)) + "," + count);
existMap.put(processId, (Math.abs(Long.parseLong(existTime) + Long.parseLong(time))) + "," + count);
} }
hashMap.put(Integer.parseInt(departmentId), existMap); hashMap.put(Integer.parseInt(departmentId), existMap);
} }

@ -188,9 +188,16 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss
// } // }
//查询担保部经理审核的金额和期限 DgGuaranteeAssignUser assignUser1=null;
DgGuaranteeAssignUser assignUser1 = this.baseMapper.selectOne(new QueryWrapper<DgGuaranteeAssignUser>() if(guaranteeAssignUser.getType().equals(3)){//查询担保部经理审核的金额和期限
assignUser1 = this.baseMapper.selectOne(new QueryWrapper<DgGuaranteeAssignUser>()
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 3)); .eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 3));
}else{//查询担保部领导审核的金额和期限
assignUser1 = this.baseMapper.selectOne(new QueryWrapper<DgGuaranteeAssignUser>()
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 4));
}
guaranteeAssignUser.setAmount(assignUser1.getAmount()); guaranteeAssignUser.setAmount(assignUser1.getAmount());
guaranteeAssignUser.setTerm(assignUser1.getTerm()); guaranteeAssignUser.setTerm(assignUser1.getTerm());
DgGuaranteeAssignUserResponse assignUser = new DgGuaranteeAssignUserResponse(); DgGuaranteeAssignUserResponse assignUser = new DgGuaranteeAssignUserResponse();

Loading…
Cancel
Save