|
@@ -58,11 +58,11 @@ public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, Mer
|
|
|
@Override
|
|
|
public Long addMerchantAuth(@NonNull MerchantAuthModifyParam param) {
|
|
|
Long userId = SessionContextHolder.getId();
|
|
|
- LambdaQueryWrapper<MerchantAuth> wrapper = Wrappers.lambdaQuery();
|
|
|
+ /*LambdaQueryWrapper<MerchantAuth> wrapper = Wrappers.lambdaQuery();
|
|
|
wrapper.eq(MerchantAuth::getApplicant, userId);
|
|
|
if(baseMapper.selectCount(wrapper) > 0){
|
|
|
throw new ResourceUnavailableException("审核认证已申请");
|
|
|
- }
|
|
|
+ }*/
|
|
|
if (StringUtils.isEmpty(param.getStoreAddress())){
|
|
|
param.setStoreAddress(param.getStoreAddress());
|
|
|
}
|
|
@@ -71,12 +71,12 @@ public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, Mer
|
|
|
//AssertUtils.available(count <= 0, "商家认证已存在");
|
|
|
if (null != count){
|
|
|
this.updateMerchantAuth(count.getId(),param);
|
|
|
- return count.getId();
|
|
|
+ } else {
|
|
|
+ merchantAuth.setApplicationTime(new Date());
|
|
|
+ merchantAuth.setApplicant(userId);
|
|
|
+ merchantAuth.setReviewStatus("1");
|
|
|
+ this.save(merchantAuth);
|
|
|
}
|
|
|
- merchantAuth.setApplicationTime(new Date());
|
|
|
- merchantAuth.setApplicant(userId);
|
|
|
- merchantAuth.setReviewStatus("1");
|
|
|
- this.save(merchantAuth);
|
|
|
MerchantModifyParam param1 = new MerchantModifyParam();
|
|
|
param1.setName(param.getStoreName());
|
|
|
param1.setLiaison(param.getLegalRepresentativeName());
|