| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- package cn.com.goldenwater.dcproj.service.impl;
- import cn.com.goldenwater.dcproj.dao.BisInspWrwxRgstrWtutDao;
- import cn.com.goldenwater.dcproj.model.BisInspWrwxRgstrWtut;
- import cn.com.goldenwater.dcproj.param.BisInspWrwxRgstrWtutParam;
- import cn.com.goldenwater.dcproj.service.BisInspWrwxRgstrWtutService;
- 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 lhc
- * @date 2020-9-23
- */
- @Service
- @Transactional
- public class BisInspWrwxRgstrWtutServiceImpl extends AbstractCrudService<BisInspWrwxRgstrWtut, BisInspWrwxRgstrWtutParam> implements BisInspWrwxRgstrWtutService {
- @Autowired
- private BisInspWrwxRgstrWtutDao bisInspWrwxRgstrWtutDao;
- public BisInspWrwxRgstrWtutServiceImpl(BisInspWrwxRgstrWtutDao bisInspWrwxRgstrWtutDao) {
- super(bisInspWrwxRgstrWtutDao);
- this.bisInspWrwxRgstrWtutDao = bisInspWrwxRgstrWtutDao;
- }
- @Override
- public int insert(BisInspWrwxRgstrWtut bisInspWrwxRgstrWtut) {
- String uuid = UuidUtil.uuid(); // 生成uuid
- bisInspWrwxRgstrWtut.setId(uuid);
- bisInspWrwxRgstrWtut.setIntm(new Date());
- bisInspWrwxRgstrWtut.setUptm(new Date());
- bisInspWrwxRgstrWtut.setDataStat("0");
- return this.bisInspWrwxRgstrWtutDao.insert(bisInspWrwxRgstrWtut);
- }
- @Override
- public int update(BisInspWrwxRgstrWtut bisInspWrwxRgstrWtut) {
- bisInspWrwxRgstrWtut.setUptm(new Date());
- return this.bisInspWrwxRgstrWtutDao.update(bisInspWrwxRgstrWtut);
- }
- @Override
- public int delete(String id) {
- return this.bisInspWrwxRgstrWtutDao.delete(id);
- }
- }
|