| | |
| | | import cc.mrbird.febs.mall.mapper.MallAgentRecordMapper; |
| | | import cc.mrbird.febs.mall.mapper.MallMemberMapper; |
| | | import cc.mrbird.febs.mall.service.IApiMallAgentService; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | | @Service |
| | |
| | | if(ObjectUtil.isNotEmpty(mallAgentRecord)){ |
| | | mallAgentRecordMapper.deleteByMemberIdAndState(memberId,MallAgentRecord.APPLY_ING); |
| | | } |
| | | // String city = apiAgentApplyDto.getCity(); |
| | | // List<MallAgentRecord> cityMallAgents = mallAgentRecordMapper.selectByCity(city); |
| | | // if(CollUtil.isEmpty(cityMallAgents)){ |
| | | // return new FebsResponse().fail().message("当前城市已经无法申请"); |
| | | // } |
| | | |
| | | MallAgentRecord mallAgentRecordNew = MallAgentRecordConversion.INSTANCE.dtoToEntity(apiAgentApplyDto); |
| | | mallAgentRecordNew.setMemberId(memberId); |