Merge remote-tracking branch 'origin/ht' into ht

# Conflicts:
#	base-buildpackage/src/main/java/com/hzya/frame/plugin/ht/plugin/MakeInvoicePluginInitializer.java
This commit is contained in:
yuqh 2025-04-25 11:15:26 +08:00
commit cb82bed10c
146 changed files with 16160 additions and 1161 deletions

2
.gitignore vendored
View File

@ -53,6 +53,7 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
./idea/
/.idea/
/buildpackage/src/main/resources/banner.txt
/webapp/target/
/service/target/
@ -66,3 +67,4 @@ $RECYCLE.BIN/
/base-webapp/target/classes/com/hzya/frame/
/fw-weixin/target/
/E:/yongansystem/log/2024-10-15/
/D:/

View File

@ -18,6 +18,11 @@
<artifactId>base-webapp</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.hzya.frame</groupId>
<artifactId>fw-oa</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
<profiles>
@ -32,8 +37,30 @@
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>httest</id> <!--开发环境-->
<properties>
<profile.active>httest</profile.active>
</properties>
</profile>
<profile>
<id>dev</id> <!--开发环境-->
<properties>
<profile.active>dev</profile.active>
</properties>
</profile>
<profile>
<id>xel</id> <!--相二林本地环境-->
<properties>
<profile.active>xel</profile.active>
</properties>
</profile>
<profile>
<id>llg</id> <!--开发环境-->
<properties>
<profile.active>llg</profile.active>
</properties>
</profile>
</profiles>
<build>
<finalName>kangarooDataCenterV3</finalName>

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

@ -0,0 +1,12 @@
package com.hzya.frame.plugin.contract.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.contract.entity.ContractAuditEntity;
/**
* @Description 合同评审
* @Author xiangerlin
* @Date 2025/3/31 14:55
**/
public interface IContractAuditDao extends IBaseDao<ContractAuditEntity,String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.contract.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.contract.dao.IContractAuditDao;
import com.hzya.frame.plugin.contract.entity.ContractAuditEntity;
import org.springframework.stereotype.Repository;
/**
* @Description 合同评审
* @Author xiangerlin
* @Date 2025/3/31 14:56
**/
@Repository()
public class ContractAuditDaoImpl extends MybatisGenericDao<ContractAuditEntity,String> implements IContractAuditDao {
}

View File

@ -0,0 +1,144 @@
package com.hzya.frame.plugin.contract.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @Description
* @Author xiangerlin
* @Date 2025/3/31 11:22
**/
public class ContractAuditEntity extends BaseEntity {
//表单id
private String id;
//单据号
private String field0168;
//合同编号
private String field0239;
//合同名称
private String field0005;
//流程id
private String col_summary_id;
//待办id
private String affairId;
//待办表体
private String subject;
//节点名称
private String node_name;
//节点权限
private String node_policy;
//待办接收时间
private String receive_time;
//待办完成时间
private String complete_time;
//待办状态
private String state;
//待办人登录名
private String login_name;
@Override
public String getId() {
return id;
}
@Override
public void setId(String id) {
this.id = id;
}
public String getCol_summary_id() {
return col_summary_id;
}
public void setCol_summary_id(String col_summary_id) {
this.col_summary_id = col_summary_id;
}
public String getAffairId() {
return affairId;
}
public void setAffairId(String affairId) {
this.affairId = affairId;
}
public String getField0168() {
return field0168;
}
public void setField0168(String field0168) {
this.field0168 = field0168;
}
public String getField0239() {
return field0239;
}
public void setField0239(String field0239) {
this.field0239 = field0239;
}
public String getField0005() {
return field0005;
}
public void setField0005(String field0005) {
this.field0005 = field0005;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public String getNode_name() {
return node_name;
}
public void setNode_name(String node_name) {
this.node_name = node_name;
}
public String getNode_policy() {
return node_policy;
}
public void setNode_policy(String node_policy) {
this.node_policy = node_policy;
}
public String getReceive_time() {
return receive_time;
}
public void setReceive_time(String receive_time) {
this.receive_time = receive_time;
}
public String getComplete_time() {
return complete_time;
}
public void setComplete_time(String complete_time) {
this.complete_time = complete_time;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getLogin_name() {
return login_name;
}
public void setLogin_name(String login_name) {
this.login_name = login_name;
}
}

View File

@ -0,0 +1,57 @@
<?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.contract.dao.impl.ContractAuditDaoImpl">
<resultMap id="get-ContractAuditEntity-result" type="com.hzya.frame.plugin.contract.entity.ContractAuditEntity">
<!--主键 -->
<result property="id" column="id"/>
<result property="field0168" column="field0168"/>
<result property="field0239" column="field0239"/>
<result property="field0005" column="field0005"/>
<result property="field0005" column="field0005"/>
<result property="subject" column="subject"/>
<result property="col_summary_id" column="col_summary_id"/>
<result property="affairId" column="affairId"/>
<result property="node_name" column="node_name"/>
<result property="node_policy" column="node_policy"/>
<result property="receive_time" column="receive_time"/>
<result property="complete_time" column="complete_time"/>
<result property="state" column="state"/>
<result property="login_name" column="login_name"/>
</resultMap>
<!-- 查询 超期60天没审批的合同 -->
<select id="entity_list_base" resultMap="get-ContractAuditEntity-result" parameterType="com.hzya.frame.plugin.contract.entity.ContractAuditEntity">
SELECT
formmain_0325.id,
formmain_0325.field0168,
formmain_0325.field0239,
formmain_0325.field0005,
COL_SUMMARY.subject,
COL_SUMMARY.id as col_summary_id,
CTP_AFFAIR.id as affairId,
CTP_AFFAIR.node_name,
CTP_AFFAIR.node_policy,
CTP_AFFAIR.receive_time,
CTP_AFFAIR.complete_time,
CTP_AFFAIR.state,
ORG_PRINCIPAL.login_name
FROM
formmain_0325
LEFT JOIN COL_SUMMARY ON COL_SUMMARY.FORM_RECORDID = formmain_0325.id
LEFT JOIN CTP_AFFAIR ON CTP_AFFAIR.OBJECT_ID = COL_SUMMARY.id
LEFT JOIN ORG_PRINCIPAL on ORG_PRINCIPAL.member_id = CTP_AFFAIR.MEMBER_ID
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">id = #{id}</if>
<if test="field0168 != null and field0168 != ''">and formmain_0325.field0168 = #{field0168}</if>
and CTP_AFFAIR.NODE_POLICY = '印章管理员'
and CTP_AFFAIR.state = 3
and DATEDIFF(DAY, CTP_AFFAIR.RECEIVE_TIME, GETDATE()) > 60
</trim>
</select>
</mapper>

View File

@ -0,0 +1,160 @@
package com.hzya.frame.plugin.contract.plugin;
import cn.hutool.core.map.MapBuilder;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.contract.entity.ContractAuditEntity;
import com.hzya.frame.plugin.contract.service.IContractAuditService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
/**
* @Description 合同评审超过60天流程未审批的把流程终止掉
* @Author xiangerlin
* @Date 2025/3/31 11:07
**/
public class ContractAuditPluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(getClass());
@Resource
private IContractAuditService contractAuditService;
/***
* 插件初始化方法
* @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 "ContractAuditPluginInitializer";
}
/****
* 插件的名称
* @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("======开始执行合同评审流程检测插件定时任务======");
//1查询超期的合同
ContractAuditEntity contractAuditEntity = new ContractAuditEntity();
contractAuditEntity.setDataSourceCode(requestJson.getString("sourceCode"));
//contractAuditEntity.setField0168("PS202503270198");
List<ContractAuditEntity> contractAuditList = contractAuditService.queryOverdueList(contractAuditEntity);
if (CollectionUtils.isNotEmpty(contractAuditList)){
String token = getToken();
for (ContractAuditEntity auditEntity : contractAuditList) {
//2更新流程状态为终止状态
JSONObject jsonObject = new JSONObject();
jsonObject.put("affairId",auditEntity.getAffairId());//待办id
jsonObject.put("member",auditEntity.getLogin_name());//当前待办登录名
//jsonObject.put("affairId","9022465059383233743");//待办id
//jsonObject.put("member","yonyou");//当前待办登录名
String reqParams = jsonObject.toString();
logger.info("合同评审流程终止接口请求参数:{}",reqParams);
//调用wms接口
Map<String, String> headerMap = MapBuilder.<String, String>create(true)
.put("apiCode", "8000590002")
.put("publicKey","ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj")
.put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
.put("appId","800059")
.put("token",token)
.build();
String body = HttpRequest.post("http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(headerMap).body(reqParams).timeout(60000).execute().body();
logger.info("合同评审流程终止接口返回参数:{}",body);
}
}
return null;
}
//获取token
private String getToken(){
String token = null;
JSONObject tokenObj = new JSONObject();
tokenObj.put("userName","rest0331");
tokenObj.put("password","27db12a6-e09d-488f-90fb-143d9f45938d");
tokenObj.put("loginName","yonyou");
String tokenReqParams = tokenObj.toString();
Map<String, String> tokenHeaderMap = MapBuilder.<String, String>create(true)
.put("apiCode", "8000590001")
.put("publicKey","ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj")
.put("secretKey","fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=")
.put("appId","800059")
.build();
String tokenBody = HttpRequest.post("http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface").addHeaders(tokenHeaderMap).body(tokenReqParams).timeout(60000).execute().body();
if (StrUtil.isNotEmpty(tokenBody)){
JsonResultEntity jsonResultEntity = JSONObject.parseObject(tokenBody, JsonResultEntity.class);
JSONObject jsonObject = (JSONObject) jsonResultEntity.getAttribute();
token = jsonObject.getString("id");
}
return token;
}
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.plugin.contract.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.contract.entity.ContractAuditEntity;
import java.util.List;
/**
* @Description 合同评审
* @Author xiangerlin
* @Date 2025/3/31 11:15
**/
public interface IContractAuditService extends IBaseService<ContractAuditEntity,String> {
/**
* 查询超过60天还没审批的逾期合同
* @param entity
* @return
* @throws Exception
*/
List<ContractAuditEntity> queryOverdueList(ContractAuditEntity entity)throws Exception;
}

View File

@ -0,0 +1,46 @@
package com.hzya.frame.plugin.contract.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.contract.dao.IContractAuditDao;
import com.hzya.frame.plugin.contract.entity.ContractAuditEntity;
import com.hzya.frame.plugin.contract.service.IContractAuditService;
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 合同评审
* @Author xiangerlin
* @Date 2025/3/31 11:16
**/
@Service()
public class ContractAuditServiceImpl extends BaseService<ContractAuditEntity,String> implements IContractAuditService {
Logger logger = LogManager.getLogger(getClass());
private IContractAuditDao contractAuditDao;
@Autowired
public void setContractAuditDao(IContractAuditDao dao) {
this.contractAuditDao = dao;
this.dao = dao;
}
/**
* 查询超过60天还没审批的逾期合同
*
* @param entity
* @return
* @throws Exception
*/
@DS("#entity.dataSourceCode")
@Override
public List<ContractAuditEntity> queryOverdueList(ContractAuditEntity entity) throws Exception {
List<ContractAuditEntity> query = contractAuditDao.query(entity);
return query;
}
}

View File

@ -2,7 +2,7 @@ package com.hzya.frame.plugin.ht.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
//import com.hzya.frame.seeyon.makeinvoice.service.IMakeInvoiceService;
import com.hzya.frame.seeyon.invoice.service.impl.InvoiceServiceImpl;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
@ -15,9 +15,10 @@ import org.springframework.beans.factory.annotation.Autowired;
* @Date 2024/8/22 16:39
**/
public class MakeInvoicePluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
// private IMakeInvoiceService makeInvoiceService;
private InvoiceServiceImpl invoiceService;
Logger logger = LoggerFactory.getLogger(getClass());
/***
* 插件初始化方法
* @Author 👻👻👻👻👻👻👻👻 gjh
@ -95,7 +96,13 @@ public class MakeInvoicePluginInitializer extends PluginBaseEntity {
**/
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
// JsonResultEntity result = makeInvoiceService.sendMakeInvoiceSw(requestJson);
return BaseResult.getSuccessMessageEntity("操作成功");
try {
logger.info("======开始执行杭泰开票申请单同步========");
return invoiceService.queryArchives(requestJson);
}catch (Exception e){
logger.info("======执行杭泰开票申请单同步失败:{}========",e.getMessage());
e.printStackTrace();
}
return null;
}
}

View File

@ -0,0 +1,58 @@
package com.hzya.frame.plugin.ht.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.zxBank.plugin.ZxBankResultPluginInitializer;
import com.hzya.frame.seeyon.invoice.service.impl.InvoiceServiceImpl;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
public class QueryInputInvoiceResultPluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(QueryInputInvoiceResultPluginInitializer.class);
@Autowired
private InvoiceServiceImpl invoiceService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "QueryInputInvoiceResultPluginInitializer";
}
@Override
public String getPluginName() {
return "查询发票批量录入返回结果插件";
}
@Override
public String getPluginLabel() {
return "QueryInputInvoiceResultPluginInitializer";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("======开始执行查询税务进项发票批量录入返回结果========");
return invoiceService.queryInputInvoiceResult(requestJson);
}catch (Exception e){
logger.info("======执行查询税务进项发票批量录入返回结果失败:{}========",e.getMessage());
e.printStackTrace();
}
return null;
}
}

View File

@ -0,0 +1,58 @@
package com.hzya.frame.plugin.ht.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.zxBank.plugin.ZxBankResultPluginInitializer;
import com.hzya.frame.seeyon.invoice.service.impl.InvoiceServiceImpl;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
public class QueryInvoiceResultPluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(ZxBankResultPluginInitializer.class);
@Autowired
private InvoiceServiceImpl invoiceService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "QueryInvoiceResultPluginInitializer";
}
@Override
public String getPluginName() {
return "查询开票申请详情插件";
}
@Override
public String getPluginLabel() {
return "QueryInvoiceResultPluginInitializer";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("======开始执行查询税务开票申请详情返回结果========");
return invoiceService.queryInvoiceResult(requestJson);
}catch (Exception e){
logger.info("======执行查询税务开票申请详情返回结果失败:{}========",e.getMessage());
e.printStackTrace();
}
return null;
}
}

View File

@ -0,0 +1,36 @@
package com.hzya.frame.plugin.incomeInvoiceData.dao;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity;
import java.util.List;
/**
* 客户档案(mdm_customer: table)表数据库访问层
*
* @author makejava
* @since 2024-06-21 13:52:35
*/
public interface IIncomeInvoiceDao extends IBaseDao<IncomeInvoiceEntity, String> {
List<JSONObject> queryData(JSONObject saveData);
int saveDetailData(JSONObject saveDetailData);
int saveData(JSONObject saveData);
List<IncomeInvoiceEntity> queryOaZb(IncomeInvoiceEntity incomeInvoiceEntity);
List<IncomeInvoiceEntity> queryOaMx(IncomeInvoiceEntity incomeInvoiceEntity);
int updateMx(IncomeInvoiceEntity incomeInvoiceEntity);
int saveMx(IncomeInvoiceEntity incomeInvoiceEntity);
List<IncomeInvoiceEntity> queryZtzz(IncomeInvoiceEntity entity);
List<JSONObject> queryByAloneId(IncomeInvoiceEntity jnquerydata);
}

View File

@ -0,0 +1,70 @@
package com.hzya.frame.plugin.incomeInvoiceData.dao.impl;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.incomeInvoiceData.dao.IIncomeInvoiceDao;
import com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity;
import java.util.List;
/**
*
* @author makejava
* @since 2024-06-21 13:52:35
*/
public class IncomeInvoiceDaoImpl extends MybatisGenericDao<IncomeInvoiceEntity, String> implements IIncomeInvoiceDao {
@Override
public List<JSONObject> queryData(JSONObject saveData) {
List<JSONObject> o = (List<JSONObject>) super.selectList(getSqlIdPrifx() + "queryData", saveData);
return o;
}
@Override
public int saveData(JSONObject saveData) {
return super.insert(getSqlIdPrifx() + "saveData", saveData);
}
@Override
public int saveDetailData(JSONObject saveData) {
return super.insert(getSqlIdPrifx() + "saveDetailData", saveData);
}
@DS("#entity.dataSourceCode")
@Override
public List<IncomeInvoiceEntity> queryOaZb(IncomeInvoiceEntity entity) {
List<IncomeInvoiceEntity> o = (List<IncomeInvoiceEntity>) super.selectList(getSqlIdPrifx() + "queryOaZb", entity);
return o;
}
@DS("#entity.dataSourceCode")
@Override
public List<IncomeInvoiceEntity> queryOaMx(IncomeInvoiceEntity entity) {
List<IncomeInvoiceEntity> o = (List<IncomeInvoiceEntity>) super.selectList(getSqlIdPrifx() + "queryOaMx", entity);
return o;
}
@DS("#entity.dataSourceCode")
@Override
public int updateMx(IncomeInvoiceEntity entity) {
return super.update(getSqlIdPrifx() + "updateMx", entity);
}
@DS("#entity.dataSourceCode")
@Override
public int saveMx(IncomeInvoiceEntity entity) {
return super.insert(getSqlIdPrifx() + "saveMx", entity);
}
@DS("#entity.dataSourceCode")
@Override
public List<IncomeInvoiceEntity> queryZtzz(IncomeInvoiceEntity entity) {
List<IncomeInvoiceEntity> o = (List<IncomeInvoiceEntity>) super.selectList(getSqlIdPrifx() + "queryZtzz", entity);
return o;
}
@DS("#entity.dataSourceCode")
@Override
public List<JSONObject> queryByAloneId(IncomeInvoiceEntity entity) {
List<JSONObject> o = (List<JSONObject>) super.selectList(getSqlIdPrifx() + "queryByAloneId", entity);
return o;
}
}

View File

@ -0,0 +1,125 @@
package com.hzya.frame.plugin.incomeInvoiceData.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
*
* @author makejava
* @since 2024-06-21 13:52:35
*/
public class IncomeInvoiceEntity extends BaseEntity {
//发票字段
private Integer dataId;
private Integer formmainId;
private String field0127;
private String field0128;
private String field0129;
private String field0130;
private String field0003;
//财报数据 字段
private String aloneId;
private String sysData;
private String orgCode;
private String orgName;
private String iufoVer;
public String getAloneId() {
return aloneId;
}
public void setAloneId(String aloneId) {
this.aloneId = aloneId;
}
public String getSysData() {
return sysData;
}
public void setSysData(String sysData) {
this.sysData = sysData;
}
public String getOrgCode() {
return orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
public String getOrgName() {
return orgName;
}
public void setOrgName(String orgName) {
this.orgName = orgName;
}
public String getIufoVer() {
return iufoVer;
}
public void setIufoVer(String iufoVer) {
this.iufoVer = iufoVer;
}
public Integer getDataId() {
return dataId;
}
public void setDataId(Integer dataId) {
this.dataId = dataId;
}
public Integer getFormmainId() {
return formmainId;
}
public void setFormmainId(Integer formmainId) {
this.formmainId = formmainId;
}
public String getField0127() {
return field0127;
}
public void setField0127(String field0127) {
this.field0127 = field0127;
}
public String getField0128() {
return field0128;
}
public void setField0128(String field0128) {
this.field0128 = field0128;
}
public String getField0129() {
return field0129;
}
public void setField0129(String field0129) {
this.field0129 = field0129;
}
public String getField0130() {
return field0130;
}
public void setField0130(String field0130) {
this.field0130 = field0130;
}
public String getField0003() {
return field0003;
}
public void setField0003(String field0003) {
this.field0003 = field0003;
}
}

View File

@ -0,0 +1,538 @@
<?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.incomeInvoiceData.dao.impl.IncomeInvoiceDaoImpl">
<select id="queryData" resultType="com.alibaba.fastjson.JSONObject" parameterType="com.alibaba.fastjson.JSONObject">
select
*
from mdm_fp
<trim prefix="where" prefixOverrides="and">
<if test="fphm != null and fphm != ''"> and fphm = #{fphm} </if>
and sts = 'Y' and data_status != 'N'
</trim>
</select>
<insert id="saveData" parameterType="com.alibaba.fastjson.JSONObject">
insert into mdm_fp(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
<if test="document_rule != null and document_rule != ''"> document_rule , </if>
<if test="document_rule_num != null"> document_rule_num , </if>
<if test="data_status != null and data_status != ''"> data_status , </if>
<if test="add_status != null and add_status != ''"> add_status , </if>
<if test="update_status != null and update_status != ''"> update_status , </if>
<if test="delete_status != null and delete_status != ''"> delete_status , </if>
<if test="sorts != null"> sorts , </if>
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
<if test="create_time != null"> create_time , </if>
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
<if test="modify_time != null"> modify_time , </if>
<if test="sts != null and sts != ''"> sts , </if>
<if test="org_id != null and org_id != ''"> org_id , </if>
<if test="companyId != null and companyId != ''"> company_id , </if>
<if test="fphm != null and fphm != ''"> fphm , </if>
<if test="fpdm != null and fpdm != ''"> fpdm , </if>
<if test="kprq != null and kprq != ''"> kprq , </if>
<if test="xfsh != null and xfsh != ''"> xfsh , </if>
<if test="xfmc != null and xfmc != ''"> xfmc , </if>
<if test="gfsh != null and gfsh != ''"> gfsh , </if>
<if test="gfmc != null and gfmc != ''"> gfmc , </if>
<if test="hjje != null and hjje != ''"> hjje , </if>
<if test="hjse != null and hjse != ''"> hjse , </if>
<if test="jshj != null and jshj != ''"> jshj , </if>
<if test="jym != null and jym != ''"> jym , </if>
<if test="xfdzdh != null and xfdzdh != ''"> xfdzdh , </if>
<if test="xfyhzh != null and xfyhzh != ''"> xfyhzh , </if>
<if test="gfdzdh != null and gfdzdh != ''"> gfdzdh , </if>
<if test="gfyhzh != null and gfyhzh != ''"> gfyhzh , </if>
<if test="mmq != null and mmq != ''"> mmq , </if>
<if test="bz != null and bz != ''"> bz , </if>
<if test="jqbh != null and jqbh != ''"> jqbh , </if>
<if test="jdhm != null and jdhm != ''"> jdhm , </if>
<if test="kpr != null and kpr != ''"> kpr , </if>
<if test="skr != null and skr != ''"> skr , </if>
<if test="fhr != null and fhr != ''"> fhr , </if>
<if test="url != null and url != ''"> url , </if>
<if test="ofdurl != null and ofdurl != ''"> ofdurl , </if>
<if test="xmlurl != null and xmlurl != ''"> xmlurl , </if>
<if test="htbh != null and htbh != ''"> htbh , </if>
</trim>
)values
(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> #{id} , </if>
<if test="document_rule != null and document_rule != ''"> #{document_rule} , </if>
<if test="document_rule_num != null"> #{document_rule_num} , </if>
<if test="data_status != null and data_status != ''"> #{data_status} , </if>
<if test="add_status != null and add_status != ''"> #{add_status} , </if>
<if test="update_status != null and update_status != ''"> #{update_status} , </if>
<if test="delete_status != null and delete_status != ''"> #{delete_status} , </if>
<if test="sorts != null"> #{sorts} , </if>
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} , </if>
<if test="create_time != null"> #{create_time} , </if>
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} , </if>
<if test="modify_time != null"> #{modify_time} , </if>
<if test="sts != null and sts != ''"> #{sts} , </if>
<if test="org_id != null and org_id != ''"> #{org_id} , </if>
<if test="companyId != null and companyId != ''"> #{company_id} , </if>
<if test="fphm != null and fphm != ''"> #{fphm} , </if>
<if test="fpdm != null and fpdm != ''"> #{fpdm} , </if>
<if test="kprq != null and kprq != ''"> #{kprq} , </if>
<if test="xfsh != null and xfsh != ''"> #{xfsh} , </if>
<if test="xfmc != null and xfmc != ''"> #{xfmc} , </if>
<if test="gfsh != null and gfsh != ''"> #{gfsh} , </if>
<if test="gfmc != null and gfmc != ''"> #{gfmc} , </if>
<if test="hjje != null and hjje != ''"> #{hjje} , </if>
<if test="hjse != null and hjse != ''"> #{hjse} , </if>
<if test="jshj != null and jshj != ''"> #{jshj} , </if>
<if test="jym != null and jym != ''"> #{jym} , </if>
<if test="xfdzdh != null and xfdzdh != ''"> #{xfdzdh} , </if>
<if test="xfyhzh != null and xfyhzh != ''"> #{xfyhzh} , </if>
<if test="gfdzdh != null and gfdzdh != ''"> #{gfdzdh} , </if>
<if test="gfyhzh != null and gfyhzh != ''"> #{gfyhzh} , </if>
<if test="mmq != null and mmq != ''"> #{mmq} , </if>
<if test="bz != null and bz != ''"> #{bz} , </if>
<if test="jqbh != null and jqbh != ''"> #{jqbh} , </if>
<if test="jdhm != null and jdhm != ''"> #{jdhm} , </if>
<if test="kpr != null and kpr != ''"> #{kpr} , </if>
<if test="skr != null and skr != ''"> #{skr} , </if>
<if test="fhr != null and fhr != ''"> #{fhr} , </if>
<if test="url != null and url != ''"> #{url} , </if>
<if test="ofdurl != null and ofdurl != ''"> #{ofdurl} , </if>
<if test="xmlurl != null and xmlurl != ''"> #{xmlurl} , </if>
<if test="htbh != null and htbh != ''"> #{htbh} , </if>
</trim>
)
</insert>
<insert id="saveDetailData" parameterType="com.alibaba.fastjson.JSONObject">
insert into mdm_fp_detail(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> id , </if>
<if test="formmain_id != null and formmain_id != ''"> formmain_id , </if>
<if test="data_status != null and data_status != ''"> data_status , </if>
<if test="sorts != null"> sorts , </if>
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
<if test="create_time != null"> create_time , </if>
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
<if test="modify_time != null"> modify_time , </if>
<if test="sts != null and sts != ''"> sts , </if>
<if test="org_id != null and org_id != ''"> org_id , </if>
<if test="companyId != null and companyId != ''"> company_id , </if>
<if test="remark != null and remark != ''"> remark , </if>
<if test="xh != null and xh != ''"> xh , </if>
<if test="ssflbm != null and ssflbm != ''"> ssflbm , </if>
<if test="xmmc != null and xmmc != ''"> xmmc , </if>
<if test="ggxh != null and ggxh != ''"> ggxh , </if>
<if test="dw != null and dw != ''"> dw , </if>
<if test="sl != null and sl != ''"> sl , </if>
<if test="dj != null and dj != ''"> dj , </if>
<if test="je != null and je != ''"> je , </if>
<if test="slv != null and slv != ''"> slv , </if>
<if test="se != null and se != ''"> se , </if>
</trim>
)values
(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''"> #{id} , </if>
<if test="formmain_id != null and formmain_id != ''"> #{formmain_id} , </if>
<if test="data_status != null and data_status != ''"> #{data_status}, </if>
<if test="sorts != null"> #{sorts} , </if>
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} , </if>
<if test="create_time != null"> #{create_time} , </if>
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} , </if>
<if test="modify_time != null"> #{modify_time} , </if>
<if test="sts != null and sts != ''"> #{sts} , </if>
<if test="org_id != null and org_id != ''"> #{org_id} , </if>
<if test="companyId != null and companyId != ''"> #{company_id} , </if>
<if test="remark != null and remark != ''"> #{remark} , </if>
<if test="xh != null and xh != ''"> #{xh} , </if>
<if test="ssflbm != null and ssflbm != ''"> #{ssflbm} , </if>
<if test="xmmc != null and xmmc != ''"> #{xmmc} , </if>
<if test="ggxh != null and ggxh != ''"> #{ggxh} , </if>
<if test="dw != null and dw != ''"> #{dw} , </if>
<if test="sl != null and sl != ''"> #{sl} , </if>
<if test="dj != null and dj != ''"> #{dj} , </if>
<if test="je != null and je != ''"> #{je} , </if>
<if test="slv != null and slv != ''"> #{slv} , </if>
<if test="se != null and se != ''"> #{se} , </if>
</trim>
)
</insert>
<select id="queryOaZb" resultType="com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity" parameterType="com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity">
select
id as dataId,
field0003
from formmain_0323
<trim prefix="where" prefixOverrides="and">
<if test="field0003 != null and field0003 != ''"> and field0003 = #{field0003} </if>
</trim>
</select>
<select id="queryOaMx" resultType="com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity" parameterType="com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity">
select
id as dataId
from formson_0702
<trim prefix="where" prefixOverrides="and">
<if test="field0128 != null and field0128 != ''"> and field0128 = #{field0128} </if>
</trim>
</select>
<update id="updateMx" parameterType = "com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity" >
update formson_0702 set
<trim suffix="" suffixOverrides=",">
<if test="field0127 != null and field0127 != ''"> field0127 = #{field0127},</if>
<if test="field0128 != null and field0128 != ''"> field0128 = #{field0128},</if>
<if test="field0129 != null and field0129 != ''"> field0129 = #{field0129},</if>
<if test="field0130 != null and field0130 != ''"> field0130 = #{field0130},</if>
</trim>
where id = #{dataId}
</update>
<insert id="saveMx" parameterType="com.hzya.frame.report.reportManage.entity.ReportManageEntity">
insert into formson_0702(
<trim suffix="" suffixOverrides=",">
<if test="dataId != null and dataId != ''">id ,</if>
<if test="formmainId != null and formmainId != ''">formmain_id ,</if>
<if test="field0127 != null and field0127 != ''">field0127 ,</if>
<if test="field0128 != null and field0128 != ''">field0128 ,</if>
<if test="field0129 != null and field0129 != ''">field0129 ,</if>
<if test="field0130 != null and field0130 != ''">field0130 ,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="dataId != null and dataId != ''">#{dataId} ,</if>
<if test="formmainId != null and formmainId != ''">#{formmainId} ,</if>
<if test="field0127 != null and field0127 != ''">#{field0127} ,</if>
<if test="field0128 != null and field0128 != ''">#{field0128} ,</if>
<if test="field0129 != null and field0129 != ''">#{field0129} ,</if>
<if test="field0130 != null and field0130 != ''">#{field0130} ,</if>
</trim>
)
</insert>
<select id="queryZtzz" resultType="com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity" parameterType="com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity">
SELECT
*
FROM
(
SELECT
iufo.alone_id AS aloneId,
iufo.keyword2 AS sysData,
orgs.code AS orgCode,
orgs.name AS orgName,
iufo.ver AS iufoVer
FROM
IUFO_MEASPUB_VIOU iufo
LEFT JOIN org_orgs orgs ON iufo.keyword1 = orgs.pk_org
<trim prefix="where" prefixOverrides="and">
<if test="orgCode != null and orgCode !='' "> and orgs.code = #{orgCode} </if>
and ver = '0'
<if test="sysData != null and sysData !='' "> and iufo.keyword2 LIKE CONCAT(#{sysData}, '%') </if>
</trim>
ORDER BY
iufo.keyword2 DESC
)
WHERE
ROWNUM = 1
</select>
<select id="queryByAloneId" resultType="com.alibaba.fastjson.JSONObject" parameterType="com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity">
SELECT
a.ALONE_ID as ALONE_ID,
a.M10004 as AM10004,
a.M10005 as AM10005,
a.M10010 as AM10010,
a.M10012 as AM10012,
a.M10014 as AM10014,
a.M10019 as AM10019,
a.M10020 as AM10020,
a.M10021 as AM10021,
a.M10022 as AM10022,
a.M10025 as AM10025,
a.M10110 as AM10110,
a.M10027 as AM10027,
a.M10112 as AM10112,
a.M10029 as AM10029,
a.M10032 as AM10032,
a.M10033 as AM10033,
a.M10034 as AM10034,
a.M10035 as AM10035,
a.M10040 as AM10040,
a.M10128 as AM10128,
a.M10042 as AM10042,
a.M10130 as AM10130,
a.M10044 as AM10044,
a.M10045 as AM10045,
a.M10046 as AM10046,
a.M10047 as AM10047,
a.M10048 as AM10048,
a.M10049 as AM10049,
a.M10050 as AM10050,
a.M10051 as AM10051,
a.M10052 as AM10052,
a.M10053 as AM10053,
a.M10054 as AM10054,
a.M10055 as AM10055,
a.M10057 as AM10057,
a.M10059 as AM10059,
a.M10060 as AM10060,
a.M10061 as AM10061,
a.M10062 as AM10062,
a.M10063 as AM10063,
a.M10064 as AM10064,
a.M10065 as AM10065,
a.M10066 as AM10066,
a.M10073 as AM10073,
a.M10146 as AM10146,
a.M10075 as AM10075,
a.M10148 as AM10148,
a.M10077 as AM10077,
a.M10078 as AM10078,
a.M10079 as AM10079,
a.M10080 as AM10080,
a.M10081 as AM10081,
a.M10082 as AM10082,
a.M10083 as AM10083,
a.M10084 as AM10084,
a.M10087 as AM10087,
a.M10088 as AM10088,
a.M10091 as AM10091,
a.M10164 as AM10164,
a.M10093 as AM10093,
a.M10166 as AM10166,
a.M10095 as AM10095,
a.M10096 as AM10096,
a.M10097 as AM10097,
a.M10098 as AM10098,
a.M10099 as AM10099,
a.M10100 as AM10100,
a.M10101 as AM10101,
a.M10102 as AM10102,
a.M10105 as AM10105,
a.M10106 as AM10106,
a.M10109 as AM10109,
a.M10182 as AM10182,
a.M10111 as AM10111,
a.M10184 as AM10184,
a.M10113 as AM10113,
a.M10114 as AM10114,
a.M10115 as AM10115,
a.M10116 as AM10116,
a.M10117 as AM10117,
a.M10118 as AM10118,
a.M10119 as AM10119,
a.M10120 as AM10120,
a.M10123 as AM10123,
a.M10124 as AM10124,
a.M10127 as AM10127,
a.M10200 as AM10200,
a.M10129 as AM10129,
a.M10202 as AM10202,
a.M10131 as AM10131,
a.M10132 as AM10132,
a.M10133 as AM10133,
a.M10134 as AM10134,
a.M10135 as AM10135,
a.M10138 as AM10138,
a.M10141 as AM10141,
a.M10142 as AM10142,
a.M10143 as AM10143,
a.M10144 as AM10144,
a.M10145 as AM10145,
a.M10147 as AM10147,
a.M10149 as AM10149,
a.M10150 as AM10150,
a.M10151 as AM10151,
a.M10152 as AM10152,
a.M10153 as AM10153,
a.M10154 as AM10154,
a.M10155 as AM10155,
a.M10156 as AM10156,
a.M10257 as AM10257,
a.M10259 as AM10259,
a.M10159 as AM10159,
a.M10160 as AM10160,
a.M10161 as AM10161,
a.M10162 as AM10162,
a.M10163 as AM10163,
a.M10165 as AM10165,
a.M10167 as AM10167,
a.M10168 as AM10168,
a.M10169 as AM10169,
a.M10170 as AM10170,
a.M10171 as AM10171,
a.M10172 as AM10172,
a.M10173 as AM10173,
a.M10174 as AM10174,
a.M10281 as AM10281,
a.M10283 as AM10283,
a.M10179 as AM10179,
a.M10180 as AM10180,
a.M10181 as AM10181,
a.M10222 as AM10222,
a.M10183 as AM10183,
a.M10224 as AM10224,
a.M10185 as AM10185,
a.M10186 as AM10186,
a.M10187 as AM10187,
a.M10188 as AM10188,
a.M10189 as AM10189,
a.M10190 as AM10190,
a.M10191 as AM10191,
a.M10192 as AM10192,
a.M10295 as AM10295,
a.M10193 as AM10193,
a.M10297 as AM10297,
a.M10194 as AM10194,
a.M10195 as AM10195,
a.M10196 as AM10196,
a.M10197 as AM10197,
a.M10198 as AM10198,
a.M10199 as AM10199,
a.M10201 as AM10201,
a.M10203 as AM10203,
a.M10208 as AM10208,
a.M10209 as AM10209,
a.M10212 as AM10212,
a.M10310 as AM10310,
a.M10214 as AM10214,
a.M10312 as AM10312,
a.M10216 as AM10216,
a.M10217 as AM10217,
a.M10218 as AM10218,
a.M10219 as AM10219,
a.M10220 as AM10220,
a.M10221 as AM10221,
a.M10223 as AM10223,
a.M10225 as AM10225,
a.M10226 as AM10226,
a.M10227 as AM10227,
a.M10230 as AM10230,
a.M10231 as AM10231,
a.M10234 as AM10234,
a.M10325 as AM10325,
a.M10236 as AM10236,
a.M10327 as AM10327,
a.M10238 as AM10238,
a.M10239 as AM10239,
a.M10240 as AM10240,
a.M10241 as AM10241,
a.M10242 as AM10242,
a.M10243 as AM10243,
a.M10244 as AM10244,
a.M10245 as AM10245,
a.M10246 as AM10246,
a.M10247 as AM10247,
a.M10248 as AM10248,
a.M10249 as AM10249,
a.M10250 as AM10250,
a.M10251 as AM10251,
a.M10252 as AM10252,
a.M10253 as AM10253,
a.M10256 as AM10256,
a.M10340 as AM10340,
a.M10258 as AM10258,
a.M10342 as AM10342,
a.M10260 as AM10260,
a.M10265 as AM10265,
a.M10266 as AM10266,
a.M10267 as AM10267,
a.M10268 as AM10268,
a.M10269 as AM10269,
a.M10276 as AM10276,
a.M10277 as AM10277,
a.M10280 as AM10280,
a.M10282 as AM10282,
a.M10284 as AM10284,
a.M10287 as AM10287,
a.M10288 as AM10288,
a.M10289 as AM10289,
a.M10290 as AM10290,
a.M10291 as AM10291,
a.M10292 as AM10292,
a.M10293 as AM10293,
a.M10294 as AM10294,
a.M10011 as AM10011,
a.M10296 as AM10296,
a.M10013 as AM10013,
a.M10298 as AM10298,
a.M10299 as AM10299,
a.M10300 as AM10300,
a.M10301 as AM10301,
a.M10304 as AM10304,
a.M10305 as AM10305,
a.M10306 as AM10306,
a.M10307 as AM10307,
a.M10308 as AM10308,
a.M10309 as AM10309,
a.M10026 as AM10026,
a.M10311 as AM10311,
a.M10028 as AM10028,
a.M10313 as AM10313,
a.M10314 as AM10314,
a.M10315 as AM10315,
a.M10316 as AM10316,
a.M10319 as AM10319,
a.M10320 as AM10320,
a.M10321 as AM10321,
a.M10323 as AM10323,
a.M10326 as AM10326,
a.M10041 as AM10041,
a.M10328 as AM10328,
a.M10043 as AM10043,
a.M10329 as AM10329,
a.M10334 as AM10334,
a.M10335 as AM10335,
a.M10336 as AM10336,
a.M10338 as AM10338,
a.M10337 as AM10337,
a.M10339 as AM10339,
a.M10341 as AM10341,
a.M10056 as AM10056,
a.M10343 as AM10343,
a.M10058 as AM10058,
a.M10344 as AM10344,
a.M10347 as AM10347,
a.M10348 as AM10348,
a.M10349 as AM10349,
a.M10350 as AM10350,
a.M10351 as AM10351,
a.M10352 as AM10352,
a.M10353 as AM10353,
a.M10354 as AM10354,
b.MPQW10U as BMPQW10U,
b.MP81A2Z as BMP81A2Z,
b.MS13DPL as BMS13DPL,
b.M6TFKPL as BM6TFKPL,
c.M10002 as CM10002,
c.M10000 as CM10000,
c.M10004 as CM10004,
c.M10003 as CM10003,
c.M10001 as CM10001
FROM
iufo_measure_data_qi0xy5nl a
LEFT JOIN iufo_measure_data_v40w9co7 b on a.ALONE_ID = b.ALONE_ID
LEFT JOIN iufo_measure_data_jz8zffdp c on a.ALONE_ID = c.ALONE_ID
<trim prefix="where" prefixOverrides="and">
<if test="aloneId != null and aloneId != ''"> and a.ALONE_ID = #{aloneId} </if>
</trim>
</select>
</mapper>

View File

@ -0,0 +1,65 @@
package com.hzya.frame.plugin.incomeInvoiceData.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.incomeInvoiceData.service.IIncomeInvoiceService;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 主数据同步
*
* @author makejava
* @since 2024-06-21 13:52:35
*/
public class FinancialReportPluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(FinancialReportPluginInitializer.class);
@Autowired
private IIncomeInvoiceService incomeInvoiceService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "执行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "执行销毁方法destroy()");
}
@Override
public String getPluginId() {
return "FinancialReportPlugin";
}
@Override
public String getPluginName() {
return "FinancialReportPlugin插件";
}
@Override
public String getPluginLabel() {
return "FinancialReportPlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("======开始执行财务信息同步========");
//return BaseResult.getSuccessMessageEntity("数据获取成功");
return incomeInvoiceService.sendFinancialReportPlugin(requestJson);
}catch (Exception e){
logger.info("======执行财务同步失败:{}========",e.getMessage());
e.printStackTrace();
}
return null;
}
}

View File

@ -0,0 +1,63 @@
package com.hzya.frame.plugin.incomeInvoiceData.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.incomeInvoiceData.service.IIncomeInvoiceService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 主数据同步
*
* @author makejava
* @since 2024-06-21 13:52:35
*/
public class IncomeInvoicePluginInitializer extends PluginBaseEntity{
Logger logger = LoggerFactory.getLogger(IncomeInvoicePluginInitializer.class);
@Autowired
private IIncomeInvoiceService incomeInvoiceService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "执行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "执行销毁方法destroy()");
}
@Override
public String getPluginId() {
return "IncomeInvoicePlugin";
}
@Override
public String getPluginName() {
return "IncomeInvoicePlugin插件";
}
@Override
public String getPluginLabel() {
return "IncomeInvoicePlugin";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("======开始执行进项全量发票主数据信息同步========");
return incomeInvoiceService.getIncomeInvoiceData(requestJson);
}catch (Exception e){
logger.info("======执行进项全量发票主数据同步失败:{}========",e.getMessage());
e.printStackTrace();
}
return null;
}
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.plugin.incomeInvoiceData.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.incomeInvoiceData.entity.IncomeInvoiceEntity;
import com.hzya.frame.sysnew.application.entity.SysExtensionApiEntity;
import com.hzya.frame.web.entity.JsonResultEntity;
/**
*
* @author makejava
* @since 2024-06-21 13:52:35
*/
public interface IIncomeInvoiceService extends IBaseService<IncomeInvoiceEntity, String> {
/**
* @Author lvleigang
* @Description 全量发票数据
* @Date 4:28 下午 2025/4/16
* @param requestJson
* @return com.hzya.frame.web.entity.JsonResultEntity
**/
JsonResultEntity getIncomeInvoiceData(JSONObject requestJson);
SysExtensionApiEntity setData(SysExtensionApiEntity entity) throws Exception;
JsonResultEntity sendFinancialReportPlugin(JSONObject requestJson);
}

View File

@ -470,9 +470,10 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
}
}
}else {//执行正常下发
logger.info("==========开始执行正常主数据下发=============");
//查询主数据
MdmModuleEntity queryMdmModuleEntity = new MdmModuleEntity();
queryMdmModuleEntity.setMdmCode(10050L);
queryMdmModuleEntity.setSts("Y");
List<MdmModuleEntity> mdmModuleEntities = mdmModuleDao.queryBase(queryMdmModuleEntity);
if(mdmModuleEntities == null || mdmModuleEntities.size() == 0){
@ -509,13 +510,17 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
queryFildRule.setRuleCode("service");
List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(queryFildRule);
//新增
doAdd(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
//修改
doUpdate(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
//删除
doDelete(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
if(mdmModuleEntities.get(i).getMdmCode()!= 10045L){
//新增
doAdd(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
//修改
doUpdate(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
//删除
doDelete(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
}else{
logger.info("主数据编码为10045已经在业务数据下发执行主数据下发不执行");
continue;
}
}
}
@ -739,7 +744,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
map1.put("tableName",mainDb);
//map1.put("dataStatus", "F");
map1.put("updateStatus", "0");
map1.put("size", 50);
//map1.put("size", 50);
objects = mdmModuleDao.queryMdmSTs(map1);
objects = toLowerCaseKeys(objects);
@ -827,6 +832,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
/** body */
String bodys = doObjects.get(i).toJSONString();
if(scriptEntity != null && scriptEntity.getId() != null ){
logger.info("=========开始执行正常主数据修改下发脚本,第一次==============");
groovy.put("code",scriptEntity.getScriptCode());
groovy.put("className",scriptEntity.getClassName());
groovy.put("name",scriptEntity.getScriptName());
@ -854,6 +860,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
headers.putAll(header);
}
if (SysEnum.NEED_LOGIN.getValue().equals(apiEntity.getNeedLogin())) {
logger.info("=========正常主数据修改开始执行登录接口==============");
//找到登陆接口
SysApplicationApiEntity loginApi = sysApplicationApiDao.get(apiEntity.getAuthenticationPort());
if (null == loginApi) {
@ -874,12 +881,15 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
continue;
}
JSONObject attritube = JSONObject.parseObject(rzjsonResultEntity.getAttribute().toString());
logger.info("=======主数据正常修改下发登录返回数据:{}========",attritube.toJSONString());
querys = getQuery(apiEntity,querys,attritube);
headers = getHeaders(apiEntity,headers,attritube);
bodys = getBodys(apiEntity,bodys,attritube);
}
//组装数据发送
logger.info("=========开始执行主业务修改数据下发脚本,第二次==============");
JsonResultEntity jsonResultEntity = sendData(apiEntity,headers,bodys,querys);
logger.info("=====主数据修改下发返回结果为:{}",JSONObject.parseObject(jsonResultEntity.getAttribute().toString()).toJSONString());
if(jsonResultEntity.isFlag()){
//保存日志
saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"1","发送成功",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"2");
@ -911,7 +921,8 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
* @param mdmModuleDistributeEntities
* @return void
**/
private void doAdd(String mdmId,Long mainCode,List<MdmModuleDbEntity> mdmModuleDbEntities, List<MdmModuleDistributeEntity> mdmModuleDistributeEntities,List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities,List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities ) throws Exception {
private void
doAdd(String mdmId,Long mainCode,List<MdmModuleDbEntity> mdmModuleDbEntities, List<MdmModuleDistributeEntity> mdmModuleDistributeEntities,List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities,List<MdmModuleDbFiledsEntity> mdmModuleDbFiledsEntities ) throws Exception {
//查询一千条数据
String mainDb = null;
List<JSONObject> objects = new ArrayList<>();
@ -927,7 +938,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
map1.put("tableName",mainDb);
//map1.put("dataStatus", "Y");
map1.put("addStatus", "0");
map1.put("size", 50);
//map1.put("size", 50);
objects = mdmModuleDao.queryMdmSTs(map1);
objects = toLowerCaseKeys(objects);
@ -999,6 +1010,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
mdmModuleSendLogEntity.setOptionType("1");
Integer num = mdmModuleSendLogDao.getCount(mdmModuleSendLogEntity);
if(num > 0){//已经新增过不发送
objects.get(i).put("sendsanfzt123",true);
continue;
}
getDetailData(mdmModuleDbEntities,doObjects.get(i),mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
@ -1029,6 +1041,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
/** body */
String bodys = doObjects.get(i).toJSONString();
if(scriptEntity != null && scriptEntity.getId() != null ){
logger.info("=========开始执行正常主数据新增下发脚本,第一次==============");
groovy.put("code",scriptEntity.getScriptCode());
groovy.put("className",scriptEntity.getClassName());
groovy.put("name",scriptEntity.getScriptName());
@ -1056,6 +1069,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
headers.putAll(header);
}
if (SysEnum.NEED_LOGIN.getValue().equals(apiEntity.getNeedLogin())) {
logger.info("=========正常主数据新增开始执行登录接口==============");
//找到登陆接口
SysApplicationApiEntity loginApi = sysApplicationApiDao.get(apiEntity.getAuthenticationPort());
if (null == loginApi) {
@ -1076,15 +1090,19 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
continue;
}
JSONObject attritube = JSONObject.parseObject(rzjsonResultEntity.getAttribute().toString());
logger.info("=======主数据正常新增下发登录返回数据:{}========",attritube.toJSONString());
querys = getQuery(apiEntity,querys,attritube);
headers = getHeaders(apiEntity,headers,attritube);
bodys = getBodys(apiEntity,bodys,attritube);
}
//组装数据发送
logger.info("=========开始执行主业务新增数据下发脚本,第二次==============");
JsonResultEntity jsonResultEntity = sendData(apiEntity,headers,bodys,querys);
logger.info("=====主数据新增下发返回结果为:{}",JSONObject.parseObject(jsonResultEntity.getAttribute().toString()).toJSONString());
if(jsonResultEntity.isFlag()){
if (scriptEntity != null && scriptEntity.getId() != null && scriptEntity.getBackScriptData() != null ) {
logger.info("=========开始执行主数据新增返回脚本==============");
JSONObject backScriptJson = new JSONObject();
backScriptJson.put("data", jsonResultEntity.getAttribute());
groovy.put("code", scriptEntity.getScriptCode()+"back");
@ -1124,11 +1142,13 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
//保存日志
saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"1","发送成功",mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1");
objects.get(i).put("sendsanfzt123",true);
logger.info("========主数据新增下发完成,日志保存为成功============");
continue;
}else {
//保存日志
saveMdmModuleSendLogEntity(mainCode,mdmModuleDistributeEntities.get(i1).getId(),"2","转发失败:"+jsonResultEntity.getAttribute(),mainDb,objects.get(i).getString("id"),sysApplicationEntity.getName(),sysApplicationEntity.getId(),apiEntity.getApiName(),apiEntity.getId(),doObjects.get(i).toJSONString(),"1");
objects.get(i).put("sendsanfzt123",false);
logger.info("========主数据新增下发完成,日志保存为失败============");
continue;
}
}
@ -1136,7 +1156,7 @@ public class MdmModulePluginInitializer extends PluginBaseEntity {
//所有下发发送完成修改数据状态
for (int i = 0; i < objects.size(); i++) {
if(objects.get(i).getBoolean("sendsanfzt123")){
if(objects.get(i).getString("sendsanfzt123") != null && objects.get(i).getBoolean("sendsanfzt123")){
Map<String, Object> updateMap = new HashMap<>();
updateMap.put("tableName",mainDb);
//updateMap.put("dataStatus", "Y");

View File

@ -0,0 +1,12 @@
package com.hzya.frame.plugin.zxBank.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.zxBank.entity.ZjgjEntity;
/**
* @Description 资金归集
* @Author xiangerlin
* @Date 2025/4/11 11:07
**/
public interface IZjgjDao extends IBaseDao<ZjgjEntity,String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.zxBank.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.zxBank.dao.IZjgjDao;
import com.hzya.frame.plugin.zxBank.entity.ZjgjEntity;
import org.springframework.stereotype.Repository;
/**
* @Description 资金归集
* @Author xiangerlin
* @Date 2025/4/11 11:07
**/
@Repository()
public class ZjgjDaoImpl extends MybatisGenericDao<ZjgjEntity,String> implements IZjgjDao {
}

View File

@ -0,0 +1,11 @@
package com.hzya.frame.plugin.zxBank.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* @Description 资金归集
* @Author xiangerlin
* @Date 2025/4/11 11:04
**/
public class ZjgjEntity extends BaseEntity {
}

View File

@ -0,0 +1,11 @@
<?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.zxBank.dao.impl.ZjgjDaoImpl">
<resultMap id="get-ZjgjEntity-result" type="com.hzya.frame.plugin.zxBank.entity.ZjgjEntity">
<result property="id" column="id" />
</resultMap>
</mapper>

View File

@ -0,0 +1,97 @@
package com.hzya.frame.plugin.zxBank.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @Description 资金归集审批结果通知司库
* @Author xiangerlin
* @Date 2025/4/11 09:48
**/
public class ZjgjPluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(getClass());
/***
* 插件初始化方法
* @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 "ZjgjPluginInitializer";
}
/****
* 插件的名称
* @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资金归集审批结果回传司库插件======");
return null;
}
}

View File

@ -21,6 +21,7 @@ import com.hzya.frame.mdm.mdmModuleDistributeTripartite.entity.MdmModuleDistribu
import com.hzya.frame.mdm.mdmModuleSendLog.dao.IMdmModuleSendLogDao;
import com.hzya.frame.mdm.mdmModuleSendLog.entity.MdmModuleSendLogEntity;
import com.hzya.frame.mdm.service.IMdmServiceCache;
import com.hzya.frame.seeyon.zxbank.service.IZxBankService;
import com.hzya.frame.sys.sysenum.SysEnum;
import com.hzya.frame.sysnew.application.api.dao.ISysApplicationApiDao;
import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity;
@ -31,7 +32,6 @@ import com.hzya.frame.sysnew.application.script.entity.SysApplicationScriptEntit
import com.hzya.frame.sysnew.grovy.service.IGroovyIntegrationService;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.service.IIntegrationTaskLivingDetailsService;
import com.hzya.frame.sysnew.zxbank.service.IZxBankService;
import com.hzya.frame.uuid.UUIDUtils;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
@ -474,6 +474,7 @@ public class ZxBankDistributePluginInitializer extends PluginBaseEntity {
//查询主数据
MdmModuleEntity queryMdmModuleEntity = new MdmModuleEntity();
queryMdmModuleEntity.setSts("Y");
queryMdmModuleEntity.setMdmCode(Long.valueOf("10048"));
List<MdmModuleEntity> mdmModuleEntities = mdmModuleDao.queryBase(queryMdmModuleEntity);
if(mdmModuleEntities == null || mdmModuleEntities.size() == 0){
return BaseResult.getSuccessMessageEntity("主数据未设置,不需要下发");
@ -508,18 +509,12 @@ public class ZxBankDistributePluginInitializer extends PluginBaseEntity {
queryFildRule.setMdmId(mdmModuleEntities.get(i).getId());
queryFildRule.setRuleCode("service");
List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(queryFildRule);
if(mdmModuleEntities.get(i).getMdmCode()!= 10045L){
//新增
doAdd(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
//修改
doUpdate(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
//删除
doDelete(mdmModuleEntities.get(i).getId(),mdmCode,mdmModuleDbEntities,mdmModuleDistributeEntities,mdmModuleDbFiledsRuleEntities,mdmModuleDbFiledsEntities);
}else{
logger.info("主数据编码为10045已经在业务数据下发执行主数据下发不执行");
continue;
}
}
}

View File

@ -0,0 +1,57 @@
package com.hzya.frame.plugin.zxBank.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.seeyon.zxbank.service.IZxBankService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
public class ZxBankElecPluginInitializer extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(ZxBankElecPluginInitializer.class);
@Autowired
private IZxBankService zxBankService;
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "ZxBankElecPluginInitializer";
}
@Override
public String getPluginName() {
return "ZxBankElecPluginInitializer插件";
}
@Override
public String getPluginLabel() {
return "ZxBankElecPluginInitializer";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) {
try {
logger.info("======开始执行杭泰付款单查询电子回单并下载电子回单========");
return zxBankService.queryArchivesElec(requestJson);
}catch (Exception e){
logger.info("======执行杭泰付款单查询电子回单并下载电子回单失败:{}========",e.getMessage());
e.printStackTrace();
}
return null;
}
}

View File

@ -2,9 +2,7 @@ package com.hzya.frame.plugin.zxBank.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.masterData.plugin.MdmPluginInitializer;
import com.hzya.frame.sysnew.comparison.masterData.service.IMasterDataService;
import com.hzya.frame.sysnew.zxbank.service.IZxBankService;
import com.hzya.frame.seeyon.zxbank.service.IZxBankService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -2,7 +2,7 @@ package com.hzya.frame.plugin.zxBank.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.sysnew.zxbank.service.IZxBankService;
import com.hzya.frame.seeyon.zxbank.service.IZxBankService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

View File

@ -0,0 +1,12 @@
package com.hzya.frame.plugin.zxBank.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.zxBank.entity.ZjgjEntity;
/**
* @Description 资金归集
* @Author xiangerlin
* @Date 2025/4/11 11:03
**/
public interface IZjgjService extends IBaseService<ZjgjEntity,String> {
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.zxBank.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.zxBank.entity.ZjgjEntity;
import com.hzya.frame.plugin.zxBank.service.IZjgjService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;
/**
* @Description
* @Author xiangerlin
* @Date 2025/4/11 11:04
**/
@Service
public class ZjgjServiceImpl extends BaseService<ZjgjEntity,String> implements IZjgjService {
Logger logger = LogManager.getLogger(getClass());
}

View File

@ -0,0 +1,42 @@
#######################dev环境#######################
logging:
#日志级别 指定目录级别
level:
root: warn
encodings: GBK
file:
# 日志保存路径
path: /home/webservice/zt/log
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: /home/webservice/zt/file
# path: D:\webservice\file
# pluginpath: D:\webservice\plugin
pluginpath: /home/webservice/zt/plugin
# tomcatpath: D:\apache-tomcat-9.0.69\webapps\kangarooDataCenter\WEB-INF\classes\
tomcatpath: /home/webservice/zt/tomcatV3/webapps/kangarooDataCenterV3/WEB-INF/classes/
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: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
zt:
url: http://127.0.0.1:9082/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -6,15 +6,15 @@ logging:
encodings: UTF-8
file:
# 日志保存路径
path: /home/webservice/zt/log
path: D:\yongansystem\serverV3\log\zs
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter_ht?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
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: 62e4295b615a30dbf3b8ee96f41c820b
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
@ -39,4 +39,21 @@ cbs8:
OA:
data_source_code: yc_oa
zt:
url: http://127.0.0.1:9082/kangarooDataCenterV3/entranceController/externalCallInterface
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
file_oa:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterfacefileUpload
#税务pdf附件下载存放路径
invoice_pdf:
url: D:\yongansystem\invoice\pdf\
#税务ofd附件下载存放路径
invoice_ofd:
url: D:\yongansystem\invoice\ofd\
zx:
# 生产用这个 这个是银行给的
privateKey: MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgOHOzaKWBWOAbslvtYtS8tcQiJ9W9DT2cGQM3KSgXpfygCgYIKoEcz1UBgi2hRANCAAQNPct0MHOuDrVJBIy0RI7JKx9/PTlFHZlkIJr0EqpC+b/+N+z3JKbCMZ/wcP1V36Q+DlfDJCY9Ai/Uk2PZ9ZaF
publicKey: MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEDT3LdDBzrg61SQSMtESOySsffz05RR2ZZCCa9BKqQvm//jfs9ySmwjGf8HD9Vd+kPg5XwyQmPQIv1JNj2fWWhQ==
# 云帐房配置
yzf:
accessKey: 6X3B526P5HqE6ums
accessSecret: 34e5fc32ac894a2ba2ade8c3852c7a0a
baseUrl: http://oapi.nanofintax.com

View File

@ -0,0 +1,46 @@
#######################dev环境#######################
logging:
#日志级别 指定目录级别
level:
root: INFO
encodings: UTF-8
file:
# 日志保存路径
path: D:\yongansystem\serverV3\log\test
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://127.0.0.1:3307/businesscenter_test?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: /home/webservice/zt/file
# path: D:\webservice\file
# pluginpath: D:\webservice\plugin
pluginpath: /home/webservice/zt/plugin
# tomcatpath: D:\apache-tomcat-9.0.69\webapps\kangarooDataCenter\WEB-INF\classes\
tomcatpath: /home/webservice/zt/tomcatV3/webapps/kangarooDataCenterV3/WEB-INF/classes/
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: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
zt:
url: http://127.0.0.1:10087/kangarooDataCenterV3/entranceController/externalCallInterface
zx:
# 测试用这个 这个是银行给的
privateKey: MIGTAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBHkwdwIBAQQgtzMo2o6THK3yLIm+83Ch/560+02l2hjjBSFGieWY/Z6gCgYIKoEcz1UBgi2hRANCAATKhwZX4P3XI8vYTKeCOLMVbanUNbaXjrIEZynshwdOzRVgzRQSiPNWo6OBBkAPvqE+2RS+5ABpS82DSlKl81z0
publicKey: MFkwEwYHKoZIzj0CAQYIKoEcz1UBgi0DQgAEyocGV+D91yPL2EyngjizFW2p1DW2l46yBGcp7IcHTs0VYM0UEojzVqOjgQZAD76hPtkUvuQAaUvNg0pSpfNc9A==

View File

@ -0,0 +1,82 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/apple/Desktop/log/local
spring:
data:
mongodb:
# host: 192.168.2.237
# port: 27017
# database: businesscenter
# auto-index-creation: true
# password: hzya1314
# username: hzya
flyway:
# 启动flyway migration, 默认为true
enabled: false
datasource:
dynamic:
druid:
filters: stat,log4j2
datasource:
master:
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
# type: com.alibaba.druid.pool.DruidDataSource
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可省略此配置
# url: jdbc:dm://hzya.ufyct.com:9040/businesscenter?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
savefile:
# 文件保存路径
path: /Users/apple/Desktop/log/local
tomcatpath: /Users/apple/Desktop/log/local
pluginpath: /Users/apple/Desktop/log/local
zt:
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface
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: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
server:
port: 10086
# mysqldump -d mylm -hhzya.ufyct.com -p9096 -uroot -phzya1314 >%dirName%\table_view.sql
database:
databaseName: businesscenter
host: 192.168.2.237
port: 3306
username: root
password: hzya@1314
filePase: /Users/apple/Desktop/log
fileName: data.sql
#sftp:
# host: 192.168.2.237
# port: 9091
# username: cs237
# password: hzya@1314
# filePase: /databaseBack

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

Some files were not shown because too many files have changed in this diff Show More