package com.zhaohua.zdsy.persistence.impl;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.zhaohua.zdsy.exception.DAOException;
import com.zhaohua.zdsy.persistence.iface.GoodTaxSourceDao;
import com.zhaohua.zdsy.util.Pager;
import com.zhaohua.zdsy.vo.FileLoad;
import com.zhaohua.zdsy.vo.GoodTax;
import com.zhaohua.zdsy.vo.GoodTaxSource;
import com.zhaohua.zdsy.vo.KpxxDb;
import com.zhaohua.zdsy.vo.Rate;
import com.zhaohua.zdsy.vo.Swjg;
public class GoodTaxSourceDaoImpl extends BaseIbatisDao implements
GoodTaxSourceDao {
public List getTaxSource(String taxCode) {
try {
List list = smcTemplate.queryForList("GoodTaxSource.getTaxSource",
taxCode);
return list;
} catch (Exception e) {
throw new DAOException();
}
}
public GoodTaxSource getZDSYCJ(GoodTaxSource goodTaxSource) {
try {
return (GoodTaxSource) smcTemplate.queryForObject(
"GoodTaxSource.getTaxSourceTaxCode_cj", goodTaxSource);
} catch (Exception e) {
throw new DAOException();
}
}
public List getTaxCode(String taxCode1) {
try {
return smcTemplate.queryForList(
"GoodTaxSource.getTaxSourceTaxCode", taxCode1);
} catch (Exception e) {
throw new DAOException();
}
}
public Integer insertYCXX(GoodTaxSource goodTaxSource) {
try {
Integer i = (Integer) smcTemplate.insert("GoodTaxSource.insertTax",
goodTaxSource); // *******
System.out.println(i);
return i;
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
public List isSame(GoodTaxSource gf) throws DAOException {
try {
return smcTemplate.queryForList("GoodTaxSource.getByTimeId", gf);
} catch (Exception e) {
throw new DAOException();
}
}
/**
*
*/
public Integer updateTime(GoodTaxSource ts) {
try {
Integer i = smcTemplate.update("GoodTaxSource.update", ts);
return i;
} catch (Exception e) {
e.printStackTrace();
return -1;
}
}
public int getCounts(String whereCon) throws DAOException {
try {
return ((Integer) smcTemplate.queryForObject(
"GoodTaxSource.getCounts", whereCon));
} catch (Exception ex) {
logger.error("" + this.getClass()
+ ".getCounts()");
logger.error(ex.getMessage());
throw new DAOException();
}
}
public List getPageList(Pager page) throws DAOException {
try {
return smcTemplate.queryForList("GoodTaxSource.getPageList", page);
} catch (Exception ex) {
logger.error("" + this.getClass()
+ ".getPageList()");
logger.error(ex.getMessage());
throw new DAOException();
}
}
public List getPageListTaxSours(String whereCon) throws DAOException {
try {
return smcTemplate.queryForList(
"GoodTaxSource.getPageListTaxSours", whereCon);
} catch (Exception ex) {
logger.error("" + this.getClass()
+ ".getPageList()");
logger.error(ex.getMessage());
throw new DAOException();
}
}
public Integer inertPHSB(GoodTaxSource goodTaxSource) {
try {
return (Integer) smcTemplate.insert("GoodTaxSource.insertPHSB",
goodTaxSource);
} catch (Exception e) {
throw new DAOException();
}
}
public Integer insertYQSB(GoodTaxSource goodTaxSource) {
try {
return (Integer) smcTemplate.insert("GoodTaxSource.insertYQSB",
goodTaxSource);
} catch (Exception e) {
throw new DAOException(e);
}
}
public GoodTaxSource isSamePhsb(GoodTaxSource goodTaxSource) {
try {
return (GoodTaxSource) smcTemplate.queryForObject(
"GoodTaxSource.isSamePhsb", goodTaxSource);
} catch (Exception e) {
e.printStackTrace();
throw new DAOException();
}
}
public GoodTaxSource isSameYqsb(GoodTaxSource goodTaxSource) {
try {
return (GoodTaxSource) smcTemplate.queryForObject(
"GoodTaxSource.isSameYqsb", goodTaxSource);
} catch (Exception e) {
throw new DAOException();
}
}
public List getDutyByArea(GoodTaxSource goodTaxSource) throws DAOException {
try {
return smcTemplate.queryForList("GoodTaxSource.getDutyByArea",
goodTaxSource);
} catch (Exception e) {
// e.printStackTrace();
throw new DAOException(e);
}
}
public List<GoodTaxSource> getDutyByUserCode(Map ps) throws DAOException {
try {
return (List<GoodTaxSource>) smcTemplate.queryForList(
"GoodTaxSource.getDutyByUserCode", ps);
} catch (Exception e) {
// e.printStackTrace();
throw new DAOException(e);
}
}
public List<GoodTaxSource> getDutyByUserCode1(Map ps) throws DAOException {
try {
return (List<GoodTaxSource>) smcTemplate.queryForList(
"GoodTaxSource.getDutyByUserCode1", ps);
} catch (Exception e) {
// e.printStackTrace();
throw new DAOException(e);
}
}
public void update(GoodTaxSource source) throws DAOException {
try {
smcTemplate.update("GoodTaxSource.updateSource", source);
} catch (Exception e) {
// e.printStackTrace();
throw new DAOException(e);
}
}
public List getDutyByArea1(GoodTaxSource goodTaxSource) throws DAOException {
try {
return smcTemplate.queryForList("GoodTaxSource.getDutyByArea1",
goodTaxSource);
} catch (Exception e) {
// e.printStackTrace();
throw new DAOException(e);
}
}
/**
*
*/
public Integer updateTax(GoodTaxSource goodTaxSource) throws DAOException {
try {
return (Integer) smcTemplate.update("GoodTaxSource.updateTax",
goodTaxSource);
} catch (Exception e) {
throw new DAOException();
}
}
//
public int getCounts1(String whereCon) throws DAOException {
try {
return ((Integer) smcTemplate.queryForObject(
"GoodTaxSource.getCounts1", whereCon));
} catch (Exception ex) {
logger.error("" + this.getClass()
+ ".getCounts1()");
logger.error(ex.getMessage());
throw new DAOException();
}
}
public List getPageList1(Pager page) throws DAOException {
try {
return smcTemplate.queryForList("GoodTaxSource.getPageList1", page);
} catch (Exception ex) {
logger.error("" + this.getClass()
+ ".getPageList1()");
logger.error(ex.getMessage());
throw new DAOException();
}
}
//
public List getAllNsr(String dqbh) throws DAOException {
try {
return smcTemplate.queryForList("GoodTaxSource.getAllNsr", dqbh);
} catch (Exception e) {
// e.printStackTrace();
throw new DAOException(e);
}
}
public GoodTaxSource getPh(GoodTaxSource source) throws DAOException {
try {
return (GoodTaxSource) smcTemplate.queryForObject(
"GoodTaxSource.getPh", source);
} catch (Exception e) {
throw new DAOException(e);
}
}
public GoodTaxSource getSb(GoodTaxSource source) throws DAOException {
try {
return (GoodTaxSource) smcTemplate.queryForObject(
"GoodTaxSource.getSb", source);
} catch (Exception e) {
throw new DAOException(e);
}
}
public void updatePh(GoodTaxSource source) throws DAOException {
try {
smcTemplate.update("GoodTaxSource.updatePh", source);
} catch (Exception e) {
throw new DAOException(e);
}
}
public void updateSb(GoodTaxSource source) throws DAOException {
try {
smcTemplate.update("GoodTaxSource.updateSb", source);
} catch (Exception e) {
throw new DAOException(e);
}
}
public Integer updatePhsb(GoodTaxSource goodTaxSource) throws DAOException {
try {
return (Integer) smcTemplate.update("GoodTaxSource.updatePHSB",
goodTaxSource);
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
public Integer updateYqsb(GoodTaxSource goodTaxSource) throws DAOException {
try {
return (Integer) smcTemplate.update("GoodTaxSource.updateYQSB",
goodTaxSource);
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
//
public List getAllNsrByCode(String whereCon) throws DAOEx
没有合适的资源?快使用搜索试试~ 我知道了~
ibatis用xml配置文件配置使用
共101个文件
java:58个
xml:40个
project:1个
4星 · 超过85%的资源 需积分: 19 56 下载量 118 浏览量
2011-08-15
22:05:00
上传
评论
收藏 106KB RAR 举报
温馨提示
ibatis用xml配置文件配置的使用,基本包括了ibatis遇到的所有问题
资源推荐
资源详情
资源评论
收起资源包目录
ibatis用xml配置文件配置使用 (101个子文件)
.classpath 8KB
GoodTaxSourceDaoImpl.java 19KB
ChartReportDaoImpl.java 11KB
GatherDaoImpl.java 8KB
ExactDaoImpl.java 7KB
ChartReportDao.java 6KB
GsjfhysfbDaoImpl.java 6KB
TradeTaxDaoImpl.java 6KB
GoodTaxSourceDao.java 5KB
FactDAOImpl.java 5KB
TUserDaoImpl.java 4KB
GoodTaxSourceTwoDaoImpl.java 4KB
YctzDaoImpl.java 4KB
DepartmentDaoImpl.java 4KB
ZhfxDaoImpl.java 3KB
SfyjDaoImpl.java 3KB
HysfDaoImpl.java 3KB
TForecastTimeDaoImpl.java 3KB
IndustryTaxDaoImpl.java 3KB
SecUserDaoImpl.java 2KB
SecNodeDaoImpl.java 2KB
SecGroupDaoImpl.java 2KB
NsrsjrkDaoImpl.java 2KB
GatherDao.java 2KB
QxsjxxDaoImpl.java 2KB
FactDAO.java 2KB
BqhzDaoImpl.java 2KB
ExactDao.java 2KB
GsjfhysfbDao.java 1KB
TradeTaxDao.java 1KB
GoodTaxSourceTwoDao.java 1KB
TUserDao.java 1020B
ZdsyxxDaoImpl.java 992B
DM_CZRYDaoImpl.java 977B
IndustryTaxDao.java 952B
TForecastTimeDao.java 927B
SwjgDaoImpl.java 894B
DepartmentDao.java 881B
YctzDao.java 822B
ZhfxDao.java 817B
SfyjDao.java 797B
HysfDao.java 790B
ZdsySjrk1DaoImpl.java 782B
QxsjxxDao.java 719B
CharSecDaoImpl.java 693B
SecUserDao.java 681B
NsrsjrkDao.java 655B
ZdsyGmqrDaoImpl.java 647B
SecGroupDao.java 595B
BqhzDao.java 525B
SecNodeDao.java 466B
ZdsyxxDao.java 386B
BaseIbatisDao.java 368B
DM_CZRYDao.java 326B
SwjgDao.java 320B
ZdsySjrk1Dao.java 285B
MiddleExchangeDao.java 240B
CharSecDao.java 225B
ZdsyGmqrDao.java 192B
.mymetadata 288B
.project 1KB
GoodTaxSource.xml 51KB
CtyGather.xml 30KB
exact.xml 30KB
applicationContext.xml 18KB
fact.xml 16KB
Sfyj.xml 15KB
struts-action.xml 11KB
Report.xml 11KB
Rate.xml 10KB
web.xml 9KB
Zhfx.xml 8KB
Hysf.xml 7KB
Gsjfhysfb.xml 6KB
spring-action.xml 6KB
Next_trade_tax.xml 5KB
Yctz.xml 5KB
TUser.xml 5KB
Department.xml 5KB
validation.xml 4KB
trade_tax.xml 4KB
ZdsySjrk.xml 4KB
GoodTaxSourceTwo.xml 4KB
IndustryTax.xml 3KB
proxool.xml 3KB
SecUser.xml 3KB
Nsrsjrk.xml 3KB
SecGroup.xml 2KB
SqlMapConfig.xml 2KB
TForecastTime.xml 2KB
Kpdb.xml 2KB
SecNode.xml 2KB
bqhz.xml 2KB
Qxsjxx.xml 2KB
DM_CZRY.xml 2KB
Zdsyxx.xml 1KB
MiddleExchange.xml 1KB
CharSec.xml 1KB
Swjg.xml 893B
SqlMapConfig1.xml 757B
共 101 条
- 1
- 2
资源评论
- yixiuquan2012-07-13东西有点杂 你说是一个项目吧 可是里面缺了好多 没有jar包 说你不是吧 里面的src里面 东西挺齐全的 没条理 一看这一就没心思看了
- xiaoshuaiguoguo2012-11-23有点乱 没看懂 没完成测试
- lovesimly2013-08-03资源不错,挺好的
- hh-glimmer2013-07-10确实有点乱,希望能花点时间整理一下
- suipian10292013-09-10花了点时间整理好了,谢谢分享。
ChengwanWu
- 粉丝: 5
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 三菱PLC例程源码Medocsequencegenerator
- 三菱PLC例程源码M1320磨头进出FX1s控制步进电机,有注释
- STRASSEN矩阵乘法算法(改进分治法·C语言)
- 前端.xmind前端.xmind前端.xmind前端.xmind前端.xmind
- 三菱PLC例程源码LOW-E玻璃镀膜线程序(三菱QPLC的)一万步带注释
- 三菱PLC例程源码LCD设备蚀刻机程序
- 三菱PLC例程源码LCD设备蚀刻机
- 全面前端开发指南:从基础到深入
- pvk2pfx 32位 Pvk2Pfx (Pvk2Pfx.exe) 是一种命令行工具,可将 .spc、.cer 和 .pvk 文
- 三菱PLC例程源码JH21-150程序
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功