lidongdong
2023-08-30 92c890763bc72d12a9894ed2d0f744df6df4ed9d
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/VolunteerMerchantServiceImpl.java
@@ -17,14 +17,16 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Slf4j
@Service
public class VolunteerMerchantServiceImpl extends ServiceImpl<VolunteerMerchantDao,
        VolunteerMerchant> implements VolunteerMerchantService
{
    @Resource
    private VolunteerMerchantService vmService;
    @Override
    public R getById(String id) {
@@ -117,12 +119,18 @@
            return R.fail("法人联系电话不能为空");
        }
        if(StringUtils.isEmpty(vtvo.getLegalPersonIdCard()))
        {
            return R.fail("法人身份证不能为空");
        }
        R<String> isM=vmService.isMerchant(vtvo.getUserId());
        if(!StringUtils.isEmpty(isM.getData()))
        {
            return R.fail("已有商家!不能重复添加");
        }
        int num= baseMapper.insertData(vtvo);
        if(num>0)
        {