admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/service/impl/user/SystemZnxServiceImpl.java
@@ -1,28 +1,35 @@
package com.yeshi.fanli.service.impl.user;
import java.io.Serializable;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dao.config.SystemZnxDao;
import com.yeshi.fanli.entity.system.SystemZnx;
import com.yeshi.fanli.service.inter.user.SystemZnxService;
@Service
public class SystemZnxServiceImpl implements SystemZnxService{
   @Resource
   private SystemZnxDao systemZnxDao;
   /**
    * 插入数据
    */
   @Override
   public void save(SystemZnx systemZnx) {
      Serializable id = systemZnxDao.save(systemZnx);
       if(id!=null) {
          systemZnx.setId(Long.parseLong(id+""));
       }
   }
}
package com.yeshi.fanli.service.impl.user;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yeshi.fanli.dao.mybatis.msg.SystemZnxMapper;
import com.yeshi.fanli.entity.system.SystemZnx;
import com.yeshi.fanli.service.inter.user.SystemZnxService;
@Service
public class SystemZnxServiceImpl implements SystemZnxService{
   @Resource
   private SystemZnxMapper systemZnxMapper;
   /**
    * 插入数据
    */
   @Override
   public void save(SystemZnx systemZnx) {
      systemZnxMapper.insertSelective(systemZnx);
   }
   @Override
   public List<SystemZnx> listbyCreateTime(long createTime){
      return systemZnxMapper.listbyCreateTime(createTime);
   }
   @Override
   public List<SystemZnx> listbyUidAndCreateTime(long uid, long createTime) {
      return systemZnxMapper.listbyUidAndCreateTime(uid, createTime);
   }
}