| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- package cn.com.goldenwater.dcproj.service.impl;
- import cn.com.goldenwater.dcproj.dao.BisInspWrwxRgstrWtupDao;
- import cn.com.goldenwater.dcproj.model.BisInspWrwxRgstrWtup;
- import cn.com.goldenwater.dcproj.param.BisInspWrwxRgstrWtupParam;
- import cn.com.goldenwater.dcproj.service.BisInspWrwxRgstrWtupService;
- 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 BisInspWrwxRgstrWtupServiceImpl extends AbstractCrudService<BisInspWrwxRgstrWtup, BisInspWrwxRgstrWtupParam> implements BisInspWrwxRgstrWtupService {
- @Autowired
- private BisInspWrwxRgstrWtupDao bisInspWrwxRgstrWtupDao;
- public BisInspWrwxRgstrWtupServiceImpl(BisInspWrwxRgstrWtupDao bisInspWrwxRgstrWtupDao) {
- super(bisInspWrwxRgstrWtupDao);
- this.bisInspWrwxRgstrWtupDao = bisInspWrwxRgstrWtupDao;
- }
- @Override
- public int insert(BisInspWrwxRgstrWtup bisInspWrwxRgstrWtup) {
- String uuid = UuidUtil.uuid(); // 生成uuid
- bisInspWrwxRgstrWtup.setId(uuid);
- bisInspWrwxRgstrWtup.setIntm(new Date());
- bisInspWrwxRgstrWtup.setUptm(new Date());
- bisInspWrwxRgstrWtup.setDataStat("0");
- return this.bisInspWrwxRgstrWtupDao.insert(bisInspWrwxRgstrWtup);
- }
- @Override
- public int update(BisInspWrwxRgstrWtup bisInspWrwxRgstrWtup) {
- bisInspWrwxRgstrWtup.setUptm(new Date());
- return this.bisInspWrwxRgstrWtupDao.update(bisInspWrwxRgstrWtup);
- }
- @Override
- public int delete(String id) {
- return this.bisInspWrwxRgstrWtupDao.delete(id);
- }
- }
|