| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.dtos.community.ExportSpecialUserDTO; |
| | | import com.panzhihua.common.model.dtos.community.ExportUserDTO; |
| | | import com.panzhihua.common.model.dtos.user.ComMngUserTagDTO; |
| | | import com.panzhihua.common.model.dtos.user.EexcelUserDTO; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R deleteSpecialInputUserTags(Long id) { |
| | | ComMngUserTagDO comMngUserTagDO = comMngUserTagDAO.selectById(id); |
| | | if(null==comMngUserTagDO){ |
| | | return R.fail("标签不存在"); |
| | | } |
| | | if(comMngUserTagDO.getSysFlag()==1){ |
| | | return R.fail("系统预置标签不可删除"); |
| | | } |
| | | int delete = comMngUserTagDAO.deleteById(id); |
| | | if(delete>0){ |
| | | return R.ok(); |
| | | } |
| | | return R.fail("删除失败"); |
| | | } |
| | | |
| | | @Override |
| | | public R deleteSpecialInputUser(Long id) { |
| | | SysUserInputDO sysUserInputDO = sysUserInputDAO.selectById(id); |
| | | if(null==sysUserInputDO){ |
| | |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | @Override |
| | | public R specialUserExport(ExportSpecialUserDTO exportSpecialUserDTO) { |
| | | List<EexcelUserDTO> eexcelUserDTOS=sysUserInputDAO.specialUserExport(exportSpecialUserDTO); |
| | | return R.ok(eexcelUserDTOS); |
| | | } |
| | | } |