📄 setsurveychildcountimpl.java
字号:
package com.mySurvey.domain.impl;
import com.mySurvey.bean.SurveyChildCount;
import com.mySurvey.dao.SurveyChildCountDAO;
import com.mySurvey.domain.SetSurveyChildCount;
public class SetSurveyChildCountImpl implements SetSurveyChildCount {
private String msg;
private SurveyChildCountDAO surveyChildCountDao;
//查询调查结果
public SurveyChildCount querySurveyChildCount(SurveyChildCount surveyChildCount) {
return surveyChildCountDao.query(surveyChildCount);
}
//删除调查结果
public void deleteSurveyChildCount(SurveyChildCount surveyChildCount) {
surveyChildCountDao.delete(surveyChildCount);
}
//获取统计信息
public String getMsg() {
return msg;
}
//新增调查结果
public void insertSurveyChildCount(SurveyChildCount surveyChildCount) {
surveyChildCountDao.insert(surveyChildCount);
}
//修改调查结果
public void updateSurveyChildCount(SurveyChildCount surveyChildCount) {
surveyChildCountDao.update(surveyChildCount);
msg = "统计成功";
}
/**返回surveyChildCountDao
*/
public SurveyChildCountDAO getSurveyChildCountDao() {
return surveyChildCountDao;
}
/**设定surveyChildCountDao
*/
public void setSurveyChildCountDao(SurveyChildCountDAO surveyChildCountDao) {
this.surveyChildCountDao = surveyChildCountDao;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -