Merge remote-tracking branch 'origin/master'

master
river 4 years ago
commit 6ff3bc2b00
  1. 3
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgAssetsInvestigationResponse.java
  2. 8
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgGuaranteeAssignUserResponse.java
  3. 3
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/MessageDetailResponse.java
  4. 15
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAssetsInvestigationServiceImpl.java
  5. 77
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java
  6. 14
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgMessageInvestigationServiceImpl.java
  7. 2
      dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java

@ -176,4 +176,7 @@ public class DgAssetsInvestigationResponse implements Serializable {
@ApiModelProperty(value = "评估价值对象")
private DgAssetsMoney dgAssetsMoney;
@ApiModelProperty(value = "资产部调查专员")
private String cName;
}

@ -98,4 +98,12 @@ public class DgGuaranteeAssignUserResponse implements Serializable {
@ApiModelProperty(value = "更新时间")
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
/**
* A角名称
*/
private String aName;
/**
* B角名称
*/
private String bName;
}

@ -46,4 +46,7 @@ public class MessageDetailResponse implements Serializable {
@ApiModelProperty(value = "信息部调查详细")
private DgMessageInvestigation dgMessageInvestigation;
@ApiModelProperty(value = "信息部调查专员")
private String CName;
}

@ -20,6 +20,7 @@ import com.daqing.financial.guarantee.util.OrdinaryUtil;
import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest;
import com.daqing.framework.domain.crms.response.CrmsCode;
import com.daqing.framework.domain.guarantee.*;
import com.daqing.framework.domain.hrms.ext.EmployeeVO;
import com.daqing.framework.domain.hrms.response.HrmsCode;
import com.daqing.framework.exception.ExceptionCast;
import com.daqing.framework.model.StatusCode;
@ -230,6 +231,20 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest
LinkedHashMap linkedList = (LinkedHashMap)result.getData();
//查询该业务id下对应的C角
DgAssetsInvestigation assetsInvestigate = this.baseMapper.selectOne(new QueryWrapper<DgAssetsInvestigation>()
.eq("business_id", assetsResponse.getBusinessId()).eq("type", 1));
if(assetsInvestigate !=null){
Integer empCId = assetsInvestigate.getEmpId();
Integer arr[] = new Integer[]{
empCId
};
if(arr.length>0){
ResponseResult<List<EmployeeVO>> listResponseResult = hrmsFeignService.listEmpNameByUserId(arr);
assetsResponse.setCName(listResponseResult.getData().get(0).getName());
}
}
AssetsDetailResponse assetsDetailResponse = new AssetsDetailResponse();
assetsDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo);
assetsDetailResponse.setLinkedHashMap(linkedList);

@ -22,6 +22,7 @@ import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest;
import com.daqing.framework.domain.crms.response.CrmsCode;
import com.daqing.framework.domain.guarantee.*;
import com.daqing.framework.domain.guarantee.po.DgGuaranteePO;
import com.daqing.framework.domain.hrms.ext.EmployeeVO;
import com.daqing.framework.domain.hrms.response.HrmsCode;
import com.daqing.framework.exception.ExceptionCast;
import com.daqing.framework.model.StatusCode;
@ -192,6 +193,26 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss
}
}
//查询该业务id下对应的A角B角
DgGuaranteeAssignUser assignUser2 = this.baseMapper.selectOne(new QueryWrapper<DgGuaranteeAssignUser>()
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 1));
DgGuaranteeAssignUser assignUser3 = this.baseMapper.selectOne(new QueryWrapper<DgGuaranteeAssignUser>()
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 2));
if(assignUser2 !=null || assignUser3 != null){
Integer empAId = assignUser2.getEmpId();
Integer empBId = assignUser3.getEmpId();
Integer arr[] = new Integer[]{
empAId,empBId
};
if(arr.length>0){
ResponseResult<List<EmployeeVO>> listResponseResult = hrmsFeignService.listEmpNameByUserId(arr);
assignUser.setAName(listResponseResult.getData().get(0).getName());
assignUser.setBName(listResponseResult.getData().get(1).getName());
}
}
GuaranteeDetailResponse guaranteeDetailResponse = new GuaranteeDetailResponse();
guaranteeDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo);
guaranteeDetailResponse.setDgEnclosureInfo(dgEnclosureInfo);
@ -306,22 +327,59 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss
//AB角调查,修改审核意见以及状态
dgGuaranteeAssignUser.setStatus(investigateGuaranteeRequest.getStatus());//状态为审核中
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
this.baseMapper.updateById(dgGuaranteeAssignUser);
// this.baseMapper.updateById(dgGuaranteeAssignUser);
//插入或更新的字段有 空字符串 或者 null
this.baseMapper.update(
null,
Wrappers.<DgGuaranteeAssignUser>lambdaUpdate()
.set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null
.set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_PROCESSED)
.set(DgGuaranteeAssignUser::getStatus, investigateGuaranteeRequest.getStatus())
.eq(DgGuaranteeAssignUser::getId, investigateGuaranteeRequest.getId())
);
}else if(investigateGuaranteeRequest.getIsSaveOrCommit() != null && investigateGuaranteeRequest.getIsSaveOrCommit()!=1){//保存
dgGuaranteeAssignUser.setStatus(guaranteeAssignUser.getStatus());//审批状态 当前是什么状态就是什么状态
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
this.baseMapper.updateById(dgGuaranteeAssignUser);
//this.baseMapper.updateById(dgGuaranteeAssignUser);
//插入或更新的字段有 空字符串 或者 null
this.baseMapper.update(
null,
Wrappers.<DgGuaranteeAssignUser>lambdaUpdate()
.set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null
.set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_ON_HAND)
.set(DgGuaranteeAssignUser::getStatus, guaranteeAssignUser.getStatus())
.eq(DgGuaranteeAssignUser::getId, investigateGuaranteeRequest.getId())
);
}else{
if(investigateGuaranteeRequest.getStatus().equals(StatusCode.SP_REFUSE)){//如果为拒绝,则修改所有审批状态为拒绝,同时A,B角操作状态均为已处理
dgGuaranteeAssignUser.setStatus(StatusCode.SP_REFUSE);//拒绝
this.baseMapper.update(dgGuaranteeAssignUser,new QueryWrapper<DgGuaranteeAssignUser>()
.eq("business_id",guaranteeAssignUser.getBusinessId()));
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//已处理
this.baseMapper.update(dgGuaranteeAssignUser,new QueryWrapper<DgGuaranteeAssignUser>()
/* this.baseMapper.update(dgGuaranteeAssignUser,new QueryWrapper<DgGuaranteeAssignUser>()
.eq("business_id",guaranteeAssignUser.getBusinessId()).eq("type",1));
this.baseMapper.update(dgGuaranteeAssignUser,new QueryWrapper<DgGuaranteeAssignUser>()
.eq("business_id",guaranteeAssignUser.getBusinessId()).eq("type",2));
.eq("business_id",guaranteeAssignUser.getBusinessId()).eq("type",2));*/
this.baseMapper.update(
null,
Wrappers.<DgGuaranteeAssignUser>lambdaUpdate()
.set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null
.set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_PROCESSED)
.set(DgGuaranteeAssignUser::getStatus, StatusCode.SP_REFUSE)
.eq(DgGuaranteeAssignUser::getBusinessId, guaranteeAssignUser.getBusinessId())
.eq(DgGuaranteeAssignUser::getType, 1)
);
this.baseMapper.update(
null,
Wrappers.<DgGuaranteeAssignUser>lambdaUpdate()
.set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null
.set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_PROCESSED)
.set(DgGuaranteeAssignUser::getStatus, StatusCode.SP_REFUSE)
.eq(DgGuaranteeAssignUser::getBusinessId, guaranteeAssignUser.getBusinessId())
.eq(DgGuaranteeAssignUser::getType, 2)
);
//拒绝状态下,修改业务状态为已否决
DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus();
processStatus.setBusinessStatus(3);//已否决
@ -330,7 +388,16 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss
}else{
dgGuaranteeAssignUser.setStatus(investigateGuaranteeRequest.getStatus());//审批状态 请求过来是什么状态就是什么
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
this.baseMapper.updateById(dgGuaranteeAssignUser);
//this.baseMapper.updateById(dgGuaranteeAssignUser);
this.baseMapper.update(
null,
Wrappers.<DgGuaranteeAssignUser>lambdaUpdate()
.set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null
.set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_PROCESSED)
.set(DgGuaranteeAssignUser::getStatus, investigateGuaranteeRequest.getStatus())
.eq(DgGuaranteeAssignUser::getId, investigateGuaranteeRequest.getId())
);
}
}
}

@ -23,6 +23,7 @@ import com.daqing.financial.guarantee.util.OrdinaryUtil;
import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest;
import com.daqing.framework.domain.crms.response.CrmsCode;
import com.daqing.framework.domain.guarantee.*;
import com.daqing.framework.domain.hrms.ext.EmployeeVO;
import com.daqing.framework.domain.hrms.response.HrmsCode;
import com.daqing.framework.exception.ExceptionCast;
import com.daqing.framework.model.StatusCode;
@ -244,6 +245,19 @@ public class DgMessageInvestigationServiceImpl extends ServiceImpl<DgMessageInve
dgEnclosureInfo.setMeetingMinutesList((List<String>) arr1List2.get(12));
dgEnclosureInfo.setMarriageCopyList((List<String>) arr1List2.get(13));
//查询该业务id下对应的C角
DgMessageInvestigation messageInvestigate = this.baseMapper.selectOne(new QueryWrapper<DgMessageInvestigation>()
.eq("business_id", dgMessageInvestigation.getBusinessId()).eq("type", 1));
if(messageInvestigate !=null){
Integer empCId = messageInvestigate.getEmpId();
Integer arr[] = new Integer[]{
empCId
};
if(arr.length>0){
ResponseResult<List<EmployeeVO>> listResponseResult = hrmsFeignService.listEmpNameByUserId(arr);
messageDetailResponse.setCName(listResponseResult.getData().get(0).getName());
}
}
messageDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo);
messageDetailResponse.setDgEnclosureInfo(dgEnclosureInfo);

@ -159,7 +159,7 @@ public class UserLoginServiceImpl extends ServiceImpl<UserLoginDao, UserEntity>
if(loginRequest.getTenDayEffective() == 1){
times = 864000;
}
String token = JwtUtils.createJWT(userEntity.getId()+"",userEntity.getAccount(),"token", times);
String token = JwtUtils.createJWT(userEntity.getId()+"",name,"token", times);
Token userToken = tokenService.getOne(new QueryWrapper<Token>().eq("user_id", userEntity.getId()));
if(userToken != null){
//删除redis里面的token

Loading…
Cancel
Save