mg
2022-09-28 179e7b70b95ab8545678ef4e037659f236233171
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
 
/**
 * <p>
 *  调度处理 服务实现类
 * </p>
 *
 * @author mg
 * @since 2022-09-28
 */
@Service
public class IDispatchHandleServiceImpl extends ServiceImpl<DispatchInfoMapper, DispatchInfo> 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;
    }
 
}