master
chen 4 years ago
parent c36d585fa0
commit 1cae825d44
  1. 6
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java
  2. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgApplyAmountInfoService.java
  3. 8
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java
  4. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeLetterAssignUserServiceImpl.java
  5. 3
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgLoanNoticeServiceImpl.java
  6. 2
      dq-financial-guarantee/src/main/resources/mapper/guarantee/DgGuaranteeLetterAssignUserMapper.xml
  7. 2
      dq-financial-guarantee/src/main/resources/mapper/guarantee/DgLoanNoticeMapper.xml
  8. 2
      dq-financial-guarantee/src/main/resources/mapper/guarantee/DgPaymentConfirmationConsiderMapper.xml

@ -79,11 +79,7 @@ public class DgApplyAmountInfoController implements DgApplyAmountInfoControllerA
@GetMapping("/getRoles") @GetMapping("/getRoles")
@ApiOperation(value = "获取当前用户角色") @ApiOperation(value = "获取当前用户角色")
public ResponseResult getRoles(){ public ResponseResult getRoles(){
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); String roleIds = applyAmountInfoService.getRoles();
String token = request.getHeader("token");
String userId = RedisUtil.get("dq:token:" + token);
//获取当前用户拥有的角色ids
String roleIds = RedisUtil.get("dq:userRole:" + userId);
return ResponseResult.SUCCESS(roleIds); return ResponseResult.SUCCESS(roleIds);
} }

@ -32,4 +32,6 @@ public interface IDgApplyAmountInfoService extends IService<DgApplyAmountInfo> {
Boolean excelExport(List<String> ids,HttpServletResponse response); Boolean excelExport(List<String> ids,HttpServletResponse response);
int approvalBusinessApplication(Integer id, Integer status, String remark, Integer companyId); int approvalBusinessApplication(Integer id, Integer status, String remark, Integer companyId);
String getRoles();
} }

@ -80,6 +80,14 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM
@Resource @Resource
private DgApplyAmountInfoController dgApplyAmountInfoController; private DgApplyAmountInfoController dgApplyAmountInfoController;
@Override
public String getRoles() {
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
String token = request.getHeader("token");
String userId = RedisUtil.get("dq:token:" + token);
//获取当前用户拥有的角色ids
return RedisUtil.get("dq:userRole:" + userId);
}
@Override @Override
@Transactional @Transactional

@ -626,7 +626,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran
tempA.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_A_ID); tempA.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_A_ID);
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserA = baseMapper.selectOne(tempA); DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserA = baseMapper.selectOne(tempA);
dgGuaranteeLetterAssignUserA.setStatus(StatusCode.SP_REJECT); dgGuaranteeLetterAssignUserA.setStatus(StatusCode.SP_REJECT);
dgGuaranteeLetterAssignUserA.setStatus(StatusCode.CZ_PROCESSED); dgGuaranteeLetterAssignUserA.setOperatingStatus(StatusCode.CZ_PROCESSED);
baseMapper.updateById(dgGuaranteeLetterAssignUserA); baseMapper.updateById(dgGuaranteeLetterAssignUserA);
//更新法规部经理的审核状态为驳回,操作状态为待处理 //更新法规部经理的审核状态为驳回,操作状态为待处理

@ -137,7 +137,7 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL
DgLoanNotice loanNotice = baseMapper.selectOne(loanNoticeQueryWrapper); DgLoanNotice loanNotice = baseMapper.selectOne(loanNoticeQueryWrapper);
loanNotice.setAuditOpinion(auditOpinion); loanNotice.setAuditOpinion(auditOpinion);
loanNotice.setConsiderId(currentUser); loanNotice.setConsiderId(currentUser);
loanNotice.setStatus(StatusCode.SP_REVIEWED); loanNotice.setStatus(StatusCode.SP_REJECT);
loanNotice.setOperatingStatus(StatusCode.CZ_PROCESSED); loanNotice.setOperatingStatus(StatusCode.CZ_PROCESSED);
int update = baseMapper.updateById(loanNotice); int update = baseMapper.updateById(loanNotice);
//同时往审核流程进程表新增一条记录 //同时往审核流程进程表新增一条记录
@ -150,6 +150,7 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL
DgPaymentConfirmationConsider paymentConfirmationConsider = paymentConfirmationConsiderMapper.selectOne(queryWrapper); DgPaymentConfirmationConsider paymentConfirmationConsider = paymentConfirmationConsiderMapper.selectOne(queryWrapper);
paymentConfirmationConsider.setStatus(StatusCode.SP_REJECT); paymentConfirmationConsider.setStatus(StatusCode.SP_REJECT);
paymentConfirmationConsider.setOperatingStatus(StatusCode.CZ_ON_HAND); paymentConfirmationConsider.setOperatingStatus(StatusCode.CZ_ON_HAND);
paymentConfirmationConsider.setAuditOpinion("");
int updateById = paymentConfirmationConsiderMapper.updateById(paymentConfirmationConsider); int updateById = paymentConfirmationConsiderMapper.updateById(paymentConfirmationConsider);
//更新成功,返回操作结果 //更新成功,返回操作结果
log.info(updateById > 0 ? "驳回更新财务部经理成功" : "驳回更新财务部经理失败"); log.info(updateById > 0 ? "驳回更新财务部经理成功" : "驳回更新财务部经理失败");

@ -51,7 +51,7 @@
AND (lau.user_id = #{userId} or lau.user_id is null OR lau.user_id = '') AND (lau.user_id = #{userId} or lau.user_id is null OR lau.user_id = '')
</if> </if>
<if test="customerNumberOrName != null and customerNumberOrName != ''"> <if test="customerNumberOrName != null and customerNumberOrName != ''">
AND aai.business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR cc.name LIKE CONCAT('%',#{customerNumberOrName},'%') AND (aai.business_code LIKE CONCAT('%' #{customerNumberOrName} '%') OR cc.name LIKE CONCAT('%' #{customerNumberOrName} '%'))
</if> </if>
<if test="status != null and status != ''"> <if test="status != null and status != ''">
AND lau.status = #{status} AND lau.status = #{status}

@ -49,7 +49,7 @@
AND (ln.consider_id = #{userId} or ln.consider_id is null OR ln.consider_id = '') AND (ln.consider_id = #{userId} or ln.consider_id is null OR ln.consider_id = '')
</if> </if>
<if test="customerNumberOrName != null and customerNumberOrName != ''"> <if test="customerNumberOrName != null and customerNumberOrName != ''">
AND aai.business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR cc.name LIKE CONCAT('%',#{customerNumberOrName},'%') AND (aai.business_code LIKE CONCAT('%' #{customerNumberOrName} '%') OR cc.name LIKE CONCAT('%' #{customerNumberOrName} '%'))
</if> </if>
<if test="status != null and status != ''"> <if test="status != null and status != ''">
AND ln.status = #{status} AND ln.status = #{status}

@ -53,7 +53,7 @@
AND (pcc.consider_id = #{userId} or pcc.consider_id is null OR pcc.consider_id = '') AND (pcc.consider_id = #{userId} or pcc.consider_id is null OR pcc.consider_id = '')
</if> </if>
<if test="customerNumberOrName != null and customerNumberOrName != ''"> <if test="customerNumberOrName != null and customerNumberOrName != ''">
AND aai.business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR cc.name LIKE CONCAT('%',#{customerNumberOrName},'%') AND (aai.business_code LIKE CONCAT('%' #{customerNumberOrName} '%') OR cc.name LIKE CONCAT('%' #{customerNumberOrName} '%'))
</if> </if>
<if test="status != null and status != ''"> <if test="status != null and status != ''">
AND pcc.status = #{status} AND pcc.status = #{status}

Loading…
Cancel
Save