| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- package com.jeesite.modules.mes.service;
- import com.jeesite.common.entity.Page;
- import com.jeesite.common.service.CrudService;
- import com.jeesite.modules.mes.dao.MesDeviceFaultCateDao;
- import com.jeesite.modules.mes.entity.MesDeviceFaultCate;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import org.springframework.transaction.annotation.Transactional;
- import java.util.List;
- /**
- * 设备故障分类Service
- * @author hzd
- * @version 2024-07-23
- */
- @Service
- public class MesDeviceFaultCateService extends CrudService<MesDeviceFaultCateDao, MesDeviceFaultCate> {
- @Autowired
- private MesDeviceFaultCateDao mesDeviceFaultCateDao;
- /**
- * 获取单条数据
- * @param mesDeviceFaultCate
- * @return
- */
- @Override
- public MesDeviceFaultCate get(MesDeviceFaultCate mesDeviceFaultCate) {
- return super.get(mesDeviceFaultCate);
- }
-
- /**
- * 查询分页数据
- * @param mesDeviceFaultCate 查询条件
- * @param mesDeviceFaultCate.page 分页对象
- * @return
- */
- @Override
- public Page<MesDeviceFaultCate> findPage(MesDeviceFaultCate mesDeviceFaultCate) {
- return super.findPage(mesDeviceFaultCate);
- }
-
- /**
- * 查询列表数据
- * @param mesDeviceFaultCate
- * @return
- */
- @Override
- public List<MesDeviceFaultCate> findList(MesDeviceFaultCate mesDeviceFaultCate) {
- return super.findList(mesDeviceFaultCate);
- }
-
- /**
- * 保存数据(插入或更新)
- * @param mesDeviceFaultCate
- */
- @Override
- @Transactional
- public void save(MesDeviceFaultCate mesDeviceFaultCate) {
- super.save(mesDeviceFaultCate);
- }
-
- /**
- * 更新状态
- * @param mesDeviceFaultCate
- */
- @Override
- @Transactional
- public void updateStatus(MesDeviceFaultCate mesDeviceFaultCate) {
- super.updateStatus(mesDeviceFaultCate);
- }
-
- /**
- * 删除数据
- * @param mesDeviceFaultCate
- */
- @Override
- @Transactional
- public void delete(MesDeviceFaultCate mesDeviceFaultCate) {
- super.delete(mesDeviceFaultCate);
- }
- @Transactional
- public MesDeviceFaultCate findByTitle(String title) {
- return mesDeviceFaultCateDao.findByTitle(title);
- }
- }
|