⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 schoolsetbizimpl.java

📁 仿招聘网站 SSH框架 ajax功能
💻 JAVA
字号:
package com.chinahr.biz.impl;

import java.util.List;

import com.chinahr.biz.SchoolSetBiz;
import com.chinahr.pojo.SysSchoolSetting;

public class SchoolSetBizImpl implements SchoolSetBiz {
	private com.chinahr.dao.SchoolSetDao schoolSetDao;

	public void setSchoolSetDao(com.chinahr.dao.SchoolSetDao schoolSetDao) {
		this.schoolSetDao = schoolSetDao;
	}
	public List<SysSchoolSetting> getAllSchool(){
		return null;
	}
	public void addSchoolSetting(SysSchoolSetting school){
		schoolSetDao.addSchoolSetting(school);
	}
	public void deleteSchoolSetting(int id){
		schoolSetDao.deleteSchoolSetting(id);
	}
	public SysSchoolSetting getSchoolById(int id){
		return schoolSetDao.getSchoolSettingById(id);
	}
	public void updateSchoolSetting(SysSchoolSetting old,SysSchoolSetting th){
		if(old==null){
			old=schoolSetDao.getSchoolSettingById(th.getSchId());
		}
		if(isEqu(old,th)){
			schoolSetDao.updateSchoolSetting(old);
		}
	}
	public boolean isEqu(SysSchoolSetting old,SysSchoolSetting th){
		boolean bl=false;
		if(th.getSchAddr()!=null&&th.getSchAddr().trim().length()>0){
			if(!th.getSchAddr().equals(old.getSchAddr())){
				old.setSchAddr(th.getSchAddr());
				bl=true;
			}
		}
		if(th.getSchLearnLevel()!=null&&th.getSchLearnLevel().trim().length()>0){
			if(!th.getSchLearnLevel().equals(old.getSchLearnLevel())){
				old.setSchLearnLevel(th.getSchLearnLevel());
				bl=true;
			}
		}
		if(th.getSchName()!=null&&th.getSchName().trim().length()>0){
			if(!th.getSchName().equals(old.getSchName())){
				old.setSchName(th.getSchName());
				bl=true;
			}
		}
		if(th.getSchSortName()!=null&&th.getSchSortName().trim().length()>0){
			if(!th.getSchSortName().equals(old.getSchSortName())){
				old.setSchSortName(th.getSchSortName());
				bl=true;
			}
		}
		if(th.getSchSpeName()!=null&&th.getSchSpeName().trim().length()>0){
			if(!th.getSchSpeName().equals(old.getSchSpeName())){
				old.setSchSpeName(th.getSchSpeName());
				bl=true;
			}
		}
		if(th.getSchSpeOffice()!=null&&th.getSchSpeOffice().trim().length()>0){
			if(!th.getSchSpeOffice().equals(old.getSchSpeOffice())){
				old.setSchSpeOffice(th.getSchSpeOffice());
				bl=true;
			}
		}
		if(th.getSchBeginDate()!=null){
			if(!th.getSchBeginDate().equals(old.getSchBeginDate())){
				old.setSchBeginDate(th.getSchBeginDate());
				bl=true;
			}
		}
		if(th.getSchEndDate()!=null){
			if(!th.getSchEndDate().equals(old.getSchEndDate())){
				old.setSchEndDate(th.getSchEndDate());
				bl=true;
			}
		}
		
		
		return bl;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -