| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- package cn.com.goldenwater.dcproj.service.impl;
- import cn.com.goldenwater.dcproj.dao.AttProjectInsuranceRecordDao;
- import cn.com.goldenwater.dcproj.model.AttProjectInsuranceRecord;
- import cn.com.goldenwater.dcproj.param.AttProjectInsuranceRecordParam;
- import cn.com.goldenwater.dcproj.service.AttProjectInsuranceRecordService;
- import cn.com.goldenwater.core.service.AbstractCrudService;
- import com.github.pagehelper.PageHelper;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import org.springframework.transaction.annotation.Transactional;
- import cn.com.goldenwater.id.util.UuidUtil;
- import java.util.List;
- import java.util.Date;
- /**
- * @author lql
- * @date 2026-4-21
- */
- @Service
- @Transactional
- public class AttProjectInsuranceRecordServiceImpl extends AbstractCrudService<AttProjectInsuranceRecord, AttProjectInsuranceRecordParam> implements AttProjectInsuranceRecordService {
- @Autowired
- private AttProjectInsuranceRecordDao attProjectInsuranceRecordDao;
- public AttProjectInsuranceRecordServiceImpl(AttProjectInsuranceRecordDao attProjectInsuranceRecordDao) {
- super(attProjectInsuranceRecordDao);
- this.attProjectInsuranceRecordDao = attProjectInsuranceRecordDao;
- }
- @Override
- public int insert(AttProjectInsuranceRecord attProjectInsuranceRecord) {
- String uuid = UuidUtil.uuid(); // 生成uuid
- attProjectInsuranceRecord.setId(uuid);
- attProjectInsuranceRecord.setDataStat("0");
- attProjectInsuranceRecord.setIntm(new Date());
- attProjectInsuranceRecord.setUptm(new Date());
- return this.attProjectInsuranceRecordDao.insert(attProjectInsuranceRecord);
- }
- @Override
- public int update(AttProjectInsuranceRecord attProjectInsuranceRecord) {
- attProjectInsuranceRecord.setUptm(new Date());
- return this.attProjectInsuranceRecordDao.update(attProjectInsuranceRecord);
- }
- @Override
- public int delete(String id) {
- // 删除
- return this.attProjectInsuranceRecordDao.delete(id);
- }
- }
|