| | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.service.impl.BaseServiceImpl; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.module.data.ind.item.dao.IndItemDao; |
| | | import com.iailab.module.data.ind.item.entity.IndItemEntity; |
| | | import com.iailab.module.data.ind.item.service.IndItemService; |
| | | import com.iailab.module.data.ind.item.vo.IndItemPageReqVO; |
| | | import com.iailab.module.data.ind.item.vo.IndItemSaveReqVO; |
| | | import com.iailab.module.data.plan.item.dao.PlanItemDao; |
| | | import com.iailab.module.data.plan.item.entity.PlanItemEntity; |
| | | import com.iailab.module.data.plan.item.service.PlanItemService; |
| | | import com.iailab.module.data.plan.item.vo.PlanItemPageReqVO; |
| | | import com.iailab.module.data.plan.item.vo.PlanItemSaveReqVO; |
| | | import com.iailab.module.data.common.enums.IncreaseCodeEnum; |
| | | import com.iailab.module.data.point.service.DaSequenceNumService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | |
| | | */ |
| | | @Service |
| | | public class PlanItemServiceImpl extends BaseServiceImpl<PlanItemDao, PlanItemEntity> implements PlanItemService { |
| | | |
| | | @Autowired |
| | | private DaSequenceNumService daSequenceNumService; |
| | | |
| | | @Override |
| | | public PageResult<PlanItemEntity> page(PlanItemPageReqVO reqVO) { |
| | |
| | | public void create(PlanItemSaveReqVO createReqVO) { |
| | | PlanItemEntity entity = BeanUtils.toBean(createReqVO, PlanItemEntity.class); |
| | | entity.setId(UUID.randomUUID().toString()); |
| | | entity.setItemNo(daSequenceNumService.getAndIncreaseByCode(IncreaseCodeEnum.PLAN.name())); |
| | | entity.setCreateTime(new Date()); |
| | | baseDao.insert(entity); |
| | | } |