From 3450525681e6e290d80ee5d27d0aaca395b62c8f Mon Sep 17 00:00:00 2001 From: zf <1603559716@qq.com> Date: 星期四, 01 二月 2024 14:42:14 +0800 Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/swspkmas into zf1 --- exam-system/src/main/java/com/gkhy/exam/noncoalmine/service/impl/IdentificationRecordServiceImpl.java | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/noncoalmine/service/impl/IdentificationRecordServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/noncoalmine/service/impl/IdentificationRecordServiceImpl.java new file mode 100644 index 0000000..d41427b --- /dev/null +++ b/exam-system/src/main/java/com/gkhy/exam/noncoalmine/service/impl/IdentificationRecordServiceImpl.java @@ -0,0 +1,36 @@ +package com.gkhy.exam.noncoalmine.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.gkhy.exam.noncoalmine.entity.IdentificationRecord; +import com.gkhy.exam.noncoalmine.mapper.IdentificationRecordMapper; +import com.gkhy.exam.noncoalmine.model.addForm.IdentificationRecordAddForm; +import com.gkhy.exam.noncoalmine.model.query.IdentificationRecordQuery; +import com.gkhy.exam.noncoalmine.service.IdentificationRecordService; +import com.ruoyi.common.utils.bean.BeanUtils; +import org.springframework.stereotype.Service; +import java.time.LocalDateTime; +import java.util.List; + +/** + * @email 1603559716@qq.com + * @author: zf + * @date: 2023/10/13 + * @time: 14:05 + */ +@Service +public class IdentificationRecordServiceImpl extends ServiceImpl<IdentificationRecordMapper, IdentificationRecord> implements IdentificationRecordService { + @Override + public int add(IdentificationRecordAddForm addForm) { + IdentificationRecord record = new IdentificationRecord(); + BeanUtils.copyProperties(addForm,record); + record.setCompareTime(LocalDateTime.now()); + record.setDelFlag((byte)0); + return baseMapper.insert(record); + } + + @Override + public List<IdentificationRecord> getList(IdentificationRecordQuery query) { + List<IdentificationRecord> list = baseMapper.getList(query); + return list; + } +} -- Gitblit v1.9.2