| | |
| | | package com.iailab.module.data.ind.item.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.iailab.framework.common.service.impl.BaseServiceImpl; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.module.data.ind.item.dao.IndItemDerDao; |
| | | import com.iailab.module.data.ind.item.entity.IndItemDerEntity; |
| | | import com.iailab.module.data.ind.item.service.IndItemDerService; |
| | | import com.iailab.module.data.ind.item.vo.IndItemDerVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Service |
| | | public class IndItemDerServiceImpl extends BaseServiceImpl<IndItemDerDao, IndItemDerEntity> implements IndItemDerService { |
| | | @Override |
| | | public IndItemDerVO getByItemId(String itemId) { |
| | | return BeanUtils.toBean(baseDao.selectOne(new QueryWrapper<IndItemDerEntity>().eq("item_id", itemId)), IndItemDerVO.class); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByItemId(String itemId) { |
| | | baseDao.delete(new QueryWrapper<IndItemDerEntity>().eq("item_id", itemId)); |
| | | } |
| | | } |