提交 | 用户 | 时间
|
532d0b
|
1 |
package com.iailab.module.pms.production.warehouse.service.impl; |
D |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.framework.common.util.object.BeanUtils; |
|
5 |
import com.iailab.module.pms.production.warehouse.dao.McMzDao; |
|
6 |
import com.iailab.module.pms.production.warehouse.entity.McMzEntity; |
|
7 |
import com.iailab.module.pms.production.warehouse.service.McMzService; |
|
8 |
import com.iailab.module.pms.production.warehouse.vo.McMzPageReqVO; |
|
9 |
import org.springframework.stereotype.Service; |
|
10 |
|
|
11 |
import javax.annotation.Resource; |
|
12 |
|
|
13 |
@Service |
|
14 |
public class McMzServiceImpl implements McMzService { |
|
15 |
|
|
16 |
@Resource |
|
17 |
private McMzDao mcMzDao; |
|
18 |
|
|
19 |
|
|
20 |
@Override |
|
21 |
public String create(McMzEntity createEntity) { |
|
22 |
McMzEntity dto = BeanUtils.toBean(createEntity, McMzEntity.class); |
|
23 |
mcMzDao.insert(dto); |
|
24 |
return dto.getId(); |
|
25 |
} |
|
26 |
|
|
27 |
@Override |
|
28 |
public String update(McMzEntity createEntity) { |
|
29 |
McMzEntity dto = BeanUtils.toBean(createEntity, McMzEntity.class); |
|
30 |
mcMzDao.updateById(dto); |
|
31 |
return dto.getId(); |
|
32 |
} |
|
33 |
|
|
34 |
@Override |
|
35 |
public void delete(String id) { |
|
36 |
mcMzDao.deleteById(id); |
|
37 |
} |
|
38 |
|
|
39 |
@Override |
|
40 |
public McMzEntity getInfo(String id) { |
|
41 |
return mcMzDao.selectById(id); |
|
42 |
} |
|
43 |
|
|
44 |
@Override |
|
45 |
public PageResult<McMzEntity> getPage(McMzPageReqVO PageReqVO) { |
|
46 |
return mcMzDao.selectPage(PageReqVO); |
|
47 |
} |
|
48 |
} |