package com.iailab.module.model.mcs.pre.service.impl;
|
|
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.framework.security.core.util.SecurityFrameworkUtils;
|
import com.iailab.module.model.mcs.pre.dao.MmItemAccuracyHisDao;
|
import com.iailab.module.model.mcs.pre.entity.MmItemAccuracyHisEntity;
|
import com.iailab.module.model.mcs.pre.service.MmItemAccuracyHisService;
|
import com.iailab.module.model.mcs.pre.service.MmItemAccuracyHisService;
|
import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyHisPageReqVO;
|
import com.iailab.module.model.mcs.pre.vo.MmItemAccuracyHisSaveReqVO;
|
import org.springframework.stereotype.Service;
|
|
import java.util.Date;
|
import java.util.UUID;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2024年11月19日
|
*/
|
@Service
|
public class MmItemAccuracyHisServiceImpl extends BaseServiceImpl<MmItemAccuracyHisDao, MmItemAccuracyHisEntity>
|
implements MmItemAccuracyHisService {
|
@Override
|
public PageResult<MmItemAccuracyHisEntity> page(MmItemAccuracyHisPageReqVO reqVO) {
|
return baseDao.selectPage(reqVO);
|
}
|
|
@Override
|
public MmItemAccuracyHisEntity getInfo(String id) {
|
return baseDao.selectById(id);
|
}
|
|
@Override
|
public void create(MmItemAccuracyHisSaveReqVO reqVO) {
|
MmItemAccuracyHisEntity entity = BeanUtils.toBean(reqVO, MmItemAccuracyHisEntity.class);
|
entity.setId(UUID.randomUUID().toString());
|
entity.setCreateTime(new Date());
|
baseDao.insert(entity);
|
}
|
|
@Override
|
public void update(MmItemAccuracyHisSaveReqVO reqVO) {
|
MmItemAccuracyHisEntity entity = BeanUtils.toBean(reqVO, MmItemAccuracyHisEntity.class);
|
baseDao.updateById(entity);
|
}
|
|
@Override
|
public void delete(String id) {
|
baseDao.deleteById(id);
|
}
|
}
|