package com.ycl.service.caseHandler.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dto.caseHandler.DispatchInfoParam; import com.ycl.entity.caseHandler.DispatchInfo; import com.ycl.mapper.caseHandler.DispatchInfoMapper; import com.ycl.service.caseHandler.IDispatchHandleService; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import java.util.Date; /** *

* 调度处理 服务实现类 *

* * @author mg * @since 2022-09-28 */ @Service public class IDispatchHandleServiceImpl extends ServiceImpl implements IDispatchHandleService { @Override public DispatchInfo dispatch(DispatchInfoParam dispatchInfoParam) { DispatchInfo dispatchInfo = new DispatchInfo(); BeanUtils.copyProperties(dispatchInfoParam, dispatchInfo); dispatchInfo.setCreateTime(new Date()); baseMapper.insert(dispatchInfo); return dispatchInfo; } }