📄 studycommentsinfo.java
字号:
package com.saas.biz.studycommentsMgr;
import java.util.ArrayList;
import com.saas.biz.commen.commMethodMgr;
import com.saas.biz.dao.studycommentsDAO.StudycommentsDAO;
import com.saas.biz.dao.studycommentsDAO.StudycommentsExt;
import com.saas.sys.buffer.Buffers;
import com.saas.sys.dbm.Dbtable;
import com.saas.sys.exp.SaasApplicationException;
import com.saas.sys.log.Logger;
public class StudyCommentsInfo{
Logger log;
Buffers inBuffer;
Buffers outBuffer;
Dbtable tradeQuery;
commMethodMgr commen;
ArrayList queryResult = new ArrayList();
public StudyCommentsInfo() {
log = new Logger(this);
tradeQuery = new Dbtable();
commen = new commMethodMgr();
outBuffer = new Buffers();
}
public void setOutBuffer(Buffers outBuffer) {
this.outBuffer = outBuffer;
}
public Buffers getOutBuffer() {
return this.outBuffer;
}
public void setTradeQuery(Dbtable tradeQuery) {
this.tradeQuery = tradeQuery;
}
public Dbtable getTradeQuery() {
return this.tradeQuery;
}
public ArrayList getQueryResult() {
return this.queryResult;
}
public void setQueryResult(ArrayList queryResult) {
this.queryResult = queryResult;
}
// 新增学习讨论
public void addStudyCommInfo(Buffers inbuffer) {
this.outBuffer = inbuffer;
this.inBuffer = inbuffer;
log.LOG_INFO("进入addReportInfo方法...");
int iResult = -1;
String studyid = inbuffer.getString("IDX");
String comments = inbuffer.getString("COMMENTS");
String part = inbuffer.getString("DEPART_CODE");
String user_name = inbuffer.getString("SESSION_USER_NAME");
StudycommentsDAO studyDao = new StudycommentsDAO();
studyDao.setComments(comments);
studyDao.setPart(part);
studyDao.setUser(user_name);
studyDao.setStudyid(studyid);
iResult = addStudyCommInfo(studyDao);
if (iResult != 0) {
this.outBuffer.setInt("RESULT_CODE", -1);
this.outBuffer.setString("RESULT_INFO", "业务处理失败!");
}
else {
this.outBuffer.setInt("RESULT_CODE", 0);
this.outBuffer.setString("RESULT_INFO", "业务处理成功!");
}
log.LOG_INFO("退出addReportInfo方法...");
}
public int addStudyCommInfo(StudycommentsDAO studyDao) {
StudycommentsExt repExt = new StudycommentsExt();
repExt.setParam(":VSTUDYID", studyDao.getStudyid());
repExt.setParam(":VCOMMENTS", studyDao.getComments());
repExt.setParam(":VUSER", studyDao.getUser());
repExt.setParam(":VPART", studyDao.getPart());
tradeQuery.executeBy(repExt.insBy("INS_BY_ALL"));
return 0;
}
public ArrayList getStudyCommByStudyId(String id) throws SaasApplicationException {
ArrayList list = new ArrayList();
StudycommentsExt repExt = new StudycommentsExt();
repExt.setParam(":VSTUDYID", id);
list=repExt.selByList("SEL_BY_STUDYID");
return list;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -