提交 | 用户 | 时间
|
97d38f
|
1 |
package com.iailab.module.model.mcs.pre.service.impl; |
潘 |
2 |
|
5b952f
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
L |
4 |
import com.iailab.framework.common.service.impl.BaseServiceImpl; |
|
5 |
import com.iailab.framework.common.util.object.BeanUtils; |
|
6 |
import com.iailab.framework.security.core.util.SecurityFrameworkUtils; |
|
7 |
import com.iailab.module.model.mcs.pre.dao.MmItemAccuracyRateDao; |
|
8 |
import com.iailab.module.model.mcs.pre.entity.MmItemAccuracyRateEntity; |
97d38f
|
9 |
import com.iailab.module.model.mcs.pre.service.MmItemAccuracyRateService; |
5b952f
|
10 |
import com.iailab.module.model.mcs.pre.service.MmItemAccuracyRateService; |
L |
11 |
import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyRatePageReqVO; |
|
12 |
import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyRateSaveReqVO; |
97d38f
|
13 |
import org.springframework.stereotype.Service; |
5b952f
|
14 |
|
L |
15 |
import java.util.Date; |
|
16 |
import java.util.UUID; |
97d38f
|
17 |
|
潘 |
18 |
/** |
|
19 |
* @author PanZhibao |
|
20 |
* @Description |
|
21 |
* @createTime 2024年11月19日 |
|
22 |
*/ |
|
23 |
@Service |
5b952f
|
24 |
public class MmItemAccuracyRateServiceImpl extends BaseServiceImpl<MmItemAccuracyRateDao, MmItemAccuracyRateEntity> |
L |
25 |
implements MmItemAccuracyRateService { |
|
26 |
@Override |
|
27 |
public PageResult<MmItemAccuracyRateEntity> page(MmItemAccuracyRatePageReqVO reqVO) { |
|
28 |
return baseDao.selectPage(reqVO); |
|
29 |
} |
|
30 |
|
|
31 |
@Override |
|
32 |
public MmItemAccuracyRateEntity getInfo(String id) { |
|
33 |
return baseDao.selectById(id); |
|
34 |
} |
|
35 |
|
|
36 |
@Override |
|
37 |
public void create(MmItemAccuracyRateSaveReqVO reqVO) { |
|
38 |
MmItemAccuracyRateEntity entity = BeanUtils.toBean(reqVO, MmItemAccuracyRateEntity.class); |
|
39 |
entity.setId(UUID.randomUUID().toString()); |
|
40 |
entity.setCreateTime(new Date()); |
|
41 |
baseDao.insert(entity); |
|
42 |
} |
|
43 |
|
|
44 |
@Override |
|
45 |
public void update(MmItemAccuracyRateSaveReqVO reqVO) { |
|
46 |
MmItemAccuracyRateEntity entity = BeanUtils.toBean(reqVO, MmItemAccuracyRateEntity.class); |
|
47 |
entity.setUpdateTime(new Date()); |
|
48 |
baseDao.updateById(entity); |
|
49 |
} |
|
50 |
|
|
51 |
@Override |
|
52 |
public void delete(String id) { |
|
53 |
baseDao.deleteById(id); |
|
54 |
} |
97d38f
|
55 |
} |