选煤厂生产管理平台后台代码
dongyukun
2024-12-10 b643c158bc05f2a7f95bb9fed15a1451691eaef4
提交 | 用户 | 时间
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.WarehousePositionDao;
6 import com.iailab.module.pms.production.warehouse.entity.WarehousePositionEntity;
7 import com.iailab.module.pms.production.warehouse.service.WarehousePositionService;
8 import com.iailab.module.pms.production.warehouse.vo.WarehousePositionPageReqVO;
9 import org.springframework.stereotype.Service;
10
11 import javax.annotation.Resource;
12
13 /**
14  * 仓位统计
15  *
16  * @author DongYukun
17  * @Description
18  * @createTime 2023年01月17日 15:49:00
19  */
20 @Service
21 public class WarehousePositionServiceImpl implements WarehousePositionService {
22
23     @Resource
24     private WarehousePositionDao warehousePositionDao;
25
26
27     @Override
28     public String create(WarehousePositionEntity createEntity) {
29         WarehousePositionEntity dto = BeanUtils.toBean(createEntity, WarehousePositionEntity.class);
30         warehousePositionDao.insert(dto);
31         return dto.getId();
32     }
33
34     @Override
35     public String update(WarehousePositionEntity createEntity) {
36         WarehousePositionEntity dto = BeanUtils.toBean(createEntity, WarehousePositionEntity.class);
37         warehousePositionDao.updateById(dto);
38         return dto.getId();
39     }
40
41     @Override
42     public void delete(String id) {
43         warehousePositionDao.deleteById(id);
44     }
45
46     @Override
47     public WarehousePositionEntity getInfo(String id) {
48         return warehousePositionDao.selectById(id);
49     }
50
51     @Override
52     public PageResult<WarehousePositionEntity> getPage(WarehousePositionPageReqVO PageReqVO) {
53         return warehousePositionDao.selectPage(PageReqVO);
54     }
55 }