|
@@ -112,15 +112,16 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
|
|
if ("1".equals(identityAuthenticationInfo2.getCover())) {
|
|
if ("1".equals(identityAuthenticationInfo2.getCover())) {
|
|
identityAuthenticationInfo2.setCover("0");
|
|
identityAuthenticationInfo2.setCover("0");
|
|
}
|
|
}
|
|
-// IdentityAuthenticationInfo identityAuthenticationInfo1 = this.selectOne(new EntityWrapper<IdentityAuthenticationInfo>()
|
|
|
|
-// .eq("customer_phone", identityAuthenticationInfo.getCustomerPhone())
|
|
|
|
-// .eq("customer_type_flag", identityAuthenticationInfo2.getCustomerTypeFlag())
|
|
|
|
-// .eq("delete_flag", "0"));
|
|
|
|
-// //查询手机号存在,将其覆盖
|
|
|
|
-// if (identityAuthenticationInfo1 != null) {
|
|
|
|
-// identityAuthenticationInfo1.setCover("1");
|
|
|
|
-// this.updateById(identityAuthenticationInfo1);
|
|
|
|
-// }
|
|
|
|
|
|
+ IdentityAuthenticationInfo identityAuthenticationInfo1 = this.selectOne(new EntityWrapper<IdentityAuthenticationInfo>()
|
|
|
|
+ .eq("customer_phone", identityAuthenticationInfo.getCustomerPhone())
|
|
|
|
+ .eq("customer_type_flag", identityAuthenticationInfo2.getCustomerTypeFlag())
|
|
|
|
+ .eq("delete_flag", "0"));
|
|
|
|
+ //查询手机号存在,将其覆盖
|
|
|
|
+ if (identityAuthenticationInfo1 != null) {
|
|
|
|
+ identityAuthenticationInfo1.setCover("1");
|
|
|
|
+ identityAuthenticationInfo1.setDeleteFlag("1");
|
|
|
|
+ this.updateById(identityAuthenticationInfo1);
|
|
|
|
+ }
|
|
identityAuthenticationInfo2.setCustomerPhone(identityAuthenticationInfo.getCustomerPhone());
|
|
identityAuthenticationInfo2.setCustomerPhone(identityAuthenticationInfo.getCustomerPhone());
|
|
//修改身份认证信息
|
|
//修改身份认证信息
|
|
this.updateById(identityAuthenticationInfo2);
|
|
this.updateById(identityAuthenticationInfo2);
|
|
@@ -159,12 +160,13 @@ public class IdentityAuthenticationInfoServiceImpl extends ServiceImpl<IdentityA
|
|
.eq("customer_type_flag", identityAuthenticationInfo.getCustomerTypeFlag())
|
|
.eq("customer_type_flag", identityAuthenticationInfo.getCustomerTypeFlag())
|
|
.eq(IdentityAuthenticationInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0));
|
|
.eq(IdentityAuthenticationInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0));
|
|
//同一手机号再次被认证
|
|
//同一手机号再次被认证
|
|
-// if (identityAuthenticationInfoList.size() > 0) {
|
|
|
|
-// for (IdentityAuthenticationInfo identityAuthenticationInfo1 : identityAuthenticationInfoList) {
|
|
|
|
-// identityAuthenticationInfo1.setCover("1");
|
|
|
|
-// this.updateById(identityAuthenticationInfo1);
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
|
|
+ if (identityAuthenticationInfoList.size() > 0) {
|
|
|
|
+ for (IdentityAuthenticationInfo identityAuthenticationInfo1 : identityAuthenticationInfoList) {
|
|
|
|
+ identityAuthenticationInfo1.setCover("1");
|
|
|
|
+ identityAuthenticationInfo1.setDeleteFlag("1");
|
|
|
|
+ this.updateById(identityAuthenticationInfo1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
// 操作主表数据
|
|
// 操作主表数据
|
|
this.insert(identityAuthenticationInfo);
|
|
this.insert(identityAuthenticationInfo);
|
|
//如果是个人粮商且公司id不为空,则添加公司与个人粮商关系表
|
|
//如果是个人粮商且公司id不为空,则添加公司与个人粮商关系表
|