提交 | 用户 | 时间
|
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.MmItemAccuracyHisDao; |
|
8 |
import com.iailab.module.model.mcs.pre.entity.MmItemAccuracyHisEntity; |
97d38f
|
9 |
import com.iailab.module.model.mcs.pre.service.MmItemAccuracyHisService; |
5b952f
|
10 |
import com.iailab.module.model.mcs.pre.service.MmItemAccuracyHisService; |
L |
11 |
import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyHisPageReqVO; |
|
12 |
import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyHisSaveReqVO; |
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 MmItemAccuracyHisServiceImpl extends BaseServiceImpl<MmItemAccuracyHisDao, MmItemAccuracyHisEntity> |
L |
25 |
implements MmItemAccuracyHisService { |
|
26 |
@Override |
|
27 |
public PageResult<MmItemAccuracyHisEntity> page(MmItemAccuracyHisPageReqVO reqVO) { |
|
28 |
return baseDao.selectPage(reqVO); |
|
29 |
} |
|
30 |
|
|
31 |
@Override |
|
32 |
public MmItemAccuracyHisEntity getInfo(String id) { |
|
33 |
return baseDao.selectById(id); |
|
34 |
} |
|
35 |
|
|
36 |
@Override |
|
37 |
public void create(MmItemAccuracyHisSaveReqVO reqVO) { |
|
38 |
MmItemAccuracyHisEntity entity = BeanUtils.toBean(reqVO, MmItemAccuracyHisEntity.class); |
|
39 |
entity.setId(UUID.randomUUID().toString()); |
|
40 |
entity.setCreateTime(new Date()); |
|
41 |
baseDao.insert(entity); |
|
42 |
} |
|
43 |
|
|
44 |
@Override |
|
45 |
public void update(MmItemAccuracyHisSaveReqVO reqVO) { |
|
46 |
MmItemAccuracyHisEntity entity = BeanUtils.toBean(reqVO, MmItemAccuracyHisEntity.class); |
|
47 |
baseDao.updateById(entity); |
|
48 |
} |
|
49 |
|
|
50 |
@Override |
|
51 |
public void delete(String id) { |
|
52 |
baseDao.deleteById(id); |
|
53 |
} |
97d38f
|
54 |
} |