提交 | 用户 | 时间
|
2a6f08
|
1 |
package com.iailab.module.data.ind.value.service.impl; |
潘 |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.framework.common.service.impl.BaseServiceImpl; |
|
5 |
import com.iailab.framework.common.util.object.BeanUtils; |
|
6 |
import com.iailab.module.data.ind.value.dao.IndItemValueDao; |
|
7 |
import com.iailab.module.data.ind.value.entity.IndItemValueEntity; |
|
8 |
import com.iailab.module.data.ind.value.service.IndItemValueService; |
|
9 |
import com.iailab.module.data.ind.value.vo.IndItemValuePageReqVO; |
|
10 |
import com.iailab.module.data.ind.value.vo.IndItemValueSaveReqVO; |
|
11 |
import org.springframework.stereotype.Service; |
|
12 |
|
|
13 |
import java.util.UUID; |
|
14 |
|
|
15 |
/** |
|
16 |
* @author PanZhibao |
|
17 |
* @Description |
|
18 |
* @createTime 2024年09月11日 |
|
19 |
*/ |
|
20 |
@Service |
|
21 |
public class IndItemValueServiceImpl extends BaseServiceImpl<IndItemValueDao, IndItemValueEntity> implements IndItemValueService { |
|
22 |
|
|
23 |
@Override |
|
24 |
public PageResult<IndItemValueEntity> page(IndItemValuePageReqVO reqVO) { |
|
25 |
return baseDao.selectPage(reqVO); |
|
26 |
} |
|
27 |
|
|
28 |
@Override |
|
29 |
public void create(IndItemValueSaveReqVO createReqVO) { |
|
30 |
IndItemValueEntity entity = BeanUtils.toBean(createReqVO, IndItemValueEntity.class); |
|
31 |
entity.setId(UUID.randomUUID().toString()); |
|
32 |
baseDao.insert(entity); |
|
33 |
} |
|
34 |
|
|
35 |
@Override |
|
36 |
public void update(IndItemValueSaveReqVO updateReqVO) { |
|
37 |
IndItemValueEntity entity = BeanUtils.toBean(updateReqVO, IndItemValueEntity.class); |
|
38 |
baseDao.updateById(entity); |
|
39 |
} |
|
40 |
|
|
41 |
@Override |
|
42 |
public IndItemValueEntity get(String id) { |
|
43 |
return baseDao.selectById(id); |
|
44 |
} |
|
45 |
|
|
46 |
@Override |
|
47 |
public void delete(String id) { |
|
48 |
baseDao.deleteById(id); |
|
49 |
} |
|
50 |
} |