📄 rwglspecialdao.java
字号:
package gov.gdlt.ssgly.taxcore.taxdao.rwgl;
import gov.gdlt.ssgly.taxcore.comm.dao.*;
import java.sql.SQLException;
import gov.gdlt.ssgly.taxcore.taxevent.rwgl.RWGLspecialDataVO;
import java.util.ArrayList;
import java.math.BigDecimal;
import java.sql.Connection;
import gov.gdlt.ssgly.taxcore.comm.servicelocator.JDBCLocator;
import gov.gdlt.ssgly.taxcore.comm.config.ApplicationContext;
/**
* <p>Title: </p>
*
* <p>Description: 广东地税税收管理员工作平台</p>
*
* <p>Copyright: Copyright (c) 2005 广东省地方税务局,广州市地方税务局</p>
*
* <p>Company: 广州地税</p>
*
* @author 王隽
* @version 1.0
*/
public class RWGLspecialDAO extends BaseDataAccessObject {
public RWGLspecialDAO() {
}
public RWGLspecialDataVO dealSpecialOperation(RWGLspecialDataVO specialData) {
String deal = specialData.getSqlOperation();
if (deal == null) {
return null;
}
String sqlName = specialData.getSqlName();
if (sqlName == null) {
return null;
}
Object obj = null;
this.getSqlMapClient(); //获取SqlMap对象
Connection connection = null;
if (deal.equals("select")) {
//停用select2,因为select出来的结果是另一个实例,而非传入参数的那个实例
//specialData=(RWGLspecialDataVO)this.select2("T_RWGL_SpecialData." + sqlName, specialData);
try {
connection = JDBCLocator.getInstance().getJDBCConnection();
sqlMap.setUserConnection(connection);
//执行select操作
try {
obj = sqlMap.queryForObject("T_RWGL_SpecialData." + sqlName,
specialData, specialData);
} finally {
try {
if (connection != null) {
connection.close();
}
} catch (SQLException e) {
}
}
} catch (SQLException ex) {
ex.printStackTrace();
}
}else if (deal.equals("selectAll")){
ArrayList list=(ArrayList)this.selectAll("T_RWGL_SpecialData."+sqlName,specialData);
specialData.setSpecialArray1(list);
}else if (deal.equals("update")){
int rows=this.update("T_RWGL_SpecialData."+sqlName,specialData);
specialData.setSpecialNumber1(new BigDecimal(rows));
}
return specialData;
}
// public ArrayList getFlList(ArrayList inputCode){
// if (inputCode==null || inputCode.size()==0) return null;
// RWGLspecialDataVO temp;
// for (int i=0;i<inputCode.size();i++){
// temp=(RWGLspecialDataVO)inputCode.get(i);
// temp=(RWGLspecialDataVO)this.select2("T_RWGL_SpecialData.getJgrydm",temp);
// if (temp.getSpecialString2().substring(0,2).equals("01")){
// temp.setSpecialString1(temp.getSpecialString1()+"(我的管户)");
// }
// }
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -