| | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.project.domain.vo.DonateAnnexVO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | |
| | | * @author ruoyi |
| | | * @date 2021-11-11 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ServiceDonateannexServiceImpl extends ServiceImpl<ServiceDonateannexMapper, ServiceDonateannex> implements IServiceDonateannexService { |
| | | |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean saveData(List<ServiceDonateannex> serviceDonateannexs) { |
| | | for (ServiceDonateannex serviceDonateannex : serviceDonateannexs) { |
| | | log.info("serviceDonateannex的信息:{}", serviceDonateannex); |
| | | if (serviceDonateannex.getInfoid() == null || serviceDonateannex.getAnnexfilestype() == null) { |
| | | throw new BaseException("主表id或附件类型ID为空,请检查后再保存"); |
| | | } |