| | |
| | | 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) { |
| | |
| | | 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) |
| | | { |