Compare commits

..

7 Commits

Author SHA1 Message Date
xiang2lin 1eb12c3527 测试类 2025-04-24 13:38:25 +08:00
xiang2lin b2d2a06086 本地配置文件 2025-04-24 13:38:13 +08:00
xiang2lin bd4601e8c0 增加云帐房配置 2025-04-24 13:37:59 +08:00
xiang2lin 74cc73bab3 发票批量导入税务接口 2025-04-24 13:37:29 +08:00
xiang2lin 4a9eaed674 Merge branch 'ht' of http://ufidahz.com.cn:9015/hzya/kangarooDataCenterV3 into ht 2025-04-23 16:25:00 +08:00
xiang2lin f416e7e07b Merge branch 'ht' of http://ufidahz.com.cn:9015/hzya/kangarooDataCenterV3 into ht
# Conflicts:
#	base-buildpackage/pom.xml
2025-04-23 16:15:56 +08:00
xiang2lin 472fb7d7f8 本地配置 2025-04-23 16:13:30 +08:00
67 changed files with 8127 additions and 1 deletions

View File

@ -43,6 +43,12 @@
<profile.active>httest</profile.active>
</properties>
</profile>
<profile>
<id>xel</id> <!--相二林本地环境-->
<properties>
<profile.active>xel</profile.active>
</properties>
</profile>
<profile>
<id>llg</id> <!--开发环境-->
<properties>

View File

@ -0,0 +1,48 @@
package com.hzya.frame.plugin.cinvoice.assembler;
import com.alibaba.fastjson.JSONObject;
/**
* @Description 客运汽车a3
* @Author xiangerlin
* @Date 2025/4/21 11:41
**/
public class BusInvoiceAssembler implements ParamAssembler{
private JSONObject jsonObject;
public BusInvoiceAssembler(JSONObject jsonObject) {
this.jsonObject = jsonObject;
}
/**
* 组装参数
*
* @return
*/
@Override
public JSONObject assembleParam() {
JSONObject param = new JSONObject();
// 发票代码必填
param.put("fpdm", "");
// 发票号码必填
param.put("fphm", "");
// 乘车日期/开票时间格式为 yyyy-MM-dd必填
param.put("ccrq", "");
// 乘车时间格式为 HH:mm非必填
param.put("ccsj", "");
// 出发地非必填
param.put("cfd", "");
// 到达地非必填
param.put("ddd", "");
// 乘车人姓名非必填
param.put("ccrxm", "");
// 身份证号非必填
param.put("sfzh", "");
// 金额必填
param.put("je", "");
// 发票消费类型非必填
param.put("fpxflx", "");
return param;
}
}

View File

@ -0,0 +1,119 @@
package com.hzya.frame.plugin.cinvoice.assembler;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.cinvoice.dto.FlightItemInfo;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity;
import org.apache.commons.collections.CollectionUtils;
import java.util.LinkedList;
import java.util.List;
/**
* @Description 400-电子发票航空运输客票电子行程单
* @Author xiangerlin
* @Date 2025/4/21 14:30
**/
public class ElecFlightInvoiceAssembler implements ParamAssembler{
private JSONObject jsonObject;
public ElecFlightInvoiceAssembler(JSONObject jsonObject) {
this.jsonObject = jsonObject;
}
/**
* 组装参数
*
* @return
*/
@Override
public JSONObject assembleParam() {
JSONObject param = new JSONObject();
String planeticketHStr = jsonObject.getString("planeticketH");
String planeticketBListStr = jsonObject.getString("planeticketBList");
if (StrUtil.isNotEmpty(planeticketHStr)){
LexmiscivPlaneticketEntity planeticketH = JSONObject.parseObject(planeticketHStr, LexmiscivPlaneticketEntity.class);
List<LexmiscivPlaneticketsEntity> planeticketBList = JSONObject.parseArray(planeticketBListStr, LexmiscivPlaneticketsEntity.class);
// 1. 单据号码/电子客票号码必填
param.put("djhm", planeticketH.getPT_ETICKETNO());
// 2. 验证码非必填
param.put("yzm", planeticketH.getPT_VALIDCODE());
// 3. 开票日期格式为 yyyy-MM-dd必填
param.put("kprq", planeticketH.getPT_DATE());
// 4. 销售单位代号非必填
param.put("xsdwdh", planeticketH.getPT_SALERCODE());
// 5. 填开单位非必填
param.put("tkdw", planeticketH.getPT_SALERNAME());
// 6. 乘车人姓名非必填
param.put("cjrxm", planeticketH.getPT_CUSTOMER());
// 7. 身份证号非必填
param.put("sfzh", planeticketH.getPT_IDNO());
// 8. 票价必填
param.put("pj", planeticketH.getPT_PRICE());
// 9. 民航发展基金非必填
param.put("mhfzjj", planeticketH.getPT_FUNDSAMOUNT());
// 10. 保险费非必填
param.put("bxf", planeticketH.getPT_INSURANCE());
// 11. 总额必填
param.put("ze", planeticketH.getPT_AMOUNT());
// 12. 发票消费类型非必填
param.put("fpxflx", "");
// 13. 国内国际标签非必填
param.put("gngjbq", planeticketH.getPT_INTERNATIONALFLAG());
// 14. 印刷序号非必填
param.put("ysxh", planeticketH.getPT_SERIALNO());
// 15. 燃油附加费非必填
param.put("ryfjf", planeticketH.getPT_FUELAMOUNT());
if ("1".equals(planeticketH.getPT_ELECTRONICMARK())){
//电子票需要的字段
// 16. 购方税号非必填
param.put("gfsh", planeticketH.getPT_BUYERTAXNO());
// 17. 购方名称非必填
param.put("gfmc", planeticketH.getPT_BUYERNAME());
// 18. 签注非必填
param.put("xcdqz", planeticketH.getPT_MARKDESC());
// 19. 开票状态非必填
param.put("kpzt", planeticketH.getPT_ISSUINGSTATE());
// 20. 行程单提示信息非必填
param.put("xcdtsxx", planeticketH.getPT_PROMPTINFO());
// 21. 增值税税率非必填
param.put("zzssl", planeticketH.getPT_TAXRATE());
// 22. 增值税税额非必填
param.put("zzsse", planeticketH.getPT_TAXRATEAMOUNT());
// 23. 合计非必填
param.put("hj", planeticketH.getPT_NOTAXAMOUNT());
}
List<FlightItemInfo> filightItemList = new LinkedList<>();
param.put("flightInfos",filightItemList);
if (CollectionUtils.isNotEmpty(planeticketBList)){
for (LexmiscivPlaneticketsEntity b : planeticketBList) {
//for循环
FlightItemInfo flightItem = new FlightItemInfo();
flightItem.setCfz(b.getPTS_FSTATION());//出发站
flightItem.setDdz(b.getPTS_TSTATION());//到达站
flightItem.setHbh(b.getPTS_NO());//航班号
flightItem.setCjsj(b.getPTS_TIME());//乘机时间
flightItem.setZwdj(b.getPTS_CLASS());//座位等级
flightItem.setCyr(b.getPTS_CARRIER());//承运人
flightItem.setCwdj(b.getPTS_CLASSNAME());//舱位等级
if ("1".equals(planeticketH.getPT_ELECTRONICMARK())){
//电子票需要的字段
flightItem.setSsflbm("");//税收分类编码
flightItem.setXmmc("");//项目名称
flightItem.setGgxh("");//规格型号
flightItem.setDw("");//单位
flightItem.setSl("");//数量
flightItem.setDj("");//单价
flightItem.setJe(String.valueOf(planeticketH.getPT_PRICE()));//金额
flightItem.setSlv(planeticketH.getPT_TAXRATE());//税率
flightItem.setSe(planeticketH.getPT_TAXAMOUNT());//税额
}
filightItemList.add(flightItem);
}
}
}
return param;
}
}

View File

@ -0,0 +1,109 @@
package com.hzya.frame.plugin.cinvoice.assembler;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity;
/**
* @Description 200-电子发票铁路电子客票
* @Author xiangerlin
* @Date 2025/4/21 14:08
**/
public class ElecTrainInvoiceAssembler implements ParamAssembler{
private JSONObject jsonObject;
public ElecTrainInvoiceAssembler(JSONObject jsonObject) {
this.jsonObject = jsonObject;
}
/**
* 组装参数
*
* @return
*/
@Override
public JSONObject assembleParam() {
JSONObject param = new JSONObject();
String trainInvoice = jsonObject.getString("trainInvoice");
if (StrUtil.isNotEmpty(trainInvoice)){
LexmiscivTrainticketEntity trainticketEntity = JSONObject.parseObject(trainInvoice, LexmiscivTrainticketEntity.class);
if (null != trainticketEntity){
// 1. 火车票号必填
param.put("hcph", trainticketEntity.getTT_CODE());
// 2. 乘车日期格式为 yyyy-MM-dd必填
param.put("ccrq", trainticketEntity.getTT_DATE());
// 3. 乘车时间格式为 HH:mm非必填
param.put("ccsj", trainticketEntity.getTT_TIME());
// 4. 出发地非必填
param.put("cfd", trainticketEntity.getTT_FSTATION());
// 5. 到达地非必填
param.put("ddd", trainticketEntity.getTT_TSTATION());
// 6. 车次非必填
param.put("cc", trainticketEntity.getTT_NO());
// 7. 乘车人姓名非必填
param.put("ccrxm", trainticketEntity.getTT_CUSTOMER());
// 8. 身份证号非必填
param.put("sfzh", trainticketEntity.getTT_IDNO());
// 9. 座位类型非必填
param.put("zwlx", trainticketEntity.getTT_CLASS());
// 10. 金额必填
param.put("je", trainticketEntity.getTT_AMOUNT());
// 11. 发票消费类型非必填
param.put("fpxflx", "");
// 12. 序列号非必填
param.put("xlh", trainticketEntity.getTT_SERIALNO());
// 13. 开票日期格式为 yyyy-MM-dd必填
param.put("kprq", trainticketEntity.getTT_OUTDATE());
// 14. 不含税金额非必填
param.put("bhsje", trainticketEntity.getTT_NOTAXAMOUNT());
// 15. 税额非必填
param.put("se", trainticketEntity.getTT_TAXRATEAMOUNT());
// 16. 税率非必填
param.put("slv", trainticketEntity.getTT_TAXRATE());
// 17. 销方税号非必填
param.put("xfsh", "");
// 18. 销方名称非必填
param.put("xfmc", "");
// 19. 购方税号非必填
param.put("gfsh", trainticketEntity.getTT_BUYERTAXNO());
// 20. 购方名称非必填
param.put("gfmc", trainticketEntity.getTT_BUYERNAME());
// 21. 出发站拼音非必填
param.put("cfzpy", "");
// 22. 到达站拼音非必填
param.put("ddzpy", "");
// 23. 车厢非必填
param.put("cx", trainticketEntity.getTT_CARRIAGE());
// 24. 厢位非必填
param.put("xw", trainticketEntity.getTT_SEAT());
// 25. 电子客票号非必填
param.put("dzkph", trainticketEntity.getTT_SERIALNO());
// 26. 发票明细信息非必填这里先创建一个空的 JSONArray
JSONArray qdHcpInfosArray = new JSONArray();
param.put("qdHcpInfos", qdHcpInfosArray);
JSONObject qdHcpInfo = new JSONObject();
// 27. 税收分类编码非必填
qdHcpInfo.put("ssflbm", "");
// 28. 项目名称非必填
qdHcpInfo.put("xmmc", "");
// 29. 规格型号非必填
qdHcpInfo.put("ggxh", "");
// 30. 单位非必填
qdHcpInfo.put("dw", "");
// 31. 数量非必填
qdHcpInfo.put("sl", "");
// 32. 单价非必填
qdHcpInfo.put("dj", "");
// 33. 金额非必填
qdHcpInfo.put("je", trainticketEntity.getTT_AMOUNT());
// 34. 税率非必填
qdHcpInfo.put("slv", trainticketEntity.getTT_TAXRATE());
// 35. 税额非必填
qdHcpInfo.put("se", trainticketEntity.getTT_TAXRATEAMOUNT());
}
}
return param;
}
}

View File

@ -0,0 +1,73 @@
package com.hzya.frame.plugin.cinvoice.assembler;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.cinvoice.dto.FlightItemInfo;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity;
import org.apache.commons.collections.CollectionUtils;
import java.util.LinkedList;
import java.util.List;
/**
* @Description 航空运输电子客票行程单a4 参数组装
* @Author xiangerlin
* @Date 2025/4/21 10:57
**/
public class FlightInvoiceAssembler implements ParamAssembler{
private JSONObject jsonObject;
public FlightInvoiceAssembler(JSONObject jsonObject) {
this.jsonObject = jsonObject;
}
/**
* 组装参数
*
* @return
*/
@Override
public JSONObject assembleParam() {
JSONObject params = new JSONObject();
String planeticketHStr = jsonObject.getString("planeticketH");
String planeticketBListStr = jsonObject.getString("planeticketBList");
if (StrUtil.isNotEmpty(planeticketHStr)){
LexmiscivPlaneticketEntity planeticketH = JSONObject.parseObject(planeticketHStr, LexmiscivPlaneticketEntity.class);
List<LexmiscivPlaneticketsEntity> planeticketBList = JSONObject.parseArray(planeticketBListStr, LexmiscivPlaneticketsEntity.class);
params.put("djhm", planeticketH.getPT_ETICKETNO()); // 单据号码/电子客票号码
params.put("yzm", planeticketH.getPT_VALIDCODE()); // 验证码
params.put("kprq", planeticketH.getPT_DATE()); // 开票日期,yyyy-MM-dd
params.put("xsdwdh", planeticketH.getPT_SALERCODE()); // 销售单位代号
params.put("tkdw", planeticketH.getPT_SALERNAME()); // 填开单位
params.put("cjrxm", planeticketH.getPT_CUSTOMER()); // 乘车人姓名
params.put("sfzh", planeticketH.getPT_IDNO()); // 身份证号
params.put("pj", planeticketH.getPT_PRICE()); // 票价
params.put("mhfzjj", planeticketH.getPT_FUNDSAMOUNT()); // 民航发展基金
params.put("bxf", planeticketH.getPT_INSURANCE()); // 保险费
params.put("ze", planeticketH.getPT_AMOUNT()); // 总额
params.put("fpxflx", ""); // 发票消费类型
params.put("gngjbq", planeticketH.getPT_INTERNATIONALFLAG()); // 国内国际标签
params.put("ysxh", planeticketH.getPT_SERIALNO()); // 印刷序号
params.put("ryfjf", planeticketH.getPT_FUELAMOUNT()); // 燃油附加费
List<FlightItemInfo> filightItemList = new LinkedList<>();
params.put("flightInfos",filightItemList);
//for循环
if (CollectionUtils.isNotEmpty(planeticketBList)){
for (LexmiscivPlaneticketsEntity b : planeticketBList) {
FlightItemInfo flightItem = new FlightItemInfo();
flightItem.setCfz(b.getPTS_FSTATION());//出发站
flightItem.setDdz(b.getPTS_TSTATION());//到达站
flightItem.setHbh(b.getPTS_NO());//航班号
flightItem.setCjsj(b.getPTS_TIME());//乘机时间
flightItem.setZwdj(b.getPTS_CLASS());//座位等级
flightItem.setCyr(b.getPTS_CARRIER());//承运人
flightItem.setCwdj(b.getPTS_CLASSNAME());//舱位等级
filightItemList.add(flightItem);
}
}
}
return params;
}
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.plugin.cinvoice.assembler;
import com.alibaba.fastjson.JSONObject;
/**
* @Description 定义组装参数的接口
* @Author xiangerlin
* @Date 2025/4/21 09:22
**/
public interface ParamAssembler {
/**
* 组装参数
* @return
*/
JSONObject assembleParam();
}

View File

@ -0,0 +1,20 @@
package com.hzya.frame.plugin.cinvoice.assembler;
import com.alibaba.fastjson.JSONObject;
/**
* @Description 上下文类根据发票类型选择相应的组装策略
* @Author xiangerlin
* @Date 2025/4/21 14:51
**/
public class ParamAssemblerContext {
private ParamAssembler assembler;
public ParamAssemblerContext(ParamAssembler assembler) {
this.assembler = assembler;
}
public JSONObject assemble(){
return assembler.assembleParam();
}
}

View File

@ -0,0 +1,48 @@
package com.hzya.frame.plugin.cinvoice.assembler;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity;
/**
* @Description a2 纸质火车票参数组装
* @Author xiangerlin
* @Date 2025/4/21 10:20
**/
public class TrainInvoiceAssembler implements ParamAssembler{
private JSONObject jsonObject;
public TrainInvoiceAssembler(JSONObject jsonObject) {
this.jsonObject = jsonObject;
}
/**
* 组装参数
*
* @return
*/
@Override
public JSONObject assembleParam() {
JSONObject param = new JSONObject();
String trainInvoice = jsonObject.getString("trainInvoice");
if (StrUtil.isNotEmpty(trainInvoice)){
LexmiscivTrainticketEntity trainticketEntity = JSONObject.parseObject(trainInvoice, LexmiscivTrainticketEntity.class);
if (null != trainticketEntity){
param.put("hcph", trainticketEntity.getTT_CODE()); // 火车票号
param.put("ccrq", trainticketEntity.getTT_DATE()); // 乘车日期,yyyy-MM-dd
param.put("ccsj", trainticketEntity.getTT_TIME()); // 乘车时间,HH:mm
param.put("cfd", trainticketEntity.getTT_FSTATION()); // 出发地
param.put("ddd", trainticketEntity.getTT_TSTATION()); // 到达地
param.put("cc", trainticketEntity.getTT_NO()); // 车次
param.put("ccrxm", trainticketEntity.getTT_CUSTOMER()); // 乘车人姓名
param.put("sfzh", trainticketEntity.getTT_IDNO()); // 身份证号
param.put("zwlx", trainticketEntity.getTT_CLASS()); // 座位类型
param.put("je", trainticketEntity.getTT_AMOUNT()); // 金额
param.put("fpxflx", ""); // 发票消费类型
param.put("xlh", trainticketEntity.getTT_SERIALNO()); // 序列号
}
}
return param;
}
}

View File

@ -0,0 +1,88 @@
package com.hzya.frame.plugin.cinvoice.assembler;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.cinvoice.dto.ZzsItemInfo;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity;
import org.apache.commons.collections.CollectionUtils;
import java.util.LinkedList;
import java.util.List;
/**
* @Description 增值税类发票参数
* 增值税类发票(01增值税专票04增值税普票08增值税电子专票10增值税电子普票11增值税普票(票卷)31电子发票(增值税专票)32电子发票(普票))
* @Author xiangerlin
* @Date 2025/4/21 09:27
**/
public class ZzsInvoiceAssembler implements ParamAssembler{
private JSONObject jsonObject;
public ZzsInvoiceAssembler(JSONObject jsonObject) {
this.jsonObject = jsonObject;
}
/**
* 增值税类发票参数组装
*
* @return
*/
@Override
public JSONObject assembleParam() {
JSONObject param = new JSONObject();
String zzsInvoiceHStr = jsonObject.getString("zzsInvoiceH");
String zzsInvoiceBListStr = jsonObject.getString("zzsInvoiceBList");
if (StrUtil.isNotEmpty(zzsInvoiceHStr) && StrUtil.isNotEmpty(zzsInvoiceBListStr)){
LexmiscivInvoicemainEntity zzsInvoiceH = JSONObject.parseObject(zzsInvoiceHStr, LexmiscivInvoicemainEntity.class);
List<LexmiscivInvoicedetailEntity> zzsInvoiceBList = JSONObject.parseArray(zzsInvoiceBListStr, LexmiscivInvoicedetailEntity.class);
if (null != zzsInvoiceH){
param.put("fpdm", zzsInvoiceH.getIM_FPDM());//发票代码
param.put("fphm", zzsInvoiceH.getIM_FPHM());//发票号码
param.put("kprq", zzsInvoiceH.getIM_DATE());//开票日期 yyyy-MM-dd
param.put("xfsh", zzsInvoiceH.getIM_SALERTAXNO());//销方税号
param.put("xfmc", zzsInvoiceH.getIM_SALERNAME());//销方名称
param.put("gfsh", zzsInvoiceH.getIM_BUYERTAXNO());//购方税号
param.put("gfmc", zzsInvoiceH.getIM_BUYERNAME());//购方名称
param.put("hjje", zzsInvoiceH.getIM_NOTAXAMOUNT());//合计金额不含税
param.put("hjse", zzsInvoiceH.getIM_TAXAMOUNT());//合计税额
param.put("jshj", zzsInvoiceH.getIM_TOTALAMOUNT());//价税合计发票类型为31电子发票(增值税专票)32电子发票(普票) 时必填
param.put("jym", zzsInvoiceH.getIM_CHECKCODE());//校验码发票类型为04增值税普票10增值税电子普票11增值税普票(票卷) 时必填
param.put("xfdzdh", zzsInvoiceH.getIM_SALERADDRESS());//销售方地址电话
param.put("xfyhzh", zzsInvoiceH.getIM_SALERBANKNO());//销售方开户行及账号
param.put("gfdzdh", zzsInvoiceH.getIM_BUYERADDRESS());//购买方地址电话
param.put("gfyhzh", zzsInvoiceH.getIM_BUYERBANKNO());//购买方开户行及账号
param.put("mmq", zzsInvoiceH.getIM_ENCRYPTIONCODE());//密码区
param.put("bz", zzsInvoiceH.getIM_MEMO());//备注
param.put("jqbh", zzsInvoiceH.getIM_MACHINENO());//机器编号
param.put("jdhm", zzsInvoiceH.getIM_PRINTEDFPHM());//机打号码发票类型为11增值税普票(票卷) 时必填
param.put("kpr", zzsInvoiceH.getIM_MAKERNM());//开票人
param.put("skr", zzsInvoiceH.getIM_PAYEE());//收款人
param.put("fhr", zzsInvoiceH.getIM_AUDITOR());//复核人
// 发票明细信息
List<ZzsItemInfo> zzsItemInfoList = new LinkedList<>();
param.put("zzsItemInfos", zzsItemInfoList);
if (CollectionUtils.isNotEmpty(zzsInvoiceBList)){
for (LexmiscivInvoicedetailEntity b : zzsInvoiceBList) {
ZzsItemInfo zzsItemInfo = new ZzsItemInfo();
// 发票明细项
zzsItemInfo.setXh(b.getID_ROWID());//序号
zzsItemInfo.setSsflbm("");//税收分类编码
zzsItemInfo.setXmmc(b.getID_SERVICENM());//项目名称
zzsItemInfo.setGgxh(b.getID_SERVICETYPE());//规格型号
zzsItemInfo.setDw(b.getID_UNIT());//单位
zzsItemInfo.setSl(b.getID_NUM());//数量
zzsItemInfo.setDj(b.getID_PRICE());//单价
zzsItemInfo.setJe(b.getID_NOTAXAMOUNT());//金额
zzsItemInfo.setSlv(b.getID_TAX());//税率
zzsItemInfo.setSe(b.getID_TAXAMOUNT());//税额
zzsItemInfoList.add(zzsItemInfo);
}
}
}
}
return param;
}
}

View File

@ -0,0 +1,12 @@
package com.hzya.frame.plugin.cinvoice.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportBEntity;
/**
* @Description 发票批量导入有度税务 表体dao
* @Author xiangerlin
* @Date 2025/4/18 15:27
**/
public interface ICInvoiceImportBDao extends IBaseDao<CInvoiceImportBEntity, String> {
}

View File

@ -0,0 +1,12 @@
package com.hzya.frame.plugin.cinvoice.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportHEntity;
/**
* @Description 发票批量导入有度税务 表头dao
* @Author xiangerlin
* @Date 2025/4/18 15:25
**/
public interface ICInvoiceImportHDao extends IBaseDao<CInvoiceImportHEntity, String> {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.cinvoice.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.cinvoice.dao.ICInvoiceImportBDao;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportBEntity;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportHEntity;
import org.springframework.stereotype.Repository;
/**
* @Description 发票批量导入有度税务 表体dao
* @Author xiangerlin
* @Date 2025/4/18 15:32
**/
@Repository
public class CInvoiceImportBDaoImpl extends MybatisGenericDao<CInvoiceImportBEntity, String> implements ICInvoiceImportBDao {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.cinvoice.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.cinvoice.dao.ICInvoiceImportHDao;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportHEntity;
import org.springframework.stereotype.Repository;
/**
* @Description 发票批量导入有度税务 表头dao
* @Author xiangerlin
* @Date 2025/4/18 15:31
**/
@Repository
public class CInvoiceImportHDaoImpl extends MybatisGenericDao<CInvoiceImportHEntity, String> implements ICInvoiceImportHDao {
}

View File

@ -0,0 +1,154 @@
package com.hzya.frame.plugin.cinvoice.dto;
/**
* @Description 航空运输电子客票行程单明细
* @Author xiangerlin
* @Date 2025/4/21 10:36
**/
public class FlightItemInfo {
private String cfz;//出发站
private String ddz;//到达站
private String hbh;//航班号
private String cjsj;//乘机时间
private String zwdj;//座位等级
private String cyr;//承运人
private String cwdj;//仓位等级
private String ssflbm;//税收分类编码
private String xmmc;//项目名称
private String ggxh;//规格型号
private String dw;//单位
private String sl;//数量
private String dj;//单价
private String je;//金额
private String slv;//税率
private String se;//税额
public String getCfz() {
return cfz;
}
public void setCfz(String cfz) {
this.cfz = cfz;
}
public String getDdz() {
return ddz;
}
public void setDdz(String ddz) {
this.ddz = ddz;
}
public String getHbh() {
return hbh;
}
public void setHbh(String hbh) {
this.hbh = hbh;
}
public String getCjsj() {
return cjsj;
}
public void setCjsj(String cjsj) {
this.cjsj = cjsj;
}
public String getZwdj() {
return zwdj;
}
public void setZwdj(String zwdj) {
this.zwdj = zwdj;
}
public String getCyr() {
return cyr;
}
public void setCyr(String cyr) {
this.cyr = cyr;
}
public String getCwdj() {
return cwdj;
}
public void setCwdj(String cwdj) {
this.cwdj = cwdj;
}
public String getSsflbm() {
return ssflbm;
}
public void setSsflbm(String ssflbm) {
this.ssflbm = ssflbm;
}
public String getXmmc() {
return xmmc;
}
public void setXmmc(String xmmc) {
this.xmmc = xmmc;
}
public String getGgxh() {
return ggxh;
}
public void setGgxh(String ggxh) {
this.ggxh = ggxh;
}
public String getDw() {
return dw;
}
public void setDw(String dw) {
this.dw = dw;
}
public String getSl() {
return sl;
}
public void setSl(String sl) {
this.sl = sl;
}
public String getDj() {
return dj;
}
public void setDj(String dj) {
this.dj = dj;
}
public String getJe() {
return je;
}
public void setJe(String je) {
this.je = je;
}
public String getSlv() {
return slv;
}
public void setSlv(String slv) {
this.slv = slv;
}
public String getSe() {
return se;
}
public void setSe(String se) {
this.se = se;
}
}

View File

@ -0,0 +1,99 @@
package com.hzya.frame.plugin.cinvoice.dto;
/**
* @Description 增值税发票明细表
* @Author xiangerlin
* @Date 2025/4/21 09:56
**/
public class ZzsItemInfo {
private String xh;//序号
private String ssflbm; // 税收分类编码
private String xmmc; // 项目名称
private String ggxh; // 规格型号
private String dw; // 单位
private String sl; // 数量
private String dj; // 单价
private String je; // 金额
private String slv; // 税率
private String se; // 税额
public String getXh() {
return xh;
}
public void setXh(String xh) {
this.xh = xh;
}
public String getSsflbm() {
return ssflbm;
}
public void setSsflbm(String ssflbm) {
this.ssflbm = ssflbm;
}
public String getXmmc() {
return xmmc;
}
public void setXmmc(String xmmc) {
this.xmmc = xmmc;
}
public String getGgxh() {
return ggxh;
}
public void setGgxh(String ggxh) {
this.ggxh = ggxh;
}
public String getDw() {
return dw;
}
public void setDw(String dw) {
this.dw = dw;
}
public String getSl() {
return sl;
}
public void setSl(String sl) {
this.sl = sl;
}
public String getDj() {
return dj;
}
public void setDj(String dj) {
this.dj = dj;
}
public String getJe() {
return je;
}
public void setJe(String je) {
this.je = je;
}
public String getSlv() {
return slv;
}
public void setSlv(String slv) {
this.slv = slv;
}
public String getSe() {
return se;
}
public void setSe(String se) {
this.se = se;
}
}

View File

@ -0,0 +1,81 @@
package com.hzya.frame.plugin.cinvoice.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @Description 发票批量导入有度税务表体
* @Author xiangerlin
* @Date 2025/4/18 15:20
**/
public class CInvoiceImportBEntity extends BaseEntity {
//主表id
private String formmain_id;
//主表名称
private String formmain_tab_name;
//发票号
private String cinvoice_number;
//发票代码
private String cinvoice_code;
//发票类型
private String cinvoice_type;
//发票日期
private String cinvoice_date;
//发票金额
private String cinvoice_amount;
public String getFormmain_id() {
return formmain_id;
}
public void setFormmain_id(String formmain_id) {
this.formmain_id = formmain_id;
}
public String getFormmain_tab_name() {
return formmain_tab_name;
}
public void setFormmain_tab_name(String formmain_tab_name) {
this.formmain_tab_name = formmain_tab_name;
}
public String getCinvoice_number() {
return cinvoice_number;
}
public void setCinvoice_number(String cinvoice_number) {
this.cinvoice_number = cinvoice_number;
}
public String getCinvoice_code() {
return cinvoice_code;
}
public void setCinvoice_code(String cinvoice_code) {
this.cinvoice_code = cinvoice_code;
}
public String getCinvoice_type() {
return cinvoice_type;
}
public void setCinvoice_type(String cinvoice_type) {
this.cinvoice_type = cinvoice_type;
}
public String getCinvoice_date() {
return cinvoice_date;
}
public void setCinvoice_date(String cinvoice_date) {
this.cinvoice_date = cinvoice_date;
}
public String getCinvoice_amount() {
return cinvoice_amount;
}
public void setCinvoice_amount(String cinvoice_amount) {
this.cinvoice_amount = cinvoice_amount;
}
}

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.cinvoice.dao.impl.CInvoiceImportBDaoImpl">
<resultMap id="get-CInvoiceImportBEntity-result" type="com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportBEntity">
<result property="id" column="id" />
</resultMap>
<select id="entity_list_base" resultMap="get-CInvoiceImportBEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportBEntity">
SELECT id,
formmain_id,
'formmain_0327' as formmain_tab_name,-- 对公付款单
field0171 as cinvoice_number,
field0172 as cinvoice_code,
field0188 as cinvoice_type,
field0315 as cinvoice_date,
field0172 as cinvoice_amount
from formson_0317
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">id = #{id}</if>
<if test="formmain_id != null and formmain_id != ''">and formmain_id = #{formmain_id}</if>
<if test="formmain_tab_name != null and formmain_tab_name != ''">and formmain_tab_name = #{formmain_tab_name}</if>
</trim>
</select>
</mapper>

View File

@ -0,0 +1,41 @@
package com.hzya.frame.plugin.cinvoice.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @Description 发票批量导入有度税务表头
* @Author xiangerlin
* @Date 2025/4/18 15:19
**/
public class CInvoiceImportHEntity extends BaseEntity {
//表名称
private String tab_name;
//单据类型
private String bill_type;
//单据编码
private String bill_code;
public String getTab_name() {
return tab_name;
}
public void setTab_name(String tab_name) {
this.tab_name = tab_name;
}
public String getBill_type() {
return bill_type;
}
public void setBill_type(String bill_type) {
this.bill_type = bill_type;
}
public String getBill_code() {
return bill_code;
}
public void setBill_code(String bill_code) {
this.bill_code = bill_code;
}
}

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.cinvoice.dao.impl.CInvoiceImportHDaoImpl">
<resultMap id="get-CInvoiceImportHEntity-result" type="com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportHEntity">
<result property="id" column="id" />
<result property="tab_name" column="tab_name" />
<result property="bill_type" column="bill_type" />
<result property="bill_code" column="bill_code" />
</resultMap>
<select id="entity_list_base" resultMap="get-CInvoiceImportHEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportHEntity">
select * from (
SELECT
id,
'formmain_0327' as tab_name,
'对公付款单' as bill_type,
field0146 as bill_code
FROM
formmain_0327
WHERE
finishedflag = 1
UNION ALL
SELECT
id,
'formmain_0533' as tab_name,
'差旅费报销单' as bill_type,
field0094 as bill_code
FROM
formmain_0533
WHERE
finishedflag = 1
) f
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">f.id = #{id}</if>
<if test="bill_code != null and bill_code != ''">and f.bill_code = #{bill_code}</if>
</trim>
</select>
</mapper>

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity;
/**
* @description: 迈锐思-公共信息表 dao
* @tableName: LEXMISCIV_PUBLICINFO
* @entityName: LexmisPublicinfoEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmisPublicinfoDao extends IBaseDao<LexmisPublicinfoEntity , String>{
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity;
/**
* @description: 迈锐思-增值税发票子表 dao
* @tableName: LEXMISCIV_INVOICEDETAIL
* @entityName: LexmiscivInvoicedetailEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivInvoicedetailDao extends IBaseDao<LexmiscivInvoicedetailEntity , String>{
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity;
/**
* @description: 迈锐思-增值税发票主表 dao
* @tableName: LEXMISCIV_INVOICEMAIN
* @entityName: LexmiscivInvoicemainEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivInvoicemainDao extends IBaseDao<LexmiscivInvoicemainEntity , String>{
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity;
/**
* @description: 迈锐思-飞机行程单 dao
* @tableName: LEXMISCIV_PLANETICKET
* @entityName: LexmiscivPlaneticketEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivPlaneticketDao extends IBaseDao<LexmiscivPlaneticketEntity , String>{
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity;
/**
* @description: 迈锐思-飞机行程单明细 dao
* @tableName: LEXMISCIV_PLANETICKETS
* @entityName: LexmiscivPlaneticketsEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivPlaneticketsDao extends IBaseDao<LexmiscivPlaneticketsEntity , String>{
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity;
/**
* @description: 迈锐思-火车票 dao
* @tableName: LEXMISCIV_TRAINTICKET
* @entityName: LexmiscivTrainticketEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivTrainticketDao extends IBaseDao<LexmiscivTrainticketEntity , String>{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao.impl;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmisPublicinfoDao;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* @description: 迈锐思-公共信息表 dao
* @tableName: LEXMISCIV_PUBLICINFO
* @entityName: LexmisPublicinfoEntity
* @author: gjh
* @history:1.0
*/
@Repository("LEXMISCIV_PUBLICINFOdao")
public class LexmisPublicinfoDaoImpl extends MybatisGenericDao<LexmisPublicinfoEntity, String> implements ILexmisPublicinfoDao {
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao.impl;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivInvoicedetailDao;
/**
* @description: 迈锐思-增值税发票子表 dao
* @tableName: LEXMISCIV_INVOICEDETAIL
* @entityName: LexmiscivInvoicedetailEntity
* @author: gjh
* @history:1.0
*/
@Repository("LEXMISCIV_INVOICEDETAILdao")
public class LexmiscivInvoicedetailDaoImpl extends MybatisGenericDao<LexmiscivInvoicedetailEntity, String> implements ILexmiscivInvoicedetailDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao.impl;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivInvoicemainDao;
/**
* @description: 迈锐思-增值税发票主表 dao
* @tableName: LEXMISCIV_INVOICEMAIN
* @entityName: LexmiscivInvoicemainEntity
* @author: gjh
* @history:1.0
*/
@Repository("LEXMISCIV_INVOICEMAINdao")
public class LexmiscivInvoicemainDaoImpl extends MybatisGenericDao<LexmiscivInvoicemainEntity, String> implements ILexmiscivInvoicemainDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao.impl;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivPlaneticketDao;
/**
* @description: 迈锐思-飞机行程单 dao
* @tableName: LEXMISCIV_PLANETICKET
* @entityName: LexmiscivPlaneticketEntity
* @author: gjh
* @history:1.0
*/
@Repository("LEXMISCIV_PLANETICKETdao")
public class LexmiscivPlaneticketDaoImpl extends MybatisGenericDao<LexmiscivPlaneticketEntity, String> implements ILexmiscivPlaneticketDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao.impl;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivPlaneticketsDao;
/**
* @description: 迈锐思-飞机行程单明细 dao
* @tableName: LEXMISCIV_PLANETICKETS
* @entityName: LexmiscivPlaneticketsEntity
* @author: gjh
* @history:1.0
*/
@Repository("LEXMISCIV_PLANETICKETSdao")
public class LexmiscivPlaneticketsDaoImpl extends MybatisGenericDao<LexmiscivPlaneticketsEntity, String> implements ILexmiscivPlaneticketsDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.plugin.cinvoice.lexmis.dao.impl;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivTrainticketDao;
/**
* @description: 迈锐思-火车票 dao
* @tableName: LEXMISCIV_TRAINTICKET
* @entityName: LexmiscivTrainticketEntity
* @author: gjh
* @history:1.0
*/
@Repository("LEXMISCIV_TRAINTICKETdao")
public class LexmiscivTrainticketDaoImpl extends MybatisGenericDao<LexmiscivTrainticketEntity, String> implements ILexmiscivTrainticketDao{
}

View File

@ -0,0 +1,432 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.cinvoice.lexmis.dao.impl.LexmisPublicinfoDaoImpl">
<resultMap id="get-LexmisPublicinfoEntity-result" type="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity">
<!--无备注 -->
<result property="PI_ID" column="PI_ID" />
<!--无备注 -->
<result property="PI_KEY" column="PI_KEY" />
<!--无备注 -->
<result property="PI_KEY_NEW" column="PI_KEY_NEW" />
<result property="PI_DATAKEY" column="PI_DATAKEY" />
<result property="PI_MAINCONFIGID" column="PI_MAINCONFIGID" />
<result property="PI_TAXNO" column="PI_TAXNO" />
<result property="PI_TABLENAME" column="PI_TABLENAME" />
<result property="PI_BILLKIND" column="PI_BILLKIND" />
<result property="PI_AMOUNT" column="PI_AMOUNT" />
<result property="PI_USESTATE" column="PI_USESTATE" />
<result property="PI_SUMMARYID" column="PI_SUMMARYID" />
<result property="PI_SUBJECT" column="PI_SUBJECT" />
<result property="PI_FORMID" column="PI_FORMID" />
<result property="PI_FORMDATAID" column="PI_FORMDATAID" />
</resultMap>
<sql id="LexmisPublicinfoEntity_Base_Column_List">
PI_ID,
PI_KEY,
PI_KEY_NEW,
PI_DATAKEY,
PI_MAINCONFIGID,
PI_TAXNO,
PI_TABLENAME,
PI_BILLKIND,
PI_AMOUNT,
PI_USESTATE,
PI_SUMMARYID,
PI_SUBJECT,
PI_FORMID,
PI_FORMDATAID
</sql>
<!--通过ID获取数据 -->
<select id="entity_get" resultMap="get-LexmisPublicinfoEntity-result">
select
<include refid="LexmisPublicinfoEntity_Base_Column_List" />
from LEXMISCIV_PUBLICINFO where id = #{ id }
</select>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-LexmisPublicinfoEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity">
select
<include refid="LexmisPublicinfoEntity_Base_Column_List" />
from LEXMISCIV_PUBLICINFO
<trim prefix="where" prefixOverrides="and">
<if test="PI_ID != null ">PI_ID=#{PI_ID}</if>
<if test="PI_KEY != null and PI_KEY !='' "> and PI_KEY = #{PI_KEY}</if>
<if test="PI_KEY_NEW != null and PI_KEY_NEW !='' "> and PI_KEY_NEW = #{PI_KEY_NEW}</if>
<if test="PI_DATAKEY != null "> and PI_DATAKEY = #{PI_DATAKEY}</if>
<if test="PI_MAINCONFIGID != null "> and PI_MAINCONFIGID = #{PI_MAINCONFIGID}</if>
<if test="PI_TAXNO != null and PI_TAXNO !='' "> and PI_TAXNO = #{PI_TAXNO}</if>
<if test="PI_TABLENAME != null and PI_TABLENAME !='' "> and PI_TABLENAME = #{PI_TABLENAME}</if>
<if test="PI_BILLKIND != null "> and PI_BILLKIND = #{PI_BILLKIND}</if>
<if test="PI_BILLNAME != null and PI_BILLNAME !='' "> and PI_BILLNAME = #{PI_BILLNAME}</if>
<if test="PI_AMOUNT != null "> and PI_AMOUNT = #{PI_AMOUNT}</if>
<if test="PI_USESTATE != null "> and PI_USESTATE = #{PI_USESTATE}</if>
<if test="PI_SUMMARYID != null "> and PI_SUMMARYID = #{PI_SUMMARYID}</if>
<if test="PI_SUBJECT != null "> and PI_SUBJECT = #{PI_SUBJECT}</if>
<if test="PI_FORMID != null "> and PI_FORMID = #{PI_FORMID}</if>
<if test="PI_FORMDATAID != null "> and PI_FORMDATAID = #{PI_FORMDATAID}</if>
and pi_billkind in ('0','2','3')
</trim>
</select>
<!-- 查询符合条件的数量 -->
<select id="LexmisPublicinfoEntity_count" resultType="Integer" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity">
select count(1) from LEXMISCIV_PUBLICINFO
<trim prefix="where" prefixOverrides="and">
<if test="PI_ID != null ">PI_ID = #{PI_ID}</if>
<if test="PI_KEY != null and PI_KEY !='' "> and PI_KEY = #{PI_KEY} </if>
<if test="PI_KEY_NEW != null and PI_KEY_NEW !='' "> and PI_KEY_NEW = #{PI_KEY_NEW} </if>
<if test="PI_DATAKEY != null "> and PI_DATAKEY = #{PI_DATAKEY} </if>
<if test="PI_MAINCONFIGID != null "> and PI_MAINCONFIGID = #{PI_MAINCONFIGID} </if>
<if test="PI_TAXNO != null and PI_TAXNO !='' "> and PI_TAXNO = #{PI_TAXNO} </if>
<if test="PI_TABLENAME != null and PI_TABLENAME !='' "> and PI_TABLENAME = #{PI_TABLENAME} </if>
<if test="PI_BILLKIND != null "> and PI_BILLKIND = #{PI_BILLKIND} </if>
<if test="PI_BILLNAME != null and PI_BILLNAME !='' "> and PI_BILLNAME = #{PI_BILLNAME} </if>
<if test="PI_AMOUNT != null "> and PI_AMOUNT = #{PI_AMOUNT} </if>
<if test="PI_STATE != null "> and PI_STATE = #{PI_STATE} </if>
<if test="PI_FILEID != null "> and PI_FILEID = #{PI_FILEID} </if>
<if test="PI_FILEDATE != null "> and PI_FILEDATE = #{PI_FILEDATE} </if>
<if test="PI_IMAGEPATH != null and PI_IMAGEPATH !='' "> and PI_IMAGEPATH = #{PI_IMAGEPATH} </if>
<if test="PI_UPDATEDATA != null "> and PI_UPDATEDATA = #{PI_UPDATEDATA} </if>
<if test="PI_TYPE != null and PI_TYPE !='' "> and PI_TYPE = #{PI_TYPE} </if>
<if test="PI_MEMBERID != null "> and PI_MEMBERID = #{PI_MEMBERID} </if>
<if test="PI_MEMBERNM != null and PI_MEMBERNM !='' "> and PI_MEMBERNM = #{PI_MEMBERNM} </if>
<if test="PI_MAKEDATE != null "> and PI_MAKEDATE = #{PI_MAKEDATE} </if>
<if test="PI_BELONGID != null "> and PI_BELONGID = #{PI_BELONGID} </if>
<if test="PI_BELONGNM != null and PI_BELONGNM !='' "> and PI_BELONGNM = #{PI_BELONGNM} </if>
<if test="PI_USEACCOUNTID != null "> and PI_USEACCOUNTID = #{PI_USEACCOUNTID} </if>
<if test="PI_USEACCOUNTNM != null and PI_USEACCOUNTNM !='' "> and PI_USEACCOUNTNM = #{PI_USEACCOUNTNM} </if>
<if test="PI_USEDEPARTMENTID != null "> and PI_USEDEPARTMENTID = #{PI_USEDEPARTMENTID} </if>
<if test="PI_USEDEPARTMENTNM != null and PI_USEDEPARTMENTNM !='' "> and PI_USEDEPARTMENTNM = #{PI_USEDEPARTMENTNM} </if>
<if test="PI_USEID != null "> and PI_USEID = #{PI_USEID} </if>
<if test="PI_USENM != null and PI_USENM !='' "> and PI_USENM = #{PI_USENM} </if>
<if test="PI_USESTATE != null "> and PI_USESTATE = #{PI_USESTATE} </if>
<if test="PI_SUMMARYID != null "> and PI_SUMMARYID = #{PI_SUMMARYID} </if>
<if test="PI_SUBJECT != null and PI_SUBJECT !='' "> and PI_SUBJECT = #{PI_SUBJECT} </if>
<if test="PI_FORMID != null "> and PI_FORMID = #{PI_FORMID} </if>
<if test="PI_FORMDATAID != null "> and PI_FORMDATAID = #{PI_FORMDATAID} </if>
<if test="PI_TEMPLATEID != null "> and PI_TEMPLATEID = #{PI_TEMPLATEID} </if>
<if test="PI_STARTACCOUNTID != null "> and PI_STARTACCOUNTID = #{PI_STARTACCOUNTID} </if>
<if test="PI_STARTDEPARTMENTID != null "> and PI_STARTDEPARTMENTID = #{PI_STARTDEPARTMENTID} </if>
<if test="PI_STARTMEMBERID != null "> and PI_STARTMEMBERID = #{PI_STARTMEMBERID} </if>
<if test="PI_STARTMEMBERNM != null and PI_STARTMEMBERNM !='' "> and PI_STARTMEMBERNM = #{PI_STARTMEMBERNM} </if>
<if test="PI_STARTDATE != null "> and PI_STARTDATE = #{PI_STARTDATE} </if>
<if test="PI_DEALACCOUNTID != null "> and PI_DEALACCOUNTID = #{PI_DEALACCOUNTID} </if>
<if test="PI_DEALDEPARTMENTID != null "> and PI_DEALDEPARTMENTID = #{PI_DEALDEPARTMENTID} </if>
<if test="PI_DEALMEMBERID != null "> and PI_DEALMEMBERID = #{PI_DEALMEMBERID} </if>
<if test="PI_DEALMEMBERNM != null and PI_DEALMEMBERNM !='' "> and PI_DEALMEMBERNM = #{PI_DEALMEMBERNM} </if>
<if test="PI_DEALDATE != null "> and PI_DEALDATE = #{PI_DEALDATE} </if>
<if test="PI_DEALSTATE != null "> and PI_DEALSTATE = #{PI_DEALSTATE} </if>
<if test="PI_DEALPOLICY != null and PI_DEALPOLICY !='' "> and PI_DEALPOLICY = #{PI_DEALPOLICY} </if>
<if test="PI_DEALINFO != null and PI_DEALINFO !='' "> and PI_DEALINFO = #{PI_DEALINFO} </if>
<if test="PI_SHAREID != null "> and PI_SHAREID = #{PI_SHAREID} </if>
<if test="PI_SHARENM != null and PI_SHARENM !='' "> and PI_SHARENM = #{PI_SHARENM} </if>
<if test="PI_APITYPE != null "> and PI_APITYPE = #{PI_APITYPE} </if>
<if test="PI_ISVALID != null "> and PI_ISVALID = #{PI_ISVALID} </if>
<if test="PI_VALIDRESULT != null "> and PI_VALIDRESULT = #{PI_VALIDRESULT} </if>
<if test="PI_RESULTNM != null and PI_RESULTNM !='' "> and PI_RESULTNM = #{PI_RESULTNM} </if>
<if test="PI_VALIDSTATE != null "> and PI_VALIDSTATE = #{PI_VALIDSTATE} </if>
<if test="PI_CLASSTYPE != null "> and PI_CLASSTYPE = #{PI_CLASSTYPE} </if>
<if test="PI_CLASSNAME != null and PI_CLASSNAME !='' "> and PI_CLASSNAME = #{PI_CLASSNAME} </if>
<if test="PI_RECOVERSTATE != null "> and PI_RECOVERSTATE = #{PI_RECOVERSTATE} </if>
<if test="PI_RECOVERMEMBERID != null "> and PI_RECOVERMEMBERID = #{PI_RECOVERMEMBERID} </if>
<if test="PI_RECOVERMEMBERNM != null and PI_RECOVERMEMBERNM !='' "> and PI_RECOVERMEMBERNM = #{PI_RECOVERMEMBERNM} </if>
<if test="PI_RECOVERDATE != null "> and PI_RECOVERDATE = #{PI_RECOVERDATE} </if>
<if test="PI_ORGID != null "> and PI_ORGID = #{PI_ORGID} </if>
<if test="PI_ORGNM != null and PI_ORGNM !='' "> and PI_ORGNM = #{PI_ORGNM} </if>
<if test="PI_YEAR != null "> and PI_YEAR = #{PI_YEAR} </if>
<if test="PI_MONTH != null "> and PI_MONTH = #{PI_MONTH} </if>
<if test="PI_QUARTER != null "> and PI_QUARTER = #{PI_QUARTER} </if>
<if test="PI_HALFYEAR != null "> and PI_HALFYEAR = #{PI_HALFYEAR} </if>
<if test="PI_XMMC != null and PI_XMMC !='' "> and PI_XMMC = #{PI_XMMC} </if>
<if test="PI_FPDM != null and PI_FPDM !='' "> and PI_FPDM = #{PI_FPDM} </if>
<if test="PI_FPHM != null and PI_FPHM !='' "> and PI_FPHM = #{PI_FPHM} </if>
<if test="PI_SALERTAXNO != null and PI_SALERTAXNO !='' "> and PI_SALERTAXNO = #{PI_SALERTAXNO} </if>
<if test="PI_SALERNAME != null and PI_SALERNAME !='' "> and PI_SALERNAME = #{PI_SALERNAME} </if>
<if test="PI_BUYERTAXNO != null and PI_BUYERTAXNO !='' "> and PI_BUYERTAXNO = #{PI_BUYERTAXNO} </if>
<if test="PI_BUYERNAME != null and PI_BUYERNAME !='' "> and PI_BUYERNAME = #{PI_BUYERNAME} </if>
<if test="PI_INVOICETYPE != null and PI_INVOICETYPE !='' "> and PI_INVOICETYPE = #{PI_INVOICETYPE} </if>
<if test="PI_INVOICENAME != null and PI_INVOICENAME !='' "> and PI_INVOICENAME = #{PI_INVOICENAME} </if>
<if test="PI_INVOICEDATE != null "> and PI_INVOICEDATE = #{PI_INVOICEDATE} </if>
<if test="PI_FSTATION != null and PI_FSTATION !='' "> and PI_FSTATION = #{PI_FSTATION} </if>
<if test="PI_TSTATION != null and PI_TSTATION !='' "> and PI_TSTATION = #{PI_TSTATION} </if>
<if test="PI_USERNAME != null and PI_USERNAME !='' "> and PI_USERNAME = #{PI_USERNAME} </if>
<if test="PI_TRAINNO != null and PI_TRAINNO !='' "> and PI_TRAINNO = #{PI_TRAINNO} </if>
<if test="PI_TRAINCODE != null and PI_TRAINCODE !='' "> and PI_TRAINCODE = #{PI_TRAINCODE} </if>
<if test="PI_STARTDATETIME != null "> and PI_STARTDATETIME = #{PI_STARTDATETIME} </if>
<if test="PI_ENDDATETIME != null "> and PI_ENDDATETIME = #{PI_ENDDATETIME} </if>
<if test="PI_STARTTIME != null and PI_STARTTIME !='' "> and PI_STARTTIME = #{PI_STARTTIME} </if>
<if test="PI_ENDTIME != null and PI_ENDTIME !='' "> and PI_ENDTIME = #{PI_ENDTIME} </if>
<if test="PI_TAXRATE != null and PI_TAXRATE !='' "> and PI_TAXRATE = #{PI_TAXRATE} </if>
<if test="PI_TAXAMOUNT != null "> and PI_TAXAMOUNT = #{PI_TAXAMOUNT} </if>
<if test="PI_NOTAXAMOUNT != null "> and PI_NOTAXAMOUNT = #{PI_NOTAXAMOUNT} </if>
<if test="PI_DEDUCTIONAMOUNT != null "> and PI_DEDUCTIONAMOUNT = #{PI_DEDUCTIONAMOUNT} </if>
<if test="PI_FILEURL != null and PI_FILEURL !='' "> and PI_FILEURL = #{PI_FILEURL} </if>
<if test="PI_MATTERID != null "> and PI_MATTERID = #{PI_MATTERID} </if>
<if test="PI_VOUCHER != null and PI_VOUCHER !='' "> and PI_VOUCHER = #{PI_VOUCHER} </if>
<if test="PI_VOUCHERINFO != null and PI_VOUCHERINFO !='' "> and PI_VOUCHERINFO = #{PI_VOUCHERINFO} </if>
<if test="PI_FIELD0001 != null "> and PI_FIELD0001 = #{PI_FIELD0001} </if>
<if test="PI_FIELD0002 != null "> and PI_FIELD0002 = #{PI_FIELD0002} </if>
<if test="PI_FIELD0003 != null "> and PI_FIELD0003 = #{PI_FIELD0003} </if>
<if test="PI_FIELD0004 != null and PI_FIELD0004 !='' "> and PI_FIELD0004 = #{PI_FIELD0004} </if>
<if test="PI_FIELD0005 != null and PI_FIELD0005 !='' "> and PI_FIELD0005 = #{PI_FIELD0005} </if>
<if test="PI_INVOICEVALIDSTATE != null "> and PI_INVOICEVALIDSTATE = #{PI_INVOICEVALIDSTATE} </if>
<if test="PI_MODIFYSTATE != null "> and PI_MODIFYSTATE = #{PI_MODIFYSTATE} </if>
<if test="PI_USAGEAMOUNT != null "> and PI_USAGEAMOUNT = #{PI_USAGEAMOUNT} </if>
<if test="PI_VERIFYAMOUNT != null "> and PI_VERIFYAMOUNT = #{PI_VERIFYAMOUNT} </if>
<if test="PI_UNUSEDAMOUNT != null "> and PI_UNUSEDAMOUNT = #{PI_UNUSEDAMOUNT} </if>
<if test="PI_USECOUNT != null "> and PI_USECOUNT = #{PI_USECOUNT} </if>
<if test="PI_FILENAME != null and PI_FILENAME !='' "> and PI_FILENAME = #{PI_FILENAME} </if>
<if test="PI_UPDATEDATE != null "> and PI_UPDATEDATE = #{PI_UPDATEDATE} </if>
<if test="PI_VOUCHERDATE != null "> and PI_VOUCHERDATE = #{PI_VOUCHERDATE} </if>
<if test="PI_CPAY_STATE != null "> and PI_CPAY_STATE = #{PI_CPAY_STATE} </if>
<if test="PI_CPAY_DATE != null "> and PI_CPAY_DATE = #{PI_CPAY_DATE} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="LexmisPublicinfoEntity_list_like" resultMap="get-LexmisPublicinfoEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity">
select
<include refid="LexmisPublicinfoEntity_Base_Column_List" />
from LEXMISCIV_PUBLICINFO
<trim prefix="where" prefixOverrides="and">
<if test="PI_ID != null ">PI_ID = #{PI_ID}</if>
<if test="PI_KEY != null and PI_KEY !='' "> and PI_KEY like concat('%',#{PI_KEY},'%') </if>
<if test="PI_KEY_NEW != null and PI_KEY_NEW !='' "> and PI_KEY_NEW like concat('%',#{PI_KEY_NEW},'%') </if>
<if test="PI_DATAKEY != null "> and PI_DATAKEY = #{PI_DATAKEY}</if>
<if test="PI_MAINCONFIGID != null "> and PI_MAINCONFIGID = #{PI_MAINCONFIGID}</if>
<if test="PI_TAXNO != null and PI_TAXNO !='' "> and PI_TAXNO like concat('%',#{PI_TAXNO},'%') </if>
<if test="PI_TABLENAME != null and PI_TABLENAME !='' "> and PI_TABLENAME like concat('%',#{PI_TABLENAME},'%') </if>
<if test="PI_BILLKIND != null "> and PI_BILLKIND = #{PI_BILLKIND}</if>
<if test="PI_BILLNAME != null and PI_BILLNAME !='' "> and PI_BILLNAME like concat('%',#{PI_BILLNAME},'%') </if>
<if test="PI_AMOUNT != null "> and PI_AMOUNT = #{PI_AMOUNT}</if>
<if test="PI_STATE != null "> and PI_STATE = #{PI_STATE}</if>
<if test="PI_FILEID != null "> and PI_FILEID = #{PI_FILEID}</if>
<if test="PI_FILEDATE != null and PI_FILEDATE !='' "> and PI_FILEDATE like concat('%',#{PI_FILEDATE},'%') </if>
<if test="PI_IMAGEPATH != null and PI_IMAGEPATH !='' "> and PI_IMAGEPATH like concat('%',#{PI_IMAGEPATH},'%') </if>
<if test="PI_UPDATEDATA != null "> and PI_UPDATEDATA = #{PI_UPDATEDATA}</if>
<if test="PI_TYPE != null and PI_TYPE !='' "> and PI_TYPE like concat('%',#{PI_TYPE},'%') </if>
<if test="PI_MEMBERID != null "> and PI_MEMBERID = #{PI_MEMBERID}</if>
<if test="PI_MEMBERNM != null and PI_MEMBERNM !='' "> and PI_MEMBERNM like concat('%',#{PI_MEMBERNM},'%') </if>
<if test="PI_MAKEDATE != null and PI_MAKEDATE !='' "> and PI_MAKEDATE like concat('%',#{PI_MAKEDATE},'%') </if>
<if test="PI_BELONGID != null "> and PI_BELONGID = #{PI_BELONGID}</if>
<if test="PI_BELONGNM != null and PI_BELONGNM !='' "> and PI_BELONGNM like concat('%',#{PI_BELONGNM},'%') </if>
<if test="PI_USEACCOUNTID != null "> and PI_USEACCOUNTID = #{PI_USEACCOUNTID}</if>
<if test="PI_USEACCOUNTNM != null and PI_USEACCOUNTNM !='' "> and PI_USEACCOUNTNM like concat('%',#{PI_USEACCOUNTNM},'%') </if>
<if test="PI_USEDEPARTMENTID != null "> and PI_USEDEPARTMENTID = #{PI_USEDEPARTMENTID}</if>
<if test="PI_USEDEPARTMENTNM != null and PI_USEDEPARTMENTNM !='' "> and PI_USEDEPARTMENTNM like concat('%',#{PI_USEDEPARTMENTNM},'%') </if>
<if test="PI_USEID != null "> and PI_USEID = #{PI_USEID}</if>
<if test="PI_USENM != null and PI_USENM !='' "> and PI_USENM like concat('%',#{PI_USENM},'%') </if>
<if test="PI_USESTATE != null "> and PI_USESTATE = #{PI_USESTATE}</if>
<if test="PI_SUMMARYID != null "> and PI_SUMMARYID = #{PI_SUMMARYID}</if>
<if test="PI_SUBJECT != null and PI_SUBJECT !='' "> and PI_SUBJECT like concat('%',#{PI_SUBJECT},'%') </if>
<if test="PI_FORMID != null "> and PI_FORMID = #{PI_FORMID}</if>
<if test="PI_FORMDATAID != null "> and PI_FORMDATAID = #{PI_FORMDATAID}</if>
<if test="PI_TEMPLATEID != null "> and PI_TEMPLATEID = #{PI_TEMPLATEID}</if>
<if test="PI_STARTACCOUNTID != null "> and PI_STARTACCOUNTID = #{PI_STARTACCOUNTID}</if>
<if test="PI_STARTDEPARTMENTID != null "> and PI_STARTDEPARTMENTID = #{PI_STARTDEPARTMENTID}</if>
<if test="PI_STARTMEMBERID != null "> and PI_STARTMEMBERID = #{PI_STARTMEMBERID}</if>
<if test="PI_STARTMEMBERNM != null and PI_STARTMEMBERNM !='' "> and PI_STARTMEMBERNM like concat('%',#{PI_STARTMEMBERNM},'%') </if>
<if test="PI_STARTDATE != null and PI_STARTDATE !='' "> and PI_STARTDATE like concat('%',#{PI_STARTDATE},'%') </if>
<if test="PI_DEALACCOUNTID != null "> and PI_DEALACCOUNTID = #{PI_DEALACCOUNTID}</if>
<if test="PI_DEALDEPARTMENTID != null "> and PI_DEALDEPARTMENTID = #{PI_DEALDEPARTMENTID}</if>
<if test="PI_DEALMEMBERID != null "> and PI_DEALMEMBERID = #{PI_DEALMEMBERID}</if>
<if test="PI_DEALMEMBERNM != null and PI_DEALMEMBERNM !='' "> and PI_DEALMEMBERNM like concat('%',#{PI_DEALMEMBERNM},'%') </if>
<if test="PI_DEALDATE != null and PI_DEALDATE !='' "> and PI_DEALDATE like concat('%',#{PI_DEALDATE},'%') </if>
<if test="PI_DEALSTATE != null "> and PI_DEALSTATE = #{PI_DEALSTATE}</if>
<if test="PI_DEALPOLICY != null and PI_DEALPOLICY !='' "> and PI_DEALPOLICY like concat('%',#{PI_DEALPOLICY},'%') </if>
<if test="PI_DEALINFO != null and PI_DEALINFO !='' "> and PI_DEALINFO like concat('%',#{PI_DEALINFO},'%') </if>
<if test="PI_SHAREID != null "> and PI_SHAREID = #{PI_SHAREID}</if>
<if test="PI_SHARENM != null and PI_SHARENM !='' "> and PI_SHARENM like concat('%',#{PI_SHARENM},'%') </if>
<if test="PI_APITYPE != null "> and PI_APITYPE = #{PI_APITYPE}</if>
<if test="PI_ISVALID != null "> and PI_ISVALID = #{PI_ISVALID}</if>
<if test="PI_VALIDRESULT != null "> and PI_VALIDRESULT = #{PI_VALIDRESULT}</if>
<if test="PI_RESULTNM != null and PI_RESULTNM !='' "> and PI_RESULTNM like concat('%',#{PI_RESULTNM},'%') </if>
<if test="PI_VALIDSTATE != null "> and PI_VALIDSTATE = #{PI_VALIDSTATE}</if>
<if test="PI_CLASSTYPE != null "> and PI_CLASSTYPE = #{PI_CLASSTYPE}</if>
<if test="PI_CLASSNAME != null and PI_CLASSNAME !='' "> and PI_CLASSNAME like concat('%',#{PI_CLASSNAME},'%') </if>
<if test="PI_RECOVERSTATE != null "> and PI_RECOVERSTATE = #{PI_RECOVERSTATE}</if>
<if test="PI_RECOVERMEMBERID != null "> and PI_RECOVERMEMBERID = #{PI_RECOVERMEMBERID}</if>
<if test="PI_RECOVERMEMBERNM != null and PI_RECOVERMEMBERNM !='' "> and PI_RECOVERMEMBERNM like concat('%',#{PI_RECOVERMEMBERNM},'%') </if>
<if test="PI_RECOVERDATE != null and PI_RECOVERDATE !='' "> and PI_RECOVERDATE like concat('%',#{PI_RECOVERDATE},'%') </if>
<if test="PI_ORGID != null "> and PI_ORGID = #{PI_ORGID}</if>
<if test="PI_ORGNM != null and PI_ORGNM !='' "> and PI_ORGNM like concat('%',#{PI_ORGNM},'%') </if>
<if test="PI_YEAR != null "> and PI_YEAR = #{PI_YEAR}</if>
<if test="PI_MONTH != null "> and PI_MONTH = #{PI_MONTH}</if>
<if test="PI_QUARTER != null "> and PI_QUARTER = #{PI_QUARTER}</if>
<if test="PI_HALFYEAR != null "> and PI_HALFYEAR = #{PI_HALFYEAR}</if>
<if test="PI_XMMC != null and PI_XMMC !='' "> and PI_XMMC like concat('%',#{PI_XMMC},'%') </if>
<if test="PI_FPDM != null and PI_FPDM !='' "> and PI_FPDM like concat('%',#{PI_FPDM},'%') </if>
<if test="PI_FPHM != null and PI_FPHM !='' "> and PI_FPHM like concat('%',#{PI_FPHM},'%') </if>
<if test="PI_SALERTAXNO != null and PI_SALERTAXNO !='' "> and PI_SALERTAXNO like concat('%',#{PI_SALERTAXNO},'%') </if>
<if test="PI_SALERNAME != null and PI_SALERNAME !='' "> and PI_SALERNAME like concat('%',#{PI_SALERNAME},'%') </if>
<if test="PI_BUYERTAXNO != null and PI_BUYERTAXNO !='' "> and PI_BUYERTAXNO like concat('%',#{PI_BUYERTAXNO},'%') </if>
<if test="PI_BUYERNAME != null and PI_BUYERNAME !='' "> and PI_BUYERNAME like concat('%',#{PI_BUYERNAME},'%') </if>
<if test="PI_INVOICETYPE != null and PI_INVOICETYPE !='' "> and PI_INVOICETYPE like concat('%',#{PI_INVOICETYPE},'%') </if>
<if test="PI_INVOICENAME != null and PI_INVOICENAME !='' "> and PI_INVOICENAME like concat('%',#{PI_INVOICENAME},'%') </if>
<if test="PI_INVOICEDATE != null and PI_INVOICEDATE !='' "> and PI_INVOICEDATE like concat('%',#{PI_INVOICEDATE},'%') </if>
<if test="PI_FSTATION != null and PI_FSTATION !='' "> and PI_FSTATION like concat('%',#{PI_FSTATION},'%') </if>
<if test="PI_TSTATION != null and PI_TSTATION !='' "> and PI_TSTATION like concat('%',#{PI_TSTATION},'%') </if>
<if test="PI_USERNAME != null and PI_USERNAME !='' "> and PI_USERNAME like concat('%',#{PI_USERNAME},'%') </if>
<if test="PI_TRAINNO != null and PI_TRAINNO !='' "> and PI_TRAINNO like concat('%',#{PI_TRAINNO},'%') </if>
<if test="PI_TRAINCODE != null and PI_TRAINCODE !='' "> and PI_TRAINCODE like concat('%',#{PI_TRAINCODE},'%') </if>
<if test="PI_STARTDATETIME != null and PI_STARTDATETIME !='' "> and PI_STARTDATETIME like concat('%',#{PI_STARTDATETIME},'%') </if>
<if test="PI_ENDDATETIME != null and PI_ENDDATETIME !='' "> and PI_ENDDATETIME like concat('%',#{PI_ENDDATETIME},'%') </if>
<if test="PI_STARTTIME != null and PI_STARTTIME !='' "> and PI_STARTTIME like concat('%',#{PI_STARTTIME},'%') </if>
<if test="PI_ENDTIME != null and PI_ENDTIME !='' "> and PI_ENDTIME like concat('%',#{PI_ENDTIME},'%') </if>
<if test="PI_TAXRATE != null and PI_TAXRATE !='' "> and PI_TAXRATE like concat('%',#{PI_TAXRATE},'%') </if>
<if test="PI_TAXAMOUNT != null "> and PI_TAXAMOUNT = #{PI_TAXAMOUNT}</if>
<if test="PI_NOTAXAMOUNT != null "> and PI_NOTAXAMOUNT = #{PI_NOTAXAMOUNT}</if>
<if test="PI_DEDUCTIONAMOUNT != null "> and PI_DEDUCTIONAMOUNT = #{PI_DEDUCTIONAMOUNT}</if>
<if test="PI_FILEURL != null and PI_FILEURL !='' "> and PI_FILEURL like concat('%',#{PI_FILEURL},'%') </if>
<if test="PI_MATTERID != null "> and PI_MATTERID = #{PI_MATTERID}</if>
<if test="PI_VOUCHER != null and PI_VOUCHER !='' "> and PI_VOUCHER like concat('%',#{PI_VOUCHER},'%') </if>
<if test="PI_VOUCHERINFO != null and PI_VOUCHERINFO !='' "> and PI_VOUCHERINFO like concat('%',#{PI_VOUCHERINFO},'%') </if>
<if test="PI_FIELD0001 != null "> and PI_FIELD0001 = #{PI_FIELD0001}</if>
<if test="PI_FIELD0002 != null "> and PI_FIELD0002 = #{PI_FIELD0002}</if>
<if test="PI_FIELD0003 != null "> and PI_FIELD0003 = #{PI_FIELD0003}</if>
<if test="PI_FIELD0004 != null and PI_FIELD0004 !='' "> and PI_FIELD0004 like concat('%',#{PI_FIELD0004},'%') </if>
<if test="PI_FIELD0005 != null and PI_FIELD0005 !='' "> and PI_FIELD0005 like concat('%',#{PI_FIELD0005},'%') </if>
<if test="PI_INVOICEVALIDSTATE != null "> and PI_INVOICEVALIDSTATE = #{PI_INVOICEVALIDSTATE}</if>
<if test="PI_MODIFYSTATE != null "> and PI_MODIFYSTATE = #{PI_MODIFYSTATE}</if>
<if test="PI_USAGEAMOUNT != null "> and PI_USAGEAMOUNT = #{PI_USAGEAMOUNT}</if>
<if test="PI_VERIFYAMOUNT != null "> and PI_VERIFYAMOUNT = #{PI_VERIFYAMOUNT}</if>
<if test="PI_UNUSEDAMOUNT != null "> and PI_UNUSEDAMOUNT = #{PI_UNUSEDAMOUNT}</if>
<if test="PI_USECOUNT != null "> and PI_USECOUNT = #{PI_USECOUNT}</if>
<if test="PI_FILENAME != null and PI_FILENAME !='' "> and PI_FILENAME like concat('%',#{PI_FILENAME},'%') </if>
<if test="PI_UPDATEDATE != null and PI_UPDATEDATE !='' "> and PI_UPDATEDATE like concat('%',#{PI_UPDATEDATE},'%') </if>
<if test="PI_VOUCHERDATE != null and PI_VOUCHERDATE !='' "> and PI_VOUCHERDATE like concat('%',#{PI_VOUCHERDATE},'%') </if>
<if test="PI_CPAY_STATE != null "> and PI_CPAY_STATE = #{PI_CPAY_STATE}</if>
<if test="PI_CPAY_DATE != null and PI_CPAY_DATE !='' "> and PI_CPAY_DATE like concat('%',#{PI_CPAY_DATE},'%') </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="LexmisPublicinfoEntity_list_or" resultMap="get-LexmisPublicinfoEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity">
select
<include refid="LexmisPublicinfoEntity_Base_Column_List" />
from LEXMISCIV_PUBLICINFO
<trim prefix="where" prefixOverrides="or">
<if test="PI_ID != null ">PI_ID = #{PI_ID}</if>
<if test="PI_KEY != null and PI_KEY !='' "> or PI_KEY = #{PI_KEY} </if>
<if test="PI_KEY_NEW != null and PI_KEY_NEW !='' "> or PI_KEY_NEW = #{PI_KEY_NEW} </if>
<if test="PI_DATAKEY != null "> or PI_DATAKEY = #{PI_DATAKEY}</if>
<if test="PI_MAINCONFIGID != null "> or PI_MAINCONFIGID = #{PI_MAINCONFIGID}</if>
<if test="PI_TAXNO != null and PI_TAXNO !='' "> or PI_TAXNO = #{PI_TAXNO} </if>
<if test="PI_TABLENAME != null and PI_TABLENAME !='' "> or PI_TABLENAME = #{PI_TABLENAME} </if>
<if test="PI_BILLKIND != null "> or PI_BILLKIND = #{PI_BILLKIND}</if>
<if test="PI_BILLNAME != null and PI_BILLNAME !='' "> or PI_BILLNAME = #{PI_BILLNAME} </if>
<if test="PI_AMOUNT != null "> or PI_AMOUNT = #{PI_AMOUNT}</if>
<if test="PI_STATE != null "> or PI_STATE = #{PI_STATE}</if>
<if test="PI_FILEID != null "> or PI_FILEID = #{PI_FILEID}</if>
<if test="PI_FILEDATE != null and PI_FILEDATE !='' "> or PI_FILEDATE = #{PI_FILEDATE} </if>
<if test="PI_IMAGEPATH != null and PI_IMAGEPATH !='' "> or PI_IMAGEPATH = #{PI_IMAGEPATH} </if>
<if test="PI_UPDATEDATA != null "> or PI_UPDATEDATA = #{PI_UPDATEDATA}</if>
<if test="PI_TYPE != null and PI_TYPE !='' "> or PI_TYPE = #{PI_TYPE} </if>
<if test="PI_MEMBERID != null "> or PI_MEMBERID = #{PI_MEMBERID}</if>
<if test="PI_MEMBERNM != null and PI_MEMBERNM !='' "> or PI_MEMBERNM = #{PI_MEMBERNM} </if>
<if test="PI_MAKEDATE != null and PI_MAKEDATE !='' "> or PI_MAKEDATE = #{PI_MAKEDATE} </if>
<if test="PI_BELONGID != null "> or PI_BELONGID = #{PI_BELONGID}</if>
<if test="PI_BELONGNM != null and PI_BELONGNM !='' "> or PI_BELONGNM = #{PI_BELONGNM} </if>
<if test="PI_USEACCOUNTID != null "> or PI_USEACCOUNTID = #{PI_USEACCOUNTID}</if>
<if test="PI_USEACCOUNTNM != null and PI_USEACCOUNTNM !='' "> or PI_USEACCOUNTNM = #{PI_USEACCOUNTNM} </if>
<if test="PI_USEDEPARTMENTID != null "> or PI_USEDEPARTMENTID = #{PI_USEDEPARTMENTID}</if>
<if test="PI_USEDEPARTMENTNM != null and PI_USEDEPARTMENTNM !='' "> or PI_USEDEPARTMENTNM = #{PI_USEDEPARTMENTNM} </if>
<if test="PI_USEID != null "> or PI_USEID = #{PI_USEID}</if>
<if test="PI_USENM != null and PI_USENM !='' "> or PI_USENM = #{PI_USENM} </if>
<if test="PI_USESTATE != null "> or PI_USESTATE = #{PI_USESTATE}</if>
<if test="PI_SUMMARYID != null "> or PI_SUMMARYID = #{PI_SUMMARYID}</if>
<if test="PI_SUBJECT != null and PI_SUBJECT !='' "> or PI_SUBJECT = #{PI_SUBJECT} </if>
<if test="PI_FORMID != null "> or PI_FORMID = #{PI_FORMID}</if>
<if test="PI_FORMDATAID != null "> or PI_FORMDATAID = #{PI_FORMDATAID}</if>
<if test="PI_TEMPLATEID != null "> or PI_TEMPLATEID = #{PI_TEMPLATEID}</if>
<if test="PI_STARTACCOUNTID != null "> or PI_STARTACCOUNTID = #{PI_STARTACCOUNTID}</if>
<if test="PI_STARTDEPARTMENTID != null "> or PI_STARTDEPARTMENTID = #{PI_STARTDEPARTMENTID}</if>
<if test="PI_STARTMEMBERID != null "> or PI_STARTMEMBERID = #{PI_STARTMEMBERID}</if>
<if test="PI_STARTMEMBERNM != null and PI_STARTMEMBERNM !='' "> or PI_STARTMEMBERNM = #{PI_STARTMEMBERNM} </if>
<if test="PI_STARTDATE != null and PI_STARTDATE !='' "> or PI_STARTDATE = #{PI_STARTDATE} </if>
<if test="PI_DEALACCOUNTID != null "> or PI_DEALACCOUNTID = #{PI_DEALACCOUNTID}</if>
<if test="PI_DEALDEPARTMENTID != null "> or PI_DEALDEPARTMENTID = #{PI_DEALDEPARTMENTID}</if>
<if test="PI_DEALMEMBERID != null "> or PI_DEALMEMBERID = #{PI_DEALMEMBERID}</if>
<if test="PI_DEALMEMBERNM != null and PI_DEALMEMBERNM !='' "> or PI_DEALMEMBERNM = #{PI_DEALMEMBERNM} </if>
<if test="PI_DEALDATE != null and PI_DEALDATE !='' "> or PI_DEALDATE = #{PI_DEALDATE} </if>
<if test="PI_DEALSTATE != null "> or PI_DEALSTATE = #{PI_DEALSTATE}</if>
<if test="PI_DEALPOLICY != null and PI_DEALPOLICY !='' "> or PI_DEALPOLICY = #{PI_DEALPOLICY} </if>
<if test="PI_DEALINFO != null and PI_DEALINFO !='' "> or PI_DEALINFO = #{PI_DEALINFO} </if>
<if test="PI_SHAREID != null "> or PI_SHAREID = #{PI_SHAREID}</if>
<if test="PI_SHARENM != null and PI_SHARENM !='' "> or PI_SHARENM = #{PI_SHARENM} </if>
<if test="PI_APITYPE != null "> or PI_APITYPE = #{PI_APITYPE}</if>
<if test="PI_ISVALID != null "> or PI_ISVALID = #{PI_ISVALID}</if>
<if test="PI_VALIDRESULT != null "> or PI_VALIDRESULT = #{PI_VALIDRESULT}</if>
<if test="PI_RESULTNM != null and PI_RESULTNM !='' "> or PI_RESULTNM = #{PI_RESULTNM} </if>
<if test="PI_VALIDSTATE != null "> or PI_VALIDSTATE = #{PI_VALIDSTATE}</if>
<if test="PI_CLASSTYPE != null "> or PI_CLASSTYPE = #{PI_CLASSTYPE}</if>
<if test="PI_CLASSNAME != null and PI_CLASSNAME !='' "> or PI_CLASSNAME = #{PI_CLASSNAME} </if>
<if test="PI_RECOVERSTATE != null "> or PI_RECOVERSTATE = #{PI_RECOVERSTATE}</if>
<if test="PI_RECOVERMEMBERID != null "> or PI_RECOVERMEMBERID = #{PI_RECOVERMEMBERID}</if>
<if test="PI_RECOVERMEMBERNM != null and PI_RECOVERMEMBERNM !='' "> or PI_RECOVERMEMBERNM = #{PI_RECOVERMEMBERNM} </if>
<if test="PI_RECOVERDATE != null and PI_RECOVERDATE !='' "> or PI_RECOVERDATE = #{PI_RECOVERDATE} </if>
<if test="PI_ORGID != null "> or PI_ORGID = #{PI_ORGID}</if>
<if test="PI_ORGNM != null and PI_ORGNM !='' "> or PI_ORGNM = #{PI_ORGNM} </if>
<if test="PI_YEAR != null "> or PI_YEAR = #{PI_YEAR}</if>
<if test="PI_MONTH != null "> or PI_MONTH = #{PI_MONTH}</if>
<if test="PI_QUARTER != null "> or PI_QUARTER = #{PI_QUARTER}</if>
<if test="PI_HALFYEAR != null "> or PI_HALFYEAR = #{PI_HALFYEAR}</if>
<if test="PI_XMMC != null and PI_XMMC !='' "> or PI_XMMC = #{PI_XMMC} </if>
<if test="PI_FPDM != null and PI_FPDM !='' "> or PI_FPDM = #{PI_FPDM} </if>
<if test="PI_FPHM != null and PI_FPHM !='' "> or PI_FPHM = #{PI_FPHM} </if>
<if test="PI_SALERTAXNO != null and PI_SALERTAXNO !='' "> or PI_SALERTAXNO = #{PI_SALERTAXNO} </if>
<if test="PI_SALERNAME != null and PI_SALERNAME !='' "> or PI_SALERNAME = #{PI_SALERNAME} </if>
<if test="PI_BUYERTAXNO != null and PI_BUYERTAXNO !='' "> or PI_BUYERTAXNO = #{PI_BUYERTAXNO} </if>
<if test="PI_BUYERNAME != null and PI_BUYERNAME !='' "> or PI_BUYERNAME = #{PI_BUYERNAME} </if>
<if test="PI_INVOICETYPE != null and PI_INVOICETYPE !='' "> or PI_INVOICETYPE = #{PI_INVOICETYPE} </if>
<if test="PI_INVOICENAME != null and PI_INVOICENAME !='' "> or PI_INVOICENAME = #{PI_INVOICENAME} </if>
<if test="PI_INVOICEDATE != null and PI_INVOICEDATE !='' "> or PI_INVOICEDATE = #{PI_INVOICEDATE} </if>
<if test="PI_FSTATION != null and PI_FSTATION !='' "> or PI_FSTATION = #{PI_FSTATION} </if>
<if test="PI_TSTATION != null and PI_TSTATION !='' "> or PI_TSTATION = #{PI_TSTATION} </if>
<if test="PI_USERNAME != null and PI_USERNAME !='' "> or PI_USERNAME = #{PI_USERNAME} </if>
<if test="PI_TRAINNO != null and PI_TRAINNO !='' "> or PI_TRAINNO = #{PI_TRAINNO} </if>
<if test="PI_TRAINCODE != null and PI_TRAINCODE !='' "> or PI_TRAINCODE = #{PI_TRAINCODE} </if>
<if test="PI_STARTDATETIME != null and PI_STARTDATETIME !='' "> or PI_STARTDATETIME = #{PI_STARTDATETIME} </if>
<if test="PI_ENDDATETIME != null and PI_ENDDATETIME !='' "> or PI_ENDDATETIME = #{PI_ENDDATETIME} </if>
<if test="PI_STARTTIME != null and PI_STARTTIME !='' "> or PI_STARTTIME = #{PI_STARTTIME} </if>
<if test="PI_ENDTIME != null and PI_ENDTIME !='' "> or PI_ENDTIME = #{PI_ENDTIME} </if>
<if test="PI_TAXRATE != null and PI_TAXRATE !='' "> or PI_TAXRATE = #{PI_TAXRATE} </if>
<if test="PI_TAXAMOUNT != null "> or PI_TAXAMOUNT = #{PI_TAXAMOUNT}</if>
<if test="PI_NOTAXAMOUNT != null "> or PI_NOTAXAMOUNT = #{PI_NOTAXAMOUNT}</if>
<if test="PI_DEDUCTIONAMOUNT != null "> or PI_DEDUCTIONAMOUNT = #{PI_DEDUCTIONAMOUNT}</if>
<if test="PI_FILEURL != null and PI_FILEURL !='' "> or PI_FILEURL = #{PI_FILEURL} </if>
<if test="PI_MATTERID != null "> or PI_MATTERID = #{PI_MATTERID}</if>
<if test="PI_VOUCHER != null and PI_VOUCHER !='' "> or PI_VOUCHER = #{PI_VOUCHER} </if>
<if test="PI_VOUCHERINFO != null and PI_VOUCHERINFO !='' "> or PI_VOUCHERINFO = #{PI_VOUCHERINFO} </if>
<if test="PI_FIELD0001 != null "> or PI_FIELD0001 = #{PI_FIELD0001}</if>
<if test="PI_FIELD0002 != null "> or PI_FIELD0002 = #{PI_FIELD0002}</if>
<if test="PI_FIELD0003 != null "> or PI_FIELD0003 = #{PI_FIELD0003}</if>
<if test="PI_FIELD0004 != null and PI_FIELD0004 !='' "> or PI_FIELD0004 = #{PI_FIELD0004} </if>
<if test="PI_FIELD0005 != null and PI_FIELD0005 !='' "> or PI_FIELD0005 = #{PI_FIELD0005} </if>
<if test="PI_INVOICEVALIDSTATE != null "> or PI_INVOICEVALIDSTATE = #{PI_INVOICEVALIDSTATE}</if>
<if test="PI_MODIFYSTATE != null "> or PI_MODIFYSTATE = #{PI_MODIFYSTATE}</if>
<if test="PI_USAGEAMOUNT != null "> or PI_USAGEAMOUNT = #{PI_USAGEAMOUNT}</if>
<if test="PI_VERIFYAMOUNT != null "> or PI_VERIFYAMOUNT = #{PI_VERIFYAMOUNT}</if>
<if test="PI_UNUSEDAMOUNT != null "> or PI_UNUSEDAMOUNT = #{PI_UNUSEDAMOUNT}</if>
<if test="PI_USECOUNT != null "> or PI_USECOUNT = #{PI_USECOUNT}</if>
<if test="PI_FILENAME != null and PI_FILENAME !='' "> or PI_FILENAME = #{PI_FILENAME} </if>
<if test="PI_UPDATEDATE != null and PI_UPDATEDATE !='' "> or PI_UPDATEDATE = #{PI_UPDATEDATE} </if>
<if test="PI_VOUCHERDATE != null and PI_VOUCHERDATE !='' "> or PI_VOUCHERDATE = #{PI_VOUCHERDATE} </if>
<if test="PI_CPAY_STATE != null "> or PI_CPAY_STATE = #{PI_CPAY_STATE}</if>
<if test="PI_CPAY_DATE != null and PI_CPAY_DATE !='' "> or PI_CPAY_DATE = #{PI_CPAY_DATE} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
</mapper>

View File

@ -0,0 +1,170 @@
package com.hzya.frame.plugin.cinvoice.lexmis.entity;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @description: 迈锐思-增值税发票子表
* @tableName: LEXMISCIV_INVOICEDETAIL
* @entityName: LexmiscivInvoicedetailEntity
* @author: gjh
* @history: 1.0
*/
public class LexmiscivInvoicedetailEntity extends BaseEntity {
public LexmiscivInvoicedetailEntity() {
}
public LexmiscivInvoicedetailEntity(String ID_MAINID,String dataSourceCode) {
this.ID_MAINID = ID_MAINID;
this.setDataSourceCode(dataSourceCode);
}
/** 无备注 */
private String ID_ID;
/** 无备注 */
private String ID_MAINID;
/** 无备注 */
private String ID_ROWID;
/** 无备注 */
private String ID_ACCOUNTNAME;
/** 无备注 */
private String ID_SERVICENM;
/** 无备注 */
private String ID_SERVICETYPE;
/** 无备注 */
private String ID_PRICE;
/** 无备注 */
private String ID_UNIT;
/** 无备注 */
private String ID_NUM;
/** 无备注 */
private String ID_NOTAXAMOUNT;
/** 无备注 */
private String ID_TAX;
/** 无备注 */
private String ID_TAXAMOUNT;
/** 无备注 */
public void setID_ID(String ID_ID) {
this.ID_ID = ID_ID;
}
/** 无备注 */
public String getID_ID() {
return ID_ID;
}
/** 无备注 */
public void setID_MAINID(String ID_MAINID) {
this.ID_MAINID = ID_MAINID;
}
/** 无备注 */
public String getID_MAINID() {
return ID_MAINID;
}
/** 无备注 */
public void setID_ROWID(String ID_ROWID) {
this.ID_ROWID = ID_ROWID;
}
/** 无备注 */
public String getID_ROWID() {
return ID_ROWID;
}
/** 无备注 */
public void setID_ACCOUNTNAME(String ID_ACCOUNTNAME) {
this.ID_ACCOUNTNAME = ID_ACCOUNTNAME;
}
/** 无备注 */
public String getID_ACCOUNTNAME() {
return ID_ACCOUNTNAME;
}
/** 无备注 */
public void setID_SERVICENM(String ID_SERVICENM) {
this.ID_SERVICENM = ID_SERVICENM;
}
/** 无备注 */
public String getID_SERVICENM() {
return ID_SERVICENM;
}
/** 无备注 */
public void setID_SERVICETYPE(String ID_SERVICETYPE) {
this.ID_SERVICETYPE = ID_SERVICETYPE;
}
/** 无备注 */
public String getID_SERVICETYPE() {
return ID_SERVICETYPE;
}
/** 无备注 */
public void setID_PRICE(String ID_PRICE) {
this.ID_PRICE = ID_PRICE;
}
/** 无备注 */
public String getID_PRICE() {
return ID_PRICE;
}
/** 无备注 */
public void setID_UNIT(String ID_UNIT) {
this.ID_UNIT = ID_UNIT;
}
/** 无备注 */
public String getID_UNIT() {
return ID_UNIT;
}
/** 无备注 */
public void setID_NUM(String ID_NUM) {
this.ID_NUM = ID_NUM;
}
/** 无备注 */
public String getID_NUM() {
return ID_NUM;
}
/** 无备注 */
public void setID_NOTAXAMOUNT(String ID_NOTAXAMOUNT) {
this.ID_NOTAXAMOUNT = ID_NOTAXAMOUNT;
}
/** 无备注 */
public String getID_NOTAXAMOUNT() {
return ID_NOTAXAMOUNT;
}
/** 无备注 */
public void setID_TAX(String ID_TAX) {
this.ID_TAX = ID_TAX;
}
/** 无备注 */
public String getID_TAX() {
return ID_TAX;
}
/** 无备注 */
public void setID_TAXAMOUNT(String ID_TAXAMOUNT) {
this.ID_TAXAMOUNT = ID_TAXAMOUNT;
}
/** 无备注 */
public String getID_TAXAMOUNT() {
return ID_TAXAMOUNT;
}
}

View File

@ -0,0 +1,147 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.cinvoice.lexmis.dao.impl.LexmiscivInvoicedetailDaoImpl">
<resultMap id="get-LexmiscivInvoicedetailEntity-result" type="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity">
<!--无备注 -->
<result property="ID_ID" column="ID_ID" />
<!--无备注 -->
<result property="ID_MAINID" column="ID_MAINID" />
<!--无备注 -->
<result property="ID_ROWID" column="ID_ROWID" />
<!--无备注 -->
<result property="ID_ACCOUNTNAME" column="ID_ACCOUNTNAME" />
<!--无备注 -->
<result property="ID_SERVICENM" column="ID_SERVICENM" />
<!--无备注 -->
<result property="ID_SERVICETYPE" column="ID_SERVICETYPE" />
<!--无备注 -->
<result property="ID_PRICE" column="ID_PRICE" />
<!--无备注 -->
<result property="ID_UNIT" column="ID_UNIT" />
<!--无备注 -->
<result property="ID_NUM" column="ID_NUM" />
<!--无备注 -->
<result property="ID_NOTAXAMOUNT" column="ID_NOTAXAMOUNT" />
<!--无备注 -->
<result property="ID_TAX" column="ID_TAX" />
<!--无备注 -->
<result property="ID_TAXAMOUNT" column="ID_TAXAMOUNT" />
</resultMap>
<sql id="LexmiscivInvoicedetailEntity_Base_Column_List">
ID_ID,
ID_MAINID,
ID_ROWID,
ID_ACCOUNTNAME,
ID_SERVICENM,
ID_SERVICETYPE,
ID_PRICE,
ID_UNIT,
ID_NUM,
ID_NOTAXAMOUNT,
ID_TAX,
ID_TAXAMOUNT
</sql>
<!--通过ID获取数据 -->
<select id="entity_get" resultMap="get-LexmiscivInvoicedetailEntity-result">
select
<include refid="LexmiscivInvoicedetailEntity_Base_Column_List" />
from LEXMISCIV_INVOICEDETAIL where id = #{ id }
</select>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-LexmiscivInvoicedetailEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity">
select
<include refid="LexmiscivInvoicedetailEntity_Base_Column_List" />
from LEXMISCIV_INVOICEDETAIL
<trim prefix="where" prefixOverrides="and">
<if test="ID_ID != null ">ID_ID=#{ID_ID}</if>
<if test="ID_MAINID != null "> and ID_MAINID = #{ID_MAINID}</if>
<if test="ID_ROWID != null "> and ID_ROWID = #{ID_ROWID}</if>
<if test="ID_ACCOUNTNAME != null and ID_ACCOUNTNAME !='' "> and ID_ACCOUNTNAME = #{ID_ACCOUNTNAME}</if>
<if test="ID_SERVICENM != null and ID_SERVICENM !='' "> and ID_SERVICENM = #{ID_SERVICENM}</if>
<if test="ID_SERVICETYPE != null and ID_SERVICETYPE !='' "> and ID_SERVICETYPE = #{ID_SERVICETYPE}</if>
<if test="ID_PRICE != null and ID_PRICE !='' "> and ID_PRICE = #{ID_PRICE}</if>
<if test="ID_UNIT != null and ID_UNIT !='' "> and ID_UNIT = #{ID_UNIT}</if>
<if test="ID_NUM != null and ID_NUM !='' "> and ID_NUM = #{ID_NUM}</if>
<if test="ID_NOTAXAMOUNT != null and ID_NOTAXAMOUNT !='' "> and ID_NOTAXAMOUNT = #{ID_NOTAXAMOUNT}</if>
<if test="ID_TAX != null and ID_TAX !='' "> and ID_TAX = #{ID_TAX}</if>
<if test="ID_TAXAMOUNT != null and ID_TAXAMOUNT !='' "> and ID_TAXAMOUNT = #{ID_TAXAMOUNT}</if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="LexmiscivInvoicedetailEntity_count" resultType="Integer" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity">
select count(1) from LEXMISCIV_INVOICEDETAIL
<trim prefix="where" prefixOverrides="and">
<if test="ID_ID != null ">ID_ID = #{ID_ID}</if>
<if test="ID_MAINID != null "> and ID_MAINID = #{ID_MAINID} </if>
<if test="ID_ROWID != null "> and ID_ROWID = #{ID_ROWID} </if>
<if test="ID_ACCOUNTNAME != null and ID_ACCOUNTNAME !='' "> and ID_ACCOUNTNAME = #{ID_ACCOUNTNAME} </if>
<if test="ID_SERVICENM != null and ID_SERVICENM !='' "> and ID_SERVICENM = #{ID_SERVICENM} </if>
<if test="ID_SERVICETYPE != null and ID_SERVICETYPE !='' "> and ID_SERVICETYPE = #{ID_SERVICETYPE} </if>
<if test="ID_PRICE != null and ID_PRICE !='' "> and ID_PRICE = #{ID_PRICE} </if>
<if test="ID_UNIT != null and ID_UNIT !='' "> and ID_UNIT = #{ID_UNIT} </if>
<if test="ID_NUM != null and ID_NUM !='' "> and ID_NUM = #{ID_NUM} </if>
<if test="ID_NOTAXAMOUNT != null and ID_NOTAXAMOUNT !='' "> and ID_NOTAXAMOUNT = #{ID_NOTAXAMOUNT} </if>
<if test="ID_TAX != null and ID_TAX !='' "> and ID_TAX = #{ID_TAX} </if>
<if test="ID_TAXAMOUNT != null and ID_TAXAMOUNT !='' "> and ID_TAXAMOUNT = #{ID_TAXAMOUNT} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="LexmiscivInvoicedetailEntity_list_like" resultMap="get-LexmiscivInvoicedetailEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity">
select
<include refid="LexmiscivInvoicedetailEntity_Base_Column_List" />
from LEXMISCIV_INVOICEDETAIL
<trim prefix="where" prefixOverrides="and">
<if test="ID_ID != null ">ID_ID = #{ID_ID}</if>
<if test="ID_MAINID != null "> and ID_MAINID = #{ID_MAINID}</if>
<if test="ID_ROWID != null "> and ID_ROWID = #{ID_ROWID}</if>
<if test="ID_ACCOUNTNAME != null and ID_ACCOUNTNAME !='' "> and ID_ACCOUNTNAME like concat('%',#{ID_ACCOUNTNAME},'%') </if>
<if test="ID_SERVICENM != null and ID_SERVICENM !='' "> and ID_SERVICENM like concat('%',#{ID_SERVICENM},'%') </if>
<if test="ID_SERVICETYPE != null and ID_SERVICETYPE !='' "> and ID_SERVICETYPE like concat('%',#{ID_SERVICETYPE},'%') </if>
<if test="ID_PRICE != null and ID_PRICE !='' "> and ID_PRICE like concat('%',#{ID_PRICE},'%') </if>
<if test="ID_UNIT != null and ID_UNIT !='' "> and ID_UNIT like concat('%',#{ID_UNIT},'%') </if>
<if test="ID_NUM != null and ID_NUM !='' "> and ID_NUM like concat('%',#{ID_NUM},'%') </if>
<if test="ID_NOTAXAMOUNT != null and ID_NOTAXAMOUNT !='' "> and ID_NOTAXAMOUNT like concat('%',#{ID_NOTAXAMOUNT},'%') </if>
<if test="ID_TAX != null and ID_TAX !='' "> and ID_TAX like concat('%',#{ID_TAX},'%') </if>
<if test="ID_TAXAMOUNT != null and ID_TAXAMOUNT !='' "> and ID_TAXAMOUNT like concat('%',#{ID_TAXAMOUNT},'%') </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="LexmiscivInvoicedetailEntity_list_or" resultMap="get-LexmiscivInvoicedetailEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity">
select
<include refid="LexmiscivInvoicedetailEntity_Base_Column_List" />
from LEXMISCIV_INVOICEDETAIL
<trim prefix="where" prefixOverrides="or">
<if test="ID_ID != null ">ID_ID = #{ID_ID}</if>
<if test="ID_MAINID != null "> or ID_MAINID = #{ID_MAINID}</if>
<if test="ID_ROWID != null "> or ID_ROWID = #{ID_ROWID}</if>
<if test="ID_ACCOUNTNAME != null and ID_ACCOUNTNAME !='' "> or ID_ACCOUNTNAME = #{ID_ACCOUNTNAME} </if>
<if test="ID_SERVICENM != null and ID_SERVICENM !='' "> or ID_SERVICENM = #{ID_SERVICENM} </if>
<if test="ID_SERVICETYPE != null and ID_SERVICETYPE !='' "> or ID_SERVICETYPE = #{ID_SERVICETYPE} </if>
<if test="ID_PRICE != null and ID_PRICE !='' "> or ID_PRICE = #{ID_PRICE} </if>
<if test="ID_UNIT != null and ID_UNIT !='' "> or ID_UNIT = #{ID_UNIT} </if>
<if test="ID_NUM != null and ID_NUM !='' "> or ID_NUM = #{ID_NUM} </if>
<if test="ID_NOTAXAMOUNT != null and ID_NOTAXAMOUNT !='' "> or ID_NOTAXAMOUNT = #{ID_NOTAXAMOUNT} </if>
<if test="ID_TAX != null and ID_TAX !='' "> or ID_TAX = #{ID_TAX} </if>
<if test="ID_TAXAMOUNT != null and ID_TAXAMOUNT !='' "> or ID_TAXAMOUNT = #{ID_TAXAMOUNT} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
</mapper>

View File

@ -0,0 +1,651 @@
package com.hzya.frame.plugin.cinvoice.lexmis.entity;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @description: 迈锐思-增值税发票主表
* @tableName: LEXMISCIV_INVOICEMAIN
* @entityName: LexmiscivInvoicemainEntity
* @author: gjh
* @history: 1.0
*/
public class LexmiscivInvoicemainEntity extends BaseEntity {
public LexmiscivInvoicemainEntity() {
}
public LexmiscivInvoicemainEntity(String IM_ID,String dataSourceCode) {
this.IM_ID = IM_ID;
this.setDataSourceCode(dataSourceCode);
}
/** 无备注 */
private String IM_ID;
/** 无备注 */
private String IM_FPDM;
/** 无备注 */
private String IM_FPHM;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date IM_DATE;
/** 无备注 */
private String IM_CHECKCODE;
/** 无备注 */
private String IM_SALERTAXNO;
/** 无备注 */
private String IM_SALERNAME;
/** 无备注 */
private String IM_SALERADDRESS;
/** 无备注 */
private String IM_SALERBANKNO;
/** 无备注 */
private String IM_SALERBANKNM;
/** 无备注 */
private String IM_BUYERTAXNO;
/** 无备注 */
private String IM_BUYERNAME;
/** 无备注 */
private String IM_BUYERADDRESS;
/** 无备注 */
private String IM_BUYERBANKNO;
/** 无备注 */
private String IM_BUYERBANKNM;
/** 无备注 */
private String IM_MAKERNM;
/** 无备注 */
private String IM_PAYEE;
/** 无备注 */
private String IM_AUDITOR;
/** 无备注 */
private BigDecimal IM_NOTAXAMOUNT;
/** 无备注 */
private BigDecimal IM_TAXAMOUNT;
/** 无备注 */
private BigDecimal IM_TOTALAMOUNT;
/** 无备注 */
private String IM_TAX;
/** 无备注 */
private String IM_MACHINENO;
/** 无备注 */
private String IM_MEMO;
/** 无备注 */
private String IM_ENCRYPTIONCODE;
/** 无备注 */
private String IM_TYPE;
/** 无备注 */
private String IM_TYPENAME;
/** 无备注 */
private String IM_XMMC;
/** 无备注 */
private String IM_KEY;
/** 无备注 */
private String IM_AREACODE;
/** 无备注 */
private String IM_AREANAME;
/** 无备注 */
private String IM_PRINTEDFPDM;
/** 无备注 */
private String IM_PRINTEDFPHM;
/** 无备注 */
private Integer IM_COUNT;
/** 无备注 */
private Integer IM_AGENCY;
/** 无备注 */
private Integer IM_BLOCKCHAIN;
/** 无备注 */
private Integer IM_COMPANYSEAL;
/** 无备注 */
private String IM_COMPANYSEALDEPT;
/** 无备注 */
private String IM_COMPANYSEALNUM;
/** 无备注 */
private String IM_SADDRESS;
/** 无备注 */
private String IM_STEL;
/** 无备注 */
private String IM_SBANKNM;
/** 无备注 */
private String IM_SBANKNO;
/** 无备注 */
private String IM_BADDRESS;
/** 无备注 */
private String IM_BTEL;
/** 无备注 */
private String IM_BBANKNM;
/** 无备注 */
private String IM_BBANKNO;
/** 无备注 */
private String IM_DATETIME;
/** 无备注 */
private String IM_EDATETIME;
/** 无备注 */
private BigDecimal IM_TOTALAMOUNTOCR;
/** 无备注 */
private Integer IM_PAGER_ELECTRONIC;
/** 无备注 */
private String IM_ELECTRONIC_NUMBER;
/** 无备注 */
public void setIM_ID(String IM_ID) {
this.IM_ID = IM_ID;
}
/** 无备注 */
public String getIM_ID() {
return IM_ID;
}
/** 无备注 */
public void setIM_FPDM(String IM_FPDM) {
this.IM_FPDM = IM_FPDM;
}
/** 无备注 */
public String getIM_FPDM() {
return IM_FPDM;
}
/** 无备注 */
public void setIM_FPHM(String IM_FPHM) {
this.IM_FPHM = IM_FPHM;
}
/** 无备注 */
public String getIM_FPHM() {
return IM_FPHM;
}
/** 无备注 */
public void setIM_DATE(Date IM_DATE) {
this.IM_DATE = IM_DATE;
}
/** 无备注 */
public Date getIM_DATE() {
return IM_DATE;
}
/** 无备注 */
public void setIM_CHECKCODE(String IM_CHECKCODE) {
this.IM_CHECKCODE = IM_CHECKCODE;
}
/** 无备注 */
public String getIM_CHECKCODE() {
return IM_CHECKCODE;
}
/** 无备注 */
public void setIM_SALERTAXNO(String IM_SALERTAXNO) {
this.IM_SALERTAXNO = IM_SALERTAXNO;
}
/** 无备注 */
public String getIM_SALERTAXNO() {
return IM_SALERTAXNO;
}
/** 无备注 */
public void setIM_SALERNAME(String IM_SALERNAME) {
this.IM_SALERNAME = IM_SALERNAME;
}
/** 无备注 */
public String getIM_SALERNAME() {
return IM_SALERNAME;
}
/** 无备注 */
public void setIM_SALERADDRESS(String IM_SALERADDRESS) {
this.IM_SALERADDRESS = IM_SALERADDRESS;
}
/** 无备注 */
public String getIM_SALERADDRESS() {
return IM_SALERADDRESS;
}
/** 无备注 */
public void setIM_SALERBANKNO(String IM_SALERBANKNO) {
this.IM_SALERBANKNO = IM_SALERBANKNO;
}
/** 无备注 */
public String getIM_SALERBANKNO() {
return IM_SALERBANKNO;
}
/** 无备注 */
public void setIM_SALERBANKNM(String IM_SALERBANKNM) {
this.IM_SALERBANKNM = IM_SALERBANKNM;
}
/** 无备注 */
public String getIM_SALERBANKNM() {
return IM_SALERBANKNM;
}
/** 无备注 */
public void setIM_BUYERTAXNO(String IM_BUYERTAXNO) {
this.IM_BUYERTAXNO = IM_BUYERTAXNO;
}
/** 无备注 */
public String getIM_BUYERTAXNO() {
return IM_BUYERTAXNO;
}
/** 无备注 */
public void setIM_BUYERNAME(String IM_BUYERNAME) {
this.IM_BUYERNAME = IM_BUYERNAME;
}
/** 无备注 */
public String getIM_BUYERNAME() {
return IM_BUYERNAME;
}
/** 无备注 */
public void setIM_BUYERADDRESS(String IM_BUYERADDRESS) {
this.IM_BUYERADDRESS = IM_BUYERADDRESS;
}
/** 无备注 */
public String getIM_BUYERADDRESS() {
return IM_BUYERADDRESS;
}
/** 无备注 */
public void setIM_BUYERBANKNO(String IM_BUYERBANKNO) {
this.IM_BUYERBANKNO = IM_BUYERBANKNO;
}
/** 无备注 */
public String getIM_BUYERBANKNO() {
return IM_BUYERBANKNO;
}
/** 无备注 */
public void setIM_BUYERBANKNM(String IM_BUYERBANKNM) {
this.IM_BUYERBANKNM = IM_BUYERBANKNM;
}
/** 无备注 */
public String getIM_BUYERBANKNM() {
return IM_BUYERBANKNM;
}
/** 无备注 */
public void setIM_MAKERNM(String IM_MAKERNM) {
this.IM_MAKERNM = IM_MAKERNM;
}
/** 无备注 */
public String getIM_MAKERNM() {
return IM_MAKERNM;
}
/** 无备注 */
public void setIM_PAYEE(String IM_PAYEE) {
this.IM_PAYEE = IM_PAYEE;
}
/** 无备注 */
public String getIM_PAYEE() {
return IM_PAYEE;
}
/** 无备注 */
public void setIM_AUDITOR(String IM_AUDITOR) {
this.IM_AUDITOR = IM_AUDITOR;
}
/** 无备注 */
public String getIM_AUDITOR() {
return IM_AUDITOR;
}
/** 无备注 */
public void setIM_NOTAXAMOUNT(BigDecimal IM_NOTAXAMOUNT) {
this.IM_NOTAXAMOUNT = IM_NOTAXAMOUNT;
}
/** 无备注 */
public BigDecimal getIM_NOTAXAMOUNT() {
return IM_NOTAXAMOUNT;
}
/** 无备注 */
public void setIM_TAXAMOUNT(BigDecimal IM_TAXAMOUNT) {
this.IM_TAXAMOUNT = IM_TAXAMOUNT;
}
/** 无备注 */
public BigDecimal getIM_TAXAMOUNT() {
return IM_TAXAMOUNT;
}
/** 无备注 */
public void setIM_TOTALAMOUNT(BigDecimal IM_TOTALAMOUNT) {
this.IM_TOTALAMOUNT = IM_TOTALAMOUNT;
}
/** 无备注 */
public BigDecimal getIM_TOTALAMOUNT() {
return IM_TOTALAMOUNT;
}
/** 无备注 */
public void setIM_TAX(String IM_TAX) {
this.IM_TAX = IM_TAX;
}
/** 无备注 */
public String getIM_TAX() {
return IM_TAX;
}
/** 无备注 */
public void setIM_MACHINENO(String IM_MACHINENO) {
this.IM_MACHINENO = IM_MACHINENO;
}
/** 无备注 */
public String getIM_MACHINENO() {
return IM_MACHINENO;
}
/** 无备注 */
public void setIM_MEMO(String IM_MEMO) {
this.IM_MEMO = IM_MEMO;
}
/** 无备注 */
public String getIM_MEMO() {
return IM_MEMO;
}
/** 无备注 */
public void setIM_ENCRYPTIONCODE(String IM_ENCRYPTIONCODE) {
this.IM_ENCRYPTIONCODE = IM_ENCRYPTIONCODE;
}
/** 无备注 */
public String getIM_ENCRYPTIONCODE() {
return IM_ENCRYPTIONCODE;
}
/** 无备注 */
public void setIM_TYPE(String IM_TYPE) {
this.IM_TYPE = IM_TYPE;
}
/** 无备注 */
public String getIM_TYPE() {
return IM_TYPE;
}
/** 无备注 */
public void setIM_TYPENAME(String IM_TYPENAME) {
this.IM_TYPENAME = IM_TYPENAME;
}
/** 无备注 */
public String getIM_TYPENAME() {
return IM_TYPENAME;
}
/** 无备注 */
public void setIM_XMMC(String IM_XMMC) {
this.IM_XMMC = IM_XMMC;
}
/** 无备注 */
public String getIM_XMMC() {
return IM_XMMC;
}
/** 无备注 */
public void setIM_KEY(String IM_KEY) {
this.IM_KEY = IM_KEY;
}
/** 无备注 */
public String getIM_KEY() {
return IM_KEY;
}
/** 无备注 */
public void setIM_AREACODE(String IM_AREACODE) {
this.IM_AREACODE = IM_AREACODE;
}
/** 无备注 */
public String getIM_AREACODE() {
return IM_AREACODE;
}
/** 无备注 */
public void setIM_AREANAME(String IM_AREANAME) {
this.IM_AREANAME = IM_AREANAME;
}
/** 无备注 */
public String getIM_AREANAME() {
return IM_AREANAME;
}
/** 无备注 */
public void setIM_PRINTEDFPDM(String IM_PRINTEDFPDM) {
this.IM_PRINTEDFPDM = IM_PRINTEDFPDM;
}
/** 无备注 */
public String getIM_PRINTEDFPDM() {
return IM_PRINTEDFPDM;
}
/** 无备注 */
public void setIM_PRINTEDFPHM(String IM_PRINTEDFPHM) {
this.IM_PRINTEDFPHM = IM_PRINTEDFPHM;
}
/** 无备注 */
public String getIM_PRINTEDFPHM() {
return IM_PRINTEDFPHM;
}
/** 无备注 */
public void setIM_COUNT(Integer IM_COUNT) {
this.IM_COUNT = IM_COUNT;
}
/** 无备注 */
public Integer getIM_COUNT() {
return IM_COUNT;
}
/** 无备注 */
public void setIM_AGENCY(Integer IM_AGENCY) {
this.IM_AGENCY = IM_AGENCY;
}
/** 无备注 */
public Integer getIM_AGENCY() {
return IM_AGENCY;
}
/** 无备注 */
public void setIM_BLOCKCHAIN(Integer IM_BLOCKCHAIN) {
this.IM_BLOCKCHAIN = IM_BLOCKCHAIN;
}
/** 无备注 */
public Integer getIM_BLOCKCHAIN() {
return IM_BLOCKCHAIN;
}
/** 无备注 */
public void setIM_COMPANYSEAL(Integer IM_COMPANYSEAL) {
this.IM_COMPANYSEAL = IM_COMPANYSEAL;
}
/** 无备注 */
public Integer getIM_COMPANYSEAL() {
return IM_COMPANYSEAL;
}
/** 无备注 */
public void setIM_COMPANYSEALDEPT(String IM_COMPANYSEALDEPT) {
this.IM_COMPANYSEALDEPT = IM_COMPANYSEALDEPT;
}
/** 无备注 */
public String getIM_COMPANYSEALDEPT() {
return IM_COMPANYSEALDEPT;
}
/** 无备注 */
public void setIM_COMPANYSEALNUM(String IM_COMPANYSEALNUM) {
this.IM_COMPANYSEALNUM = IM_COMPANYSEALNUM;
}
/** 无备注 */
public String getIM_COMPANYSEALNUM() {
return IM_COMPANYSEALNUM;
}
/** 无备注 */
public void setIM_SADDRESS(String IM_SADDRESS) {
this.IM_SADDRESS = IM_SADDRESS;
}
/** 无备注 */
public String getIM_SADDRESS() {
return IM_SADDRESS;
}
/** 无备注 */
public void setIM_STEL(String IM_STEL) {
this.IM_STEL = IM_STEL;
}
/** 无备注 */
public String getIM_STEL() {
return IM_STEL;
}
/** 无备注 */
public void setIM_SBANKNM(String IM_SBANKNM) {
this.IM_SBANKNM = IM_SBANKNM;
}
/** 无备注 */
public String getIM_SBANKNM() {
return IM_SBANKNM;
}
/** 无备注 */
public void setIM_SBANKNO(String IM_SBANKNO) {
this.IM_SBANKNO = IM_SBANKNO;
}
/** 无备注 */
public String getIM_SBANKNO() {
return IM_SBANKNO;
}
/** 无备注 */
public void setIM_BADDRESS(String IM_BADDRESS) {
this.IM_BADDRESS = IM_BADDRESS;
}
/** 无备注 */
public String getIM_BADDRESS() {
return IM_BADDRESS;
}
/** 无备注 */
public void setIM_BTEL(String IM_BTEL) {
this.IM_BTEL = IM_BTEL;
}
/** 无备注 */
public String getIM_BTEL() {
return IM_BTEL;
}
/** 无备注 */
public void setIM_BBANKNM(String IM_BBANKNM) {
this.IM_BBANKNM = IM_BBANKNM;
}
/** 无备注 */
public String getIM_BBANKNM() {
return IM_BBANKNM;
}
/** 无备注 */
public void setIM_BBANKNO(String IM_BBANKNO) {
this.IM_BBANKNO = IM_BBANKNO;
}
/** 无备注 */
public String getIM_BBANKNO() {
return IM_BBANKNO;
}
/** 无备注 */
public void setIM_DATETIME(String IM_DATETIME) {
this.IM_DATETIME = IM_DATETIME;
}
/** 无备注 */
public String getIM_DATETIME() {
return IM_DATETIME;
}
/** 无备注 */
public void setIM_EDATETIME(String IM_EDATETIME) {
this.IM_EDATETIME = IM_EDATETIME;
}
/** 无备注 */
public String getIM_EDATETIME() {
return IM_EDATETIME;
}
/** 无备注 */
public void setIM_TOTALAMOUNTOCR(BigDecimal IM_TOTALAMOUNTOCR) {
this.IM_TOTALAMOUNTOCR = IM_TOTALAMOUNTOCR;
}
/** 无备注 */
public BigDecimal getIM_TOTALAMOUNTOCR() {
return IM_TOTALAMOUNTOCR;
}
/** 无备注 */
public void setIM_PAGER_ELECTRONIC(Integer IM_PAGER_ELECTRONIC) {
this.IM_PAGER_ELECTRONIC = IM_PAGER_ELECTRONIC;
}
/** 无备注 */
public Integer getIM_PAGER_ELECTRONIC() {
return IM_PAGER_ELECTRONIC;
}
/** 无备注 */
public void setIM_ELECTRONIC_NUMBER(String IM_ELECTRONIC_NUMBER) {
this.IM_ELECTRONIC_NUMBER = IM_ELECTRONIC_NUMBER;
}
/** 无备注 */
public String getIM_ELECTRONIC_NUMBER() {
return IM_ELECTRONIC_NUMBER;
}
}

View File

@ -0,0 +1,427 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.cinvoice.lexmis.dao.impl.LexmiscivInvoicemainDaoImpl">
<resultMap id="get-LexmiscivInvoicemainEntity-result" type="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity">
<!--无备注 -->
<result property="IM_ID" column="IM_ID" />
<!--无备注 -->
<result property="IM_FPDM" column="IM_FPDM" />
<!--无备注 -->
<result property="IM_FPHM" column="IM_FPHM" />
<!--无备注 -->
<result property="IM_DATE" column="IM_DATE" />
<!--无备注 -->
<result property="IM_CHECKCODE" column="IM_CHECKCODE" />
<!--无备注 -->
<result property="IM_SALERTAXNO" column="IM_SALERTAXNO" />
<!--无备注 -->
<result property="IM_SALERNAME" column="IM_SALERNAME" />
<!--无备注 -->
<result property="IM_SALERADDRESS" column="IM_SALERADDRESS" />
<!--无备注 -->
<result property="IM_SALERBANKNO" column="IM_SALERBANKNO" />
<!--无备注 -->
<result property="IM_SALERBANKNM" column="IM_SALERBANKNM" />
<!--无备注 -->
<result property="IM_BUYERTAXNO" column="IM_BUYERTAXNO" />
<!--无备注 -->
<result property="IM_BUYERNAME" column="IM_BUYERNAME" />
<!--无备注 -->
<result property="IM_BUYERADDRESS" column="IM_BUYERADDRESS" />
<!--无备注 -->
<result property="IM_BUYERBANKNO" column="IM_BUYERBANKNO" />
<!--无备注 -->
<result property="IM_BUYERBANKNM" column="IM_BUYERBANKNM" />
<!--无备注 -->
<result property="IM_MAKERNM" column="IM_MAKERNM" />
<!--无备注 -->
<result property="IM_PAYEE" column="IM_PAYEE" />
<!--无备注 -->
<result property="IM_AUDITOR" column="IM_AUDITOR" />
<!--无备注 -->
<result property="IM_NOTAXAMOUNT" column="IM_NOTAXAMOUNT" />
<!--无备注 -->
<result property="IM_TAXAMOUNT" column="IM_TAXAMOUNT" />
<!--无备注 -->
<result property="IM_TOTALAMOUNT" column="IM_TOTALAMOUNT" />
<!--无备注 -->
<result property="IM_TAX" column="IM_TAX" />
<!--无备注 -->
<result property="IM_MACHINENO" column="IM_MACHINENO" />
<!--无备注 -->
<result property="IM_MEMO" column="IM_MEMO" />
<!--无备注 -->
<result property="IM_ENCRYPTIONCODE" column="IM_ENCRYPTIONCODE" />
<!--无备注 -->
<result property="IM_TYPE" column="IM_TYPE" />
<!--无备注 -->
<result property="IM_TYPENAME" column="IM_TYPENAME" />
<!--无备注 -->
<result property="IM_XMMC" column="IM_XMMC" />
<!--无备注 -->
<result property="IM_KEY" column="IM_KEY" />
<!--无备注 -->
<result property="IM_AREACODE" column="IM_AREACODE" />
<!--无备注 -->
<result property="IM_AREANAME" column="IM_AREANAME" />
<!--无备注 -->
<result property="IM_PRINTEDFPDM" column="IM_PRINTEDFPDM" />
<!--无备注 -->
<result property="IM_PRINTEDFPHM" column="IM_PRINTEDFPHM" />
<!--无备注 -->
<result property="IM_COUNT" column="IM_COUNT" />
<!--无备注 -->
<result property="IM_AGENCY" column="IM_AGENCY" />
<!--无备注 -->
<result property="IM_BLOCKCHAIN" column="IM_BLOCKCHAIN" />
<!--无备注 -->
<result property="IM_COMPANYSEAL" column="IM_COMPANYSEAL" />
<!--无备注 -->
<result property="IM_COMPANYSEALDEPT" column="IM_COMPANYSEALDEPT" />
<!--无备注 -->
<result property="IM_COMPANYSEALNUM" column="IM_COMPANYSEALNUM" />
<!--无备注 -->
<result property="IM_SADDRESS" column="IM_SADDRESS" />
<!--无备注 -->
<result property="IM_STEL" column="IM_STEL" />
<!--无备注 -->
<result property="IM_SBANKNM" column="IM_SBANKNM" />
<!--无备注 -->
<result property="IM_SBANKNO" column="IM_SBANKNO" />
<!--无备注 -->
<result property="IM_BADDRESS" column="IM_BADDRESS" />
<!--无备注 -->
<result property="IM_BTEL" column="IM_BTEL" />
<!--无备注 -->
<result property="IM_BBANKNM" column="IM_BBANKNM" />
<!--无备注 -->
<result property="IM_BBANKNO" column="IM_BBANKNO" />
<!--无备注 -->
<result property="IM_DATETIME" column="IM_DATETIME" />
<!--无备注 -->
<result property="IM_EDATETIME" column="IM_EDATETIME" />
<!--无备注 -->
<result property="IM_TOTALAMOUNTOCR" column="IM_TOTALAMOUNTOCR" />
<!--无备注 -->
<result property="IM_PAGER_ELECTRONIC" column="IM_PAGER_ELECTRONIC" />
<!--无备注 -->
<result property="IM_ELECTRONIC_NUMBER" column="IM_ELECTRONIC_NUMBER" />
</resultMap>
<sql id="LexmiscivInvoicemainEntity_Base_Column_List">
IM_ID,
IM_FPDM,
IM_FPHM,
IM_DATE,
IM_CHECKCODE,
IM_SALERTAXNO,
IM_SALERNAME,
IM_SALERADDRESS,
IM_SALERBANKNO,
IM_SALERBANKNM,
IM_BUYERTAXNO,
IM_BUYERNAME,
IM_BUYERADDRESS,
IM_BUYERBANKNO,
IM_BUYERBANKNM,
IM_MAKERNM,
IM_PAYEE,
IM_AUDITOR,
IM_NOTAXAMOUNT,
IM_TAXAMOUNT,
IM_TOTALAMOUNT,
IM_TAX,
IM_MACHINENO,
IM_MEMO,
IM_ENCRYPTIONCODE,
IM_TYPE,
IM_TYPENAME,
IM_XMMC,
IM_KEY,
IM_AREACODE,
IM_AREANAME,
IM_PRINTEDFPDM,
IM_PRINTEDFPHM,
IM_COUNT,
IM_AGENCY,
IM_BLOCKCHAIN,
IM_COMPANYSEAL,
IM_COMPANYSEALDEPT,
IM_COMPANYSEALNUM,
IM_SADDRESS,
IM_STEL,
IM_SBANKNM,
IM_SBANKNO,
IM_BADDRESS,
IM_BTEL,
IM_BBANKNM,
IM_BBANKNO,
IM_DATETIME,
IM_EDATETIME,
IM_TOTALAMOUNTOCR,
IM_PAGER_ELECTRONIC,
IM_ELECTRONIC_NUMBER
</sql>
<!--通过ID获取数据 -->
<select id="entity_get" resultMap="get-LexmiscivInvoicemainEntity-result">
select
<include refid="LexmiscivInvoicemainEntity_Base_Column_List" />
from LEXMISCIV_INVOICEMAIN where IM_ID = #{IM_ID}
</select>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-LexmiscivInvoicemainEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity">
select
<include refid="LexmiscivInvoicemainEntity_Base_Column_List" />
from LEXMISCIV_INVOICEMAIN
<trim prefix="where" prefixOverrides="and">
<if test="IM_ID != null ">IM_ID=#{IM_ID}</if>
<if test="IM_FPDM != null and IM_FPDM !='' "> and IM_FPDM = #{IM_FPDM}</if>
<if test="IM_FPHM != null and IM_FPHM !='' "> and IM_FPHM = #{IM_FPHM}</if>
<if test="IM_DATE != null "> and IM_DATE = #{IM_DATE}</if>
<if test="IM_CHECKCODE != null and IM_CHECKCODE !='' "> and IM_CHECKCODE = #{IM_CHECKCODE}</if>
<if test="IM_SALERTAXNO != null and IM_SALERTAXNO !='' "> and IM_SALERTAXNO = #{IM_SALERTAXNO}</if>
<if test="IM_SALERNAME != null and IM_SALERNAME !='' "> and IM_SALERNAME = #{IM_SALERNAME}</if>
<if test="IM_SALERADDRESS != null and IM_SALERADDRESS !='' "> and IM_SALERADDRESS = #{IM_SALERADDRESS}</if>
<if test="IM_SALERBANKNO != null and IM_SALERBANKNO !='' "> and IM_SALERBANKNO = #{IM_SALERBANKNO}</if>
<if test="IM_SALERBANKNM != null and IM_SALERBANKNM !='' "> and IM_SALERBANKNM = #{IM_SALERBANKNM}</if>
<if test="IM_BUYERTAXNO != null and IM_BUYERTAXNO !='' "> and IM_BUYERTAXNO = #{IM_BUYERTAXNO}</if>
<if test="IM_BUYERNAME != null and IM_BUYERNAME !='' "> and IM_BUYERNAME = #{IM_BUYERNAME}</if>
<if test="IM_BUYERADDRESS != null and IM_BUYERADDRESS !='' "> and IM_BUYERADDRESS = #{IM_BUYERADDRESS}</if>
<if test="IM_BUYERBANKNO != null and IM_BUYERBANKNO !='' "> and IM_BUYERBANKNO = #{IM_BUYERBANKNO}</if>
<if test="IM_BUYERBANKNM != null and IM_BUYERBANKNM !='' "> and IM_BUYERBANKNM = #{IM_BUYERBANKNM}</if>
<if test="IM_MAKERNM != null and IM_MAKERNM !='' "> and IM_MAKERNM = #{IM_MAKERNM}</if>
<if test="IM_PAYEE != null and IM_PAYEE !='' "> and IM_PAYEE = #{IM_PAYEE}</if>
<if test="IM_AUDITOR != null and IM_AUDITOR !='' "> and IM_AUDITOR = #{IM_AUDITOR}</if>
<if test="IM_NOTAXAMOUNT != null "> and IM_NOTAXAMOUNT = #{IM_NOTAXAMOUNT}</if>
<if test="IM_TAXAMOUNT != null "> and IM_TAXAMOUNT = #{IM_TAXAMOUNT}</if>
<if test="IM_TOTALAMOUNT != null "> and IM_TOTALAMOUNT = #{IM_TOTALAMOUNT}</if>
<if test="IM_TAX != null and IM_TAX !='' "> and IM_TAX = #{IM_TAX}</if>
<if test="IM_MACHINENO != null and IM_MACHINENO !='' "> and IM_MACHINENO = #{IM_MACHINENO}</if>
<if test="IM_MEMO != null and IM_MEMO !='' "> and IM_MEMO = #{IM_MEMO}</if>
<if test="IM_ENCRYPTIONCODE != null and IM_ENCRYPTIONCODE !='' "> and IM_ENCRYPTIONCODE = #{IM_ENCRYPTIONCODE}</if>
<if test="IM_TYPE != null and IM_TYPE !='' "> and IM_TYPE = #{IM_TYPE}</if>
<if test="IM_TYPENAME != null and IM_TYPENAME !='' "> and IM_TYPENAME = #{IM_TYPENAME}</if>
<if test="IM_XMMC != null and IM_XMMC !='' "> and IM_XMMC = #{IM_XMMC}</if>
<if test="IM_KEY != null and IM_KEY !='' "> and IM_KEY = #{IM_KEY}</if>
<if test="IM_AREACODE != null and IM_AREACODE !='' "> and IM_AREACODE = #{IM_AREACODE}</if>
<if test="IM_AREANAME != null and IM_AREANAME !='' "> and IM_AREANAME = #{IM_AREANAME}</if>
<if test="IM_PRINTEDFPDM != null and IM_PRINTEDFPDM !='' "> and IM_PRINTEDFPDM = #{IM_PRINTEDFPDM}</if>
<if test="IM_PRINTEDFPHM != null and IM_PRINTEDFPHM !='' "> and IM_PRINTEDFPHM = #{IM_PRINTEDFPHM}</if>
<if test="IM_COUNT != null "> and IM_COUNT = #{IM_COUNT}</if>
<if test="IM_AGENCY != null "> and IM_AGENCY = #{IM_AGENCY}</if>
<if test="IM_BLOCKCHAIN != null "> and IM_BLOCKCHAIN = #{IM_BLOCKCHAIN}</if>
<if test="IM_COMPANYSEAL != null "> and IM_COMPANYSEAL = #{IM_COMPANYSEAL}</if>
<if test="IM_COMPANYSEALDEPT != null and IM_COMPANYSEALDEPT !='' "> and IM_COMPANYSEALDEPT = #{IM_COMPANYSEALDEPT}</if>
<if test="IM_COMPANYSEALNUM != null and IM_COMPANYSEALNUM !='' "> and IM_COMPANYSEALNUM = #{IM_COMPANYSEALNUM}</if>
<if test="IM_SADDRESS != null and IM_SADDRESS !='' "> and IM_SADDRESS = #{IM_SADDRESS}</if>
<if test="IM_STEL != null and IM_STEL !='' "> and IM_STEL = #{IM_STEL}</if>
<if test="IM_SBANKNM != null and IM_SBANKNM !='' "> and IM_SBANKNM = #{IM_SBANKNM}</if>
<if test="IM_SBANKNO != null and IM_SBANKNO !='' "> and IM_SBANKNO = #{IM_SBANKNO}</if>
<if test="IM_BADDRESS != null and IM_BADDRESS !='' "> and IM_BADDRESS = #{IM_BADDRESS}</if>
<if test="IM_BTEL != null and IM_BTEL !='' "> and IM_BTEL = #{IM_BTEL}</if>
<if test="IM_BBANKNM != null and IM_BBANKNM !='' "> and IM_BBANKNM = #{IM_BBANKNM}</if>
<if test="IM_BBANKNO != null and IM_BBANKNO !='' "> and IM_BBANKNO = #{IM_BBANKNO}</if>
<if test="IM_DATETIME != null and IM_DATETIME !='' "> and IM_DATETIME = #{IM_DATETIME}</if>
<if test="IM_EDATETIME != null and IM_EDATETIME !='' "> and IM_EDATETIME = #{IM_EDATETIME}</if>
<if test="IM_TOTALAMOUNTOCR != null "> and IM_TOTALAMOUNTOCR = #{IM_TOTALAMOUNTOCR}</if>
<if test="IM_PAGER_ELECTRONIC != null "> and IM_PAGER_ELECTRONIC = #{IM_PAGER_ELECTRONIC}</if>
<if test="IM_ELECTRONIC_NUMBER != null and IM_ELECTRONIC_NUMBER !='' "> and IM_ELECTRONIC_NUMBER = #{IM_ELECTRONIC_NUMBER}</if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="LexmiscivInvoicemainEntity_count" resultType="Integer" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity">
select count(1) from LEXMISCIV_INVOICEMAIN
<trim prefix="where" prefixOverrides="and">
<if test="IM_ID != null ">IM_ID = #{IM_ID}</if>
<if test="IM_FPDM != null and IM_FPDM !='' "> and IM_FPDM = #{IM_FPDM} </if>
<if test="IM_FPHM != null and IM_FPHM !='' "> and IM_FPHM = #{IM_FPHM} </if>
<if test="IM_DATE != null "> and IM_DATE = #{IM_DATE} </if>
<if test="IM_CHECKCODE != null and IM_CHECKCODE !='' "> and IM_CHECKCODE = #{IM_CHECKCODE} </if>
<if test="IM_SALERTAXNO != null and IM_SALERTAXNO !='' "> and IM_SALERTAXNO = #{IM_SALERTAXNO} </if>
<if test="IM_SALERNAME != null and IM_SALERNAME !='' "> and IM_SALERNAME = #{IM_SALERNAME} </if>
<if test="IM_SALERADDRESS != null and IM_SALERADDRESS !='' "> and IM_SALERADDRESS = #{IM_SALERADDRESS} </if>
<if test="IM_SALERBANKNO != null and IM_SALERBANKNO !='' "> and IM_SALERBANKNO = #{IM_SALERBANKNO} </if>
<if test="IM_SALERBANKNM != null and IM_SALERBANKNM !='' "> and IM_SALERBANKNM = #{IM_SALERBANKNM} </if>
<if test="IM_BUYERTAXNO != null and IM_BUYERTAXNO !='' "> and IM_BUYERTAXNO = #{IM_BUYERTAXNO} </if>
<if test="IM_BUYERNAME != null and IM_BUYERNAME !='' "> and IM_BUYERNAME = #{IM_BUYERNAME} </if>
<if test="IM_BUYERADDRESS != null and IM_BUYERADDRESS !='' "> and IM_BUYERADDRESS = #{IM_BUYERADDRESS} </if>
<if test="IM_BUYERBANKNO != null and IM_BUYERBANKNO !='' "> and IM_BUYERBANKNO = #{IM_BUYERBANKNO} </if>
<if test="IM_BUYERBANKNM != null and IM_BUYERBANKNM !='' "> and IM_BUYERBANKNM = #{IM_BUYERBANKNM} </if>
<if test="IM_MAKERNM != null and IM_MAKERNM !='' "> and IM_MAKERNM = #{IM_MAKERNM} </if>
<if test="IM_PAYEE != null and IM_PAYEE !='' "> and IM_PAYEE = #{IM_PAYEE} </if>
<if test="IM_AUDITOR != null and IM_AUDITOR !='' "> and IM_AUDITOR = #{IM_AUDITOR} </if>
<if test="IM_NOTAXAMOUNT != null "> and IM_NOTAXAMOUNT = #{IM_NOTAXAMOUNT} </if>
<if test="IM_TAXAMOUNT != null "> and IM_TAXAMOUNT = #{IM_TAXAMOUNT} </if>
<if test="IM_TOTALAMOUNT != null "> and IM_TOTALAMOUNT = #{IM_TOTALAMOUNT} </if>
<if test="IM_TAX != null and IM_TAX !='' "> and IM_TAX = #{IM_TAX} </if>
<if test="IM_MACHINENO != null and IM_MACHINENO !='' "> and IM_MACHINENO = #{IM_MACHINENO} </if>
<if test="IM_MEMO != null and IM_MEMO !='' "> and IM_MEMO = #{IM_MEMO} </if>
<if test="IM_ENCRYPTIONCODE != null and IM_ENCRYPTIONCODE !='' "> and IM_ENCRYPTIONCODE = #{IM_ENCRYPTIONCODE} </if>
<if test="IM_TYPE != null and IM_TYPE !='' "> and IM_TYPE = #{IM_TYPE} </if>
<if test="IM_TYPENAME != null and IM_TYPENAME !='' "> and IM_TYPENAME = #{IM_TYPENAME} </if>
<if test="IM_XMMC != null and IM_XMMC !='' "> and IM_XMMC = #{IM_XMMC} </if>
<if test="IM_KEY != null and IM_KEY !='' "> and IM_KEY = #{IM_KEY} </if>
<if test="IM_AREACODE != null and IM_AREACODE !='' "> and IM_AREACODE = #{IM_AREACODE} </if>
<if test="IM_AREANAME != null and IM_AREANAME !='' "> and IM_AREANAME = #{IM_AREANAME} </if>
<if test="IM_PRINTEDFPDM != null and IM_PRINTEDFPDM !='' "> and IM_PRINTEDFPDM = #{IM_PRINTEDFPDM} </if>
<if test="IM_PRINTEDFPHM != null and IM_PRINTEDFPHM !='' "> and IM_PRINTEDFPHM = #{IM_PRINTEDFPHM} </if>
<if test="IM_COUNT != null "> and IM_COUNT = #{IM_COUNT} </if>
<if test="IM_AGENCY != null "> and IM_AGENCY = #{IM_AGENCY} </if>
<if test="IM_BLOCKCHAIN != null "> and IM_BLOCKCHAIN = #{IM_BLOCKCHAIN} </if>
<if test="IM_COMPANYSEAL != null "> and IM_COMPANYSEAL = #{IM_COMPANYSEAL} </if>
<if test="IM_COMPANYSEALDEPT != null and IM_COMPANYSEALDEPT !='' "> and IM_COMPANYSEALDEPT = #{IM_COMPANYSEALDEPT} </if>
<if test="IM_COMPANYSEALNUM != null and IM_COMPANYSEALNUM !='' "> and IM_COMPANYSEALNUM = #{IM_COMPANYSEALNUM} </if>
<if test="IM_SADDRESS != null and IM_SADDRESS !='' "> and IM_SADDRESS = #{IM_SADDRESS} </if>
<if test="IM_STEL != null and IM_STEL !='' "> and IM_STEL = #{IM_STEL} </if>
<if test="IM_SBANKNM != null and IM_SBANKNM !='' "> and IM_SBANKNM = #{IM_SBANKNM} </if>
<if test="IM_SBANKNO != null and IM_SBANKNO !='' "> and IM_SBANKNO = #{IM_SBANKNO} </if>
<if test="IM_BADDRESS != null and IM_BADDRESS !='' "> and IM_BADDRESS = #{IM_BADDRESS} </if>
<if test="IM_BTEL != null and IM_BTEL !='' "> and IM_BTEL = #{IM_BTEL} </if>
<if test="IM_BBANKNM != null and IM_BBANKNM !='' "> and IM_BBANKNM = #{IM_BBANKNM} </if>
<if test="IM_BBANKNO != null and IM_BBANKNO !='' "> and IM_BBANKNO = #{IM_BBANKNO} </if>
<if test="IM_DATETIME != null and IM_DATETIME !='' "> and IM_DATETIME = #{IM_DATETIME} </if>
<if test="IM_EDATETIME != null and IM_EDATETIME !='' "> and IM_EDATETIME = #{IM_EDATETIME} </if>
<if test="IM_TOTALAMOUNTOCR != null "> and IM_TOTALAMOUNTOCR = #{IM_TOTALAMOUNTOCR} </if>
<if test="IM_PAGER_ELECTRONIC != null "> and IM_PAGER_ELECTRONIC = #{IM_PAGER_ELECTRONIC} </if>
<if test="IM_ELECTRONIC_NUMBER != null and IM_ELECTRONIC_NUMBER !='' "> and IM_ELECTRONIC_NUMBER = #{IM_ELECTRONIC_NUMBER} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="LexmiscivInvoicemainEntity_list_like" resultMap="get-LexmiscivInvoicemainEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity">
select
<include refid="LexmiscivInvoicemainEntity_Base_Column_List" />
from LEXMISCIV_INVOICEMAIN
<trim prefix="where" prefixOverrides="and">
<if test="IM_ID != null ">IM_ID = #{IM_ID}</if>
<if test="IM_FPDM != null and IM_FPDM !='' "> and IM_FPDM like concat('%',#{IM_FPDM},'%') </if>
<if test="IM_FPHM != null and IM_FPHM !='' "> and IM_FPHM like concat('%',#{IM_FPHM},'%') </if>
<if test="IM_DATE != null and IM_DATE !='' "> and IM_DATE like concat('%',#{IM_DATE},'%') </if>
<if test="IM_CHECKCODE != null and IM_CHECKCODE !='' "> and IM_CHECKCODE like concat('%',#{IM_CHECKCODE},'%') </if>
<if test="IM_SALERTAXNO != null and IM_SALERTAXNO !='' "> and IM_SALERTAXNO like concat('%',#{IM_SALERTAXNO},'%') </if>
<if test="IM_SALERNAME != null and IM_SALERNAME !='' "> and IM_SALERNAME like concat('%',#{IM_SALERNAME},'%') </if>
<if test="IM_SALERADDRESS != null and IM_SALERADDRESS !='' "> and IM_SALERADDRESS like concat('%',#{IM_SALERADDRESS},'%') </if>
<if test="IM_SALERBANKNO != null and IM_SALERBANKNO !='' "> and IM_SALERBANKNO like concat('%',#{IM_SALERBANKNO},'%') </if>
<if test="IM_SALERBANKNM != null and IM_SALERBANKNM !='' "> and IM_SALERBANKNM like concat('%',#{IM_SALERBANKNM},'%') </if>
<if test="IM_BUYERTAXNO != null and IM_BUYERTAXNO !='' "> and IM_BUYERTAXNO like concat('%',#{IM_BUYERTAXNO},'%') </if>
<if test="IM_BUYERNAME != null and IM_BUYERNAME !='' "> and IM_BUYERNAME like concat('%',#{IM_BUYERNAME},'%') </if>
<if test="IM_BUYERADDRESS != null and IM_BUYERADDRESS !='' "> and IM_BUYERADDRESS like concat('%',#{IM_BUYERADDRESS},'%') </if>
<if test="IM_BUYERBANKNO != null and IM_BUYERBANKNO !='' "> and IM_BUYERBANKNO like concat('%',#{IM_BUYERBANKNO},'%') </if>
<if test="IM_BUYERBANKNM != null and IM_BUYERBANKNM !='' "> and IM_BUYERBANKNM like concat('%',#{IM_BUYERBANKNM},'%') </if>
<if test="IM_MAKERNM != null and IM_MAKERNM !='' "> and IM_MAKERNM like concat('%',#{IM_MAKERNM},'%') </if>
<if test="IM_PAYEE != null and IM_PAYEE !='' "> and IM_PAYEE like concat('%',#{IM_PAYEE},'%') </if>
<if test="IM_AUDITOR != null and IM_AUDITOR !='' "> and IM_AUDITOR like concat('%',#{IM_AUDITOR},'%') </if>
<if test="IM_NOTAXAMOUNT != null "> and IM_NOTAXAMOUNT = #{IM_NOTAXAMOUNT}</if>
<if test="IM_TAXAMOUNT != null "> and IM_TAXAMOUNT = #{IM_TAXAMOUNT}</if>
<if test="IM_TOTALAMOUNT != null "> and IM_TOTALAMOUNT = #{IM_TOTALAMOUNT}</if>
<if test="IM_TAX != null and IM_TAX !='' "> and IM_TAX like concat('%',#{IM_TAX},'%') </if>
<if test="IM_MACHINENO != null and IM_MACHINENO !='' "> and IM_MACHINENO like concat('%',#{IM_MACHINENO},'%') </if>
<if test="IM_MEMO != null and IM_MEMO !='' "> and IM_MEMO like concat('%',#{IM_MEMO},'%') </if>
<if test="IM_ENCRYPTIONCODE != null and IM_ENCRYPTIONCODE !='' "> and IM_ENCRYPTIONCODE like concat('%',#{IM_ENCRYPTIONCODE},'%') </if>
<if test="IM_TYPE != null and IM_TYPE !='' "> and IM_TYPE like concat('%',#{IM_TYPE},'%') </if>
<if test="IM_TYPENAME != null and IM_TYPENAME !='' "> and IM_TYPENAME like concat('%',#{IM_TYPENAME},'%') </if>
<if test="IM_XMMC != null and IM_XMMC !='' "> and IM_XMMC like concat('%',#{IM_XMMC},'%') </if>
<if test="IM_KEY != null and IM_KEY !='' "> and IM_KEY like concat('%',#{IM_KEY},'%') </if>
<if test="IM_AREACODE != null and IM_AREACODE !='' "> and IM_AREACODE like concat('%',#{IM_AREACODE},'%') </if>
<if test="IM_AREANAME != null and IM_AREANAME !='' "> and IM_AREANAME like concat('%',#{IM_AREANAME},'%') </if>
<if test="IM_PRINTEDFPDM != null and IM_PRINTEDFPDM !='' "> and IM_PRINTEDFPDM like concat('%',#{IM_PRINTEDFPDM},'%') </if>
<if test="IM_PRINTEDFPHM != null and IM_PRINTEDFPHM !='' "> and IM_PRINTEDFPHM like concat('%',#{IM_PRINTEDFPHM},'%') </if>
<if test="IM_COUNT != null "> and IM_COUNT = #{IM_COUNT}</if>
<if test="IM_AGENCY != null "> and IM_AGENCY = #{IM_AGENCY}</if>
<if test="IM_BLOCKCHAIN != null "> and IM_BLOCKCHAIN = #{IM_BLOCKCHAIN}</if>
<if test="IM_COMPANYSEAL != null "> and IM_COMPANYSEAL = #{IM_COMPANYSEAL}</if>
<if test="IM_COMPANYSEALDEPT != null and IM_COMPANYSEALDEPT !='' "> and IM_COMPANYSEALDEPT like concat('%',#{IM_COMPANYSEALDEPT},'%') </if>
<if test="IM_COMPANYSEALNUM != null and IM_COMPANYSEALNUM !='' "> and IM_COMPANYSEALNUM like concat('%',#{IM_COMPANYSEALNUM},'%') </if>
<if test="IM_SADDRESS != null and IM_SADDRESS !='' "> and IM_SADDRESS like concat('%',#{IM_SADDRESS},'%') </if>
<if test="IM_STEL != null and IM_STEL !='' "> and IM_STEL like concat('%',#{IM_STEL},'%') </if>
<if test="IM_SBANKNM != null and IM_SBANKNM !='' "> and IM_SBANKNM like concat('%',#{IM_SBANKNM},'%') </if>
<if test="IM_SBANKNO != null and IM_SBANKNO !='' "> and IM_SBANKNO like concat('%',#{IM_SBANKNO},'%') </if>
<if test="IM_BADDRESS != null and IM_BADDRESS !='' "> and IM_BADDRESS like concat('%',#{IM_BADDRESS},'%') </if>
<if test="IM_BTEL != null and IM_BTEL !='' "> and IM_BTEL like concat('%',#{IM_BTEL},'%') </if>
<if test="IM_BBANKNM != null and IM_BBANKNM !='' "> and IM_BBANKNM like concat('%',#{IM_BBANKNM},'%') </if>
<if test="IM_BBANKNO != null and IM_BBANKNO !='' "> and IM_BBANKNO like concat('%',#{IM_BBANKNO},'%') </if>
<if test="IM_DATETIME != null and IM_DATETIME !='' "> and IM_DATETIME like concat('%',#{IM_DATETIME},'%') </if>
<if test="IM_EDATETIME != null and IM_EDATETIME !='' "> and IM_EDATETIME like concat('%',#{IM_EDATETIME},'%') </if>
<if test="IM_TOTALAMOUNTOCR != null "> and IM_TOTALAMOUNTOCR = #{IM_TOTALAMOUNTOCR}</if>
<if test="IM_PAGER_ELECTRONIC != null "> and IM_PAGER_ELECTRONIC = #{IM_PAGER_ELECTRONIC}</if>
<if test="IM_ELECTRONIC_NUMBER != null and IM_ELECTRONIC_NUMBER !='' "> and IM_ELECTRONIC_NUMBER like concat('%',#{IM_ELECTRONIC_NUMBER},'%') </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="entity_list_or" resultMap="get-LexmiscivInvoicemainEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity">
select
<include refid="LexmiscivInvoicemainEntity_Base_Column_List" />
from LEXMISCIV_INVOICEMAIN
<trim prefix="where" prefixOverrides="or">
<if test="IM_ID != null ">IM_ID = #{IM_ID}</if>
<if test="IM_FPDM != null and IM_FPDM !='' "> or IM_FPDM = #{IM_FPDM} </if>
<if test="IM_FPHM != null and IM_FPHM !='' "> or IM_FPHM = #{IM_FPHM} </if>
<if test="IM_DATE != null and IM_DATE !='' "> or IM_DATE = #{IM_DATE} </if>
<if test="IM_CHECKCODE != null and IM_CHECKCODE !='' "> or IM_CHECKCODE = #{IM_CHECKCODE} </if>
<if test="IM_SALERTAXNO != null and IM_SALERTAXNO !='' "> or IM_SALERTAXNO = #{IM_SALERTAXNO} </if>
<if test="IM_SALERNAME != null and IM_SALERNAME !='' "> or IM_SALERNAME = #{IM_SALERNAME} </if>
<if test="IM_SALERADDRESS != null and IM_SALERADDRESS !='' "> or IM_SALERADDRESS = #{IM_SALERADDRESS} </if>
<if test="IM_SALERBANKNO != null and IM_SALERBANKNO !='' "> or IM_SALERBANKNO = #{IM_SALERBANKNO} </if>
<if test="IM_SALERBANKNM != null and IM_SALERBANKNM !='' "> or IM_SALERBANKNM = #{IM_SALERBANKNM} </if>
<if test="IM_BUYERTAXNO != null and IM_BUYERTAXNO !='' "> or IM_BUYERTAXNO = #{IM_BUYERTAXNO} </if>
<if test="IM_BUYERNAME != null and IM_BUYERNAME !='' "> or IM_BUYERNAME = #{IM_BUYERNAME} </if>
<if test="IM_BUYERADDRESS != null and IM_BUYERADDRESS !='' "> or IM_BUYERADDRESS = #{IM_BUYERADDRESS} </if>
<if test="IM_BUYERBANKNO != null and IM_BUYERBANKNO !='' "> or IM_BUYERBANKNO = #{IM_BUYERBANKNO} </if>
<if test="IM_BUYERBANKNM != null and IM_BUYERBANKNM !='' "> or IM_BUYERBANKNM = #{IM_BUYERBANKNM} </if>
<if test="IM_MAKERNM != null and IM_MAKERNM !='' "> or IM_MAKERNM = #{IM_MAKERNM} </if>
<if test="IM_PAYEE != null and IM_PAYEE !='' "> or IM_PAYEE = #{IM_PAYEE} </if>
<if test="IM_AUDITOR != null and IM_AUDITOR !='' "> or IM_AUDITOR = #{IM_AUDITOR} </if>
<if test="IM_NOTAXAMOUNT != null "> or IM_NOTAXAMOUNT = #{IM_NOTAXAMOUNT}</if>
<if test="IM_TAXAMOUNT != null "> or IM_TAXAMOUNT = #{IM_TAXAMOUNT}</if>
<if test="IM_TOTALAMOUNT != null "> or IM_TOTALAMOUNT = #{IM_TOTALAMOUNT}</if>
<if test="IM_TAX != null and IM_TAX !='' "> or IM_TAX = #{IM_TAX} </if>
<if test="IM_MACHINENO != null and IM_MACHINENO !='' "> or IM_MACHINENO = #{IM_MACHINENO} </if>
<if test="IM_MEMO != null and IM_MEMO !='' "> or IM_MEMO = #{IM_MEMO} </if>
<if test="IM_ENCRYPTIONCODE != null and IM_ENCRYPTIONCODE !='' "> or IM_ENCRYPTIONCODE = #{IM_ENCRYPTIONCODE} </if>
<if test="IM_TYPE != null and IM_TYPE !='' "> or IM_TYPE = #{IM_TYPE} </if>
<if test="IM_TYPENAME != null and IM_TYPENAME !='' "> or IM_TYPENAME = #{IM_TYPENAME} </if>
<if test="IM_XMMC != null and IM_XMMC !='' "> or IM_XMMC = #{IM_XMMC} </if>
<if test="IM_KEY != null and IM_KEY !='' "> or IM_KEY = #{IM_KEY} </if>
<if test="IM_AREACODE != null and IM_AREACODE !='' "> or IM_AREACODE = #{IM_AREACODE} </if>
<if test="IM_AREANAME != null and IM_AREANAME !='' "> or IM_AREANAME = #{IM_AREANAME} </if>
<if test="IM_PRINTEDFPDM != null and IM_PRINTEDFPDM !='' "> or IM_PRINTEDFPDM = #{IM_PRINTEDFPDM} </if>
<if test="IM_PRINTEDFPHM != null and IM_PRINTEDFPHM !='' "> or IM_PRINTEDFPHM = #{IM_PRINTEDFPHM} </if>
<if test="IM_COUNT != null "> or IM_COUNT = #{IM_COUNT}</if>
<if test="IM_AGENCY != null "> or IM_AGENCY = #{IM_AGENCY}</if>
<if test="IM_BLOCKCHAIN != null "> or IM_BLOCKCHAIN = #{IM_BLOCKCHAIN}</if>
<if test="IM_COMPANYSEAL != null "> or IM_COMPANYSEAL = #{IM_COMPANYSEAL}</if>
<if test="IM_COMPANYSEALDEPT != null and IM_COMPANYSEALDEPT !='' "> or IM_COMPANYSEALDEPT = #{IM_COMPANYSEALDEPT} </if>
<if test="IM_COMPANYSEALNUM != null and IM_COMPANYSEALNUM !='' "> or IM_COMPANYSEALNUM = #{IM_COMPANYSEALNUM} </if>
<if test="IM_SADDRESS != null and IM_SADDRESS !='' "> or IM_SADDRESS = #{IM_SADDRESS} </if>
<if test="IM_STEL != null and IM_STEL !='' "> or IM_STEL = #{IM_STEL} </if>
<if test="IM_SBANKNM != null and IM_SBANKNM !='' "> or IM_SBANKNM = #{IM_SBANKNM} </if>
<if test="IM_SBANKNO != null and IM_SBANKNO !='' "> or IM_SBANKNO = #{IM_SBANKNO} </if>
<if test="IM_BADDRESS != null and IM_BADDRESS !='' "> or IM_BADDRESS = #{IM_BADDRESS} </if>
<if test="IM_BTEL != null and IM_BTEL !='' "> or IM_BTEL = #{IM_BTEL} </if>
<if test="IM_BBANKNM != null and IM_BBANKNM !='' "> or IM_BBANKNM = #{IM_BBANKNM} </if>
<if test="IM_BBANKNO != null and IM_BBANKNO !='' "> or IM_BBANKNO = #{IM_BBANKNO} </if>
<if test="IM_DATETIME != null and IM_DATETIME !='' "> or IM_DATETIME = #{IM_DATETIME} </if>
<if test="IM_EDATETIME != null and IM_EDATETIME !='' "> or IM_EDATETIME = #{IM_EDATETIME} </if>
<if test="IM_TOTALAMOUNTOCR != null "> or IM_TOTALAMOUNTOCR = #{IM_TOTALAMOUNTOCR}</if>
<if test="IM_PAGER_ELECTRONIC != null "> or IM_PAGER_ELECTRONIC = #{IM_PAGER_ELECTRONIC}</if>
<if test="IM_ELECTRONIC_NUMBER != null and IM_ELECTRONIC_NUMBER !='' "> or IM_ELECTRONIC_NUMBER = #{IM_ELECTRONIC_NUMBER} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
</mapper>

View File

@ -0,0 +1,575 @@
package com.hzya.frame.plugin.cinvoice.lexmis.entity;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @description: 迈锐思-飞机行程单
* @tableName: LEXMISCIV_PLANETICKET
* @entityName: LexmiscivPlaneticketEntity
* @author: gjh
* @history: 1.0
*/
public class LexmiscivPlaneticketEntity extends BaseEntity {
public LexmiscivPlaneticketEntity(String PT_ID,String dataSourceCode) {
this.PT_ID = PT_ID;
this.setDataSourceCode(dataSourceCode);
}
/** 无备注 */
private String PT_ID;
/** 无备注 */
private String PT_ETICKETNO;
/** 无备注 */
private String PT_NO;
/** 无备注 */
private String PT_FSTATION;
/** 无备注 */
private String PT_TSTATION;
/** 无备注 */
private String PT_TSTATION1;
/** 无备注 */
private String PT_TSTATION2;
/** 无备注 */
private String PT_TSTATION3;
/** 无备注 */
private BigDecimal PT_PRICE;
/** 无备注 */
private String PT_FUNDSAMOUNT;
/** 无备注 */
private String PT_FUELAMOUNT;
/** 无备注 */
private String PT_TAXAMOUNT;
/** 无备注 */
private BigDecimal PT_AMOUNT;
/** 无备注 */
private String PT_TAXRATE;
/** 无备注 */
private BigDecimal PT_TAXRATEAMOUNT;
/** 无备注 */
private BigDecimal PT_NOTAXAMOUNT;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date PT_DATE;
/** 无备注 */
private String PT_TIME;
/** 无备注 */
private String PT_SERIALNO;
/** 无备注 */
private String PT_IDNO;
/** 无备注 */
private String PT_CUSTOMER;
/** 无备注 */
private String PT_CARRIER;
/** 无备注 */
private String PT_CLASS;
/** 无备注 */
private String PT_VALIDDATE;
/** 无备注 */
private String PT_INVALIDDATE;
/** 无备注 */
private String PT_ALLOW;
/** 无备注 */
private String PT_VALIDCODE;
/** 无备注 */
private String PT_INSURANCE;
/** 无备注 */
private String PT_SALERCODE;
/** 无备注 */
private String PT_SALERNAME;
/** 无备注 */
private Date PT_MAKEDATE;
/** 无备注 */
private String PT_KEY;
/** 无备注 */
private Integer PT_COUNT;
/** 无备注 */
private String PT_DATETIME;
/** 无备注 */
private String PT_EDATETIME;
/** 无备注 */
private String PT_INTERNATIONALFLAG;
/** 无备注 */
private String PT_MARKDESC;
/** 无备注 */
private String PT_GPNUMBER;
/** 无备注 */
private String PT_ISSUINGSTATE;
/** 无备注 */
private String PT_FPHM;
/** 无备注 */
private String PT_PROMPTINFO;
/** 无备注 */
private String PT_BUYERNAME;
/** 无备注 */
private String PT_BUYERTAXNO;
/** 无备注 */
private String PT_ORIGINALNUMBER;
/** 无备注 */
private String PT_RUSHREDREASON;
/** 无备注 */
private String PT_ELECTRONICMARK;
/** 无备注 */
public void setPT_ID(String PT_ID) {
this.PT_ID = PT_ID;
}
/** 无备注 */
public String getPT_ID() {
return PT_ID;
}
/** 无备注 */
public void setPT_ETICKETNO(String PT_ETICKETNO) {
this.PT_ETICKETNO = PT_ETICKETNO;
}
/** 无备注 */
public String getPT_ETICKETNO() {
return PT_ETICKETNO;
}
/** 无备注 */
public void setPT_NO(String PT_NO) {
this.PT_NO = PT_NO;
}
/** 无备注 */
public String getPT_NO() {
return PT_NO;
}
/** 无备注 */
public void setPT_FSTATION(String PT_FSTATION) {
this.PT_FSTATION = PT_FSTATION;
}
/** 无备注 */
public String getPT_FSTATION() {
return PT_FSTATION;
}
/** 无备注 */
public void setPT_TSTATION(String PT_TSTATION) {
this.PT_TSTATION = PT_TSTATION;
}
/** 无备注 */
public String getPT_TSTATION() {
return PT_TSTATION;
}
/** 无备注 */
public void setPT_TSTATION1(String PT_TSTATION1) {
this.PT_TSTATION1 = PT_TSTATION1;
}
/** 无备注 */
public String getPT_TSTATION1() {
return PT_TSTATION1;
}
/** 无备注 */
public void setPT_TSTATION2(String PT_TSTATION2) {
this.PT_TSTATION2 = PT_TSTATION2;
}
/** 无备注 */
public String getPT_TSTATION2() {
return PT_TSTATION2;
}
/** 无备注 */
public void setPT_TSTATION3(String PT_TSTATION3) {
this.PT_TSTATION3 = PT_TSTATION3;
}
/** 无备注 */
public String getPT_TSTATION3() {
return PT_TSTATION3;
}
/** 无备注 */
public void setPT_PRICE(BigDecimal PT_PRICE) {
this.PT_PRICE = PT_PRICE;
}
/** 无备注 */
public BigDecimal getPT_PRICE() {
return PT_PRICE;
}
/** 无备注 */
public void setPT_FUNDSAMOUNT(String PT_FUNDSAMOUNT) {
this.PT_FUNDSAMOUNT = PT_FUNDSAMOUNT;
}
/** 无备注 */
public String getPT_FUNDSAMOUNT() {
return PT_FUNDSAMOUNT;
}
/** 无备注 */
public void setPT_FUELAMOUNT(String PT_FUELAMOUNT) {
this.PT_FUELAMOUNT = PT_FUELAMOUNT;
}
/** 无备注 */
public String getPT_FUELAMOUNT() {
return PT_FUELAMOUNT;
}
/** 无备注 */
public void setPT_TAXAMOUNT(String PT_TAXAMOUNT) {
this.PT_TAXAMOUNT = PT_TAXAMOUNT;
}
/** 无备注 */
public String getPT_TAXAMOUNT() {
return PT_TAXAMOUNT;
}
/** 无备注 */
public void setPT_AMOUNT(BigDecimal PT_AMOUNT) {
this.PT_AMOUNT = PT_AMOUNT;
}
/** 无备注 */
public BigDecimal getPT_AMOUNT() {
return PT_AMOUNT;
}
/** 无备注 */
public void setPT_TAXRATE(String PT_TAXRATE) {
this.PT_TAXRATE = PT_TAXRATE;
}
/** 无备注 */
public String getPT_TAXRATE() {
return PT_TAXRATE;
}
/** 无备注 */
public void setPT_TAXRATEAMOUNT(BigDecimal PT_TAXRATEAMOUNT) {
this.PT_TAXRATEAMOUNT = PT_TAXRATEAMOUNT;
}
/** 无备注 */
public BigDecimal getPT_TAXRATEAMOUNT() {
return PT_TAXRATEAMOUNT;
}
/** 无备注 */
public void setPT_NOTAXAMOUNT(BigDecimal PT_NOTAXAMOUNT) {
this.PT_NOTAXAMOUNT = PT_NOTAXAMOUNT;
}
/** 无备注 */
public BigDecimal getPT_NOTAXAMOUNT() {
return PT_NOTAXAMOUNT;
}
/** 无备注 */
public void setPT_DATE(Date PT_DATE) {
this.PT_DATE = PT_DATE;
}
/** 无备注 */
public Date getPT_DATE() {
return PT_DATE;
}
/** 无备注 */
public void setPT_TIME(String PT_TIME) {
this.PT_TIME = PT_TIME;
}
/** 无备注 */
public String getPT_TIME() {
return PT_TIME;
}
/** 无备注 */
public void setPT_SERIALNO(String PT_SERIALNO) {
this.PT_SERIALNO = PT_SERIALNO;
}
/** 无备注 */
public String getPT_SERIALNO() {
return PT_SERIALNO;
}
/** 无备注 */
public void setPT_IDNO(String PT_IDNO) {
this.PT_IDNO = PT_IDNO;
}
/** 无备注 */
public String getPT_IDNO() {
return PT_IDNO;
}
/** 无备注 */
public void setPT_CUSTOMER(String PT_CUSTOMER) {
this.PT_CUSTOMER = PT_CUSTOMER;
}
/** 无备注 */
public String getPT_CUSTOMER() {
return PT_CUSTOMER;
}
/** 无备注 */
public void setPT_CARRIER(String PT_CARRIER) {
this.PT_CARRIER = PT_CARRIER;
}
/** 无备注 */
public String getPT_CARRIER() {
return PT_CARRIER;
}
/** 无备注 */
public void setPT_CLASS(String PT_CLASS) {
this.PT_CLASS = PT_CLASS;
}
/** 无备注 */
public String getPT_CLASS() {
return PT_CLASS;
}
/** 无备注 */
public void setPT_VALIDDATE(String PT_VALIDDATE) {
this.PT_VALIDDATE = PT_VALIDDATE;
}
/** 无备注 */
public String getPT_VALIDDATE() {
return PT_VALIDDATE;
}
/** 无备注 */
public void setPT_INVALIDDATE(String PT_INVALIDDATE) {
this.PT_INVALIDDATE = PT_INVALIDDATE;
}
/** 无备注 */
public String getPT_INVALIDDATE() {
return PT_INVALIDDATE;
}
/** 无备注 */
public void setPT_ALLOW(String PT_ALLOW) {
this.PT_ALLOW = PT_ALLOW;
}
/** 无备注 */
public String getPT_ALLOW() {
return PT_ALLOW;
}
/** 无备注 */
public void setPT_VALIDCODE(String PT_VALIDCODE) {
this.PT_VALIDCODE = PT_VALIDCODE;
}
/** 无备注 */
public String getPT_VALIDCODE() {
return PT_VALIDCODE;
}
/** 无备注 */
public void setPT_INSURANCE(String PT_INSURANCE) {
this.PT_INSURANCE = PT_INSURANCE;
}
/** 无备注 */
public String getPT_INSURANCE() {
return PT_INSURANCE;
}
/** 无备注 */
public void setPT_SALERCODE(String PT_SALERCODE) {
this.PT_SALERCODE = PT_SALERCODE;
}
/** 无备注 */
public String getPT_SALERCODE() {
return PT_SALERCODE;
}
/** 无备注 */
public void setPT_SALERNAME(String PT_SALERNAME) {
this.PT_SALERNAME = PT_SALERNAME;
}
/** 无备注 */
public String getPT_SALERNAME() {
return PT_SALERNAME;
}
/** 无备注 */
public void setPT_MAKEDATE(Date PT_MAKEDATE) {
this.PT_MAKEDATE = PT_MAKEDATE;
}
/** 无备注 */
public Date getPT_MAKEDATE() {
return PT_MAKEDATE;
}
/** 无备注 */
public void setPT_KEY(String PT_KEY) {
this.PT_KEY = PT_KEY;
}
/** 无备注 */
public String getPT_KEY() {
return PT_KEY;
}
/** 无备注 */
public void setPT_COUNT(Integer PT_COUNT) {
this.PT_COUNT = PT_COUNT;
}
/** 无备注 */
public Integer getPT_COUNT() {
return PT_COUNT;
}
/** 无备注 */
public void setPT_DATETIME(String PT_DATETIME) {
this.PT_DATETIME = PT_DATETIME;
}
/** 无备注 */
public String getPT_DATETIME() {
return PT_DATETIME;
}
/** 无备注 */
public void setPT_EDATETIME(String PT_EDATETIME) {
this.PT_EDATETIME = PT_EDATETIME;
}
/** 无备注 */
public String getPT_EDATETIME() {
return PT_EDATETIME;
}
/** 无备注 */
public void setPT_INTERNATIONALFLAG(String PT_INTERNATIONALFLAG) {
this.PT_INTERNATIONALFLAG = PT_INTERNATIONALFLAG;
}
/** 无备注 */
public String getPT_INTERNATIONALFLAG() {
return PT_INTERNATIONALFLAG;
}
/** 无备注 */
public void setPT_MARKDESC(String PT_MARKDESC) {
this.PT_MARKDESC = PT_MARKDESC;
}
/** 无备注 */
public String getPT_MARKDESC() {
return PT_MARKDESC;
}
/** 无备注 */
public void setPT_GPNUMBER(String PT_GPNUMBER) {
this.PT_GPNUMBER = PT_GPNUMBER;
}
/** 无备注 */
public String getPT_GPNUMBER() {
return PT_GPNUMBER;
}
/** 无备注 */
public void setPT_ISSUINGSTATE(String PT_ISSUINGSTATE) {
this.PT_ISSUINGSTATE = PT_ISSUINGSTATE;
}
/** 无备注 */
public String getPT_ISSUINGSTATE() {
return PT_ISSUINGSTATE;
}
/** 无备注 */
public void setPT_FPHM(String PT_FPHM) {
this.PT_FPHM = PT_FPHM;
}
/** 无备注 */
public String getPT_FPHM() {
return PT_FPHM;
}
/** 无备注 */
public void setPT_PROMPTINFO(String PT_PROMPTINFO) {
this.PT_PROMPTINFO = PT_PROMPTINFO;
}
/** 无备注 */
public String getPT_PROMPTINFO() {
return PT_PROMPTINFO;
}
/** 无备注 */
public void setPT_BUYERNAME(String PT_BUYERNAME) {
this.PT_BUYERNAME = PT_BUYERNAME;
}
/** 无备注 */
public String getPT_BUYERNAME() {
return PT_BUYERNAME;
}
/** 无备注 */
public void setPT_BUYERTAXNO(String PT_BUYERTAXNO) {
this.PT_BUYERTAXNO = PT_BUYERTAXNO;
}
/** 无备注 */
public String getPT_BUYERTAXNO() {
return PT_BUYERTAXNO;
}
/** 无备注 */
public void setPT_ORIGINALNUMBER(String PT_ORIGINALNUMBER) {
this.PT_ORIGINALNUMBER = PT_ORIGINALNUMBER;
}
/** 无备注 */
public String getPT_ORIGINALNUMBER() {
return PT_ORIGINALNUMBER;
}
/** 无备注 */
public void setPT_RUSHREDREASON(String PT_RUSHREDREASON) {
this.PT_RUSHREDREASON = PT_RUSHREDREASON;
}
/** 无备注 */
public String getPT_RUSHREDREASON() {
return PT_RUSHREDREASON;
}
/** 无备注 */
public void setPT_ELECTRONICMARK(String PT_ELECTRONICMARK) {
this.PT_ELECTRONICMARK = PT_ELECTRONICMARK;
}
/** 无备注 */
public String getPT_ELECTRONICMARK() {
return PT_ELECTRONICMARK;
}
}

View File

@ -0,0 +1,385 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.cinvoice.lexmis.dao.impl.LexmiscivPlaneticketDaoImpl">
<resultMap id="get-LexmiscivPlaneticketEntity-result" type="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
<!--无备注 -->
<result property="PT_ID" column="PT_ID" />
<!--无备注 -->
<result property="PT_ETICKETNO" column="PT_ETICKETNO" />
<!--无备注 -->
<result property="PT_NO" column="PT_NO" />
<!--无备注 -->
<result property="PT_FSTATION" column="PT_FSTATION" />
<!--无备注 -->
<result property="PT_TSTATION" column="PT_TSTATION" />
<!--无备注 -->
<result property="PT_TSTATION1" column="PT_TSTATION1" />
<!--无备注 -->
<result property="PT_TSTATION2" column="PT_TSTATION2" />
<!--无备注 -->
<result property="PT_TSTATION3" column="PT_TSTATION3" />
<!--无备注 -->
<result property="PT_PRICE" column="PT_PRICE" />
<!--无备注 -->
<result property="PT_FUNDSAMOUNT" column="PT_FUNDSAMOUNT" />
<!--无备注 -->
<result property="PT_FUELAMOUNT" column="PT_FUELAMOUNT" />
<!--无备注 -->
<result property="PT_TAXAMOUNT" column="PT_TAXAMOUNT" />
<!--无备注 -->
<result property="PT_AMOUNT" column="PT_AMOUNT" />
<!--无备注 -->
<result property="PT_TAXRATE" column="PT_TAXRATE" />
<!--无备注 -->
<result property="PT_TAXRATEAMOUNT" column="PT_TAXRATEAMOUNT" />
<!--无备注 -->
<result property="PT_NOTAXAMOUNT" column="PT_NOTAXAMOUNT" />
<!--无备注 -->
<result property="PT_DATE" column="PT_DATE" />
<!--无备注 -->
<result property="PT_TIME" column="PT_TIME" />
<!--无备注 -->
<result property="PT_SERIALNO" column="PT_SERIALNO" />
<!--无备注 -->
<result property="PT_IDNO" column="PT_IDNO" />
<!--无备注 -->
<result property="PT_CUSTOMER" column="PT_CUSTOMER" />
<!--无备注 -->
<result property="PT_CARRIER" column="PT_CARRIER" />
<!--无备注 -->
<result property="PT_CLASS" column="PT_CLASS" />
<!--无备注 -->
<result property="PT_VALIDDATE" column="PT_VALIDDATE" />
<!--无备注 -->
<result property="PT_INVALIDDATE" column="PT_INVALIDDATE" />
<!--无备注 -->
<result property="PT_ALLOW" column="PT_ALLOW" />
<!--无备注 -->
<result property="PT_VALIDCODE" column="PT_VALIDCODE" />
<!--无备注 -->
<result property="PT_INSURANCE" column="PT_INSURANCE" />
<!--无备注 -->
<result property="PT_SALERCODE" column="PT_SALERCODE" />
<!--无备注 -->
<result property="PT_SALERNAME" column="PT_SALERNAME" />
<!--无备注 -->
<result property="PT_MAKEDATE" column="PT_MAKEDATE" />
<!--无备注 -->
<result property="PT_KEY" column="PT_KEY" />
<!--无备注 -->
<result property="PT_COUNT" column="PT_COUNT" />
<!--无备注 -->
<result property="PT_DATETIME" column="PT_DATETIME" />
<!--无备注 -->
<result property="PT_EDATETIME" column="PT_EDATETIME" />
<!--无备注 -->
<result property="PT_INTERNATIONALFLAG" column="PT_INTERNATIONALFLAG" />
<!--无备注 -->
<result property="PT_MARKDESC" column="PT_MARKDESC" />
<!--无备注 -->
<result property="PT_GPNUMBER" column="PT_GPNUMBER" />
<!--无备注 -->
<result property="PT_ISSUINGSTATE" column="PT_ISSUINGSTATE" />
<!--无备注 -->
<result property="PT_FPHM" column="PT_FPHM" />
<!--无备注 -->
<result property="PT_PROMPTINFO" column="PT_PROMPTINFO" />
<!--无备注 -->
<result property="PT_BUYERNAME" column="PT_BUYERNAME" />
<!--无备注 -->
<result property="PT_BUYERTAXNO" column="PT_BUYERTAXNO" />
<!--无备注 -->
<result property="PT_ORIGINALNUMBER" column="PT_ORIGINALNUMBER" />
<!--无备注 -->
<result property="PT_RUSHREDREASON" column="PT_RUSHREDREASON" />
<!--无备注 -->
<result property="PT_ELECTRONICMARK" column="PT_ELECTRONICMARK" />
</resultMap>
<sql id="LexmiscivPlaneticketEntity_Base_Column_List">
PT_ID,
PT_ETICKETNO,
PT_NO,
PT_FSTATION,
PT_TSTATION,
PT_TSTATION1,
PT_TSTATION2,
PT_TSTATION3,
PT_PRICE,
PT_FUNDSAMOUNT,
PT_FUELAMOUNT,
PT_TAXAMOUNT,
PT_AMOUNT,
PT_TAXRATE,
PT_TAXRATEAMOUNT,
PT_NOTAXAMOUNT,
PT_DATE,
PT_TIME,
PT_SERIALNO,
PT_IDNO,
PT_CUSTOMER,
PT_CARRIER,
PT_CLASS,
PT_VALIDDATE,
PT_INVALIDDATE,
PT_ALLOW,
PT_VALIDCODE,
PT_INSURANCE,
PT_SALERCODE,
PT_SALERNAME,
PT_MAKEDATE,
PT_KEY,
PT_COUNT,
PT_DATETIME,
PT_EDATETIME,
PT_INTERNATIONALFLAG,
PT_MARKDESC,
PT_GPNUMBER,
PT_ISSUINGSTATE,
PT_FPHM,
PT_PROMPTINFO,
PT_BUYERNAME,
PT_BUYERTAXNO,
PT_ORIGINALNUMBER,
PT_RUSHREDREASON,
PT_ELECTRONICMARK
</sql>
<!--通过ID获取数据 -->
<select id="entity_get" resultMap="get-LexmiscivPlaneticketEntity-result">
select
<include refid="LexmiscivPlaneticketEntity_Base_Column_List" />
from LEXMISCIV_PLANETICKET where id = #{ id }
</select>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-LexmiscivPlaneticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
select
<include refid="LexmiscivPlaneticketEntity_Base_Column_List" />
from LEXMISCIV_PLANETICKET
<trim prefix="where" prefixOverrides="and">
<if test="PT_ID != null ">PT_ID=#{PT_ID}</if>
<if test="PT_ETICKETNO != null and PT_ETICKETNO !='' "> and PT_ETICKETNO = #{PT_ETICKETNO}</if>
<if test="PT_NO != null and PT_NO !='' "> and PT_NO = #{PT_NO}</if>
<if test="PT_FSTATION != null and PT_FSTATION !='' "> and PT_FSTATION = #{PT_FSTATION}</if>
<if test="PT_TSTATION != null and PT_TSTATION !='' "> and PT_TSTATION = #{PT_TSTATION}</if>
<if test="PT_TSTATION1 != null and PT_TSTATION1 !='' "> and PT_TSTATION1 = #{PT_TSTATION1}</if>
<if test="PT_TSTATION2 != null and PT_TSTATION2 !='' "> and PT_TSTATION2 = #{PT_TSTATION2}</if>
<if test="PT_TSTATION3 != null and PT_TSTATION3 !='' "> and PT_TSTATION3 = #{PT_TSTATION3}</if>
<if test="PT_PRICE != null "> and PT_PRICE = #{PT_PRICE}</if>
<if test="PT_FUNDSAMOUNT != null and PT_FUNDSAMOUNT !='' "> and PT_FUNDSAMOUNT = #{PT_FUNDSAMOUNT}</if>
<if test="PT_FUELAMOUNT != null and PT_FUELAMOUNT !='' "> and PT_FUELAMOUNT = #{PT_FUELAMOUNT}</if>
<if test="PT_TAXAMOUNT != null and PT_TAXAMOUNT !='' "> and PT_TAXAMOUNT = #{PT_TAXAMOUNT}</if>
<if test="PT_AMOUNT != null "> and PT_AMOUNT = #{PT_AMOUNT}</if>
<if test="PT_TAXRATE != null and PT_TAXRATE !='' "> and PT_TAXRATE = #{PT_TAXRATE}</if>
<if test="PT_TAXRATEAMOUNT != null "> and PT_TAXRATEAMOUNT = #{PT_TAXRATEAMOUNT}</if>
<if test="PT_NOTAXAMOUNT != null "> and PT_NOTAXAMOUNT = #{PT_NOTAXAMOUNT}</if>
<if test="PT_DATE != null "> and PT_DATE = #{PT_DATE}</if>
<if test="PT_TIME != null and PT_TIME !='' "> and PT_TIME = #{PT_TIME}</if>
<if test="PT_SERIALNO != null and PT_SERIALNO !='' "> and PT_SERIALNO = #{PT_SERIALNO}</if>
<if test="PT_IDNO != null and PT_IDNO !='' "> and PT_IDNO = #{PT_IDNO}</if>
<if test="PT_CUSTOMER != null and PT_CUSTOMER !='' "> and PT_CUSTOMER = #{PT_CUSTOMER}</if>
<if test="PT_CARRIER != null and PT_CARRIER !='' "> and PT_CARRIER = #{PT_CARRIER}</if>
<if test="PT_CLASS != null and PT_CLASS !='' "> and PT_CLASS = #{PT_CLASS}</if>
<if test="PT_VALIDDATE != null and PT_VALIDDATE !='' "> and PT_VALIDDATE = #{PT_VALIDDATE}</if>
<if test="PT_INVALIDDATE != null and PT_INVALIDDATE !='' "> and PT_INVALIDDATE = #{PT_INVALIDDATE}</if>
<if test="PT_ALLOW != null and PT_ALLOW !='' "> and PT_ALLOW = #{PT_ALLOW}</if>
<if test="PT_VALIDCODE != null and PT_VALIDCODE !='' "> and PT_VALIDCODE = #{PT_VALIDCODE}</if>
<if test="PT_INSURANCE != null and PT_INSURANCE !='' "> and PT_INSURANCE = #{PT_INSURANCE}</if>
<if test="PT_SALERCODE != null and PT_SALERCODE !='' "> and PT_SALERCODE = #{PT_SALERCODE}</if>
<if test="PT_SALERNAME != null and PT_SALERNAME !='' "> and PT_SALERNAME = #{PT_SALERNAME}</if>
<if test="PT_MAKEDATE != null and PT_MAKEDATE !='' "> and PT_MAKEDATE = #{PT_MAKEDATE}</if>
<if test="PT_KEY != null and PT_KEY !='' "> and PT_KEY = #{PT_KEY}</if>
<if test="PT_COUNT != null "> and PT_COUNT = #{PT_COUNT}</if>
<if test="PT_DATETIME != null and PT_DATETIME !='' "> and PT_DATETIME = #{PT_DATETIME}</if>
<if test="PT_EDATETIME != null and PT_EDATETIME !='' "> and PT_EDATETIME = #{PT_EDATETIME}</if>
<if test="PT_INTERNATIONALFLAG != null and PT_INTERNATIONALFLAG !='' "> and PT_INTERNATIONALFLAG = #{PT_INTERNATIONALFLAG}</if>
<if test="PT_MARKDESC != null and PT_MARKDESC !='' "> and PT_MARKDESC = #{PT_MARKDESC}</if>
<if test="PT_GPNUMBER != null and PT_GPNUMBER !='' "> and PT_GPNUMBER = #{PT_GPNUMBER}</if>
<if test="PT_ISSUINGSTATE != null and PT_ISSUINGSTATE !='' "> and PT_ISSUINGSTATE = #{PT_ISSUINGSTATE}</if>
<if test="PT_FPHM != null and PT_FPHM !='' "> and PT_FPHM = #{PT_FPHM}</if>
<if test="PT_PROMPTINFO != null and PT_PROMPTINFO !='' "> and PT_PROMPTINFO = #{PT_PROMPTINFO}</if>
<if test="PT_BUYERNAME != null and PT_BUYERNAME !='' "> and PT_BUYERNAME = #{PT_BUYERNAME}</if>
<if test="PT_BUYERTAXNO != null and PT_BUYERTAXNO !='' "> and PT_BUYERTAXNO = #{PT_BUYERTAXNO}</if>
<if test="PT_ORIGINALNUMBER != null and PT_ORIGINALNUMBER !='' "> and PT_ORIGINALNUMBER = #{PT_ORIGINALNUMBER}</if>
<if test="PT_RUSHREDREASON != null and PT_RUSHREDREASON !='' "> and PT_RUSHREDREASON = #{PT_RUSHREDREASON}</if>
<if test="PT_ELECTRONICMARK != null and PT_ELECTRONICMARK !='' "> and PT_ELECTRONICMARK = #{PT_ELECTRONICMARK}</if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="LexmiscivPlaneticketEntity_count" resultType="Integer" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
select count(1) from LEXMISCIV_PLANETICKET
<trim prefix="where" prefixOverrides="and">
<if test="PT_ID != null ">PT_ID = #{PT_ID}</if>
<if test="PT_ETICKETNO != null and PT_ETICKETNO !='' "> and PT_ETICKETNO = #{PT_ETICKETNO} </if>
<if test="PT_NO != null and PT_NO !='' "> and PT_NO = #{PT_NO} </if>
<if test="PT_FSTATION != null and PT_FSTATION !='' "> and PT_FSTATION = #{PT_FSTATION} </if>
<if test="PT_TSTATION != null and PT_TSTATION !='' "> and PT_TSTATION = #{PT_TSTATION} </if>
<if test="PT_TSTATION1 != null and PT_TSTATION1 !='' "> and PT_TSTATION1 = #{PT_TSTATION1} </if>
<if test="PT_TSTATION2 != null and PT_TSTATION2 !='' "> and PT_TSTATION2 = #{PT_TSTATION2} </if>
<if test="PT_TSTATION3 != null and PT_TSTATION3 !='' "> and PT_TSTATION3 = #{PT_TSTATION3} </if>
<if test="PT_PRICE != null "> and PT_PRICE = #{PT_PRICE} </if>
<if test="PT_FUNDSAMOUNT != null and PT_FUNDSAMOUNT !='' "> and PT_FUNDSAMOUNT = #{PT_FUNDSAMOUNT} </if>
<if test="PT_FUELAMOUNT != null and PT_FUELAMOUNT !='' "> and PT_FUELAMOUNT = #{PT_FUELAMOUNT} </if>
<if test="PT_TAXAMOUNT != null and PT_TAXAMOUNT !='' "> and PT_TAXAMOUNT = #{PT_TAXAMOUNT} </if>
<if test="PT_AMOUNT != null "> and PT_AMOUNT = #{PT_AMOUNT} </if>
<if test="PT_TAXRATE != null and PT_TAXRATE !='' "> and PT_TAXRATE = #{PT_TAXRATE} </if>
<if test="PT_TAXRATEAMOUNT != null "> and PT_TAXRATEAMOUNT = #{PT_TAXRATEAMOUNT} </if>
<if test="PT_NOTAXAMOUNT != null "> and PT_NOTAXAMOUNT = #{PT_NOTAXAMOUNT} </if>
<if test="PT_DATE != null "> and PT_DATE = #{PT_DATE} </if>
<if test="PT_TIME != null and PT_TIME !='' "> and PT_TIME = #{PT_TIME} </if>
<if test="PT_SERIALNO != null and PT_SERIALNO !='' "> and PT_SERIALNO = #{PT_SERIALNO} </if>
<if test="PT_IDNO != null and PT_IDNO !='' "> and PT_IDNO = #{PT_IDNO} </if>
<if test="PT_CUSTOMER != null and PT_CUSTOMER !='' "> and PT_CUSTOMER = #{PT_CUSTOMER} </if>
<if test="PT_CARRIER != null and PT_CARRIER !='' "> and PT_CARRIER = #{PT_CARRIER} </if>
<if test="PT_CLASS != null and PT_CLASS !='' "> and PT_CLASS = #{PT_CLASS} </if>
<if test="PT_VALIDDATE != null and PT_VALIDDATE !='' "> and PT_VALIDDATE = #{PT_VALIDDATE} </if>
<if test="PT_INVALIDDATE != null and PT_INVALIDDATE !='' "> and PT_INVALIDDATE = #{PT_INVALIDDATE} </if>
<if test="PT_ALLOW != null and PT_ALLOW !='' "> and PT_ALLOW = #{PT_ALLOW} </if>
<if test="PT_VALIDCODE != null and PT_VALIDCODE !='' "> and PT_VALIDCODE = #{PT_VALIDCODE} </if>
<if test="PT_INSURANCE != null and PT_INSURANCE !='' "> and PT_INSURANCE = #{PT_INSURANCE} </if>
<if test="PT_SALERCODE != null and PT_SALERCODE !='' "> and PT_SALERCODE = #{PT_SALERCODE} </if>
<if test="PT_SALERNAME != null and PT_SALERNAME !='' "> and PT_SALERNAME = #{PT_SALERNAME} </if>
<if test="PT_MAKEDATE != null and PT_MAKEDATE !='' "> and PT_MAKEDATE = #{PT_MAKEDATE} </if>
<if test="PT_KEY != null and PT_KEY !='' "> and PT_KEY = #{PT_KEY} </if>
<if test="PT_COUNT != null "> and PT_COUNT = #{PT_COUNT} </if>
<if test="PT_DATETIME != null and PT_DATETIME !='' "> and PT_DATETIME = #{PT_DATETIME} </if>
<if test="PT_EDATETIME != null and PT_EDATETIME !='' "> and PT_EDATETIME = #{PT_EDATETIME} </if>
<if test="PT_INTERNATIONALFLAG != null and PT_INTERNATIONALFLAG !='' "> and PT_INTERNATIONALFLAG = #{PT_INTERNATIONALFLAG} </if>
<if test="PT_MARKDESC != null and PT_MARKDESC !='' "> and PT_MARKDESC = #{PT_MARKDESC} </if>
<if test="PT_GPNUMBER != null and PT_GPNUMBER !='' "> and PT_GPNUMBER = #{PT_GPNUMBER} </if>
<if test="PT_ISSUINGSTATE != null and PT_ISSUINGSTATE !='' "> and PT_ISSUINGSTATE = #{PT_ISSUINGSTATE} </if>
<if test="PT_FPHM != null and PT_FPHM !='' "> and PT_FPHM = #{PT_FPHM} </if>
<if test="PT_PROMPTINFO != null and PT_PROMPTINFO !='' "> and PT_PROMPTINFO = #{PT_PROMPTINFO} </if>
<if test="PT_BUYERNAME != null and PT_BUYERNAME !='' "> and PT_BUYERNAME = #{PT_BUYERNAME} </if>
<if test="PT_BUYERTAXNO != null and PT_BUYERTAXNO !='' "> and PT_BUYERTAXNO = #{PT_BUYERTAXNO} </if>
<if test="PT_ORIGINALNUMBER != null and PT_ORIGINALNUMBER !='' "> and PT_ORIGINALNUMBER = #{PT_ORIGINALNUMBER} </if>
<if test="PT_RUSHREDREASON != null and PT_RUSHREDREASON !='' "> and PT_RUSHREDREASON = #{PT_RUSHREDREASON} </if>
<if test="PT_ELECTRONICMARK != null and PT_ELECTRONICMARK !='' "> and PT_ELECTRONICMARK = #{PT_ELECTRONICMARK} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="LexmiscivPlaneticketEntity_list_like" resultMap="get-LexmiscivPlaneticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
select
<include refid="LexmiscivPlaneticketEntity_Base_Column_List" />
from LEXMISCIV_PLANETICKET
<trim prefix="where" prefixOverrides="and">
<if test="PT_ID != null ">PT_ID = #{PT_ID}</if>
<if test="PT_ETICKETNO != null and PT_ETICKETNO !='' "> and PT_ETICKETNO like concat('%',#{PT_ETICKETNO},'%') </if>
<if test="PT_NO != null and PT_NO !='' "> and PT_NO like concat('%',#{PT_NO},'%') </if>
<if test="PT_FSTATION != null and PT_FSTATION !='' "> and PT_FSTATION like concat('%',#{PT_FSTATION},'%') </if>
<if test="PT_TSTATION != null and PT_TSTATION !='' "> and PT_TSTATION like concat('%',#{PT_TSTATION},'%') </if>
<if test="PT_TSTATION1 != null and PT_TSTATION1 !='' "> and PT_TSTATION1 like concat('%',#{PT_TSTATION1},'%') </if>
<if test="PT_TSTATION2 != null and PT_TSTATION2 !='' "> and PT_TSTATION2 like concat('%',#{PT_TSTATION2},'%') </if>
<if test="PT_TSTATION3 != null and PT_TSTATION3 !='' "> and PT_TSTATION3 like concat('%',#{PT_TSTATION3},'%') </if>
<if test="PT_PRICE != null "> and PT_PRICE = #{PT_PRICE}</if>
<if test="PT_FUNDSAMOUNT != null and PT_FUNDSAMOUNT !='' "> and PT_FUNDSAMOUNT like concat('%',#{PT_FUNDSAMOUNT},'%') </if>
<if test="PT_FUELAMOUNT != null and PT_FUELAMOUNT !='' "> and PT_FUELAMOUNT like concat('%',#{PT_FUELAMOUNT},'%') </if>
<if test="PT_TAXAMOUNT != null and PT_TAXAMOUNT !='' "> and PT_TAXAMOUNT like concat('%',#{PT_TAXAMOUNT},'%') </if>
<if test="PT_AMOUNT != null "> and PT_AMOUNT = #{PT_AMOUNT}</if>
<if test="PT_TAXRATE != null and PT_TAXRATE !='' "> and PT_TAXRATE like concat('%',#{PT_TAXRATE},'%') </if>
<if test="PT_TAXRATEAMOUNT != null "> and PT_TAXRATEAMOUNT = #{PT_TAXRATEAMOUNT}</if>
<if test="PT_NOTAXAMOUNT != null "> and PT_NOTAXAMOUNT = #{PT_NOTAXAMOUNT}</if>
<if test="PT_DATE != null and PT_DATE !='' "> and PT_DATE like concat('%',#{PT_DATE},'%') </if>
<if test="PT_TIME != null and PT_TIME !='' "> and PT_TIME like concat('%',#{PT_TIME},'%') </if>
<if test="PT_SERIALNO != null and PT_SERIALNO !='' "> and PT_SERIALNO like concat('%',#{PT_SERIALNO},'%') </if>
<if test="PT_IDNO != null and PT_IDNO !='' "> and PT_IDNO like concat('%',#{PT_IDNO},'%') </if>
<if test="PT_CUSTOMER != null and PT_CUSTOMER !='' "> and PT_CUSTOMER like concat('%',#{PT_CUSTOMER},'%') </if>
<if test="PT_CARRIER != null and PT_CARRIER !='' "> and PT_CARRIER like concat('%',#{PT_CARRIER},'%') </if>
<if test="PT_CLASS != null and PT_CLASS !='' "> and PT_CLASS like concat('%',#{PT_CLASS},'%') </if>
<if test="PT_VALIDDATE != null and PT_VALIDDATE !='' "> and PT_VALIDDATE like concat('%',#{PT_VALIDDATE},'%') </if>
<if test="PT_INVALIDDATE != null and PT_INVALIDDATE !='' "> and PT_INVALIDDATE like concat('%',#{PT_INVALIDDATE},'%') </if>
<if test="PT_ALLOW != null and PT_ALLOW !='' "> and PT_ALLOW like concat('%',#{PT_ALLOW},'%') </if>
<if test="PT_VALIDCODE != null and PT_VALIDCODE !='' "> and PT_VALIDCODE like concat('%',#{PT_VALIDCODE},'%') </if>
<if test="PT_INSURANCE != null and PT_INSURANCE !='' "> and PT_INSURANCE like concat('%',#{PT_INSURANCE},'%') </if>
<if test="PT_SALERCODE != null and PT_SALERCODE !='' "> and PT_SALERCODE like concat('%',#{PT_SALERCODE},'%') </if>
<if test="PT_SALERNAME != null and PT_SALERNAME !='' "> and PT_SALERNAME like concat('%',#{PT_SALERNAME},'%') </if>
<if test="PT_MAKEDATE != null and PT_MAKEDATE !='' "> and PT_MAKEDATE like concat('%',#{PT_MAKEDATE},'%') </if>
<if test="PT_KEY != null and PT_KEY !='' "> and PT_KEY like concat('%',#{PT_KEY},'%') </if>
<if test="PT_COUNT != null "> and PT_COUNT = #{PT_COUNT}</if>
<if test="PT_DATETIME != null and PT_DATETIME !='' "> and PT_DATETIME like concat('%',#{PT_DATETIME},'%') </if>
<if test="PT_EDATETIME != null and PT_EDATETIME !='' "> and PT_EDATETIME like concat('%',#{PT_EDATETIME},'%') </if>
<if test="PT_INTERNATIONALFLAG != null and PT_INTERNATIONALFLAG !='' "> and PT_INTERNATIONALFLAG like concat('%',#{PT_INTERNATIONALFLAG},'%') </if>
<if test="PT_MARKDESC != null and PT_MARKDESC !='' "> and PT_MARKDESC like concat('%',#{PT_MARKDESC},'%') </if>
<if test="PT_GPNUMBER != null and PT_GPNUMBER !='' "> and PT_GPNUMBER like concat('%',#{PT_GPNUMBER},'%') </if>
<if test="PT_ISSUINGSTATE != null and PT_ISSUINGSTATE !='' "> and PT_ISSUINGSTATE like concat('%',#{PT_ISSUINGSTATE},'%') </if>
<if test="PT_FPHM != null and PT_FPHM !='' "> and PT_FPHM like concat('%',#{PT_FPHM},'%') </if>
<if test="PT_PROMPTINFO != null and PT_PROMPTINFO !='' "> and PT_PROMPTINFO like concat('%',#{PT_PROMPTINFO},'%') </if>
<if test="PT_BUYERNAME != null and PT_BUYERNAME !='' "> and PT_BUYERNAME like concat('%',#{PT_BUYERNAME},'%') </if>
<if test="PT_BUYERTAXNO != null and PT_BUYERTAXNO !='' "> and PT_BUYERTAXNO like concat('%',#{PT_BUYERTAXNO},'%') </if>
<if test="PT_ORIGINALNUMBER != null and PT_ORIGINALNUMBER !='' "> and PT_ORIGINALNUMBER like concat('%',#{PT_ORIGINALNUMBER},'%') </if>
<if test="PT_RUSHREDREASON != null and PT_RUSHREDREASON !='' "> and PT_RUSHREDREASON like concat('%',#{PT_RUSHREDREASON},'%') </if>
<if test="PT_ELECTRONICMARK != null and PT_ELECTRONICMARK !='' "> and PT_ELECTRONICMARK like concat('%',#{PT_ELECTRONICMARK},'%') </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="LexmiscivPlaneticketEntity_list_or" resultMap="get-LexmiscivPlaneticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity">
select
<include refid="LexmiscivPlaneticketEntity_Base_Column_List" />
from LEXMISCIV_PLANETICKET
<trim prefix="where" prefixOverrides="or">
<if test="PT_ID != null ">PT_ID = #{PT_ID}</if>
<if test="PT_ETICKETNO != null and PT_ETICKETNO !='' "> or PT_ETICKETNO = #{PT_ETICKETNO} </if>
<if test="PT_NO != null and PT_NO !='' "> or PT_NO = #{PT_NO} </if>
<if test="PT_FSTATION != null and PT_FSTATION !='' "> or PT_FSTATION = #{PT_FSTATION} </if>
<if test="PT_TSTATION != null and PT_TSTATION !='' "> or PT_TSTATION = #{PT_TSTATION} </if>
<if test="PT_TSTATION1 != null and PT_TSTATION1 !='' "> or PT_TSTATION1 = #{PT_TSTATION1} </if>
<if test="PT_TSTATION2 != null and PT_TSTATION2 !='' "> or PT_TSTATION2 = #{PT_TSTATION2} </if>
<if test="PT_TSTATION3 != null and PT_TSTATION3 !='' "> or PT_TSTATION3 = #{PT_TSTATION3} </if>
<if test="PT_PRICE != null "> or PT_PRICE = #{PT_PRICE}</if>
<if test="PT_FUNDSAMOUNT != null and PT_FUNDSAMOUNT !='' "> or PT_FUNDSAMOUNT = #{PT_FUNDSAMOUNT} </if>
<if test="PT_FUELAMOUNT != null and PT_FUELAMOUNT !='' "> or PT_FUELAMOUNT = #{PT_FUELAMOUNT} </if>
<if test="PT_TAXAMOUNT != null and PT_TAXAMOUNT !='' "> or PT_TAXAMOUNT = #{PT_TAXAMOUNT} </if>
<if test="PT_AMOUNT != null "> or PT_AMOUNT = #{PT_AMOUNT}</if>
<if test="PT_TAXRATE != null and PT_TAXRATE !='' "> or PT_TAXRATE = #{PT_TAXRATE} </if>
<if test="PT_TAXRATEAMOUNT != null "> or PT_TAXRATEAMOUNT = #{PT_TAXRATEAMOUNT}</if>
<if test="PT_NOTAXAMOUNT != null "> or PT_NOTAXAMOUNT = #{PT_NOTAXAMOUNT}</if>
<if test="PT_DATE != null and PT_DATE !='' "> or PT_DATE = #{PT_DATE} </if>
<if test="PT_TIME != null and PT_TIME !='' "> or PT_TIME = #{PT_TIME} </if>
<if test="PT_SERIALNO != null and PT_SERIALNO !='' "> or PT_SERIALNO = #{PT_SERIALNO} </if>
<if test="PT_IDNO != null and PT_IDNO !='' "> or PT_IDNO = #{PT_IDNO} </if>
<if test="PT_CUSTOMER != null and PT_CUSTOMER !='' "> or PT_CUSTOMER = #{PT_CUSTOMER} </if>
<if test="PT_CARRIER != null and PT_CARRIER !='' "> or PT_CARRIER = #{PT_CARRIER} </if>
<if test="PT_CLASS != null and PT_CLASS !='' "> or PT_CLASS = #{PT_CLASS} </if>
<if test="PT_VALIDDATE != null and PT_VALIDDATE !='' "> or PT_VALIDDATE = #{PT_VALIDDATE} </if>
<if test="PT_INVALIDDATE != null and PT_INVALIDDATE !='' "> or PT_INVALIDDATE = #{PT_INVALIDDATE} </if>
<if test="PT_ALLOW != null and PT_ALLOW !='' "> or PT_ALLOW = #{PT_ALLOW} </if>
<if test="PT_VALIDCODE != null and PT_VALIDCODE !='' "> or PT_VALIDCODE = #{PT_VALIDCODE} </if>
<if test="PT_INSURANCE != null and PT_INSURANCE !='' "> or PT_INSURANCE = #{PT_INSURANCE} </if>
<if test="PT_SALERCODE != null and PT_SALERCODE !='' "> or PT_SALERCODE = #{PT_SALERCODE} </if>
<if test="PT_SALERNAME != null and PT_SALERNAME !='' "> or PT_SALERNAME = #{PT_SALERNAME} </if>
<if test="PT_MAKEDATE != null and PT_MAKEDATE !='' "> or PT_MAKEDATE = #{PT_MAKEDATE} </if>
<if test="PT_KEY != null and PT_KEY !='' "> or PT_KEY = #{PT_KEY} </if>
<if test="PT_COUNT != null "> or PT_COUNT = #{PT_COUNT}</if>
<if test="PT_DATETIME != null and PT_DATETIME !='' "> or PT_DATETIME = #{PT_DATETIME} </if>
<if test="PT_EDATETIME != null and PT_EDATETIME !='' "> or PT_EDATETIME = #{PT_EDATETIME} </if>
<if test="PT_INTERNATIONALFLAG != null and PT_INTERNATIONALFLAG !='' "> or PT_INTERNATIONALFLAG = #{PT_INTERNATIONALFLAG} </if>
<if test="PT_MARKDESC != null and PT_MARKDESC !='' "> or PT_MARKDESC = #{PT_MARKDESC} </if>
<if test="PT_GPNUMBER != null and PT_GPNUMBER !='' "> or PT_GPNUMBER = #{PT_GPNUMBER} </if>
<if test="PT_ISSUINGSTATE != null and PT_ISSUINGSTATE !='' "> or PT_ISSUINGSTATE = #{PT_ISSUINGSTATE} </if>
<if test="PT_FPHM != null and PT_FPHM !='' "> or PT_FPHM = #{PT_FPHM} </if>
<if test="PT_PROMPTINFO != null and PT_PROMPTINFO !='' "> or PT_PROMPTINFO = #{PT_PROMPTINFO} </if>
<if test="PT_BUYERNAME != null and PT_BUYERNAME !='' "> or PT_BUYERNAME = #{PT_BUYERNAME} </if>
<if test="PT_BUYERTAXNO != null and PT_BUYERTAXNO !='' "> or PT_BUYERTAXNO = #{PT_BUYERTAXNO} </if>
<if test="PT_ORIGINALNUMBER != null and PT_ORIGINALNUMBER !='' "> or PT_ORIGINALNUMBER = #{PT_ORIGINALNUMBER} </if>
<if test="PT_RUSHREDREASON != null and PT_RUSHREDREASON !='' "> or PT_RUSHREDREASON = #{PT_RUSHREDREASON} </if>
<if test="PT_ELECTRONICMARK != null and PT_ELECTRONICMARK !='' "> or PT_ELECTRONICMARK = #{PT_ELECTRONICMARK} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
</mapper>

View File

@ -0,0 +1,219 @@
package com.hzya.frame.plugin.cinvoice.lexmis.entity;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @description: 迈锐思-飞机行程单明细
* @tableName: LEXMISCIV_PLANETICKETS
* @entityName: LexmiscivPlaneticketsEntity
* @author: gjh
* @history: 1.0
*/
public class LexmiscivPlaneticketsEntity extends BaseEntity {
public LexmiscivPlaneticketsEntity() {
}
public LexmiscivPlaneticketsEntity(String PTS_MAINID, String dataSourceCode) {
this.PTS_MAINID = PTS_MAINID;
this.setDataSourceCode(dataSourceCode);
}
/** 无备注 */
private String PTS_ID;
/** 无备注 */
private String PTS_MAINID;
/** 无备注 */
private Integer PTS_SORTNUM;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date PTS_DATE;
/** 无备注 */
private String PTS_TIME;
/** 无备注 */
private String PTS_CLASS;
/** 无备注 */
private String PTS_CARRIER;
/** 无备注 */
private String PTS_NO;
/** 无备注 */
private String PTS_FSTATION;
/** 无备注 */
private String PTS_TSTATION;
/** 无备注 */
private String PTS_CLASSNAME;
/** 无备注 */
private String PTS_FAREBASIS;
/** 无备注 */
private String PTS_ALLOW;
/** 无备注 */
private String PTS_DATETIME;
/** 无备注 */
private String PTS_NOTVALIDAFTER;
/** 无备注 */
private String PTS_NOTVALIDBEFORE;
/** 无备注 */
public void setPTS_ID(String PTS_ID) {
this.PTS_ID = PTS_ID;
}
/** 无备注 */
public String getPTS_ID() {
return PTS_ID;
}
/** 无备注 */
public void setPTS_MAINID(String PTS_MAINID) {
this.PTS_MAINID = PTS_MAINID;
}
/** 无备注 */
public String getPTS_MAINID() {
return PTS_MAINID;
}
/** 无备注 */
public void setPTS_SORTNUM(Integer PTS_SORTNUM) {
this.PTS_SORTNUM = PTS_SORTNUM;
}
/** 无备注 */
public Integer getPTS_SORTNUM() {
return PTS_SORTNUM;
}
/** 无备注 */
public void setPTS_DATE(Date PTS_DATE) {
this.PTS_DATE = PTS_DATE;
}
/** 无备注 */
public Date getPTS_DATE() {
return PTS_DATE;
}
/** 无备注 */
public void setPTS_TIME(String PTS_TIME) {
this.PTS_TIME = PTS_TIME;
}
/** 无备注 */
public String getPTS_TIME() {
return PTS_TIME;
}
/** 无备注 */
public void setPTS_CLASS(String PTS_CLASS) {
this.PTS_CLASS = PTS_CLASS;
}
/** 无备注 */
public String getPTS_CLASS() {
return PTS_CLASS;
}
/** 无备注 */
public void setPTS_CARRIER(String PTS_CARRIER) {
this.PTS_CARRIER = PTS_CARRIER;
}
/** 无备注 */
public String getPTS_CARRIER() {
return PTS_CARRIER;
}
/** 无备注 */
public void setPTS_NO(String PTS_NO) {
this.PTS_NO = PTS_NO;
}
/** 无备注 */
public String getPTS_NO() {
return PTS_NO;
}
/** 无备注 */
public void setPTS_FSTATION(String PTS_FSTATION) {
this.PTS_FSTATION = PTS_FSTATION;
}
/** 无备注 */
public String getPTS_FSTATION() {
return PTS_FSTATION;
}
/** 无备注 */
public void setPTS_TSTATION(String PTS_TSTATION) {
this.PTS_TSTATION = PTS_TSTATION;
}
/** 无备注 */
public String getPTS_TSTATION() {
return PTS_TSTATION;
}
/** 无备注 */
public void setPTS_CLASSNAME(String PTS_CLASSNAME) {
this.PTS_CLASSNAME = PTS_CLASSNAME;
}
/** 无备注 */
public String getPTS_CLASSNAME() {
return PTS_CLASSNAME;
}
/** 无备注 */
public void setPTS_FAREBASIS(String PTS_FAREBASIS) {
this.PTS_FAREBASIS = PTS_FAREBASIS;
}
/** 无备注 */
public String getPTS_FAREBASIS() {
return PTS_FAREBASIS;
}
/** 无备注 */
public void setPTS_ALLOW(String PTS_ALLOW) {
this.PTS_ALLOW = PTS_ALLOW;
}
/** 无备注 */
public String getPTS_ALLOW() {
return PTS_ALLOW;
}
/** 无备注 */
public void setPTS_DATETIME(String PTS_DATETIME) {
this.PTS_DATETIME = PTS_DATETIME;
}
/** 无备注 */
public String getPTS_DATETIME() {
return PTS_DATETIME;
}
/** 无备注 */
public void setPTS_NOTVALIDAFTER(String PTS_NOTVALIDAFTER) {
this.PTS_NOTVALIDAFTER = PTS_NOTVALIDAFTER;
}
/** 无备注 */
public String getPTS_NOTVALIDAFTER() {
return PTS_NOTVALIDAFTER;
}
/** 无备注 */
public void setPTS_NOTVALIDBEFORE(String PTS_NOTVALIDBEFORE) {
this.PTS_NOTVALIDBEFORE = PTS_NOTVALIDBEFORE;
}
/** 无备注 */
public String getPTS_NOTVALIDBEFORE() {
return PTS_NOTVALIDBEFORE;
}
}

View File

@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.cinvoice.lexmis.dao.impl.LexmiscivPlaneticketsDaoImpl">
<resultMap id="get-LexmiscivPlaneticketsEntity-result" type="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity">
<!--无备注 -->
<result property="PTS_ID" column="PTS_ID" />
<!--无备注 -->
<result property="PTS_MAINID" column="PTS_MAINID" />
<!--无备注 -->
<result property="PTS_SORTNUM" column="PTS_SORTNUM" />
<!--无备注 -->
<result property="PTS_DATE" column="PTS_DATE" />
<!--无备注 -->
<result property="PTS_TIME" column="PTS_TIME" />
<!--无备注 -->
<result property="PTS_CLASS" column="PTS_CLASS" />
<!--无备注 -->
<result property="PTS_CARRIER" column="PTS_CARRIER" />
<!--无备注 -->
<result property="PTS_NO" column="PTS_NO" />
<!--无备注 -->
<result property="PTS_FSTATION" column="PTS_FSTATION" />
<!--无备注 -->
<result property="PTS_TSTATION" column="PTS_TSTATION" />
<!--无备注 -->
<result property="PTS_CLASSNAME" column="PTS_CLASSNAME" />
<!--无备注 -->
<result property="PTS_FAREBASIS" column="PTS_FAREBASIS" />
<!--无备注 -->
<result property="PTS_ALLOW" column="PTS_ALLOW" />
<!--无备注 -->
<result property="PTS_DATETIME" column="PTS_DATETIME" />
<!--无备注 -->
<result property="PTS_NOTVALIDAFTER" column="PTS_NOTVALIDAFTER" />
<!--无备注 -->
<result property="PTS_NOTVALIDBEFORE" column="PTS_NOTVALIDBEFORE" />
</resultMap>
<sql id="LexmiscivPlaneticketsEntity_Base_Column_List">
PTS_ID,
PTS_MAINID,
PTS_SORTNUM,
PTS_DATE,
PTS_TIME,
PTS_CLASS,
PTS_CARRIER,
PTS_NO,
PTS_FSTATION,
PTS_TSTATION,
PTS_CLASSNAME,
PTS_FAREBASIS,
PTS_ALLOW,
PTS_DATETIME,
PTS_NOTVALIDAFTER,
PTS_NOTVALIDBEFORE
</sql>
<!--通过ID获取数据 -->
<select id="entity_get" resultMap="get-LexmiscivPlaneticketsEntity-result">
select
<include refid="LexmiscivPlaneticketsEntity_Base_Column_List" />
from LEXMISCIV_PLANETICKETS where id = #{ id }
</select>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-LexmiscivPlaneticketsEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity">
select
<include refid="LexmiscivPlaneticketsEntity_Base_Column_List" />
from LEXMISCIV_PLANETICKETS
<trim prefix="where" prefixOverrides="and">
<if test="PTS_ID != null ">PTS_ID=#{PTS_ID}</if>
<if test="PTS_MAINID != null "> and PTS_MAINID = #{PTS_MAINID}</if>
<if test="PTS_SORTNUM != null "> and PTS_SORTNUM = #{PTS_SORTNUM}</if>
<if test="PTS_DATE != null "> and PTS_DATE = #{PTS_DATE}</if>
<if test="PTS_TIME != null and PTS_TIME !='' "> and PTS_TIME = #{PTS_TIME}</if>
<if test="PTS_CLASS != null and PTS_CLASS !='' "> and PTS_CLASS = #{PTS_CLASS}</if>
<if test="PTS_CARRIER != null and PTS_CARRIER !='' "> and PTS_CARRIER = #{PTS_CARRIER}</if>
<if test="PTS_NO != null and PTS_NO !='' "> and PTS_NO = #{PTS_NO}</if>
<if test="PTS_FSTATION != null and PTS_FSTATION !='' "> and PTS_FSTATION = #{PTS_FSTATION}</if>
<if test="PTS_TSTATION != null and PTS_TSTATION !='' "> and PTS_TSTATION = #{PTS_TSTATION}</if>
<if test="PTS_CLASSNAME != null and PTS_CLASSNAME !='' "> and PTS_CLASSNAME = #{PTS_CLASSNAME}</if>
<if test="PTS_FAREBASIS != null and PTS_FAREBASIS !='' "> and PTS_FAREBASIS = #{PTS_FAREBASIS}</if>
<if test="PTS_ALLOW != null and PTS_ALLOW !='' "> and PTS_ALLOW = #{PTS_ALLOW}</if>
<if test="PTS_DATETIME != null and PTS_DATETIME !='' "> and PTS_DATETIME = #{PTS_DATETIME}</if>
<if test="PTS_NOTVALIDAFTER != null and PTS_NOTVALIDAFTER !='' "> and PTS_NOTVALIDAFTER = #{PTS_NOTVALIDAFTER}</if>
<if test="PTS_NOTVALIDBEFORE != null and PTS_NOTVALIDBEFORE !='' "> and PTS_NOTVALIDBEFORE = #{PTS_NOTVALIDBEFORE}</if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="LexmiscivPlaneticketsEntity_count" resultType="Integer" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity">
select count(1) from LEXMISCIV_PLANETICKETS
<trim prefix="where" prefixOverrides="and">
<if test="PTS_ID != null ">PTS_ID = #{PTS_ID}</if>
<if test="PTS_MAINID != null "> and PTS_MAINID = #{PTS_MAINID} </if>
<if test="PTS_SORTNUM != null "> and PTS_SORTNUM = #{PTS_SORTNUM} </if>
<if test="PTS_DATE != null "> and PTS_DATE = #{PTS_DATE} </if>
<if test="PTS_TIME != null and PTS_TIME !='' "> and PTS_TIME = #{PTS_TIME} </if>
<if test="PTS_CLASS != null and PTS_CLASS !='' "> and PTS_CLASS = #{PTS_CLASS} </if>
<if test="PTS_CARRIER != null and PTS_CARRIER !='' "> and PTS_CARRIER = #{PTS_CARRIER} </if>
<if test="PTS_NO != null and PTS_NO !='' "> and PTS_NO = #{PTS_NO} </if>
<if test="PTS_FSTATION != null and PTS_FSTATION !='' "> and PTS_FSTATION = #{PTS_FSTATION} </if>
<if test="PTS_TSTATION != null and PTS_TSTATION !='' "> and PTS_TSTATION = #{PTS_TSTATION} </if>
<if test="PTS_CLASSNAME != null and PTS_CLASSNAME !='' "> and PTS_CLASSNAME = #{PTS_CLASSNAME} </if>
<if test="PTS_FAREBASIS != null and PTS_FAREBASIS !='' "> and PTS_FAREBASIS = #{PTS_FAREBASIS} </if>
<if test="PTS_ALLOW != null and PTS_ALLOW !='' "> and PTS_ALLOW = #{PTS_ALLOW} </if>
<if test="PTS_DATETIME != null and PTS_DATETIME !='' "> and PTS_DATETIME = #{PTS_DATETIME} </if>
<if test="PTS_NOTVALIDAFTER != null and PTS_NOTVALIDAFTER !='' "> and PTS_NOTVALIDAFTER = #{PTS_NOTVALIDAFTER} </if>
<if test="PTS_NOTVALIDBEFORE != null and PTS_NOTVALIDBEFORE !='' "> and PTS_NOTVALIDBEFORE = #{PTS_NOTVALIDBEFORE} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="LexmiscivPlaneticketsEntity_list_like" resultMap="get-LexmiscivPlaneticketsEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity">
select
<include refid="LexmiscivPlaneticketsEntity_Base_Column_List" />
from LEXMISCIV_PLANETICKETS
<trim prefix="where" prefixOverrides="and">
<if test="PTS_ID != null ">PTS_ID = #{PTS_ID}</if>
<if test="PTS_MAINID != null "> and PTS_MAINID = #{PTS_MAINID}</if>
<if test="PTS_SORTNUM != null "> and PTS_SORTNUM = #{PTS_SORTNUM}</if>
<if test="PTS_DATE != null and PTS_DATE !='' "> and PTS_DATE like concat('%',#{PTS_DATE},'%') </if>
<if test="PTS_TIME != null and PTS_TIME !='' "> and PTS_TIME like concat('%',#{PTS_TIME},'%') </if>
<if test="PTS_CLASS != null and PTS_CLASS !='' "> and PTS_CLASS like concat('%',#{PTS_CLASS},'%') </if>
<if test="PTS_CARRIER != null and PTS_CARRIER !='' "> and PTS_CARRIER like concat('%',#{PTS_CARRIER},'%') </if>
<if test="PTS_NO != null and PTS_NO !='' "> and PTS_NO like concat('%',#{PTS_NO},'%') </if>
<if test="PTS_FSTATION != null and PTS_FSTATION !='' "> and PTS_FSTATION like concat('%',#{PTS_FSTATION},'%') </if>
<if test="PTS_TSTATION != null and PTS_TSTATION !='' "> and PTS_TSTATION like concat('%',#{PTS_TSTATION},'%') </if>
<if test="PTS_CLASSNAME != null and PTS_CLASSNAME !='' "> and PTS_CLASSNAME like concat('%',#{PTS_CLASSNAME},'%') </if>
<if test="PTS_FAREBASIS != null and PTS_FAREBASIS !='' "> and PTS_FAREBASIS like concat('%',#{PTS_FAREBASIS},'%') </if>
<if test="PTS_ALLOW != null and PTS_ALLOW !='' "> and PTS_ALLOW like concat('%',#{PTS_ALLOW},'%') </if>
<if test="PTS_DATETIME != null and PTS_DATETIME !='' "> and PTS_DATETIME like concat('%',#{PTS_DATETIME},'%') </if>
<if test="PTS_NOTVALIDAFTER != null and PTS_NOTVALIDAFTER !='' "> and PTS_NOTVALIDAFTER like concat('%',#{PTS_NOTVALIDAFTER},'%') </if>
<if test="PTS_NOTVALIDBEFORE != null and PTS_NOTVALIDBEFORE !='' "> and PTS_NOTVALIDBEFORE like concat('%',#{PTS_NOTVALIDBEFORE},'%') </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="LexmiscivPlaneticketsEntity_list_or" resultMap="get-LexmiscivPlaneticketsEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity">
select
<include refid="LexmiscivPlaneticketsEntity_Base_Column_List" />
from LEXMISCIV_PLANETICKETS
<trim prefix="where" prefixOverrides="or">
<if test="PTS_ID != null ">PTS_ID = #{PTS_ID}</if>
<if test="PTS_MAINID != null "> or PTS_MAINID = #{PTS_MAINID}</if>
<if test="PTS_SORTNUM != null "> or PTS_SORTNUM = #{PTS_SORTNUM}</if>
<if test="PTS_DATE != null and PTS_DATE !='' "> or PTS_DATE = #{PTS_DATE} </if>
<if test="PTS_TIME != null and PTS_TIME !='' "> or PTS_TIME = #{PTS_TIME} </if>
<if test="PTS_CLASS != null and PTS_CLASS !='' "> or PTS_CLASS = #{PTS_CLASS} </if>
<if test="PTS_CARRIER != null and PTS_CARRIER !='' "> or PTS_CARRIER = #{PTS_CARRIER} </if>
<if test="PTS_NO != null and PTS_NO !='' "> or PTS_NO = #{PTS_NO} </if>
<if test="PTS_FSTATION != null and PTS_FSTATION !='' "> or PTS_FSTATION = #{PTS_FSTATION} </if>
<if test="PTS_TSTATION != null and PTS_TSTATION !='' "> or PTS_TSTATION = #{PTS_TSTATION} </if>
<if test="PTS_CLASSNAME != null and PTS_CLASSNAME !='' "> or PTS_CLASSNAME = #{PTS_CLASSNAME} </if>
<if test="PTS_FAREBASIS != null and PTS_FAREBASIS !='' "> or PTS_FAREBASIS = #{PTS_FAREBASIS} </if>
<if test="PTS_ALLOW != null and PTS_ALLOW !='' "> or PTS_ALLOW = #{PTS_ALLOW} </if>
<if test="PTS_DATETIME != null and PTS_DATETIME !='' "> or PTS_DATETIME = #{PTS_DATETIME} </if>
<if test="PTS_NOTVALIDAFTER != null and PTS_NOTVALIDAFTER !='' "> or PTS_NOTVALIDAFTER = #{PTS_NOTVALIDAFTER} </if>
<if test="PTS_NOTVALIDBEFORE != null and PTS_NOTVALIDBEFORE !='' "> or PTS_NOTVALIDBEFORE = #{PTS_NOTVALIDBEFORE} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
</mapper>

View File

@ -0,0 +1,388 @@
package com.hzya.frame.plugin.cinvoice.lexmis.entity;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @description: 迈锐思-火车票
* @tableName: LEXMISCIV_TRAINTICKET
* @entityName: LexmiscivTrainticketEntity
* @author: gjh
* @history: 1.0
*/
public class LexmiscivTrainticketEntity extends BaseEntity {
public LexmiscivTrainticketEntity() {
}
public LexmiscivTrainticketEntity(String TT_ID,String dataSourceCode) {
this.TT_ID = TT_ID;
this.setDataSourceCode(dataSourceCode);
}
/** 无备注 */
private String TT_ID;
/** 无备注 */
private String TT_CODE;
/** 无备注 */
private String TT_NO;
/** 无备注 */
private String TT_FSTATION;
/** 无备注 */
private String TT_TSTATION;
/** 无备注 */
private BigDecimal TT_AMOUNT;
/** 无备注 */
private String TT_TAXRATE;
/** 无备注 */
private BigDecimal TT_TAXRATEAMOUNT;
/** 无备注 */
private BigDecimal TT_NOTAXAMOUNT;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date TT_DATE;
/** 无备注 */
private String TT_TIME;
/** 无备注 */
private String TT_SERIALNO;
/** 无备注 */
private String TT_IDNO;
/** 无备注 */
private String TT_CUSTOMER;
/** 无备注 */
private String TT_SALESTATION;
/** 无备注 */
private String TT_SALETYPE;
/** 无备注 */
private String TT_CARRIAGE;
/** 无备注 */
private String TT_SEAT;
/** 无备注 */
private String TT_CLASS;
/** 无备注 */
private String TT_TICKETCHECKING;
/** 无备注 */
private String TT_KEY;
/** 无备注 */
private Integer TT_COUNT;
/** 无备注 */
private String TT_DATETIME;
/** 无备注 */
private String TT_EDATETIME;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date TT_OUTDATE;
/** 无备注 */
private Integer TT_ELECTRONIC;
/** 无备注 */
private Integer TT_BUSINESSTYPE;
/** 无备注 */
private String TT_BUYERNAME;
/** 无备注 */
private String TT_BUYERTAXNO;
/** 无备注 */
private String TT_ORIGINALINVOICE;
/** 无备注 */
public void setTT_ID(String TT_ID) {
this.TT_ID = TT_ID;
}
/** 无备注 */
public String getTT_ID() {
return TT_ID;
}
/** 无备注 */
public void setTT_CODE(String TT_CODE) {
this.TT_CODE = TT_CODE;
}
/** 无备注 */
public String getTT_CODE() {
return TT_CODE;
}
/** 无备注 */
public void setTT_NO(String TT_NO) {
this.TT_NO = TT_NO;
}
/** 无备注 */
public String getTT_NO() {
return TT_NO;
}
/** 无备注 */
public void setTT_FSTATION(String TT_FSTATION) {
this.TT_FSTATION = TT_FSTATION;
}
/** 无备注 */
public String getTT_FSTATION() {
return TT_FSTATION;
}
/** 无备注 */
public void setTT_TSTATION(String TT_TSTATION) {
this.TT_TSTATION = TT_TSTATION;
}
/** 无备注 */
public String getTT_TSTATION() {
return TT_TSTATION;
}
/** 无备注 */
public void setTT_AMOUNT(BigDecimal TT_AMOUNT) {
this.TT_AMOUNT = TT_AMOUNT;
}
/** 无备注 */
public BigDecimal getTT_AMOUNT() {
return TT_AMOUNT;
}
/** 无备注 */
public void setTT_TAXRATE(String TT_TAXRATE) {
this.TT_TAXRATE = TT_TAXRATE;
}
/** 无备注 */
public String getTT_TAXRATE() {
return TT_TAXRATE;
}
/** 无备注 */
public void setTT_TAXRATEAMOUNT(BigDecimal TT_TAXRATEAMOUNT) {
this.TT_TAXRATEAMOUNT = TT_TAXRATEAMOUNT;
}
/** 无备注 */
public BigDecimal getTT_TAXRATEAMOUNT() {
return TT_TAXRATEAMOUNT;
}
/** 无备注 */
public void setTT_NOTAXAMOUNT(BigDecimal TT_NOTAXAMOUNT) {
this.TT_NOTAXAMOUNT = TT_NOTAXAMOUNT;
}
/** 无备注 */
public BigDecimal getTT_NOTAXAMOUNT() {
return TT_NOTAXAMOUNT;
}
/** 无备注 */
public void setTT_DATE(Date TT_DATE) {
this.TT_DATE = TT_DATE;
}
/** 无备注 */
public Date getTT_DATE() {
return TT_DATE;
}
/** 无备注 */
public void setTT_TIME(String TT_TIME) {
this.TT_TIME = TT_TIME;
}
/** 无备注 */
public String getTT_TIME() {
return TT_TIME;
}
/** 无备注 */
public void setTT_SERIALNO(String TT_SERIALNO) {
this.TT_SERIALNO = TT_SERIALNO;
}
/** 无备注 */
public String getTT_SERIALNO() {
return TT_SERIALNO;
}
/** 无备注 */
public void setTT_IDNO(String TT_IDNO) {
this.TT_IDNO = TT_IDNO;
}
/** 无备注 */
public String getTT_IDNO() {
return TT_IDNO;
}
/** 无备注 */
public void setTT_CUSTOMER(String TT_CUSTOMER) {
this.TT_CUSTOMER = TT_CUSTOMER;
}
/** 无备注 */
public String getTT_CUSTOMER() {
return TT_CUSTOMER;
}
/** 无备注 */
public void setTT_SALESTATION(String TT_SALESTATION) {
this.TT_SALESTATION = TT_SALESTATION;
}
/** 无备注 */
public String getTT_SALESTATION() {
return TT_SALESTATION;
}
/** 无备注 */
public void setTT_SALETYPE(String TT_SALETYPE) {
this.TT_SALETYPE = TT_SALETYPE;
}
/** 无备注 */
public String getTT_SALETYPE() {
return TT_SALETYPE;
}
/** 无备注 */
public void setTT_CARRIAGE(String TT_CARRIAGE) {
this.TT_CARRIAGE = TT_CARRIAGE;
}
/** 无备注 */
public String getTT_CARRIAGE() {
return TT_CARRIAGE;
}
/** 无备注 */
public void setTT_SEAT(String TT_SEAT) {
this.TT_SEAT = TT_SEAT;
}
/** 无备注 */
public String getTT_SEAT() {
return TT_SEAT;
}
/** 无备注 */
public void setTT_CLASS(String TT_CLASS) {
this.TT_CLASS = TT_CLASS;
}
/** 无备注 */
public String getTT_CLASS() {
return TT_CLASS;
}
/** 无备注 */
public void setTT_TICKETCHECKING(String TT_TICKETCHECKING) {
this.TT_TICKETCHECKING = TT_TICKETCHECKING;
}
/** 无备注 */
public String getTT_TICKETCHECKING() {
return TT_TICKETCHECKING;
}
/** 无备注 */
public void setTT_KEY(String TT_KEY) {
this.TT_KEY = TT_KEY;
}
/** 无备注 */
public String getTT_KEY() {
return TT_KEY;
}
/** 无备注 */
public void setTT_COUNT(Integer TT_COUNT) {
this.TT_COUNT = TT_COUNT;
}
/** 无备注 */
public Integer getTT_COUNT() {
return TT_COUNT;
}
/** 无备注 */
public void setTT_DATETIME(String TT_DATETIME) {
this.TT_DATETIME = TT_DATETIME;
}
/** 无备注 */
public String getTT_DATETIME() {
return TT_DATETIME;
}
/** 无备注 */
public void setTT_EDATETIME(String TT_EDATETIME) {
this.TT_EDATETIME = TT_EDATETIME;
}
/** 无备注 */
public String getTT_EDATETIME() {
return TT_EDATETIME;
}
/** 无备注 */
public void setTT_OUTDATE(Date TT_OUTDATE) {
this.TT_OUTDATE = TT_OUTDATE;
}
/** 无备注 */
public Date getTT_OUTDATE() {
return TT_OUTDATE;
}
/** 无备注 */
public void setTT_ELECTRONIC(Integer TT_ELECTRONIC) {
this.TT_ELECTRONIC = TT_ELECTRONIC;
}
/** 无备注 */
public Integer getTT_ELECTRONIC() {
return TT_ELECTRONIC;
}
/** 无备注 */
public void setTT_BUSINESSTYPE(Integer TT_BUSINESSTYPE) {
this.TT_BUSINESSTYPE = TT_BUSINESSTYPE;
}
/** 无备注 */
public Integer getTT_BUSINESSTYPE() {
return TT_BUSINESSTYPE;
}
/** 无备注 */
public void setTT_BUYERNAME(String TT_BUYERNAME) {
this.TT_BUYERNAME = TT_BUYERNAME;
}
/** 无备注 */
public String getTT_BUYERNAME() {
return TT_BUYERNAME;
}
/** 无备注 */
public void setTT_BUYERTAXNO(String TT_BUYERTAXNO) {
this.TT_BUYERTAXNO = TT_BUYERTAXNO;
}
/** 无备注 */
public String getTT_BUYERTAXNO() {
return TT_BUYERTAXNO;
}
/** 无备注 */
public void setTT_ORIGINALINVOICE(String TT_ORIGINALINVOICE) {
this.TT_ORIGINALINVOICE = TT_ORIGINALINVOICE;
}
/** 无备注 */
public String getTT_ORIGINALINVOICE() {
return TT_ORIGINALINVOICE;
}
}

View File

@ -0,0 +1,273 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.plugin.cinvoice.lexmis.dao.impl.LexmiscivTrainticketDaoImpl">
<resultMap id="get-LexmiscivTrainticketEntity-result" type="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity">
<!--无备注 -->
<result property="TT_ID" column="TT_ID" />
<!--无备注 -->
<result property="TT_CODE" column="TT_CODE" />
<!--无备注 -->
<result property="TT_NO" column="TT_NO" />
<!--无备注 -->
<result property="TT_FSTATION" column="TT_FSTATION" />
<!--无备注 -->
<result property="TT_TSTATION" column="TT_TSTATION" />
<!--无备注 -->
<result property="TT_AMOUNT" column="TT_AMOUNT" />
<!--无备注 -->
<result property="TT_TAXRATE" column="TT_TAXRATE" />
<!--无备注 -->
<result property="TT_TAXRATEAMOUNT" column="TT_TAXRATEAMOUNT" />
<!--无备注 -->
<result property="TT_NOTAXAMOUNT" column="TT_NOTAXAMOUNT" />
<!--无备注 -->
<result property="TT_DATE" column="TT_DATE" />
<!--无备注 -->
<result property="TT_TIME" column="TT_TIME" />
<!--无备注 -->
<result property="TT_SERIALNO" column="TT_SERIALNO" />
<!--无备注 -->
<result property="TT_IDNO" column="TT_IDNO" />
<!--无备注 -->
<result property="TT_CUSTOMER" column="TT_CUSTOMER" />
<!--无备注 -->
<result property="TT_SALESTATION" column="TT_SALESTATION" />
<!--无备注 -->
<result property="TT_SALETYPE" column="TT_SALETYPE" />
<!--无备注 -->
<result property="TT_CARRIAGE" column="TT_CARRIAGE" />
<!--无备注 -->
<result property="TT_SEAT" column="TT_SEAT" />
<!--无备注 -->
<result property="TT_CLASS" column="TT_CLASS" />
<!--无备注 -->
<result property="TT_TICKETCHECKING" column="TT_TICKETCHECKING" />
<!--无备注 -->
<result property="TT_KEY" column="TT_KEY" />
<!--无备注 -->
<result property="TT_COUNT" column="TT_COUNT" />
<!--无备注 -->
<result property="TT_DATETIME" column="TT_DATETIME" />
<!--无备注 -->
<result property="TT_EDATETIME" column="TT_EDATETIME" />
<!--无备注 -->
<result property="TT_OUTDATE" column="TT_OUTDATE" />
<!--无备注 -->
<result property="TT_ELECTRONIC" column="TT_ELECTRONIC" />
<!--无备注 -->
<result property="TT_BUSINESSTYPE" column="TT_BUSINESSTYPE" />
<!--无备注 -->
<result property="TT_BUYERNAME" column="TT_BUYERNAME" />
<!--无备注 -->
<result property="TT_BUYERTAXNO" column="TT_BUYERTAXNO" />
<!--无备注 -->
<result property="TT_ORIGINALINVOICE" column="TT_ORIGINALINVOICE" />
</resultMap>
<sql id="LexmiscivTrainticketEntity_Base_Column_List">
TT_ID,
TT_CODE,
TT_NO,
TT_FSTATION,
TT_TSTATION,
TT_AMOUNT,
TT_TAXRATE,
TT_TAXRATEAMOUNT,
TT_NOTAXAMOUNT,
TT_DATE,
TT_TIME,
TT_SERIALNO,
TT_IDNO,
TT_CUSTOMER,
TT_SALESTATION,
TT_SALETYPE,
TT_CARRIAGE,
TT_SEAT,
TT_CLASS,
TT_TICKETCHECKING,
TT_KEY,
TT_COUNT,
TT_DATETIME,
TT_EDATETIME,
TT_OUTDATE,
TT_ELECTRONIC,
TT_BUSINESSTYPE,
TT_BUYERNAME,
TT_BUYERTAXNO,
TT_ORIGINALINVOICE
</sql>
<!--通过ID获取数据 -->
<select id="entity_get" resultMap="get-LexmiscivTrainticketEntity-result">
select
<include refid="LexmiscivTrainticketEntity_Base_Column_List" />
from LEXMISCIV_TRAINTICKET where id = #{ id }
</select>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-LexmiscivTrainticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity">
select
<include refid="LexmiscivTrainticketEntity_Base_Column_List" />
from LEXMISCIV_TRAINTICKET
<trim prefix="where" prefixOverrides="and">
<if test="TT_ID != null ">TT_ID=#{TT_ID}</if>
<if test="TT_CODE != null and TT_CODE !='' "> and TT_CODE = #{TT_CODE}</if>
<if test="TT_NO != null and TT_NO !='' "> and TT_NO = #{TT_NO}</if>
<if test="TT_FSTATION != null and TT_FSTATION !='' "> and TT_FSTATION = #{TT_FSTATION}</if>
<if test="TT_TSTATION != null and TT_TSTATION !='' "> and TT_TSTATION = #{TT_TSTATION}</if>
<if test="TT_AMOUNT != null "> and TT_AMOUNT = #{TT_AMOUNT}</if>
<if test="TT_TAXRATE != null and TT_TAXRATE !='' "> and TT_TAXRATE = #{TT_TAXRATE}</if>
<if test="TT_TAXRATEAMOUNT != null "> and TT_TAXRATEAMOUNT = #{TT_TAXRATEAMOUNT}</if>
<if test="TT_NOTAXAMOUNT != null "> and TT_NOTAXAMOUNT = #{TT_NOTAXAMOUNT}</if>
<if test="TT_DATE != null "> and TT_DATE = #{TT_DATE}</if>
<if test="TT_TIME != null and TT_TIME !='' "> and TT_TIME = #{TT_TIME}</if>
<if test="TT_SERIALNO != null and TT_SERIALNO !='' "> and TT_SERIALNO = #{TT_SERIALNO}</if>
<if test="TT_IDNO != null and TT_IDNO !='' "> and TT_IDNO = #{TT_IDNO}</if>
<if test="TT_CUSTOMER != null and TT_CUSTOMER !='' "> and TT_CUSTOMER = #{TT_CUSTOMER}</if>
<if test="TT_SALESTATION != null and TT_SALESTATION !='' "> and TT_SALESTATION = #{TT_SALESTATION}</if>
<if test="TT_SALETYPE != null and TT_SALETYPE !='' "> and TT_SALETYPE = #{TT_SALETYPE}</if>
<if test="TT_CARRIAGE != null and TT_CARRIAGE !='' "> and TT_CARRIAGE = #{TT_CARRIAGE}</if>
<if test="TT_SEAT != null and TT_SEAT !='' "> and TT_SEAT = #{TT_SEAT}</if>
<if test="TT_CLASS != null and TT_CLASS !='' "> and TT_CLASS = #{TT_CLASS}</if>
<if test="TT_TICKETCHECKING != null and TT_TICKETCHECKING !='' "> and TT_TICKETCHECKING = #{TT_TICKETCHECKING}</if>
<if test="TT_KEY != null and TT_KEY !='' "> and TT_KEY = #{TT_KEY}</if>
<if test="TT_COUNT != null "> and TT_COUNT = #{TT_COUNT}</if>
<if test="TT_DATETIME != null and TT_DATETIME !='' "> and TT_DATETIME = #{TT_DATETIME}</if>
<if test="TT_EDATETIME != null and TT_EDATETIME !='' "> and TT_EDATETIME = #{TT_EDATETIME}</if>
<if test="TT_OUTDATE != null "> and TT_OUTDATE = #{TT_OUTDATE}</if>
<if test="TT_ELECTRONIC != null "> and TT_ELECTRONIC = #{TT_ELECTRONIC}</if>
<if test="TT_BUSINESSTYPE != null "> and TT_BUSINESSTYPE = #{TT_BUSINESSTYPE}</if>
<if test="TT_BUYERNAME != null and TT_BUYERNAME !='' "> and TT_BUYERNAME = #{TT_BUYERNAME}</if>
<if test="TT_BUYERTAXNO != null and TT_BUYERTAXNO !='' "> and TT_BUYERTAXNO = #{TT_BUYERTAXNO}</if>
<if test="TT_ORIGINALINVOICE != null and TT_ORIGINALINVOICE !='' "> and TT_ORIGINALINVOICE = #{TT_ORIGINALINVOICE}</if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="LexmiscivTrainticketEntity_count" resultType="Integer" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity">
select count(1) from LEXMISCIV_TRAINTICKET
<trim prefix="where" prefixOverrides="and">
<if test="TT_ID != null ">TT_ID = #{TT_ID}</if>
<if test="TT_CODE != null and TT_CODE !='' "> and TT_CODE = #{TT_CODE} </if>
<if test="TT_NO != null and TT_NO !='' "> and TT_NO = #{TT_NO} </if>
<if test="TT_FSTATION != null and TT_FSTATION !='' "> and TT_FSTATION = #{TT_FSTATION} </if>
<if test="TT_TSTATION != null and TT_TSTATION !='' "> and TT_TSTATION = #{TT_TSTATION} </if>
<if test="TT_AMOUNT != null "> and TT_AMOUNT = #{TT_AMOUNT} </if>
<if test="TT_TAXRATE != null and TT_TAXRATE !='' "> and TT_TAXRATE = #{TT_TAXRATE} </if>
<if test="TT_TAXRATEAMOUNT != null "> and TT_TAXRATEAMOUNT = #{TT_TAXRATEAMOUNT} </if>
<if test="TT_NOTAXAMOUNT != null "> and TT_NOTAXAMOUNT = #{TT_NOTAXAMOUNT} </if>
<if test="TT_DATE != null "> and TT_DATE = #{TT_DATE} </if>
<if test="TT_TIME != null and TT_TIME !='' "> and TT_TIME = #{TT_TIME} </if>
<if test="TT_SERIALNO != null and TT_SERIALNO !='' "> and TT_SERIALNO = #{TT_SERIALNO} </if>
<if test="TT_IDNO != null and TT_IDNO !='' "> and TT_IDNO = #{TT_IDNO} </if>
<if test="TT_CUSTOMER != null and TT_CUSTOMER !='' "> and TT_CUSTOMER = #{TT_CUSTOMER} </if>
<if test="TT_SALESTATION != null and TT_SALESTATION !='' "> and TT_SALESTATION = #{TT_SALESTATION} </if>
<if test="TT_SALETYPE != null and TT_SALETYPE !='' "> and TT_SALETYPE = #{TT_SALETYPE} </if>
<if test="TT_CARRIAGE != null and TT_CARRIAGE !='' "> and TT_CARRIAGE = #{TT_CARRIAGE} </if>
<if test="TT_SEAT != null and TT_SEAT !='' "> and TT_SEAT = #{TT_SEAT} </if>
<if test="TT_CLASS != null and TT_CLASS !='' "> and TT_CLASS = #{TT_CLASS} </if>
<if test="TT_TICKETCHECKING != null and TT_TICKETCHECKING !='' "> and TT_TICKETCHECKING = #{TT_TICKETCHECKING} </if>
<if test="TT_KEY != null and TT_KEY !='' "> and TT_KEY = #{TT_KEY} </if>
<if test="TT_COUNT != null "> and TT_COUNT = #{TT_COUNT} </if>
<if test="TT_DATETIME != null and TT_DATETIME !='' "> and TT_DATETIME = #{TT_DATETIME} </if>
<if test="TT_EDATETIME != null and TT_EDATETIME !='' "> and TT_EDATETIME = #{TT_EDATETIME} </if>
<if test="TT_OUTDATE != null "> and TT_OUTDATE = #{TT_OUTDATE} </if>
<if test="TT_ELECTRONIC != null "> and TT_ELECTRONIC = #{TT_ELECTRONIC} </if>
<if test="TT_BUSINESSTYPE != null "> and TT_BUSINESSTYPE = #{TT_BUSINESSTYPE} </if>
<if test="TT_BUYERNAME != null and TT_BUYERNAME !='' "> and TT_BUYERNAME = #{TT_BUYERNAME} </if>
<if test="TT_BUYERTAXNO != null and TT_BUYERTAXNO !='' "> and TT_BUYERTAXNO = #{TT_BUYERTAXNO} </if>
<if test="TT_ORIGINALINVOICE != null and TT_ORIGINALINVOICE !='' "> and TT_ORIGINALINVOICE = #{TT_ORIGINALINVOICE} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="LexmiscivTrainticketEntity_list_like" resultMap="get-LexmiscivTrainticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity">
select
<include refid="LexmiscivTrainticketEntity_Base_Column_List" />
from LEXMISCIV_TRAINTICKET
<trim prefix="where" prefixOverrides="and">
<if test="TT_ID != null ">TT_ID = #{TT_ID}</if>
<if test="TT_CODE != null and TT_CODE !='' "> and TT_CODE like concat('%',#{TT_CODE},'%') </if>
<if test="TT_NO != null and TT_NO !='' "> and TT_NO like concat('%',#{TT_NO},'%') </if>
<if test="TT_FSTATION != null and TT_FSTATION !='' "> and TT_FSTATION like concat('%',#{TT_FSTATION},'%') </if>
<if test="TT_TSTATION != null and TT_TSTATION !='' "> and TT_TSTATION like concat('%',#{TT_TSTATION},'%') </if>
<if test="TT_AMOUNT != null "> and TT_AMOUNT = #{TT_AMOUNT}</if>
<if test="TT_TAXRATE != null and TT_TAXRATE !='' "> and TT_TAXRATE like concat('%',#{TT_TAXRATE},'%') </if>
<if test="TT_TAXRATEAMOUNT != null "> and TT_TAXRATEAMOUNT = #{TT_TAXRATEAMOUNT}</if>
<if test="TT_NOTAXAMOUNT != null "> and TT_NOTAXAMOUNT = #{TT_NOTAXAMOUNT}</if>
<if test="TT_DATE != null and TT_DATE !='' "> and TT_DATE like concat('%',#{TT_DATE},'%') </if>
<if test="TT_TIME != null and TT_TIME !='' "> and TT_TIME like concat('%',#{TT_TIME},'%') </if>
<if test="TT_SERIALNO != null and TT_SERIALNO !='' "> and TT_SERIALNO like concat('%',#{TT_SERIALNO},'%') </if>
<if test="TT_IDNO != null and TT_IDNO !='' "> and TT_IDNO like concat('%',#{TT_IDNO},'%') </if>
<if test="TT_CUSTOMER != null and TT_CUSTOMER !='' "> and TT_CUSTOMER like concat('%',#{TT_CUSTOMER},'%') </if>
<if test="TT_SALESTATION != null and TT_SALESTATION !='' "> and TT_SALESTATION like concat('%',#{TT_SALESTATION},'%') </if>
<if test="TT_SALETYPE != null and TT_SALETYPE !='' "> and TT_SALETYPE like concat('%',#{TT_SALETYPE},'%') </if>
<if test="TT_CARRIAGE != null and TT_CARRIAGE !='' "> and TT_CARRIAGE like concat('%',#{TT_CARRIAGE},'%') </if>
<if test="TT_SEAT != null and TT_SEAT !='' "> and TT_SEAT like concat('%',#{TT_SEAT},'%') </if>
<if test="TT_CLASS != null and TT_CLASS !='' "> and TT_CLASS like concat('%',#{TT_CLASS},'%') </if>
<if test="TT_TICKETCHECKING != null and TT_TICKETCHECKING !='' "> and TT_TICKETCHECKING like concat('%',#{TT_TICKETCHECKING},'%') </if>
<if test="TT_KEY != null and TT_KEY !='' "> and TT_KEY like concat('%',#{TT_KEY},'%') </if>
<if test="TT_COUNT != null "> and TT_COUNT = #{TT_COUNT}</if>
<if test="TT_DATETIME != null and TT_DATETIME !='' "> and TT_DATETIME like concat('%',#{TT_DATETIME},'%') </if>
<if test="TT_EDATETIME != null and TT_EDATETIME !='' "> and TT_EDATETIME like concat('%',#{TT_EDATETIME},'%') </if>
<if test="TT_OUTDATE != null and TT_OUTDATE !='' "> and TT_OUTDATE like concat('%',#{TT_OUTDATE},'%') </if>
<if test="TT_ELECTRONIC != null "> and TT_ELECTRONIC = #{TT_ELECTRONIC}</if>
<if test="TT_BUSINESSTYPE != null "> and TT_BUSINESSTYPE = #{TT_BUSINESSTYPE}</if>
<if test="TT_BUYERNAME != null and TT_BUYERNAME !='' "> and TT_BUYERNAME like concat('%',#{TT_BUYERNAME},'%') </if>
<if test="TT_BUYERTAXNO != null and TT_BUYERTAXNO !='' "> and TT_BUYERTAXNO like concat('%',#{TT_BUYERTAXNO},'%') </if>
<if test="TT_ORIGINALINVOICE != null and TT_ORIGINALINVOICE !='' "> and TT_ORIGINALINVOICE like concat('%',#{TT_ORIGINALINVOICE},'%') </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="LexmiscivTrainticketEntity_list_or" resultMap="get-LexmiscivTrainticketEntity-result" parameterType="com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity">
select
<include refid="LexmiscivTrainticketEntity_Base_Column_List" />
from LEXMISCIV_TRAINTICKET
<trim prefix="where" prefixOverrides="or">
<if test="TT_ID != null ">TT_ID = #{TT_ID}</if>
<if test="TT_CODE != null and TT_CODE !='' "> or TT_CODE = #{TT_CODE} </if>
<if test="TT_NO != null and TT_NO !='' "> or TT_NO = #{TT_NO} </if>
<if test="TT_FSTATION != null and TT_FSTATION !='' "> or TT_FSTATION = #{TT_FSTATION} </if>
<if test="TT_TSTATION != null and TT_TSTATION !='' "> or TT_TSTATION = #{TT_TSTATION} </if>
<if test="TT_AMOUNT != null "> or TT_AMOUNT = #{TT_AMOUNT}</if>
<if test="TT_TAXRATE != null and TT_TAXRATE !='' "> or TT_TAXRATE = #{TT_TAXRATE} </if>
<if test="TT_TAXRATEAMOUNT != null "> or TT_TAXRATEAMOUNT = #{TT_TAXRATEAMOUNT}</if>
<if test="TT_NOTAXAMOUNT != null "> or TT_NOTAXAMOUNT = #{TT_NOTAXAMOUNT}</if>
<if test="TT_DATE != null and TT_DATE !='' "> or TT_DATE = #{TT_DATE} </if>
<if test="TT_TIME != null and TT_TIME !='' "> or TT_TIME = #{TT_TIME} </if>
<if test="TT_SERIALNO != null and TT_SERIALNO !='' "> or TT_SERIALNO = #{TT_SERIALNO} </if>
<if test="TT_IDNO != null and TT_IDNO !='' "> or TT_IDNO = #{TT_IDNO} </if>
<if test="TT_CUSTOMER != null and TT_CUSTOMER !='' "> or TT_CUSTOMER = #{TT_CUSTOMER} </if>
<if test="TT_SALESTATION != null and TT_SALESTATION !='' "> or TT_SALESTATION = #{TT_SALESTATION} </if>
<if test="TT_SALETYPE != null and TT_SALETYPE !='' "> or TT_SALETYPE = #{TT_SALETYPE} </if>
<if test="TT_CARRIAGE != null and TT_CARRIAGE !='' "> or TT_CARRIAGE = #{TT_CARRIAGE} </if>
<if test="TT_SEAT != null and TT_SEAT !='' "> or TT_SEAT = #{TT_SEAT} </if>
<if test="TT_CLASS != null and TT_CLASS !='' "> or TT_CLASS = #{TT_CLASS} </if>
<if test="TT_TICKETCHECKING != null and TT_TICKETCHECKING !='' "> or TT_TICKETCHECKING = #{TT_TICKETCHECKING} </if>
<if test="TT_KEY != null and TT_KEY !='' "> or TT_KEY = #{TT_KEY} </if>
<if test="TT_COUNT != null "> or TT_COUNT = #{TT_COUNT}</if>
<if test="TT_DATETIME != null and TT_DATETIME !='' "> or TT_DATETIME = #{TT_DATETIME} </if>
<if test="TT_EDATETIME != null and TT_EDATETIME !='' "> or TT_EDATETIME = #{TT_EDATETIME} </if>
<if test="TT_OUTDATE != null and TT_OUTDATE !='' "> or TT_OUTDATE = #{TT_OUTDATE} </if>
<if test="TT_ELECTRONIC != null "> or TT_ELECTRONIC = #{TT_ELECTRONIC}</if>
<if test="TT_BUSINESSTYPE != null "> or TT_BUSINESSTYPE = #{TT_BUSINESSTYPE}</if>
<if test="TT_BUYERNAME != null and TT_BUYERNAME !='' "> or TT_BUYERNAME = #{TT_BUYERNAME} </if>
<if test="TT_BUYERTAXNO != null and TT_BUYERTAXNO !='' "> or TT_BUYERTAXNO = #{TT_BUYERTAXNO} </if>
<if test="TT_ORIGINALINVOICE != null and TT_ORIGINALINVOICE !='' "> or TT_ORIGINALINVOICE = #{TT_ORIGINALINVOICE} </if>
</trim>
<if test=" sort =='' "> order by id desc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
</mapper>

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity;
/**
* @description: 迈锐思-公共信息表 service
* @tableName: LEXMISCIV_PUBLICINFO
* @entityName: LexmisPublicinfoEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmisPublicinfoService extends IBaseService<LexmisPublicinfoEntity,String> {
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity;
/**
* @description: 迈锐思-增值税发票子表 service
* @tableName: LEXMISCIV_INVOICEDETAIL
* @entityName: LexmiscivInvoicedetailEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivInvoicedetailService extends IBaseService<LexmiscivInvoicedetailEntity,String> {
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity;
/**
* @description: 迈锐思-增值税发票主表 service
* @tableName: LEXMISCIV_INVOICEMAIN
* @entityName: LexmiscivInvoicemainEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivInvoicemainService extends IBaseService<LexmiscivInvoicemainEntity,String> {
/**
* 根据主键查查增值税发票主表信息
* @param entity
* @return
*/
LexmiscivInvoicemainEntity getByImId(LexmiscivInvoicemainEntity entity);
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity;
/**
* @description: 迈锐思-飞机行程单 service
* @tableName: LEXMISCIV_PLANETICKET
* @entityName: LexmiscivPlaneticketEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivPlaneticketService extends IBaseService<LexmiscivPlaneticketEntity,String> {
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity;
/**
* @description: 迈锐思-飞机行程单明细 service
* @tableName: LEXMISCIV_PLANETICKETS
* @entityName: LexmiscivPlaneticketsEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivPlaneticketsService extends IBaseService<LexmiscivPlaneticketsEntity,String> {
}

View File

@ -0,0 +1,13 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity;
/**
* @description: 迈锐思-火车票 service
* @tableName: LEXMISCIV_TRAINTICKET
* @entityName: LexmiscivTrainticketEntity
* @author: gjh
* @history: 1.0
*/
public interface ILexmiscivTrainticketService extends IBaseService<LexmiscivTrainticketEntity,String> {
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service.impl;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmisPublicinfoDao;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmisPublicinfoEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.service.ILexmisPublicinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* @description: 迈锐思-公共信息表 service
* @tableName: LEXMISCIV_PUBLICINFO
* @entityName: LexmisPublicinfoEntity
* @author: gjh
* @history: 1.0
*/
@Service(value="LEXMISCIV_PUBLICINFOService")
public class LexmisPublicinfoServiceImpl extends BaseService<LexmisPublicinfoEntity,String> implements ILexmisPublicinfoService {
protected ILexmisPublicinfoDao lexmispublicinfoDao;
@Autowired
public void setLexmisPublicinfoDao(ILexmisPublicinfoDao dao) {
this.lexmispublicinfoDao = dao;
this.dao=dao;
}
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicedetailEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.service.ILexmiscivInvoicedetailService;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivInvoicedetailDao;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* @description: 迈锐思-增值税发票子表 service
* @tableName: LEXMISCIV_INVOICEDETAIL
* @entityName: LexmiscivInvoicedetailEntity
* @author: gjh
* @history: 1.0
*/
@Service(value="LEXMISCIV_INVOICEDETAILService")
public class LexmiscivInvoicedetailServiceImpl extends BaseService< LexmiscivInvoicedetailEntity,String> implements ILexmiscivInvoicedetailService{
protected ILexmiscivInvoicedetailDao lexmiscivinvoicedetailDao;
@Autowired
public void setLexmiscivInvoicedetailDao(ILexmiscivInvoicedetailDao dao) {
this.lexmiscivinvoicedetailDao = dao;
this.dao=dao;
}
}

View File

@ -0,0 +1,39 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivInvoicemainEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.service.ILexmiscivInvoicemainService;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivInvoicemainDao;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* @description: 迈锐思-增值税发票主表 service
* @tableName: LEXMISCIV_INVOICEMAIN
* @entityName: LexmiscivInvoicemainEntity
* @author: gjh
* @history: 1.0
*/
@Service(value="LEXMISCIV_INVOICEMAINService")
public class LexmiscivInvoicemainServiceImpl extends BaseService< LexmiscivInvoicemainEntity,String> implements ILexmiscivInvoicemainService{
protected ILexmiscivInvoicemainDao lexmiscivinvoicemainDao;
@Autowired
public void setLexmiscivInvoicemainDao(ILexmiscivInvoicemainDao dao) {
this.lexmiscivinvoicemainDao = dao;
this.dao=dao;
}
/**
* 根据主键查查增值税发票主表信息
*
* @param entity
* @return
*/
@DS("#entity.dataSourceCode")
@Override
public LexmiscivInvoicemainEntity getByImId(LexmiscivInvoicemainEntity entity) {
LexmiscivInvoicemainEntity lexmiscivInvoicemainEntity = lexmiscivinvoicemainDao.queryOne(entity);
return lexmiscivInvoicemainEntity;
}
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.service.ILexmiscivPlaneticketService;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivPlaneticketDao;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* @description: 迈锐思-飞机行程单 service
* @tableName: LEXMISCIV_PLANETICKET
* @entityName: LexmiscivPlaneticketEntity
* @author: gjh
* @history: 1.0
*/
@Service(value="LEXMISCIV_PLANETICKETService")
public class LexmiscivPlaneticketServiceImpl extends BaseService< LexmiscivPlaneticketEntity,String> implements ILexmiscivPlaneticketService{
protected ILexmiscivPlaneticketDao lexmiscivplaneticketDao;
@Autowired
public void setLexmiscivPlaneticketDao(ILexmiscivPlaneticketDao dao) {
this.lexmiscivplaneticketDao = dao;
this.dao=dao;
}
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivPlaneticketsEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.service.ILexmiscivPlaneticketsService;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivPlaneticketsDao;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* @description: 迈锐思-飞机行程单明细 service
* @tableName: LEXMISCIV_PLANETICKETS
* @entityName: LexmiscivPlaneticketsEntity
* @author: gjh
* @history: 1.0
*/
@Service(value="LEXMISCIV_PLANETICKETSService")
public class LexmiscivPlaneticketsServiceImpl extends BaseService< LexmiscivPlaneticketsEntity,String> implements ILexmiscivPlaneticketsService{
protected ILexmiscivPlaneticketsDao lexmiscivplaneticketsDao;
@Autowired
public void setLexmiscivPlaneticketsDao(ILexmiscivPlaneticketsDao dao) {
this.lexmiscivplaneticketsDao = dao;
this.dao=dao;
}
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.cinvoice.lexmis.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.LexmiscivTrainticketEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.service.ILexmiscivTrainticketService;
import com.hzya.frame.plugin.cinvoice.lexmis.dao.ILexmiscivTrainticketDao;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* @description: 迈锐思-火车票 service
* @tableName: LEXMISCIV_TRAINTICKET
* @entityName: LexmiscivTrainticketEntity
* @author: gjh
* @history: 1.0
*/
@Service(value="LEXMISCIV_TRAINTICKETService")
public class LexmiscivTrainticketServiceImpl extends BaseService< LexmiscivTrainticketEntity,String> implements ILexmiscivTrainticketService{
protected ILexmiscivTrainticketDao lexmiscivtrainticketDao;
@Autowired
public void setLexmiscivTrainticketDao(ILexmiscivTrainticketDao dao) {
this.lexmiscivtrainticketDao = dao;
this.dao=dao;
}
}

View File

@ -0,0 +1,101 @@
package com.hzya.frame.plugin.cinvoice.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.cinvoice.service.ICInvoiceImportPluginService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* @Description 发票批量导入有度税务
* @Author xiangerlin
* @Date 2025/4/18 15:12
**/
public class CInvoiceImportPluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private ICInvoiceImportPluginService pluginService;
/***
* 插件初始化方法
* @Author 👻👻👻👻👻👻👻👻 gjh
* @Date 2023-08-02 10:48
* @Param []
* @return void
**/
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
/****
* 插件销毁方法
* @author 👻👻👻👻👻👻👻👻 gjh
* @date 2023-08-02 10:48
* @return void
**/
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
/****
* 插件的ID
* @author 👻👻👻👻👻👻👻👻 gjh
* @date 2023-08-02 10:48
* @return void
**/
@Override
public String getPluginId() {
return "CInvoiceImportPluginInitializer";
}
/****
* 插件的名称
* @author 👻👻👻👻👻👻👻👻 gjh
* @date 2023-08-02 10:48
* @return void
**/
@Override
public String getPluginName() {
return "OA发票导入有度税务";
}
/****
* 插件的显示值
* @author 👻👻👻👻👻👻👻👻 gjh
* @date 2023-08-02 10:48
* @return void
**/
@Override
public String getPluginLabel() {
return "OA发票导入有度税务";
}
/***
* 插件类型 1场景插件
* @Author 👻👻👻👻👻👻👻👻 gjh
* @Date 2023-08-02 14:01
* @Param []
* @return java.lang.String
**/
@Override
public String getPluginType() {
return "1";
}
/***
* 执行业务代码
* @Author 👻👻👻👻👻👻👻👻 gjh
* @Date 2023-08-07 11:20
* @param requestJson 执行业务代码的参数
* @return void
**/
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
logger.info("======开始执OA发票批量导入有度税务插件======");
pluginService.importInvoice(requestJson);
return null;
}
}

View File

@ -0,0 +1,21 @@
package com.hzya.frame.plugin.cinvoice.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportBEntity;
import java.util.List;
/**
* @Description 发票批量导入有度税务 表体service
* @Author xiangerlin
* @Date 2025/4/18 15:35
**/
public interface ICInvoiceImportBService extends IBaseService<CInvoiceImportBEntity, String> {
/***
* 查询子表数据
* @param entity
* @return
*/
List<CInvoiceImportBEntity> queryInvoiceDetails(CInvoiceImportBEntity entity)throws Exception;
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.plugin.cinvoice.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportHEntity;
import java.util.List;
/**
* @Description 发票批量导入有度税务 表头service
* @Author xiangerlin
* @Date 2025/4/18 15:34
**/
public interface ICInvoiceImportHService extends IBaseService<CInvoiceImportHEntity, String> {
/**
* 查询发票列表
* @param entity
* @return
* @throws Exception
*/
List<CInvoiceImportHEntity> queryInvoiceList(CInvoiceImportHEntity entity) throws Exception;
}

View File

@ -0,0 +1,18 @@
package com.hzya.frame.plugin.cinvoice.service;
import com.alibaba.fastjson.JSONObject;
/**
* @Description 税务发票批量导入
* @Author xiangerlin
* @Date 2025/4/21 17:29
**/
public interface ICInvoiceImportPluginService {
/**
* 发票导入
* @param requestJson
* @return
* @throws Exception
*/
String importInvoice(JSONObject requestJson)throws Exception;
}

View File

@ -0,0 +1,43 @@
package com.hzya.frame.plugin.cinvoice.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.cinvoice.dao.ICInvoiceImportBDao;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportBEntity;
import com.hzya.frame.plugin.cinvoice.service.ICInvoiceImportBService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @Description 发票批量导入有度税务 表体service
* @Author xiangerlin
* @Date 2025/4/18 15:39
**/
@Service()
public class CInvoiceImportBServiceImpl extends BaseService<CInvoiceImportBEntity, String> implements ICInvoiceImportBService {
Logger logger = LogManager.getLogger(getClass());
private ICInvoiceImportBDao cInvoiceImportBDao;
@Autowired
public void setcInvoiceImportBDao(ICInvoiceImportBDao dao) {
this.cInvoiceImportBDao = dao;
this.dao = dao;
}
/***
* 查询子表数据
* @param entity
* @return
*/
@DS("#entity.dataSourceCode")
@Override
public List<CInvoiceImportBEntity> queryInvoiceDetails(CInvoiceImportBEntity entity) throws Exception {
List<CInvoiceImportBEntity> list = cInvoiceImportBDao.queryList(entity, "com.hzya.frame.plugin.cinvoice.dao.impl.CInvoiceImportBDaoImpl.entity_list_base");
return list;
}
}

View File

@ -0,0 +1,45 @@
package com.hzya.frame.plugin.cinvoice.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.cinvoice.dao.ICInvoiceImportHDao;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportHEntity;
import com.hzya.frame.plugin.cinvoice.service.ICInvoiceImportHService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @Description 发票批量导入有度税务 表头service
* @Author xiangerlin
* @Date 2025/4/18 15:38
**/
@Service()
public class CInvoiceImportHServiceImpl extends BaseService<CInvoiceImportHEntity, String> implements ICInvoiceImportHService {
Logger logger = LogManager.getLogger(getClass());
private ICInvoiceImportHDao cInvoiceImportHDao;
@Autowired
public void setcInvoiceImportHDao(ICInvoiceImportHDao dao) {
this.cInvoiceImportHDao = dao;
this.dao = dao;
}
/**
* 查询发票列表
*
* @param entity
* @return
* @throws Exception
*/
@DS("#entity.dataSourceCode")
@Override
public List<CInvoiceImportHEntity> queryInvoiceList(CInvoiceImportHEntity entity) throws Exception {
List<CInvoiceImportHEntity> list = cInvoiceImportHDao.queryList(entity, "com.hzya.frame.plugin.cinvoice.dao.impl.CInvoiceImportHDaoImpl.entity_list_base");
return list;
}
}

View File

@ -0,0 +1,327 @@
package com.hzya.frame.plugin.cinvoice.service.impl;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.Assert;
import cn.hutool.core.map.MapBuilder;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.cinvoice.assembler.*;
import com.hzya.frame.plugin.cinvoice.entity.CInvoiceImportHEntity;
import com.hzya.frame.plugin.cinvoice.lexmis.entity.*;
import com.hzya.frame.plugin.cinvoice.lexmis.service.*;
import com.hzya.frame.plugin.cinvoice.service.ICInvoiceImportHService;
import com.hzya.frame.plugin.cinvoice.service.ICInvoiceImportPluginService;
import com.hzya.frame.seeyon.util.YzfSignUtil;
import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* @Description 有度税务发票批量导入
* @Author xiangerlin
* @Date 2025/4/21 17:30
**/
@Service()
public class CInvoiceImportPluginServiceImpl implements ICInvoiceImportPluginService {
Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private ILexmisPublicinfoService lexmisPublicinfoService;
@Autowired
private ICInvoiceImportHService cInvoiceImportHService;
@Autowired
private ILexmiscivInvoicemainService lexmiscivInvoicemainService;
@Autowired
private ILexmiscivInvoicedetailService lexmiscivInvoicedetailService;
@Autowired
private ILexmiscivTrainticketService lexmiscivTrainticketService;
@Autowired
private ILexmiscivPlaneticketService lexmiscivPlaneticketService;
@Autowired
ILexmiscivPlaneticketsService lexmiscivPlaneticketsService;
@Value("${zt.url:}")
private String url;
@Value("${yzf.accessSecret:}")
private String accessSecret;
@Value("${yzf.accesskey:}")
private String accesskey;
/**
* 发票导入
*
* @param requestJson
* @return
* @throws Exception
*/
@Override
public String importInvoice(JSONObject requestJson) throws Exception {
//1 查OA主表
requestJson.get("");
String dataSourceCode = "HT-OA";
CInvoiceImportHEntity importHEntity = new CInvoiceImportHEntity();
importHEntity.setDataSourceCode(dataSourceCode);
importHEntity.setId("3922481031277596479");
List<CInvoiceImportHEntity> cInvoiceImportHList = cInvoiceImportHService.queryInvoiceList(importHEntity);
if (CollectionUtils.isNotEmpty(cInvoiceImportHList)){
ParamAssembler assembler = null;
CInvoiceImportHEntity cInvoiceH = cInvoiceImportHList.get(0);
//2 查OA明细表
//3 查迈瑞思发票表
//迈锐思发票公共信息表
List<LexmisPublicinfoEntity> lexmisPublicinfoEntityList = lexmisPublicinfoService.query(new LexmisPublicinfoEntity(cInvoiceH.getId(),dataSourceCode));
if (CollectionUtils.isNotEmpty(lexmisPublicinfoEntityList)){
//税务接口每次最多传50张发票
int size = lexmisPublicinfoEntityList.size();
int batchSize = 50;
for (int i = 0; i < size; i += batchSize){
int no = 1;//序号
//4 根据发票类型组装不同参数
long timestamp = System.currentTimeMillis();
Map<String, Object> parametersMap = new HashMap<>();
parametersMap.put("accessKey",accesskey);
parametersMap.put("timestamp",timestamp);
String sign = YzfSignUtil.signRequest(parametersMap, accessSecret);
JSONObject head = new JSONObject();
head.put("accessKey","6X3B526P5HqE6ums");//密钥
head.put("sign",sign);//签名
head.put("timestamp",timestamp);//时间戳
head.put("taxNo","91330110MAC5FPUY2U");//当前企业税号
JSONArray inputInfos = new JSONArray();
head.put("inputInfos",inputInfos);//发票录入信息单次最大50张
// 获取当前批次的子列表
List<LexmisPublicinfoEntity> batchList = lexmisPublicinfoEntityList.subList(i, Math.min(i + batchSize, size));
//使用stream方式 publicinfoList PI_TABLENAME分组
Map<String, List<LexmisPublicinfoEntity>> groupedByPiTablename = batchList.stream()
.collect(Collectors.groupingBy(LexmisPublicinfoEntity::getPI_TABLENAME));
for (Map.Entry<String,List<LexmisPublicinfoEntity>> entry : groupedByPiTablename.entrySet()){
String key = entry.getKey();//对应发票类型的表名
List<LexmisPublicinfoEntity> publicinfoList = entry.getValue();
ParamAssemblerContext context = null;//策略上下文类
for (LexmisPublicinfoEntity info : publicinfoList){
JSONObject inputInfo = new JSONObject();
inputInfos.add(inputInfo);
inputInfo.put("no",no);//编号
inputInfo.put("systemName","4");//来源系统 默认写4 代表OA
inputInfo.put("businessNo",cInvoiceH.getBill_code());//业务单据号
inputInfo.put("bookkeepingStatus","1");//记账状态默认传1
inputInfo.put("customFlag","2");//业务流转状态默认传2
JSONObject invoiceInfo = new JSONObject();//票面信息
inputInfo.put("invoiceInfo", invoiceInfo);
JSONObject baseInfo = new JSONObject();//发票基本信息
JSONObject contentInfo = new JSONObject();//发票内容
JSONArray taxturnsInfos = new JSONArray();//进项转出信息
invoiceInfo.put("taxturnsInfos",taxturnsInfos);
switch (key){
case "LEXMISCIV_INVOICEMAIN"://增值税发票
zzsInvoice(dataSourceCode, info, invoiceInfo, baseInfo);
//}
break;
case "LEXMISCIV_TRAINTICKET"://火车票
trainInvoice(dataSourceCode, inputInfos, info, inputInfo, invoiceInfo, baseInfo);
break;
case "LEXMISCIV_PLANETICKET"://飞机行程单
planeInvoice(dataSourceCode, info, invoiceInfo, baseInfo);
break;
default:
System.out.println("没有匹配到类型");
break;
}
no++;
}
}
logger.info("调用有度发票批量导入接口请求参数:{}",head.toString());
//调用税务接口
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
.put("apiCode", "8000600005")//有度发票导入接口
.put("publicKey","ZJYA7f8FzV219otH8zhkReiyyWpXswpbY/+StvC2em0hf59Ce7eDIk+3zDUT+v578prj")
.put("secretKey","xJ9J1Ev2F0faiJ/nQnCNklskAgtQp3QSm+ihO21uY/H0UADj0tSDPxmIhFfC4v6Fj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
.put("appId","800060")
.build();
String body = HttpRequest.post(url).addHeaders(headerMap).body(head.toString()).timeout(60000).execute().body();
logger.info("调用有度发票批量导入接口响应参数:{}",body);
}
}
}
return null;
}
/**
* 机票
* @param dataSourceCode
* @param info
* @param invoiceInfo
* @param baseInfo
*/
private void planeInvoice(String dataSourceCode, LexmisPublicinfoEntity info, JSONObject invoiceInfo, JSONObject baseInfo) {
ParamAssemblerContext context;
JSONObject contentInfo;
ParamAssembler assembler;
LexmiscivPlaneticketEntity planeticketH = lexmiscivPlaneticketService.queryOne(new LexmiscivPlaneticketEntity(info.getPI_DATAKEY(), dataSourceCode));
if (null != planeticketH){
String fplx = "a4";
LexmiscivPlaneticketsEntity planeticketB = new LexmiscivPlaneticketsEntity(planeticketH.getPT_ID(), dataSourceCode);
//飞机行程单子表
List<LexmiscivPlaneticketsEntity> planeticketBList = lexmiscivPlaneticketsService.query(planeticketB);
JSONObject planeObj = new JSONObject();
planeObj.put("planeticketH",JSONObject.toJSONString(planeticketH));
planeObj.put("planeticketBList",JSONObject.toJSONString(planeticketBList));
//1表示电子行程单 先不区分试试策略类内部判断来实现区分
if ("1".equals(planeticketH.getPT_ELECTRONICMARK())){
//assembler = new ElecFlightInvoiceAssembler(planeObj);
fplx = "400";
}
// else {
// assembler = new FlightInvoiceAssembler(planeObj);
// }
assembler = new ElecFlightInvoiceAssembler(planeObj);
context = new ParamAssemblerContext(assembler);
contentInfo = context.assemble();
baseInfo.put("fphm",planeticketH.getPT_FPHM());//发票号码
baseInfo.put("fpdm","");//发票代码
baseInfo.put("fplx",fplx);//发票类型
baseInfo.put("kprq",DateUtil.format(planeticketH.getPT_MAKEDATE(),"yyyy-MM-dd"));//开票日期
baseInfo.put("bhszje",planeticketH.getPT_NOTAXAMOUNT());//不含税总金额
baseInfo.put("jym","");//校验码
baseInfo.put("bxje",planeticketH.getPT_NOTAXAMOUNT());//不含税实际报销金额
baseInfo.put("jsse","");//有效计算税额
baseInfo.put("jsdkzq","");//计算抵扣账期
baseInfo.put("signPerson","");//签收人
baseInfo.put("signStatus","1");//签收状态默认传1
invoiceInfo.put("baseInfo", baseInfo);
invoiceInfo.put("contentInfo",contentInfo);
}
}
/**
* 火车票发票
* @param dataSourceCode
* @param inputInfos
* @param info
* @param inputInfo
* @param invoiceInfo
* @param baseInfo
*/
private void trainInvoice(String dataSourceCode, JSONArray inputInfos, LexmisPublicinfoEntity info, JSONObject inputInfo, JSONObject invoiceInfo, JSONObject baseInfo) {
JSONObject contentInfo;
ParamAssembler assembler;
ParamAssemblerContext context;
LexmiscivTrainticketEntity trainticketEntity = new LexmiscivTrainticketEntity(info.getPI_DATAKEY(), dataSourceCode);
trainticketEntity.setTT_BUSINESSTYPE(1);//1售票 2退票 3售票换开 4退票换开3和4没遇到过先查1
LexmiscivTrainticketEntity trainticket = lexmiscivTrainticketService.queryOne(trainticketEntity);
if (null != trainticket){
JSONObject trainObj = new JSONObject();
trainObj.put("trainInvoice",JSONObject.toJSONString(trainticket));
String fplx = "a2";
//1是电子票
if ("1".equals(trainticket.getTT_ELECTRONIC())){
assembler = new ElecTrainInvoiceAssembler(trainObj);
fplx = "200";
}else {
assembler = new TrainInvoiceAssembler(trainObj);
}
context = new ParamAssemblerContext(assembler);
contentInfo = context.assemble();
baseInfo.put("fphm",trainticket.getTT_CODE());//发票号码
baseInfo.put("fpdm","");//发票代码 火车票不用传
baseInfo.put("fplx",fplx);//发票类型
baseInfo.put("kprq",DateUtil.format(trainticket.getTT_OUTDATE(),"yyyy-MM-dd"));//开票日期
baseInfo.put("bhszje",trainticket.getTT_NOTAXAMOUNT());//不含税总金额
baseInfo.put("jym","");//校验码
baseInfo.put("bxje",trainticket.getTT_NOTAXAMOUNT());//不含税实际报销金额
baseInfo.put("jsse","");//有效计算税额
baseInfo.put("jsdkzq","");//计算抵扣账期
baseInfo.put("signPerson","");//签收人
baseInfo.put("signStatus","1");//签收状态默认传1
invoiceInfo.put("baseInfo", baseInfo);
invoiceInfo.put("contentInfo",contentInfo);
}else {
inputInfos.remove(inputInfo);
logger.info("根据pi_datakey没有查到火车票发票信息:{},发票号:{}", info.getPI_DATAKEY());
}
}
/**
* 增值税发票
* @param dataSourceCode 数据源编码
* @param info 发票公共表
* @param invoiceInfo 发票信息对象
* @param baseInfo 发票基本数据对象
*/
private void zzsInvoice(String dataSourceCode, LexmisPublicinfoEntity info, JSONObject invoiceInfo, JSONObject baseInfo) {
ParamAssemblerContext context;
JSONObject contentInfo;
ParamAssembler assembler;
LexmiscivInvoicemainEntity zzsInvoiceH = lexmiscivInvoicemainService.queryOne(new LexmiscivInvoicemainEntity(info.getPI_DATAKEY(), dataSourceCode));
//增值税发票表体
List<LexmiscivInvoicedetailEntity> zzsInvoiceBList = lexmiscivInvoicedetailService.query(new LexmiscivInvoicedetailEntity(zzsInvoiceH.getIM_ID(), dataSourceCode));
JSONObject zzs = new JSONObject();
zzs.put("zzsInvoiceH",JSONObject.toJSONString(zzsInvoiceH));
zzs.put("zzsInvoiceBList",JSONObject.toJSONString(zzsInvoiceBList));
assembler = new ZzsInvoiceAssembler(zzs);
context = new ParamAssemblerContext(assembler);
contentInfo = context.assemble();
baseInfo.put("fphm",zzsInvoiceH.getIM_FPHM());//发票号码
baseInfo.put("fpdm",zzsInvoiceH.getIM_FPDM());//发票代码
baseInfo.put("fplx",convertZzsFplx(zzsInvoiceH.getIM_TYPE()));//发票类型
baseInfo.put("kprq",DateUtil.format(zzsInvoiceH.getIM_DATE(),"yyyy-MM-dd"));//开票日期
baseInfo.put("bhszje",zzsInvoiceH.getIM_NOTAXAMOUNT());//不含税总金额
baseInfo.put("jym",zzsInvoiceH.getIM_CHECKCODE());//校验码
baseInfo.put("bxje",zzsInvoiceH.getIM_NOTAXAMOUNT());//不含税实际报销金额
baseInfo.put("jsse","");//有效计算税额
baseInfo.put("jsdkzq","");//计算抵扣账期
baseInfo.put("signPerson","");//签收人
baseInfo.put("signStatus","1");//签收状态默认传1
invoiceInfo.put("baseInfo", baseInfo);
invoiceInfo.put("contentInfo",contentInfo);
}
/**
* 迈锐思增值税类发票类型转换成有度发票类型
* @param fplx 迈锐思发票类型
* @return
*/
private String convertZzsFplx(String fplx){
if (StrUtil.isNotEmpty(fplx)){
String youduFplx = null;
switch (fplx){
case "01"://增值税专用发票
youduFplx = "01";
break;
case "04"://增值税普通发票
youduFplx = "04";
break;
case "10"://增值税电子普票
youduFplx = "10";
break;
case "20"://增值税电子专票
youduFplx = "08";
break;
case "31"://电子发票(增值税专票)
youduFplx = "31";
break;
case "32"://电子发票(增值税普票)
youduFplx = "32";
break;
}
return youduFplx;
}
return null;
}
}

View File

@ -0,0 +1,99 @@
package com.hzya.frame.plugin.cinvoice.util;
import cn.hutool.core.lang.Assert;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import java.time.Instant;
/**
* @Description 云帐房accessToken
* @Author xiangerlin
* @Date 2025/4/24 10:03
**/
public class YzfUtils {
static Logger logger = LoggerFactory.getLogger(YzfUtils.class);
//token
private static String accessToken;
//过期时间
private static Instant expireTime;
private static final Long CACHE_EXPIRY_TIME = 7000L; // 缓存有效时间
//应用key
private static String accessKey;
//应用密钥
private static String accessSecret;
//接口地址
private static String baseUrl;
@Value("${yzf.accessKey:}")
public static void setaccessKey(String accessKey) {
YzfUtils.accessKey = accessKey;
}
@Value("${yzf.accessSecret:}")
public static void setaccessSecret(String accessSecret) {
YzfUtils.accessSecret = accessSecret;
}
@Value("${yzf.baseUrl:}")
public static void setBaseUrl(String baseUrl){
YzfUtils.baseUrl = baseUrl;
}
/**
* 获取token
* @return
*/
public static String getAccessToken(){
return getAccessToken(accessKey,accessSecret);
}
/**
* 获取accessToken
*
* @param accessKey
* @param accessSecret
* @return
*/
public static String getAccessToken(String accessKey,String accessSecret) {
//判断是否过期 如果没过期直接返回
if (null != accessToken && expireTime != null && Instant.now().isBefore(expireTime)) {
return accessToken;
}
//获取新的accessToken
accessToken = fetchNewAccessToken(accessKey,accessSecret);
//过期时间设置成当前事件+7000s预留200s的时间
expireTime = Instant.now().plusSeconds(CACHE_EXPIRY_TIME);
return accessToken;
}
/**
* 获取新的accessToken
*
* @return
*/
private static String fetchNewAccessToken(String accessKey,String accessSecret) {
try {
if (StrUtil.isNotEmpty(accessKey) && StrUtil.isNotEmpty(accessSecret)) {
JSONObject param = new JSONObject();
param.put("accessKey", YzfUtils.accessKey);
param.put("accessSecret", YzfUtils.accessSecret);
String res = HttpRequest.post(YzfUtils.baseUrl+"/api/getToken").body(param.toString()).execute().body();
logger.info("调用云帐房token返回参数:{}",res);
if (StrUtil.isNotEmpty(res)){
JSONObject tokenObj = JSONObject.parseObject(res);
String code = tokenObj.getString("code");
if ("0".equals(code)){
JSONObject resultObj = tokenObj.getJSONObject("result");
if (null != resultObj){
return resultObj.getString("accessToken");
}
}
}
}
} catch (Exception _err) {
logger.error("获取oken出错:{}", _err);
}
return null;
}
}

View File

@ -51,4 +51,9 @@ invoice_ofd:
zx:
# 生产用这个 这个是银行给的
privateKey: MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgOHOzaKWBWOAbslvtYtS8tcQiJ9W9DT2cGQM3KSgXpfygCgYIKoEcz1UBgi2hRANCAAQNPct0MHOuDrVJBIy0RI7JKx9/PTlFHZlkIJr0EqpC+b/+N+z3JKbCMZ/wcP1V36Q+DlfDJCY9Ai/Uk2PZ9ZaF
publicKey: MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEDT3LdDBzrg61SQSMtESOySsffz05RR2ZZCCa9BKqQvm//jfs9ySmwjGf8HD9Vd+kPg5XwyQmPQIv1JNj2fWWhQ==
publicKey: MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEDT3LdDBzrg61SQSMtESOySsffz05RR2ZZCCa9BKqQvm//jfs9ySmwjGf8HD9Vd+kPg5XwyQmPQIv1JNj2fWWhQ==
# 云帐房配置
yzf:
accessKey: 6X3B526P5HqE6ums
accessSecret: 34e5fc32ac894a2ba2ade8c3852c7a0a
baseUrl: http://oapi.nanofintax.com

View File

@ -0,0 +1,43 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/xiangerlin/work/app/logs/dev
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/xiangerlin/work/app/file/dev
pluginpath: /Users/xiangerlin/work/app/file/dev
tomcatpath: /Users/xiangerlin/work/app/file/dev
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826F3067A6B93BC3839C836A06007869CD351FBBE388B51F742859388BBC1DE089923AAFBC69E448F15141DDF30EE6CE90185
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc-test
zt:
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface
yzf:
accessKey: 6X3B526P5HqE6ums
accessSecret: 34e5fc32ac894a2ba2ade8c3852c7a0a
baseUrl: http://oapi.nanofintax.com

View File

@ -1,6 +1,7 @@
package com.hzya.frame;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.cinvoice.plugin.CInvoiceImportPluginInitializer;
import com.hzya.frame.plugin.contract.plugin.ContractAuditPluginInitializer;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
@ -21,6 +22,8 @@ public class Test1 {
@Resource
private ContractAuditPluginInitializer contractPlugin;
@Resource
private CInvoiceImportPluginInitializer cInvoiceImportPluginInitializer;
@Test
public void contractAuditPluginTest(){
JSONObject jsonObject = new JSONObject();
@ -31,4 +34,16 @@ public class Test1 {
throw new RuntimeException(e);
}
}
//发票批量导入
@Test
public void cinvoicePluginTest(){
JSONObject jsonObject = new JSONObject();
jsonObject.put("sourceCode","HT-OA");
try {
cInvoiceImportPluginInitializer.executeBusiness(jsonObject);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}

View File

@ -163,6 +163,17 @@ public class temButtom {
}
@Test
public void youduTest(){
long timestamp = System.currentTimeMillis();
System.out.println("时间戳:"+timestamp);
Map<String, Object> parametersMap = new HashMap<>();
parametersMap.put("accessKey","6X3B526P5HqE6ums");
parametersMap.put("timestamp",timestamp);
String a = YzfSignUtil.signRequest(parametersMap,"34e5fc32ac894a2ba2ade8c3852c7a0a");
System.out.println("sign"+a);
}
private String getdata(String accessToken) {
String url = "http://oapi.nanofintax.com/api/invoice_receive/fp/v1/query?accessToken="+accessToken;
JSONObject dayabody = new JSONObject();