|
@@ -29,6 +29,7 @@ import com.chelvc.framework.common.util.StringUtils;
|
|
|
import com.chelvc.framework.database.context.DatabaseContextHolder;
|
|
import com.chelvc.framework.database.context.DatabaseContextHolder;
|
|
|
import lombok.NonNull;
|
|
import lombok.NonNull;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -45,6 +46,7 @@ import java.util.stream.Collectors;
|
|
|
* @author liude
|
|
* @author liude
|
|
|
* @date 2023/12/2
|
|
* @date 2023/12/2
|
|
|
*/
|
|
*/
|
|
|
|
|
+@Slf4j
|
|
|
@Service
|
|
@Service
|
|
|
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
|
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
|
|
public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, MerchantAuth> implements MerchantAuthService{
|
|
public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, MerchantAuth> implements MerchantAuthService{
|
|
@@ -57,6 +59,7 @@ public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, Mer
|
|
|
private final MerchantRelationService merchantRelationService;
|
|
private final MerchantRelationService merchantRelationService;
|
|
|
@Override
|
|
@Override
|
|
|
public Long addMerchantAuth(@NonNull MerchantAuthModifyParam param) {
|
|
public Long addMerchantAuth(@NonNull MerchantAuthModifyParam param) {
|
|
|
|
|
+ log.info("商家认证信息入参【add】: {}", param);
|
|
|
Long userId = SessionContextHolder.getId();
|
|
Long userId = SessionContextHolder.getId();
|
|
|
MerchantAuth count = this.lambdaQuery().eq(MerchantAuth::getApplicant, userId).one();
|
|
MerchantAuth count = this.lambdaQuery().eq(MerchantAuth::getApplicant, userId).one();
|
|
|
if (null != count){
|
|
if (null != count){
|
|
@@ -102,6 +105,7 @@ public class MerchantAuthServiceImpl extends ServiceImpl<MerchantAuthMapper, Mer
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void updateMerchantAuth(@NonNull Long id, @NonNull MerchantAuthModifyParam param) {
|
|
public void updateMerchantAuth(@NonNull Long id, @NonNull MerchantAuthModifyParam param) {
|
|
|
|
|
+ log.info("商家认证信息入参【update】: {}", param);
|
|
|
if (StringUtils.isEmpty(param.getStoreAddress())){
|
|
if (StringUtils.isEmpty(param.getStoreAddress())){
|
|
|
param.setStoreAddress(param.getStoreAddress());
|
|
param.setStoreAddress(param.getStoreAddress());
|
|
|
}
|
|
}
|