| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package cn.com.goldenwater.dcproj.service.impl.fjpjmgdp;
- import cn.com.goldenwater.core.service.AbstractCrudService;
- import cn.com.goldenwater.dcproj.dao.AttFjpjmgdpBaseDao;
- import cn.com.goldenwater.dcproj.model.AttFjpjmgdpBase;
- import cn.com.goldenwater.dcproj.param.AttFjpjmgdpBaseParam;
- import cn.com.goldenwater.dcproj.service.AttFjpjmgdpBaseService;
- import cn.com.goldenwater.id.util.UuidUtil;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import org.springframework.transaction.annotation.Transactional;
- import java.util.Date;
- /**
- * @author lhc
- * @date 2023-11-8
- */
- @Service
- @Transactional
- public class AttFjpjmgdpBaseServiceImpl extends AbstractCrudService<AttFjpjmgdpBase, AttFjpjmgdpBaseParam> implements AttFjpjmgdpBaseService {
- @Autowired
- private AttFjpjmgdpBaseDao attFjpjmgdpBaseDao;
- public AttFjpjmgdpBaseServiceImpl(AttFjpjmgdpBaseDao attFjpjmgdpBaseDao) {
- super(attFjpjmgdpBaseDao);
- this.attFjpjmgdpBaseDao = attFjpjmgdpBaseDao;
- }
- @Override
- public int insert(AttFjpjmgdpBase attFjpjmgdpBase) {
- String uuid = UuidUtil.uuid(); // 生成uuid
- attFjpjmgdpBase.setId(uuid);
- attFjpjmgdpBase.setIntm(new Date());
- attFjpjmgdpBase.setUptm(new Date());
- attFjpjmgdpBase.setDataStat("0");
- if(null == attFjpjmgdpBase.getIsCnfm() ){
- attFjpjmgdpBase.setIsCnfm("1");
- }
- return this.attFjpjmgdpBaseDao.insert(attFjpjmgdpBase);
- }
- @Override
- public int update(AttFjpjmgdpBase attFjpjmgdpBase) {
- attFjpjmgdpBase.setUptm(new Date());
- return this.attFjpjmgdpBaseDao.update(attFjpjmgdpBase);
- }
- @Override
- public int delete(String id) {
- return this.attFjpjmgdpBaseDao.delete(id);
- }
- @Override
- public AttFjpjmgdpBase getObjId(String objId) {
- return attFjpjmgdpBaseDao.getObjId(objId);
- }
- }
|