提交 | 用户 | 时间
|
e41062
|
1 |
package com.iailab.module.data.ind.item.service.impl; |
潘 |
2 |
|
68413a
|
3 |
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
e41062
|
4 |
import com.iailab.framework.common.service.impl.BaseServiceImpl; |
68413a
|
5 |
import com.iailab.framework.common.util.object.BeanUtils; |
e41062
|
6 |
import com.iailab.module.data.ind.item.dao.IndItemCalDao; |
潘 |
7 |
import com.iailab.module.data.ind.item.entity.IndItemCalEntity; |
|
8 |
import com.iailab.module.data.ind.item.service.IndItemCalService; |
cf757d
|
9 |
import com.iailab.module.data.ind.item.vo.IndItemCalVO; |
68413a
|
10 |
import org.springframework.stereotype.Service; |
e41062
|
11 |
|
潘 |
12 |
/** |
|
13 |
* @author PanZhibao |
|
14 |
* @Description |
|
15 |
* @createTime 2024年09月11日 |
|
16 |
*/ |
68413a
|
17 |
@Service |
e41062
|
18 |
public class IndItemCalServiceImpl extends BaseServiceImpl<IndItemCalDao, IndItemCalEntity> implements IndItemCalService { |
68413a
|
19 |
@Override |
cf757d
|
20 |
public IndItemCalVO getByItemId(String itemId) { |
潘 |
21 |
return BeanUtils.toBean(baseDao.selectOne(new QueryWrapper<IndItemCalEntity>().eq("item_id", itemId)), IndItemCalVO.class); |
68413a
|
22 |
} |
J |
23 |
|
|
24 |
@Override |
|
25 |
public void deleteByItemId(String itemId) { |
|
26 |
baseDao.delete(new QueryWrapper<IndItemCalEntity>().eq("item_id", itemId)); |
|
27 |
} |
e41062
|
28 |
} |