| | |
| | | package com.stylefeng.guns.modular.system.service.impl; |
| | | |
| | | import com.stylefeng.guns.modular.system.model.TSystemBulletinUser; |
| | | import com.stylefeng.guns.modular.system.dao.TSystemBulletinUserMapper; |
| | | import com.stylefeng.guns.modular.system.service.ITSystemBulletinUserService; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.modular.system.dao.TSystemBulletinUserMapper; |
| | | import com.stylefeng.guns.modular.system.enums.StatusEnum; |
| | | import com.stylefeng.guns.modular.system.model.TSystemBulletinUser; |
| | | import com.stylefeng.guns.modular.system.service.ITSystemBulletinUserService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class TSystemBulletinUserServiceImpl extends ServiceImpl<TSystemBulletinUserMapper, TSystemBulletinUser> implements ITSystemBulletinUserService { |
| | | |
| | | @Autowired |
| | | private TSystemBulletinUserMapper tSystemBulletinUserMapper; |
| | | |
| | | @Override |
| | | public void deleteBulletinUser(Integer bulletinId) { |
| | | List<TSystemBulletinUser> tSystemBulletinUsers = tSystemBulletinUserMapper.selectList(new EntityWrapper<TSystemBulletinUser>().eq("systemBulletinId", bulletinId)); |
| | | tSystemBulletinUsers.forEach(bulletin->bulletin.setStatus(StatusEnum.DELETE.getCode())); |
| | | this.updateBatchById(tSystemBulletinUsers); |
| | | } |
| | | } |