|
@@ -188,17 +188,15 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
|
|
|
|
|
|
/**
|
|
|
* 审核
|
|
|
- * @param id
|
|
|
- * @param flag 1通过 2 驳回
|
|
|
+ * @param identityAuthenticationInfo
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public String examine(String id, Integer flag) {
|
|
|
+ public String examine(IdentityAuthenticationInfo identityAuthenticationInfo) {
|
|
|
//查询粮商列表
|
|
|
- IdentityAuthenticationInfo identityAuthenticationInfo = this.selectById(id);
|
|
|
- if (!StringUtils.isEmpty(identityAuthenticationInfo.getId())){
|
|
|
+ if (identityAuthenticationInfo!=null){
|
|
|
//通过
|
|
|
- if(flag==1){
|
|
|
+ if("1".equals(identityAuthenticationInfo.getFlag())){
|
|
|
identityAuthenticationInfo.setAuthenticationStatusKey(StatusEnum.IDENTITY_COMPLETED.getFlag());
|
|
|
identityAuthenticationInfo.setAuthenticationStatus(StatusEnum.IDENTITY_COMPLETED.getName());
|
|
|
}
|
|
@@ -225,7 +223,7 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
|
|
|
.eq("common_id",identityAuthenticationInfo.getCommonId())
|
|
|
.eq(IdentityAuthenticationInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0)
|
|
|
.eq(IdentityAuthenticationInfo.QueryFiles.DEFAULT_FLAG,NumberConstant.CONSTANT1));
|
|
|
- if(!StringUtils.isEmpty(identityAuthenticationInfo1.getId())){
|
|
|
+ if(identityAuthenticationInfo1!=null){
|
|
|
//取消默认
|
|
|
identityAuthenticationInfo1.setDefaultFlag("0");
|
|
|
this.updateById(identityAuthenticationInfo1);
|