huanghongfa
2021-08-23 ad9cd583b648fdc5bdc0cf6c9cd10ce5d0b2a619
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.panzhihua.service_community.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.service_community.dao.ComActReserveOperationRecordMapper;
import com.panzhihua.service_community.model.dos.ComActReserveOperationRecordDO;
import com.panzhihua.service_community.service.ComActReserveOperationRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
 
import java.util.Date;
 
/**
 * @auther lyq
 * @create 2021-08-23 10:33:42
 * @describe 预约登记操作记录表服务实现类
 */
@Slf4j
@Service
public class ComActReserveOperationRecordServiceImpl extends ServiceImpl<ComActReserveOperationRecordMapper, ComActReserveOperationRecordDO> implements ComActReserveOperationRecordService {
 
    /**
     * 添加预约登记操作记录
     * @param reserveId 预约登记id
     * @param reserveRecordId   预约登记记录id
     * @param userId    用户id
     * @param type  类型(1.本人操作 2.社区操作)
     * @param phone 操作人手机号
     * @param reserveContent    操作内容
     * @param remark    备注
     * @param status    状态(1.提交 2.预约成功 3.预约失败 4.取消)
     * @param createBy  创建人
     */
    @Override
    public void addReserveOperationRecord(Long reserveId, Long reserveRecordId, Long userId, Integer type
            , String phone, String reserveContent,String remark,Integer status,Long createBy){
        Date nowDate = new Date();
        ComActReserveOperationRecordDO operationRecordDO = new ComActReserveOperationRecordDO();
        operationRecordDO.setReserveId(reserveId);
        operationRecordDO.setReserveRecordId(reserveRecordId);
        operationRecordDO.setUserId(userId);
        operationRecordDO.setType(type);
        operationRecordDO.setPhone(phone);
        operationRecordDO.setReserveContent(reserveContent);
        operationRecordDO.setRemark(remark);
        operationRecordDO.setStatus(status);
        operationRecordDO.setCreateBy(createBy);
        operationRecordDO.setCreateAt(nowDate);
        operationRecordDO.setReserveTime(nowDate);
        this.baseMapper.insert(operationRecordDO);
    }
 
}