提交到本地仓库

This commit is contained in:
liuy 2024-08-01 17:21:55 +08:00
parent 704c985bca
commit 1df32d2ff3
219 changed files with 66787 additions and 0 deletions

View File

@ -93,6 +93,12 @@
<profile.active>yc</profile.active>
</properties>
</profile>
<profile>
<id>lets</id> <!--丽知-->
<properties>
<profile.active>lets</profile.active>
</properties>
</profile>
</profiles>
<build>
<finalName>kangarooDataCenterV3</finalName>

View File

@ -0,0 +1,14 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdBankaccbasEntity;
/**
* (bd_bankaccbas: table)表数据库访问层
*
* @author makejava
* @since 2023-12-30 15:53:06
*/
public interface IBdBankaccbasDao extends IBaseDao<BdBankaccbasEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdBankdocEntity;
/**
* (bd_bankdoc: table)表数据库访问层
*
* @author makejava
* @since 2023-12-30 16:16:01
*/
public interface IBdBankdocDao extends IBaseDao<BdBankdocEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdBusitypeEntity;
/**
* (bd_busitype: table)表数据库访问层
*
* @author makejava
* @since 2023-11-21 10:57:24
*/
public interface IBdBusitypeDao extends IBaseDao<BdBusitypeEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdCalbodyEntity;
/**
* (bd_calbody: table)表数据库访问层
*
* @author makejava
* @since 2023-09-06 17:31:07
*/
public interface IBdCalbodyDao extends IBaseDao<BdCalbodyEntity, String> {
}

View File

@ -0,0 +1,14 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdCargdocEntity;
/**
* (bd_cargdoc: table)表数据库访问层
*
* @author makejava
* @since 2023-09-07 09:05:12
*/
public interface IBdCargdocDao extends IBaseDao<BdCargdocEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdCorpEntity;
/**
* (bd_corp: table)表数据库访问层
*
* @author makejava
* @since 2023-09-06 14:47:17
*/
public interface IBdCorpDao extends IBaseDao<BdCorpEntity, String> {
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
/**
* (bd_cubasdoc: table)表数据库访问层
*
* @author makejava
* @since 2023-08-25 09:41:41
*/
public interface IBdCubasdocDao extends IBaseDao<BdCubasdocEntity, String> {
/**
* 查询客商基础档案通过客商管理档案主键得到客商基础档案
*
* @author liuyang
*/
BdCubasdocEntity queryBdCumandocEntity(BdCubasdocEntity bdCumandocEntity) throws Exception;
String selectUserNameByPk(String cuserid);
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdCumandocEntity;
/**
* (bd_cumandoc: table)表数据库访问层
*
* @author makejava
* @since 2023-08-25 09:42:24
*/
public interface IBdCumandocDao extends IBaseDao<BdCumandocEntity, String> {
}

View File

@ -0,0 +1,14 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdCustbankEntity;
/**
* (bd_custbank: table)表数据库访问层
*
* @author makejava
* @since 2023-12-30 09:37:43
*/
public interface IBdCustbankDao extends IBaseDao<BdCustbankEntity, String> {
}

View File

@ -0,0 +1,14 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdDefdocEntity;
/**
* (bd_defdoc: table)表数据库访问层
*
* @author makejava
* @since 2023-09-04 13:46:53
*/
public interface IBdDefdocDao extends IBaseDao<BdDefdocEntity, String> {
}

View File

@ -0,0 +1,14 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdDefdoclistEntity;
/**
* (bd_defdoclist: table)表数据库访问层
*
* @author makejava
* @since 2023-09-04 13:49:47
*/
public interface IBdDefdoclistDao extends IBaseDao<BdDefdoclistEntity, String> {
}

View File

@ -0,0 +1,14 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdDeptdocEntity;
/**
* (bd_deptdoc: table)表数据库访问层
*
* @author makejava
* @since 2023-09-13 11:37:15
*/
public interface IBdDeptdocDao extends IBaseDao<BdDeptdocEntity, String> {
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdInvbasdocEntity;
/**
* (bd_invbasdoc: table)表数据库访问层
*
* @author makejava
* @since 2023-08-25 11:27:08
*/
public interface IBdInvbasdocDao extends IBaseDao<BdInvbasdocEntity, String> {
/**
* 查询存货基础档案
*
* @author liuyang
*/
BdInvbasdocEntity queryBdInvbasdocByPkInvmandoc(BdInvbasdocEntity bdInvbasdocEntity) throws Exception;
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdInvclEntity;
/**
* (bd_invcl: table)表数据库访问层
*
* @author makejava
* @since 2024-01-09 15:08:19
*/
public interface IBdInvclDao extends IBaseDao<BdInvclEntity, String> {
}

View File

@ -0,0 +1,20 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdInvmandocEntity;
/**
* (bd_invmandoc: table)表数据库访问层
*
* @author makejava
* @since 2023-08-25 11:21:43
*/
public interface IBdInvmandocDao extends IBaseDao<BdInvmandocEntity, String> {
/**
* 根据存货编码查询存货管理档案
*
* @author liuyang
*/
BdInvmandocEntity queryBdInvmandocByInvcode(BdInvmandocEntity bdInvmandocEntity) throws Exception;
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdJobbasfilEntity;
import com.hzya.frame.plugin.lets.queryvo.ExtBdJobbasfilQueryVo;
import com.hzya.frame.plugin.lets.resultvo.ExtBdJobbasfilResultVo;
import java.util.List;
/**
* (bd_jobbasfil: table)表数据库访问层
*
* @author makejava
* @since 2023-09-04 14:46:18
*/
public interface IBdJobbasfilDao extends IBaseDao<BdJobbasfilEntity, String> {
/**
* 查询项目基本档案类型名称为自定义档案映射
*/
List<ExtBdJobbasfilResultVo> queryProjectBasicArchivesByTypeDIY(ExtBdJobbasfilQueryVo extBdJobbasfilQueryVo) throws Exception;
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdJobmngfilEntity;
/**
* (bd_jobmngfil: table)表数据库访问层
*
* @author makejava
* @since 2023-09-04 14:48:35
*/
public interface IBdJobmngfilDao extends IBaseDao<BdJobmngfilEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdJobtypeEntity;
/**
* (bd_jobtype: table)表数据库访问层
*
* @author makejava
* @since 2023-09-04 14:55:03
*/
public interface IBdJobtypeDao extends IBaseDao<BdJobtypeEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdPsndocEntity;
/**
* (bd_psndoc: table)表数据库访问层
*
* @author makejava
* @since 2023-12-09 15:18:17
*/
public interface IBdPsndocDao extends IBaseDao<BdPsndocEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdRdclEntity;
/**
* (bd_rdcl: table)表数据库访问层
*
* @author makejava
* @since 2023-12-04 13:49:10
*/
public interface IBdRdclDao extends IBaseDao<BdRdclEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdSalestruEntity;
/**
* (bd_salestru: table)表数据库访问层
*
* @author makejava
* @since 2023-09-06 18:20:57
*/
public interface IBdSalestruDao extends IBaseDao<BdSalestruEntity, String> {
}

View File

@ -0,0 +1,14 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdStordocEntity;
/**
* (bd_stordoc: table)表数据库访问层
*
* @author makejava
* @since 2023-08-25 10:19:26
*/
public interface IBdStordocDao extends IBaseDao<BdStordocEntity, String> {
}

View File

@ -0,0 +1,20 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BdTaxitemsEntity;
/**
* (bd_taxitems: table)表数据库访问层
*
* @author makejava
* @since 2023-08-30 18:32:17
*/
public interface IBdTaxitemsDao extends IBaseDao<BdTaxitemsEntity, String> {
/**
* 根据存货编码查询税率
*
* @author liuyang
*/
BdTaxitemsEntity queryBdInvbasdocByInvcode(BdTaxitemsEntity bdTaxitemsEntity) throws Exception;
}

View File

@ -0,0 +1,21 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BusidataTocreturnsEntity;
import java.util.List;
/**
* OMS退货入库TOC业务主表(busidata_tocreturns: table)表数据库访问层
*
* @author makejava
* @since 2024-03-14 14:48:00
*/
public interface IBusidataTocreturnsDao extends IBaseDao<BusidataTocreturnsEntity, String> {
/**
* 批量插入
*
* @author liuyang
*/
void entityInsertBatch(List<BusidataTocreturnsEntity> busidataTocreturnsEntityList) throws Exception;
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BusidataTocreturnsDetailEntity;
import java.util.List;
/**
* OMS退货入库明细TOC业务主表(busidata_tocreturns_detail: table)表数据库访问层
*
* @author makejava
* @since 2024-03-14 14:56:16
*/
public interface IBusidataTocreturnsDetailDao extends IBaseDao<BusidataTocreturnsDetailEntity, String> {
/**
* 批量插入
*/
void entityInsertBatch(List<BusidataTocreturnsDetailEntity> busidataTocreturnsDetailEntityList) throws Exception;
}

View File

@ -0,0 +1,21 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BusidataTocsalesEntity;
import java.util.List;
/**
* OMS销售出库TOC业务主表(busidata_tocsales: table)表数据库访问层
*
* @author makejava
* @since 2024-03-11 15:31:56
*/
public interface IBusidataTocsalesDao extends IBaseDao<BusidataTocsalesEntity, String> {
/**
* 批量插入底表数据
*/
void entityInsertBatch(List<BusidataTocsalesEntity> busidataTocsalesEntityList) throws Exception;
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.BusidataTocsalesDetailEntity;
import java.util.List;
/**
* OMS销售出库TOC业务明细表(busidata_tocsales_detail: table)表数据库访问层
*
* @author makejava
* @since 2024-03-11 15:33:13
*/
public interface IBusidataTocsalesDetailDao extends IBaseDao<BusidataTocsalesDetailEntity, String> {
/**
* 批量插入底表数据
*/
void entityInsertBatch(List<BusidataTocsalesDetailEntity> busidataTocsalesDetailEntities) throws Exception;
}

View File

@ -0,0 +1,21 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.IcGeneralBEntity;
import java.util.List;
/**
* (ic_general_b: table)表数据库访问层
*
* @author makejava
* @since 2023-09-05 08:36:01
*/
public interface IIcGeneralBDao extends IBaseDao<IcGeneralBEntity, String> {
/**
* 根据cgeneralhid表头主键查询
*/
public List<IcGeneralBEntity> queryByCgeneralhid(String cgeneralhid);
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.IcGeneralBb1Entity;
/**
* (ic_general_bb1: table)表数据库访问层
*
* @author makejava
* @since 2023-09-06 09:07:47
*/
public interface IIcGeneralBb1Dao extends IBaseDao<IcGeneralBb1Entity, String> {
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.IcGeneralHEntity;
import java.util.List;
/**
* (ic_general_h: table)表数据库访问层
*
* @author makejava
* @since 2023-09-04 19:00:36
*/
public interface IIcGeneralHDao extends IBaseDao<IcGeneralHEntity, String> {
List<IcGeneralHEntity> queryIcGeneralHEntity(IcGeneralHEntity icGeneralHEntity);
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.IcSpecialBEntity;
/**
* (ic_special_b: table)表数据库访问层
*
* @author makejava
* @since 2023-12-05 16:06:39
*/
public interface IIcSpecialBDao extends IBaseDao<IcSpecialBEntity, String> {
}

View File

@ -0,0 +1,18 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.IcSpecialHEntity;
import java.util.List;
/**
* (ic_special_h: table)表数据库访问层
*
* @author makejava
* @since 2023-12-05 16:05:30
*/
public interface IIcSpecialHDao extends IBaseDao<IcSpecialHEntity, String> {
List<IcSpecialHEntity> queryIcSpecialHEntity(IcSpecialHEntity icSpecialHEntity);
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.IntegrationTaskLivingDetailsEntityV2;
//import com.hzya.frame.sys.integrationtask.living.entity.IntegrationTaskLivingDetailsEntity;
import java.util.List;
/**
* 集成任务-实例详情(integration_task_living_details: table)表数据库访问层
*
* @author makejava
* @since 2024-03-12 11:40:15
*/
public interface IIntegrationTaskLivingDetailsDaoV2 extends IBaseDao<IntegrationTaskLivingDetailsEntityV2, String> {
/**
* 批量插入
*/
// void entityInsertBatch(List<IntegrationTaskLivingDetailsEntity> integrationTaskLivingDetailsEntities) throws Exception;
/**
* 批量更新
*/
// void entityInsertOrUpdateBatch(List<IntegrationTaskLivingDetailsEntity> integrationTaskLivingDetailsEntities) throws Exception;
}

View File

@ -0,0 +1,14 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.PoOrderBEntity;
/**
* (po_order_b: table)表数据库访问层
*
* @author makejava
* @since 2023-08-25 08:53:25
*/
public interface IPoOrderBDao extends IBaseDao<PoOrderBEntity, String> {
}

View File

@ -0,0 +1,20 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.PoOrderEntity;
/**
* (po_order: table)表数据库访问层
*
* @author makejava
* @since 2023-08-25 08:52:02
*/
public interface IPoOrderDao extends IBaseDao<PoOrderEntity, String> {
/**
* 填充原始订单号
*
* @throws Exception 抛出可能的异常
* @author liuyang
*/
void updateVdef20(PoOrderEntity poOrderEntity) throws Exception;
}

View File

@ -0,0 +1,40 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.SoSaleEntity;
import com.hzya.frame.plugin.lets.u8cdto.QuantityHandDto;
import com.hzya.frame.plugin.lets.u8cdto.QuantityHandResultDto;
import java.util.List;
/**
* (so_sale: table)表数据库访问层
*
* @author makejava
* @since 2023-08-16 15:49:53
*/
public interface ISoSaleDao extends IBaseDao<SoSaleEntity, String> {
/**
* 查询U8C销售订单
*
* @author liuyang
*/
List<SoSaleEntity> querySoSaleEntity(SoSaleEntity soSaleEntity) throws Exception;
/**
* 查询现存量(发货库存组织仓库公司)
*
* @author liuyang
*/
List<QuantityHandResultDto> queryQuantityHand(QuantityHandDto soSaleEntity) throws Exception;
/**
* 查询现存量(发货库存组织仓库公司货位)
*
* @author liuyang
*/
List<QuantityHandResultDto> queryQuantityHandV2(QuantityHandDto soSaleEntity) throws Exception;
void updateSoSale(SoSaleEntity soSaleEntity) throws Exception;
}

View File

@ -0,0 +1,29 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.SoSaleorderBEntity;
import java.util.List;
/**
* (so_saleorder_b: table)表数据库访问层
*
* @author makejava
* @since 2023-08-16 18:03:07
*/
public interface ISoSaleorderBDao extends IBaseDao<SoSaleorderBEntity, String> {
/**
* 查询U8C销售订单
*
* @author liuyang
*/
List<SoSaleorderBEntity> querySoSaleBEntity(SoSaleorderBEntity soSaleorderBEntity) throws Exception;
/**
* 查询U8C TOC分销的销售订单
*
* @author liuyang
*/
List queryErrorDetailsId(SoSaleorderBEntity soSaleorderBEntity) throws Exception;
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.ToBillBEntity;
/**
* (to_bill_b: table)表数据库访问层
*
* @author makejava
* @since 2023-11-21 10:42:21
*/
public interface IToBillBDao extends IBaseDao<ToBillBEntity, String> {
}

View File

@ -0,0 +1,19 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.ToBillEntity;
import java.util.List;
/**
* (to_bill: table)表数据库访问层
*
* @author makejava
* @since 2023-11-21 10:41:18
*/
public interface IToBillDao extends IBaseDao<ToBillEntity, String> {
List<ToBillEntity> queryToBillEntity(ToBillEntity toBillEntity);
}

View File

@ -0,0 +1,30 @@
package com.hzya.frame.plugin.lets.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.lets.entity.UpdateLogisticsNoEntity;
/**
* 更新OA物流单号
*
* @Authorliuyang
* @Packagecom.hzya.frame.plugin.lets.dao
* @ProjectkangarooDataCenter
* @nameIUpdateLogisticsNoDao
* @Date2023/11/27 10:59
* @FilenameIUpdateLogisticsNoDao
*/
public interface IUpdateLogisticsNoDao extends IBaseDao<UpdateLogisticsNoEntity, String> {
/**
* 正向更新物流单号
*
* @throws Exception 抛出可能的异常
*/
void updateLogisticsNo(UpdateLogisticsNoEntity updateLogisticsNo) throws Exception;
/**
* 反向更新物流单号
*
* @throws Exception 抛出可能的异常
*/
void updateLogisticsNoReturn(UpdateLogisticsNoEntity updateLogisticsNo) throws Exception;
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdBankaccbasDao;
import com.hzya.frame.plugin.lets.entity.BdBankaccbasEntity;
/**
* (BdBankaccbas)表数据库访问层
*
* @author makejava
* @since 2023-12-30 15:53:06
*/
public class BdBankaccbasDaoImpl extends MybatisGenericDao<BdBankaccbasEntity, String> implements IBdBankaccbasDao {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdBankdocDao;
import com.hzya.frame.plugin.lets.entity.BdBankdocEntity;
/**
* (BdBankdoc)表数据库访问层
*
* @author makejava
* @since 2023-12-30 16:16:01
*/
public class BdBankdocDaoImpl extends MybatisGenericDao<BdBankdocEntity, String> implements IBdBankdocDao{
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdBusitypeDao;
import com.hzya.frame.plugin.lets.entity.BdBusitypeEntity;
/**
* (BdBusitype)表数据库访问层
*
* @author makejava
* @since 2023-11-21 10:57:24
*/
public class BdBusitypeDaoImpl extends MybatisGenericDao<BdBusitypeEntity, String> implements IBdBusitypeDao{
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdCalbodyDao;
import com.hzya.frame.plugin.lets.entity.BdCalbodyEntity;
/**
* (BdCalbody)表数据库访问层
*
* @author makejava
* @since 2023-09-06 17:31:07
*/
public class BdCalbodyDaoImpl extends MybatisGenericDao<BdCalbodyEntity, String> implements IBdCalbodyDao{
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdCargdocDao;
import com.hzya.frame.plugin.lets.entity.BdCargdocEntity;
/**
* (BdCargdoc)表数据库访问层
*
* @author makejava
* @since 2023-09-07 09:05:12
*/
public class BdCargdocDaoImpl extends MybatisGenericDao<BdCargdocEntity, String> implements IBdCargdocDao{
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdCorpDao;
import com.hzya.frame.plugin.lets.entity.BdCorpEntity;
/**
* (BdCorp)表数据库访问层
*
* @author makejava
* @since 2023-09-06 14:47:17
*/
public class BdCorpDaoImpl extends MybatisGenericDao<BdCorpEntity, String> implements IBdCorpDao{
}

View File

@ -0,0 +1,35 @@
package com.hzya.frame.plugin.lets.dao.impl;
import cn.hutool.core.lang.Assert;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdCubasdocDao;
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
/**
* (BdCubasdoc)表数据库访问层
*
* @author makejava
* @since 2023-08-25 09:41:41
*/
//@Repository("BdCubasdocDaoImpl")
public class BdCubasdocDaoImpl extends MybatisGenericDao<BdCubasdocEntity, String> implements IBdCubasdocDao {
@DS("sowow_sqlserver_test")
@Override
public BdCubasdocEntity queryBdCumandocEntity(BdCubasdocEntity bdCumandocEntity) throws Exception {
Assert.notNull(bdCumandocEntity, "BdCumandocEntity不可为空");
Assert.notNull(bdCumandocEntity.getPk_cumandoc(), "供应商管理id不能为空");
Assert.notNull(bdCumandocEntity.getPkCorp(), "公司id不能为空!");
// Assert.notNull(bdCumandocEntity.getCustflag(), "客商属性不能为空!");
return query(bdCumandocEntity, "com.hzya.frame.plugin.lets.dao.impl.BdCubasdocDaoImpl.queryBdCumandocByPkCumandoc");
}
@DS("sowow_sqlserver_test")
@Override
public String selectUserNameByPk(String cuserid) {
return (String) selectOne("com.hzya.frame.plugin.lets.dao.impl.BdCubasdocDaoImpl.selectUserNameByPk",cuserid);
}
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdCumandocDao;
import com.hzya.frame.plugin.lets.entity.BdCumandocEntity;
/**
* (BdCumandoc)表数据库访问层
*
* @author makejava
* @since 2023-08-25 09:42:24
*/
//@Repository("BdCumandocDaoImpl")
public class BdCumandocDaoImpl extends MybatisGenericDao<BdCumandocEntity, String> implements IBdCumandocDao {
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdCustbankDao;
import com.hzya.frame.plugin.lets.entity.BdCustbankEntity;
/**
* (BdCustbank)表数据库访问层
*
* @author makejava
* @since 2023-12-30 09:37:43
*/
public class BdCustbankDaoImpl extends MybatisGenericDao<BdCustbankEntity, String> implements IBdCustbankDao {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdDefdocDao;
import com.hzya.frame.plugin.lets.entity.BdDefdocEntity;
/**
* (BdDefdoc)表数据库访问层
*
* @author makejava
* @since 2023-09-04 13:46:53
*/
public class BdDefdocDaoImpl extends MybatisGenericDao<BdDefdocEntity, String> implements IBdDefdocDao {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdDefdoclistDao;
import com.hzya.frame.plugin.lets.entity.BdDefdoclistEntity;
/**
* (BdDefdoclist)表数据库访问层
*
* @author makejava
* @since 2023-09-04 13:49:47
*/
public class BdDefdoclistDaoImpl extends MybatisGenericDao<BdDefdoclistEntity, String> implements IBdDefdoclistDao {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdDeptdocDao;
import com.hzya.frame.plugin.lets.entity.BdDeptdocEntity;
/**
* (BdDeptdoc)表数据库访问层
*
* @author makejava
* @since 2023-09-13 11:37:15
*/
public class BdDeptdocDaoImpl extends MybatisGenericDao<BdDeptdocEntity, String> implements IBdDeptdocDao {
}

View File

@ -0,0 +1,27 @@
package com.hzya.frame.plugin.lets.dao.impl;
import cn.hutool.core.lang.Assert;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdInvbasdocDao;
import com.hzya.frame.plugin.lets.entity.BdInvbasdocEntity;
/**
* (BdInvbasdoc)表数据库访问层
*
* @author makejava
* @since 2023-08-25 11:27:08
*/
//@Repository("BdInvbasdocDaoImpl")
public class BdInvbasdocDaoImpl extends MybatisGenericDao<BdInvbasdocEntity, String> implements IBdInvbasdocDao {
@DS("sowow_sqlserver_test")
@Override
public BdInvbasdocEntity queryBdInvbasdocByPkInvmandoc(BdInvbasdocEntity bdInvbasdocEntity) throws Exception {
Assert.notNull(bdInvbasdocEntity, "BdInvmandocEntity不可为空");
Assert.notNull(bdInvbasdocEntity.getPk_invmandoc(), "pkInvmandoc不可为空");
// Assert.notNull(bdInvbasdocEntity.getPk_corp(), "存货管理档案公司主键不能为空");
return query(bdInvbasdocEntity, "com.hzya.frame.plugin.lets.dao.impl.BdInvbasdocDaoImpl.queryBdInvbasdocByPkInvmandoc");
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdInvclDao;
import com.hzya.frame.plugin.lets.entity.BdInvclEntity;
/**
* (BdInvcl)表数据库访问层
*
* @author makejava
* @since 2024-01-09 15:08:19
*/
public class BdInvclDaoImpl extends MybatisGenericDao<BdInvclEntity, String> implements IBdInvclDao{
}

View File

@ -0,0 +1,32 @@
package com.hzya.frame.plugin.lets.dao.impl;
import cn.hutool.core.lang.Assert;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdInvmandocDao;
import com.hzya.frame.plugin.lets.entity.BdInvmandocEntity;
import java.util.List;
/**
* (BdInvmandoc)表数据库访问层
*
* @author makejava
* @since 2023-08-25 11:21:44
*/
//@Repository("BdInvmandocDaoImpl")
public class BdInvmandocDaoImpl extends MybatisGenericDao<BdInvmandocEntity, String> implements IBdInvmandocDao {
@DS("sowow_sqlserver_test")
@Override
public BdInvmandocEntity queryBdInvmandocByInvcode(BdInvmandocEntity bdInvmandocEntity) throws Exception {
Assert.notNull(bdInvmandocEntity, "bdInvmandocEntity must not be null");
// Assert.notNull(bdInvmandocEntity.getInvcode(), "存货档案编码不能为空");
Assert.notNull(bdInvmandocEntity.getPkCorp(), "存货档案所属企业id不能为空");
List<BdInvmandocEntity> bdInvmandocEntityList = query("com.hzya.frame.plugin.lets.dao.impl.BdInvmandocDaoImpl.queryBdInvmandocByInvcode", bdInvmandocEntity);
if (bdInvmandocEntityList != null && bdInvmandocEntityList.size() > 0) {
return bdInvmandocEntityList.get(0);
}
return null;
}
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdJobbasfilDao;
import com.hzya.frame.plugin.lets.entity.BdJobbasfilEntity;
import com.hzya.frame.plugin.lets.queryvo.ExtBdJobbasfilQueryVo;
import com.hzya.frame.plugin.lets.resultvo.ExtBdJobbasfilResultVo;
import java.util.List;
/**
* (BdJobbasfil)表数据库访问层
*
* @author makejava
* @since 2023-09-04 14:46:18
*/
public class BdJobbasfilDaoImpl extends MybatisGenericDao<BdJobbasfilEntity, String> implements IBdJobbasfilDao {
@DS("sowow_sqlserver_test")
@Override
public List<ExtBdJobbasfilResultVo> queryProjectBasicArchivesByTypeDIY(ExtBdJobbasfilQueryVo extBdJobbasfilQueryVo) throws Exception {
return (List<ExtBdJobbasfilResultVo>) selectList("com.hzya.frame.plugin.lets.dao.impl.BdJobbasfilDaoImpl.queryProjectBasicArchivesByTypeDIY", extBdJobbasfilQueryVo);
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdJobmngfilDao;
import com.hzya.frame.plugin.lets.entity.BdJobmngfilEntity;
/**
* (BdJobmngfil)表数据库访问层
*
* @author makejava
* @since 2023-09-04 14:48:35
*/
public class BdJobmngfilDaoImpl extends MybatisGenericDao<BdJobmngfilEntity, String> implements IBdJobmngfilDao{
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdJobtypeDao;
import com.hzya.frame.plugin.lets.entity.BdJobtypeEntity;
/**
* (BdJobtype)表数据库访问层
*
* @author makejava
* @since 2023-09-04 14:55:03
*/
public class BdJobtypeDaoImpl extends MybatisGenericDao<BdJobtypeEntity, String> implements IBdJobtypeDao{
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdPsndocDao;
import com.hzya.frame.plugin.lets.entity.BdPsndocEntity;
/**
* (BdPsndoc)表数据库访问层
*
* @author makejava
* @since 2023-12-09 15:18:18
*/
public class BdPsndocDaoImpl extends MybatisGenericDao<BdPsndocEntity, String> implements IBdPsndocDao{
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdRdclDao;
import com.hzya.frame.plugin.lets.entity.BdRdclEntity;
/**
* (BdRdcl)表数据库访问层
*
* @author makejava
* @since 2023-12-04 13:49:10
*/
public class BdRdclDaoImpl extends MybatisGenericDao<BdRdclEntity, String> implements IBdRdclDao{
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdSalestruDao;
import com.hzya.frame.plugin.lets.entity.BdSalestruEntity;
/**
* (BdSalestru)表数据库访问层
*
* @author makejava
* @since 2023-09-06 18:20:57
*/
public class BdSalestruDaoImpl extends MybatisGenericDao<BdSalestruEntity, String> implements IBdSalestruDao{
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdStordocDao;
import com.hzya.frame.plugin.lets.entity.BdStordocEntity;
/**
* (BdStordoc)表数据库访问层
*
* @author makejava
* @since 2023-08-25 10:19:26
*/
//@Repository("BdStordocDaoImpl")
public class BdStordocDaoImpl extends MybatisGenericDao<BdStordocEntity, String> implements IBdStordocDao{
}

View File

@ -0,0 +1,30 @@
package com.hzya.frame.plugin.lets.dao.impl;
import cn.hutool.core.lang.Assert;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBdTaxitemsDao;
import com.hzya.frame.plugin.lets.entity.BdTaxitemsEntity;
import java.util.List;
/**
* (BdTaxitems)表数据库访问层
*
* @author makejava
* @since 2023-08-30 18:32:17
*/
public class BdTaxitemsDaoImpl extends MybatisGenericDao<BdTaxitemsEntity, String> implements IBdTaxitemsDao {
@DS("sowow_sqlserver_test")
@Override
public BdTaxitemsEntity queryBdInvbasdocByInvcode(BdTaxitemsEntity bdTaxitemsEntity) throws Exception {
Assert.notNull(bdTaxitemsEntity, "bdTaxitemsEntity不能为空");
Assert.notNull(bdTaxitemsEntity.getInvcode(), "存货编码不能为空");
List<BdTaxitemsEntity> query = query("com.hzya.frame.plugin.lets.dao.impl.BdTaxitemsDaoImpl.queryBdInvbasdocByInvcode", bdTaxitemsEntity);
if (query != null && query.size() > 0) {
return query.get(0);
}
return null;
}
}

View File

@ -0,0 +1,20 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBusidataTocreturnsDao;
import com.hzya.frame.plugin.lets.entity.BusidataTocreturnsEntity;
import java.util.List;
/**
* OMS退货入库TOC业务主表(BusidataTocreturns)表数据库访问层
*
* @author makejava
* @since 2024-03-14 14:48:00
*/
public class BusidataTocreturnsDaoImpl extends MybatisGenericDao<BusidataTocreturnsEntity, String> implements IBusidataTocreturnsDao {
@Override
public void entityInsertBatch(List<BusidataTocreturnsEntity> busidataTocreturnsEntityList) throws Exception {
this.insert("com.hzya.frame.plugin.lets.dao.impl.BusidataTocreturnsDaoImpl.entityInsertBatch", busidataTocreturnsEntityList);
}
}

View File

@ -0,0 +1,21 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBusidataTocreturnsDetailDao;
import com.hzya.frame.plugin.lets.entity.BusidataTocreturnsDetailEntity;
import java.util.List;
/**
* OMS退货入库明细TOC业务主表(BusidataTocreturnsDetail)表数据库访问层
*
* @author makejava
* @since 2024-03-14 14:56:16
*/
public class BusidataTocreturnsDetailDaoImpl extends MybatisGenericDao<BusidataTocreturnsDetailEntity, String> implements IBusidataTocreturnsDetailDao {
@Override
public void entityInsertBatch(List<BusidataTocreturnsDetailEntity> busidataTocreturnsDetailEntityList) throws Exception {
this.insert("com.hzya.frame.plugin.lets.dao.impl.BusidataTocreturnsDetailDaoImpl.entityInsertBatch", busidataTocreturnsDetailEntityList);
}
}

View File

@ -0,0 +1,20 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBusidataTocsalesDao;
import com.hzya.frame.plugin.lets.entity.BusidataTocsalesEntity;
import java.util.List;
/**
* OMS销售出库TOC业务主表(BusidataTocsales)表数据库访问层
*
* @author makejava
* @since 2024-03-11 15:31:56
*/
public class BusidataTocsalesDaoImpl extends MybatisGenericDao<BusidataTocsalesEntity, String> implements IBusidataTocsalesDao {
@Override
public void entityInsertBatch(List<BusidataTocsalesEntity> busidataTocsalesEntityList) throws Exception {
this.insert("com.hzya.frame.plugin.lets.dao.impl.BusidataTocsalesDaoImpl.entityInsertBatch", busidataTocsalesEntityList);
}
}

View File

@ -0,0 +1,21 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IBusidataTocsalesDetailDao;
import com.hzya.frame.plugin.lets.entity.BusidataTocsalesDetailEntity;
import java.util.List;
/**
* OMS销售出库TOC业务明细表(BusidataTocsalesDetail)表数据库访问层
*
* @author makejava
* @since 2024-03-11 15:33:14
*/
public class BusidataTocsalesDetailDaoImpl extends MybatisGenericDao<BusidataTocsalesDetailEntity, String> implements IBusidataTocsalesDetailDao {
@Override
public void entityInsertBatch(List<BusidataTocsalesDetailEntity> busidataTocsalesDetailEntities) throws Exception {
this.insert("com.hzya.frame.plugin.lets.dao.impl.BusidataTocsalesDetailDaoImpl.entityInsertBatch", busidataTocsalesDetailEntities);
}
}

View File

@ -0,0 +1,22 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IIcGeneralBDao;
import com.hzya.frame.plugin.lets.entity.IcGeneralBEntity;
import java.util.List;
/**
* (IcGeneralB)表数据库访问层
*
* @author makejava
* @since 2023-09-05 08:36:01
*/
public class IcGeneralBDaoImpl extends MybatisGenericDao<IcGeneralBEntity, String> implements IIcGeneralBDao{
@Override
public List<IcGeneralBEntity> queryByCgeneralhid(String cgeneralhid) {
return query("com.hzya.frame.plugin.lets.entity.IcGeneralBEntity.queryByCgeneralhid",cgeneralhid);
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IIcGeneralBb1Dao;
import com.hzya.frame.plugin.lets.entity.IcGeneralBb1Entity;
/**
* (IcGeneralBb1)表数据库访问层
*
* @author makejava
* @since 2023-09-06 09:07:47
*/
public class IcGeneralBb1DaoImpl extends MybatisGenericDao<IcGeneralBb1Entity, String> implements IIcGeneralBb1Dao{
}

View File

@ -0,0 +1,24 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IIcGeneralHDao;
import com.hzya.frame.plugin.lets.entity.IcGeneralHEntity;
import java.util.List;
/**
* (IcGeneralH)表数据库访问层
*
* @author makejava
* @since 2023-09-04 19:00:36
*/
public class IcGeneralHDaoImpl extends MybatisGenericDao<IcGeneralHEntity, String> implements IIcGeneralHDao{
@DS("sowow_sqlserver_test")
@Override
public List<IcGeneralHEntity> queryIcGeneralHEntity(IcGeneralHEntity icGeneralHEntity) {//com.hzya.frame.plugin.lets.dao.impl.IcGeneralHDaoImpl
return query("com.hzya.frame.plugin.lets.dao.impl.IcGeneralHDaoImpl.queryIcGeneralHEntity",icGeneralHEntity);
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IIcSpecialBDao;
import com.hzya.frame.plugin.lets.entity.IcSpecialBEntity;
/**
* (IcSpecialB)表数据库访问层
*
* @author makejava
* @since 2023-12-05 16:06:40
*/
public class IcSpecialBDaoImpl extends MybatisGenericDao<IcSpecialBEntity, String> implements IIcSpecialBDao{
}

View File

@ -0,0 +1,23 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IIcSpecialHDao;
import com.hzya.frame.plugin.lets.entity.IcSpecialHEntity;
import java.util.List;
/**
* (IcSpecialH)表数据库访问层
*
* @author makejava
* @since 2023-12-05 16:05:31
*/
public class IcSpecialHDaoImpl extends MybatisGenericDao<IcSpecialHEntity, String> implements IIcSpecialHDao{
@DS("sowow_sqlserver_test")
@Override
public List<IcSpecialHEntity> queryIcSpecialHEntity(IcSpecialHEntity icSpecialHEntity) {
return query("com.hzya.frame.plugin.lets.dao.impl.IcSpecialHDaoImpl.queryIcSpecialHEntity",icSpecialHEntity);
}
}

View File

@ -0,0 +1,27 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IIntegrationTaskLivingDetailsDaoV2;
import com.hzya.frame.plugin.lets.entity.IntegrationTaskLivingDetailsEntityV2;
//import com.hzya.frame.sys.integrationtask.living.entity.IntegrationTaskLivingDetailsEntity;
import java.util.List;
/**
* 集成任务-实例详情(IntegrationTaskLivingDetails)表数据库访问层
*
* @author makejava
* @since 2024-03-12 11:40:15
*/
public class IntegrationTaskLivingDetailsDaoImplV2 extends MybatisGenericDao<IntegrationTaskLivingDetailsEntityV2, String> implements IIntegrationTaskLivingDetailsDaoV2 {
// @Override
// public void entityInsertBatch(List<IntegrationTaskLivingDetailsEntity> integrationTaskLivingDetailsEntities) throws Exception {
// this.insert("com.hzya.frame.plugin.lets.dao.impl.IntegrationTaskLivingDetailsDaoImplV2.entityInsertBatch", integrationTaskLivingDetailsEntities);
// }
// @Override
// public void entityInsertOrUpdateBatch(List<IntegrationTaskLivingDetailsEntity> integrationTaskLivingDetailsEntities) throws Exception {
// this.insert("com.hzya.frame.plugin.lets.dao.impl.IntegrationTaskLivingDetailsDaoImplV2.entityInsertOrUpdateBatch", integrationTaskLivingDetailsEntities);
// }
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IPoOrderBDao;
import com.hzya.frame.plugin.lets.entity.PoOrderBEntity;
/**
* (PoOrderB)表数据库访问层
*
* @author makejava
* @since 2023-08-25 08:53:25
*/
//@Repository("PoOrderBDaoImpl")
public class PoOrderBDaoImpl extends MybatisGenericDao<PoOrderBEntity, String> implements IPoOrderBDao {
}

View File

@ -0,0 +1,26 @@
package com.hzya.frame.plugin.lets.dao.impl;
import cn.hutool.core.lang.Assert;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IPoOrderDao;
import com.hzya.frame.plugin.lets.entity.PoOrderEntity;
/**
* (PoOrder)表数据库访问层
*
* @author makejava
* @since 2023-08-25 08:52:02
*/
//@Repository("PoOrderDaoImpl")
public class PoOrderDaoImpl extends MybatisGenericDao<PoOrderEntity, String> implements IPoOrderDao {
@DS("sowow_sqlserver_test")
@Override
public void updateVdef20(PoOrderEntity poOrderEntity) throws Exception {
Assert.notNull(poOrderEntity, "poOrderEntity不能为空");
Assert.notNull(poOrderEntity.getCorderid(), "主键不能为空");
Assert.notNull(poOrderEntity.getVdef20(), "采购订单号不能为空");
update("com.hzya.frame.plugin.lets.dao.impl.PoOrderDaoImpl.updateVdef20", poOrderEntity);
}
}

View File

@ -0,0 +1,48 @@
package com.hzya.frame.plugin.lets.dao.impl;
import cn.hutool.core.lang.Assert;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.ISoSaleDao;
import com.hzya.frame.plugin.lets.entity.SoSaleEntity;
import com.hzya.frame.plugin.lets.u8cdto.QuantityHandDto;
import com.hzya.frame.plugin.lets.u8cdto.QuantityHandResultDto;
import java.util.List;
/**
* (SoSale)表数据库访问层
*
* @author makejava
* @since 2023-08-16 15:49:53
*/
//@Repository("SoSaleDaoImpl")
public class SoSaleDaoImpl extends MybatisGenericDao<SoSaleEntity, String> implements ISoSaleDao {
@DS("sowow_sqlserver_test")
@Override
public List<SoSaleEntity> querySoSaleEntity(SoSaleEntity soSaleEntity) throws Exception {
return query("com.hzya.frame.plugin.lets.dao.impl.SoSaleDaoImpl.querySoSaleEntity", soSaleEntity);
}
@DS("sowow_sqlserver_test")
@Override
public List<QuantityHandResultDto> queryQuantityHand(QuantityHandDto soSaleEntity) throws Exception {
return (List<QuantityHandResultDto>) selectList("com.hzya.frame.plugin.lets.dao.impl.SoSaleDaoImpl.queryQuantityHand", soSaleEntity);
}
@DS("sowow_sqlserver_test")
@Override
public List<QuantityHandResultDto> queryQuantityHandV2(QuantityHandDto soSaleEntity) throws Exception {
return (List<QuantityHandResultDto>) selectList("com.hzya.frame.plugin.lets.dao.impl.SoSaleDaoImpl.queryQuantityHandV2", soSaleEntity);
}
@DS("sowow_sqlserver_test")
@Override
public void updateSoSale(SoSaleEntity soSaleEntity) throws Exception {
Assert.notNull(soSaleEntity, "soSaleEntity is null");
Assert.notNull(soSaleEntity.getVdef20(), "原始订单号不能为空");
Assert.notNull(soSaleEntity.getCsaleid(), "主键不能为空");
update("com.hzya.frame.plugin.lets.dao.impl.SoSaleDaoImpl.updateSoSaleByCsaleid", soSaleEntity);
}
}

View File

@ -0,0 +1,30 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.ISoSaleorderBDao;
import com.hzya.frame.plugin.lets.entity.SoSaleorderBEntity;
import java.util.List;
/**
* (SoSaleorderB)表数据库访问层
*
* @author makejava
* @since 2023-08-16 18:03:07
*/
//@Repository("SoSaleorderBDaoImpl")
public class SoSaleorderBDaoImpl extends MybatisGenericDao<SoSaleorderBEntity, String> implements ISoSaleorderBDao {
@DS("sowow_sqlserver_test")
@Override
public List<SoSaleorderBEntity> querySoSaleBEntity(SoSaleorderBEntity soSaleorderBEntity) throws Exception {
return query("com.hzya.frame.plugin.lets.dao.impl.SoSaleorderBDaoImpl.querySoSaleBEntity", soSaleorderBEntity);
}
@DS("sowow_sqlserver_test")
@Override
public List queryErrorDetailsId(SoSaleorderBEntity soSaleorderBEntity) throws Exception {
return super.selectList(getSqlIdPrifx() + "queryErrorDetailsId", soSaleorderBEntity);
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IToBillBDao;
import com.hzya.frame.plugin.lets.entity.ToBillBEntity;
/**
* (ToBillB)表数据库访问层
*
* @author makejava
* @since 2023-11-21 10:42:22
*/
public class ToBillBDaoImpl extends MybatisGenericDao<ToBillBEntity, String> implements IToBillBDao{
}

View File

@ -0,0 +1,23 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IToBillDao;
import com.hzya.frame.plugin.lets.entity.ToBillEntity;
import java.util.List;
/**
* (ToBill)表数据库访问层
*
* @author makejava
* @since 2023-11-21 10:41:19
*/
public class ToBillDaoImpl extends MybatisGenericDao<ToBillEntity, String> implements IToBillDao{
@DS("sowow_sqlserver_test")
@Override
public List<ToBillEntity> queryToBillEntity(ToBillEntity toBillEntity) {//com.hzya.frame.plugin.lets.dao.impl.ToBillDaoImpl
return query("com.hzya.frame.plugin.lets.dao.impl.ToBillDaoImpl.queryToBillEntity",toBillEntity);
}
}

View File

@ -0,0 +1,28 @@
package com.hzya.frame.plugin.lets.dao.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.lets.dao.IUpdateLogisticsNoDao;
import com.hzya.frame.plugin.lets.entity.UpdateLogisticsNoEntity;
/**
* (ToBill)表数据库访问层
*
* @author makejava
* @since 2023-11-21 10:41:19
*/
public class UpdateLogisticsNoDaoImpl extends MybatisGenericDao<UpdateLogisticsNoEntity, String> implements IUpdateLogisticsNoDao {
@DS("swoa_mysql")
@Override
public void updateLogisticsNo(UpdateLogisticsNoEntity updateLogisticsNo) throws Exception {
this.update("com.hzya.frame.plugin.lets.dao.impl.UpdateLogisticsNoDaoImpl.updateLogisticsNoByformmain0237", updateLogisticsNo);
this.update("com.hzya.frame.plugin.lets.dao.impl.UpdateLogisticsNoDaoImpl.updateLogisticsNoByformmain0202", updateLogisticsNo);
}
@DS("swoa_mysql")
@Override
public void updateLogisticsNoReturn(UpdateLogisticsNoEntity updateLogisticsNo) throws Exception {
this.update("com.hzya.frame.plugin.lets.dao.impl.UpdateLogisticsNoDaoImpl.updateLogisticsNoByformmain0237Return", updateLogisticsNo);
this.update("com.hzya.frame.plugin.lets.dao.impl.UpdateLogisticsNoDaoImpl.updateLogisticsNoByformmain0202Return", updateLogisticsNo);
}
}

View File

@ -0,0 +1,889 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdBankaccbas)实体类
*
* @author makejava
* @since 2023-12-30 15:53:06
*/
public class BdBankaccbasEntity extends BaseEntity {
private Integer accattribute;
private Integer accclass;
private String accopendate;
private String account;
private String accountcode;
private String accountname;
private Integer accountproperty;
private Integer accstate;
private Integer acctype;
private String accxhdate;
private Integer arapprop;
private String areacode;
private String bankarea;
private String city;
private String combineaccnum;
private Double concertedmny;
private String contactpsn;
private String corrgeneaccount;
private String createtime;
private String creator;
private String custcode;
private String def1;
private String def10;
private String def11;
private String def12;
private String def13;
private String def14;
private String def15;
private String def16;
private String def17;
private String def18;
private String def19;
private String def2;
private String def20;
private String def21;
private String def22;
private String def23;
private String def24;
private String def25;
private String def26;
private String def27;
private String def28;
private String def29;
private String def3;
private String def30;
private String def31;
private String def32;
private String def33;
private String def34;
private String def35;
private String def36;
private String def37;
private String def38;
private String def39;
private String def4;
private String def40;
private String def41;
private String def42;
private String def43;
private String def44;
private String def45;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String defrozendate;
private Integer dr;
private String frozendate;
private Double frozenje;
private Integer fundform;
private Integer genebranprop;
private String groupaccount;
private String groupid;
private String isinneracc;
private String ismargin;
private String mainaccount;
private String memo;
private String modifier;
private String modifytime;
private Integer netqueryflag;
private String orgnumber;
private String ownercorp;
private String pkBankaccbas;
private String pkBankdoc;
private String pkBanktype;
private String pkCorp;
private String pkCurrtype;
private String pkNetbankinftp;
private String pkPsnbasdoc;
private String province;
private Integer qrybalanceitf;
private String remcode;
private String signflag;
private String tel;
private String ts;
private String unitname;
public Integer getAccattribute() {
return accattribute;
}
public void setAccattribute(Integer accattribute) {
this.accattribute = accattribute;
}
public Integer getAccclass() {
return accclass;
}
public void setAccclass(Integer accclass) {
this.accclass = accclass;
}
public String getAccopendate() {
return accopendate;
}
public void setAccopendate(String accopendate) {
this.accopendate = accopendate;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getAccountcode() {
return accountcode;
}
public void setAccountcode(String accountcode) {
this.accountcode = accountcode;
}
public String getAccountname() {
return accountname;
}
public void setAccountname(String accountname) {
this.accountname = accountname;
}
public Integer getAccountproperty() {
return accountproperty;
}
public void setAccountproperty(Integer accountproperty) {
this.accountproperty = accountproperty;
}
public Integer getAccstate() {
return accstate;
}
public void setAccstate(Integer accstate) {
this.accstate = accstate;
}
public Integer getAcctype() {
return acctype;
}
public void setAcctype(Integer acctype) {
this.acctype = acctype;
}
public String getAccxhdate() {
return accxhdate;
}
public void setAccxhdate(String accxhdate) {
this.accxhdate = accxhdate;
}
public Integer getArapprop() {
return arapprop;
}
public void setArapprop(Integer arapprop) {
this.arapprop = arapprop;
}
public String getAreacode() {
return areacode;
}
public void setAreacode(String areacode) {
this.areacode = areacode;
}
public String getBankarea() {
return bankarea;
}
public void setBankarea(String bankarea) {
this.bankarea = bankarea;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getCombineaccnum() {
return combineaccnum;
}
public void setCombineaccnum(String combineaccnum) {
this.combineaccnum = combineaccnum;
}
public Double getConcertedmny() {
return concertedmny;
}
public void setConcertedmny(Double concertedmny) {
this.concertedmny = concertedmny;
}
public String getContactpsn() {
return contactpsn;
}
public void setContactpsn(String contactpsn) {
this.contactpsn = contactpsn;
}
public String getCorrgeneaccount() {
return corrgeneaccount;
}
public void setCorrgeneaccount(String corrgeneaccount) {
this.corrgeneaccount = corrgeneaccount;
}
public String getCreatetime() {
return createtime;
}
public void setCreatetime(String createtime) {
this.createtime = createtime;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getCustcode() {
return custcode;
}
public void setCustcode(String custcode) {
this.custcode = custcode;
}
public String getDef1() {
return def1;
}
public void setDef1(String def1) {
this.def1 = def1;
}
public String getDef10() {
return def10;
}
public void setDef10(String def10) {
this.def10 = def10;
}
public String getDef11() {
return def11;
}
public void setDef11(String def11) {
this.def11 = def11;
}
public String getDef12() {
return def12;
}
public void setDef12(String def12) {
this.def12 = def12;
}
public String getDef13() {
return def13;
}
public void setDef13(String def13) {
this.def13 = def13;
}
public String getDef14() {
return def14;
}
public void setDef14(String def14) {
this.def14 = def14;
}
public String getDef15() {
return def15;
}
public void setDef15(String def15) {
this.def15 = def15;
}
public String getDef16() {
return def16;
}
public void setDef16(String def16) {
this.def16 = def16;
}
public String getDef17() {
return def17;
}
public void setDef17(String def17) {
this.def17 = def17;
}
public String getDef18() {
return def18;
}
public void setDef18(String def18) {
this.def18 = def18;
}
public String getDef19() {
return def19;
}
public void setDef19(String def19) {
this.def19 = def19;
}
public String getDef2() {
return def2;
}
public void setDef2(String def2) {
this.def2 = def2;
}
public String getDef20() {
return def20;
}
public void setDef20(String def20) {
this.def20 = def20;
}
public String getDef21() {
return def21;
}
public void setDef21(String def21) {
this.def21 = def21;
}
public String getDef22() {
return def22;
}
public void setDef22(String def22) {
this.def22 = def22;
}
public String getDef23() {
return def23;
}
public void setDef23(String def23) {
this.def23 = def23;
}
public String getDef24() {
return def24;
}
public void setDef24(String def24) {
this.def24 = def24;
}
public String getDef25() {
return def25;
}
public void setDef25(String def25) {
this.def25 = def25;
}
public String getDef26() {
return def26;
}
public void setDef26(String def26) {
this.def26 = def26;
}
public String getDef27() {
return def27;
}
public void setDef27(String def27) {
this.def27 = def27;
}
public String getDef28() {
return def28;
}
public void setDef28(String def28) {
this.def28 = def28;
}
public String getDef29() {
return def29;
}
public void setDef29(String def29) {
this.def29 = def29;
}
public String getDef3() {
return def3;
}
public void setDef3(String def3) {
this.def3 = def3;
}
public String getDef30() {
return def30;
}
public void setDef30(String def30) {
this.def30 = def30;
}
public String getDef31() {
return def31;
}
public void setDef31(String def31) {
this.def31 = def31;
}
public String getDef32() {
return def32;
}
public void setDef32(String def32) {
this.def32 = def32;
}
public String getDef33() {
return def33;
}
public void setDef33(String def33) {
this.def33 = def33;
}
public String getDef34() {
return def34;
}
public void setDef34(String def34) {
this.def34 = def34;
}
public String getDef35() {
return def35;
}
public void setDef35(String def35) {
this.def35 = def35;
}
public String getDef36() {
return def36;
}
public void setDef36(String def36) {
this.def36 = def36;
}
public String getDef37() {
return def37;
}
public void setDef37(String def37) {
this.def37 = def37;
}
public String getDef38() {
return def38;
}
public void setDef38(String def38) {
this.def38 = def38;
}
public String getDef39() {
return def39;
}
public void setDef39(String def39) {
this.def39 = def39;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef40() {
return def40;
}
public void setDef40(String def40) {
this.def40 = def40;
}
public String getDef41() {
return def41;
}
public void setDef41(String def41) {
this.def41 = def41;
}
public String getDef42() {
return def42;
}
public void setDef42(String def42) {
this.def42 = def42;
}
public String getDef43() {
return def43;
}
public void setDef43(String def43) {
this.def43 = def43;
}
public String getDef44() {
return def44;
}
public void setDef44(String def44) {
this.def44 = def44;
}
public String getDef45() {
return def45;
}
public void setDef45(String def45) {
this.def45 = def45;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public String getDef6() {
return def6;
}
public void setDef6(String def6) {
this.def6 = def6;
}
public String getDef7() {
return def7;
}
public void setDef7(String def7) {
this.def7 = def7;
}
public String getDef8() {
return def8;
}
public void setDef8(String def8) {
this.def8 = def8;
}
public String getDef9() {
return def9;
}
public void setDef9(String def9) {
this.def9 = def9;
}
public String getDefrozendate() {
return defrozendate;
}
public void setDefrozendate(String defrozendate) {
this.defrozendate = defrozendate;
}
public Integer getDr() {
return dr;
}
public void setDr(Integer dr) {
this.dr = dr;
}
public String getFrozendate() {
return frozendate;
}
public void setFrozendate(String frozendate) {
this.frozendate = frozendate;
}
public Double getFrozenje() {
return frozenje;
}
public void setFrozenje(Double frozenje) {
this.frozenje = frozenje;
}
public Integer getFundform() {
return fundform;
}
public void setFundform(Integer fundform) {
this.fundform = fundform;
}
public Integer getGenebranprop() {
return genebranprop;
}
public void setGenebranprop(Integer genebranprop) {
this.genebranprop = genebranprop;
}
public String getGroupaccount() {
return groupaccount;
}
public void setGroupaccount(String groupaccount) {
this.groupaccount = groupaccount;
}
public String getGroupid() {
return groupid;
}
public void setGroupid(String groupid) {
this.groupid = groupid;
}
public String getIsinneracc() {
return isinneracc;
}
public void setIsinneracc(String isinneracc) {
this.isinneracc = isinneracc;
}
public String getIsmargin() {
return ismargin;
}
public void setIsmargin(String ismargin) {
this.ismargin = ismargin;
}
public String getMainaccount() {
return mainaccount;
}
public void setMainaccount(String mainaccount) {
this.mainaccount = mainaccount;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public String getModifier() {
return modifier;
}
public void setModifier(String modifier) {
this.modifier = modifier;
}
public String getModifytime() {
return modifytime;
}
public void setModifytime(String modifytime) {
this.modifytime = modifytime;
}
public Integer getNetqueryflag() {
return netqueryflag;
}
public void setNetqueryflag(Integer netqueryflag) {
this.netqueryflag = netqueryflag;
}
public String getOrgnumber() {
return orgnumber;
}
public void setOrgnumber(String orgnumber) {
this.orgnumber = orgnumber;
}
public String getOwnercorp() {
return ownercorp;
}
public void setOwnercorp(String ownercorp) {
this.ownercorp = ownercorp;
}
public String getPkBankaccbas() {
return pkBankaccbas;
}
public void setPkBankaccbas(String pkBankaccbas) {
this.pkBankaccbas = pkBankaccbas;
}
public String getPkBankdoc() {
return pkBankdoc;
}
public void setPkBankdoc(String pkBankdoc) {
this.pkBankdoc = pkBankdoc;
}
public String getPkBanktype() {
return pkBanktype;
}
public void setPkBanktype(String pkBanktype) {
this.pkBanktype = pkBanktype;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getPkCurrtype() {
return pkCurrtype;
}
public void setPkCurrtype(String pkCurrtype) {
this.pkCurrtype = pkCurrtype;
}
public String getPkNetbankinftp() {
return pkNetbankinftp;
}
public void setPkNetbankinftp(String pkNetbankinftp) {
this.pkNetbankinftp = pkNetbankinftp;
}
public String getPkPsnbasdoc() {
return pkPsnbasdoc;
}
public void setPkPsnbasdoc(String pkPsnbasdoc) {
this.pkPsnbasdoc = pkPsnbasdoc;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public Integer getQrybalanceitf() {
return qrybalanceitf;
}
public void setQrybalanceitf(Integer qrybalanceitf) {
this.qrybalanceitf = qrybalanceitf;
}
public String getRemcode() {
return remcode;
}
public void setRemcode(String remcode) {
this.remcode = remcode;
}
public String getSignflag() {
return signflag;
}
public void setSignflag(String signflag) {
this.signflag = signflag;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
public String getUnitname() {
return unitname;
}
public void setUnitname(String unitname) {
this.unitname = unitname;
}
}

View File

@ -0,0 +1,330 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdBankdoc)实体类
*
* @author makejava
* @since 2023-12-30 16:16:02
*/
public class BdBankdocEntity extends BaseEntity {
private String address;
private String amcode;
private String bankdoccode;
private String bankdocname;
private String city;
private String createtime;
private String creator;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private Integer dr;
private String iscustbank;
private String linkman1;
private String linkman2;
private String linkman3;
private String modifier;
private String modifytime;
private String pcombinename;
private String pcombinenum;
private String phone1;
private String phone2;
private String phone3;
private String pkBankdoc;
private String pkBanktype;
private String pkCorp;
private String pkFatherbank;
private String pkPcombine;
private String pkSettlecenter;
private String province;
private String sealflag;
private String shortname;
private String swiftnum;
private String ts;
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getAmcode() {
return amcode;
}
public void setAmcode(String amcode) {
this.amcode = amcode;
}
public String getBankdoccode() {
return bankdoccode;
}
public void setBankdoccode(String bankdoccode) {
this.bankdoccode = bankdoccode;
}
public String getBankdocname() {
return bankdocname;
}
public void setBankdocname(String bankdocname) {
this.bankdocname = bankdocname;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getCreatetime() {
return createtime;
}
public void setCreatetime(String createtime) {
this.createtime = createtime;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getDef1() {
return def1;
}
public void setDef1(String def1) {
this.def1 = def1;
}
public String getDef2() {
return def2;
}
public void setDef2(String def2) {
this.def2 = def2;
}
public String getDef3() {
return def3;
}
public void setDef3(String def3) {
this.def3 = def3;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public Integer getDr() {
return dr;
}
public void setDr(Integer dr) {
this.dr = dr;
}
public String getIscustbank() {
return iscustbank;
}
public void setIscustbank(String iscustbank) {
this.iscustbank = iscustbank;
}
public String getLinkman1() {
return linkman1;
}
public void setLinkman1(String linkman1) {
this.linkman1 = linkman1;
}
public String getLinkman2() {
return linkman2;
}
public void setLinkman2(String linkman2) {
this.linkman2 = linkman2;
}
public String getLinkman3() {
return linkman3;
}
public void setLinkman3(String linkman3) {
this.linkman3 = linkman3;
}
public String getModifier() {
return modifier;
}
public void setModifier(String modifier) {
this.modifier = modifier;
}
public String getModifytime() {
return modifytime;
}
public void setModifytime(String modifytime) {
this.modifytime = modifytime;
}
public String getPcombinename() {
return pcombinename;
}
public void setPcombinename(String pcombinename) {
this.pcombinename = pcombinename;
}
public String getPcombinenum() {
return pcombinenum;
}
public void setPcombinenum(String pcombinenum) {
this.pcombinenum = pcombinenum;
}
public String getPhone1() {
return phone1;
}
public void setPhone1(String phone1) {
this.phone1 = phone1;
}
public String getPhone2() {
return phone2;
}
public void setPhone2(String phone2) {
this.phone2 = phone2;
}
public String getPhone3() {
return phone3;
}
public void setPhone3(String phone3) {
this.phone3 = phone3;
}
public String getPkBankdoc() {
return pkBankdoc;
}
public void setPkBankdoc(String pkBankdoc) {
this.pkBankdoc = pkBankdoc;
}
public String getPkBanktype() {
return pkBanktype;
}
public void setPkBanktype(String pkBanktype) {
this.pkBanktype = pkBanktype;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getPkFatherbank() {
return pkFatherbank;
}
public void setPkFatherbank(String pkFatherbank) {
this.pkFatherbank = pkFatherbank;
}
public String getPkPcombine() {
return pkPcombine;
}
public void setPkPcombine(String pkPcombine) {
this.pkPcombine = pkPcombine;
}
public String getPkSettlecenter() {
return pkSettlecenter;
}
public void setPkSettlecenter(String pkSettlecenter) {
this.pkSettlecenter = pkSettlecenter;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getSealflag() {
return sealflag;
}
public void setSealflag(String sealflag) {
this.sealflag = sealflag;
}
public String getShortname() {
return shortname;
}
public void setShortname(String shortname) {
this.shortname = shortname;
}
public String getSwiftnum() {
return swiftnum;
}
public void setSwiftnum(String swiftnum) {
this.swiftnum = swiftnum;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
}

View File

@ -0,0 +1,494 @@
<?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.lets.dao.impl.BdBankdocDaoImpl">
<resultMap id="get-BdBankdocEntity-result" type="com.hzya.frame.plugin.lets.entity.BdBankdocEntity" >
<result property="address" column="address" jdbcType="VARCHAR"/>
<result property="amcode" column="amcode" jdbcType="VARCHAR"/>
<result property="bankdoccode" column="bankdoccode" jdbcType="VARCHAR"/>
<result property="bankdocname" column="bankdocname" jdbcType="VARCHAR"/>
<result property="city" column="city" jdbcType="VARCHAR"/>
<result property="createtime" column="createtime" jdbcType="VARCHAR"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="dr" column="dr" jdbcType="INTEGER"/>
<result property="iscustbank" column="iscustbank" jdbcType="VARCHAR"/>
<result property="linkman1" column="linkman1" jdbcType="VARCHAR"/>
<result property="linkman2" column="linkman2" jdbcType="VARCHAR"/>
<result property="linkman3" column="linkman3" jdbcType="VARCHAR"/>
<result property="modifier" column="modifier" jdbcType="VARCHAR"/>
<result property="modifytime" column="modifytime" jdbcType="VARCHAR"/>
<result property="pcombinename" column="pcombinename" jdbcType="VARCHAR"/>
<result property="pcombinenum" column="pcombinenum" jdbcType="VARCHAR"/>
<result property="phone1" column="phone1" jdbcType="VARCHAR"/>
<result property="phone2" column="phone2" jdbcType="VARCHAR"/>
<result property="phone3" column="phone3" jdbcType="VARCHAR"/>
<result property="pkBankdoc" column="pk_bankdoc" jdbcType="VARCHAR"/>
<result property="pkBanktype" column="pk_banktype" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
<result property="pkFatherbank" column="pk_fatherbank" jdbcType="VARCHAR"/>
<result property="pkPcombine" column="pk_pcombine" jdbcType="VARCHAR"/>
<result property="pkSettlecenter" column="pk_settlecenter" jdbcType="VARCHAR"/>
<result property="province" column="province" jdbcType="VARCHAR"/>
<result property="sealflag" column="sealflag" jdbcType="VARCHAR"/>
<result property="shortname" column="shortname" jdbcType="VARCHAR"/>
<result property="swiftnum" column="swiftnum" jdbcType="VARCHAR"/>
<result property="ts" column="ts" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "BdBankdocEntity_Base_Column_List">
address
,amcode
,bankdoccode
,bankdocname
,city
,createtime
,creator
,def1
,def2
,def3
,def4
,def5
,dr
,iscustbank
,linkman1
,linkman2
,linkman3
,modifier
,modifytime
,pcombinename
,pcombinenum
,phone1
,phone2
,phone3
,pk_bankdoc
,pk_banktype
,pk_corp
,pk_fatherbank
,pk_pcombine
,pk_settlecenter
,province
,sealflag
,shortname
,swiftnum
,ts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-BdBankdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdBankdocEntity">
select
<include refid="BdBankdocEntity_Base_Column_List" />
from bd_bankdoc
<trim prefix="where" prefixOverrides="and">
<if test="address != null and address != ''"> and address = #{address} </if>
<if test="amcode != null and amcode != ''"> and amcode = #{amcode} </if>
<if test="bankdoccode != null and bankdoccode != ''"> and bankdoccode = #{bankdoccode} </if>
<if test="bankdocname != null and bankdocname != ''"> and bankdocname = #{bankdocname} </if>
<if test="city != null and city != ''"> and city = #{city} </if>
<if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>
<if test="creator != null and creator != ''"> and creator = #{creator} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="iscustbank != null and iscustbank != ''"> and iscustbank = #{iscustbank} </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
<if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>
<if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </if>
<if test="pcombinename != null and pcombinename != ''"> and pcombinename = #{pcombinename} </if>
<if test="pcombinenum != null and pcombinenum != ''"> and pcombinenum = #{pcombinenum} </if>
<if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
<if test="pkBankdoc != null and pkBankdoc != ''"> and pk_bankdoc = #{pkBankdoc} </if>
<if test="pkBanktype != null and pkBanktype != ''"> and pk_banktype = #{pkBanktype} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="pkFatherbank != null and pkFatherbank != ''"> and pk_fatherbank = #{pkFatherbank} </if>
<if test="pkPcombine != null and pkPcombine != ''"> and pk_pcombine = #{pkPcombine} </if>
<if test="pkSettlecenter != null and pkSettlecenter != ''"> and pk_settlecenter = #{pkSettlecenter} </if>
<if test="province != null and province != ''"> and province = #{province} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="shortname != null and shortname != ''"> and shortname = #{shortname} </if>
<if test="swiftnum != null and swiftnum != ''"> and swiftnum = #{swiftnum} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
-- and sts='Y'
</trim>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.BdBankdocEntity">
select count(1) from bd_bankdoc
<trim prefix="where" prefixOverrides="and">
<if test="address != null and address != ''"> and address = #{address} </if>
<if test="amcode != null and amcode != ''"> and amcode = #{amcode} </if>
<if test="bankdoccode != null and bankdoccode != ''"> and bankdoccode = #{bankdoccode} </if>
<if test="bankdocname != null and bankdocname != ''"> and bankdocname = #{bankdocname} </if>
<if test="city != null and city != ''"> and city = #{city} </if>
<if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>
<if test="creator != null and creator != ''"> and creator = #{creator} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="iscustbank != null and iscustbank != ''"> and iscustbank = #{iscustbank} </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
<if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>
<if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </if>
<if test="pcombinename != null and pcombinename != ''"> and pcombinename = #{pcombinename} </if>
<if test="pcombinenum != null and pcombinenum != ''"> and pcombinenum = #{pcombinenum} </if>
<if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
<if test="pkBankdoc != null and pkBankdoc != ''"> and pk_bankdoc = #{pkBankdoc} </if>
<if test="pkBanktype != null and pkBanktype != ''"> and pk_banktype = #{pkBanktype} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="pkFatherbank != null and pkFatherbank != ''"> and pk_fatherbank = #{pkFatherbank} </if>
<if test="pkPcombine != null and pkPcombine != ''"> and pk_pcombine = #{pkPcombine} </if>
<if test="pkSettlecenter != null and pkSettlecenter != ''"> and pk_settlecenter = #{pkSettlecenter} </if>
<if test="province != null and province != ''"> and province = #{province} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="shortname != null and shortname != ''"> and shortname = #{shortname} </if>
<if test="swiftnum != null and swiftnum != ''"> and swiftnum = #{swiftnum} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-BdBankdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdBankdocEntity">
select
<include refid="BdBankdocEntity_Base_Column_List" />
from bd_bankdoc
<trim prefix="where" prefixOverrides="and">
<if test="address != null and address != ''"> and address like concat('%',#{address},'%') </if>
<if test="amcode != null and amcode != ''"> and amcode like concat('%',#{amcode},'%') </if>
<if test="bankdoccode != null and bankdoccode != ''"> and bankdoccode like concat('%',#{bankdoccode},'%') </if>
<if test="bankdocname != null and bankdocname != ''"> and bankdocname like concat('%',#{bankdocname},'%') </if>
<if test="city != null and city != ''"> and city like concat('%',#{city},'%') </if>
<if test="createtime != null and createtime != ''"> and createtime like concat('%',#{createtime},'%') </if>
<if test="creator != null and creator != ''"> and creator like concat('%',#{creator},'%') </if>
<if test="def1 != null and def1 != ''"> and def1 like concat('%',#{def1},'%') </if>
<if test="def2 != null and def2 != ''"> and def2 like concat('%',#{def2},'%') </if>
<if test="def3 != null and def3 != ''"> and def3 like concat('%',#{def3},'%') </if>
<if test="def4 != null and def4 != ''"> and def4 like concat('%',#{def4},'%') </if>
<if test="def5 != null and def5 != ''"> and def5 like concat('%',#{def5},'%') </if>
<if test="dr != null"> and dr like concat('%',#{dr},'%') </if>
<if test="iscustbank != null and iscustbank != ''"> and iscustbank like concat('%',#{iscustbank},'%') </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 like concat('%',#{linkman1},'%') </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 like concat('%',#{linkman2},'%') </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 like concat('%',#{linkman3},'%') </if>
<if test="modifier != null and modifier != ''"> and modifier like concat('%',#{modifier},'%') </if>
<if test="modifytime != null and modifytime != ''"> and modifytime like concat('%',#{modifytime},'%') </if>
<if test="pcombinename != null and pcombinename != ''"> and pcombinename like concat('%',#{pcombinename},'%') </if>
<if test="pcombinenum != null and pcombinenum != ''"> and pcombinenum like concat('%',#{pcombinenum},'%') </if>
<if test="phone1 != null and phone1 != ''"> and phone1 like concat('%',#{phone1},'%') </if>
<if test="phone2 != null and phone2 != ''"> and phone2 like concat('%',#{phone2},'%') </if>
<if test="phone3 != null and phone3 != ''"> and phone3 like concat('%',#{phone3},'%') </if>
<if test="pkBankdoc != null and pkBankdoc != ''"> and pk_bankdoc like concat('%',#{pkBankdoc},'%') </if>
<if test="pkBanktype != null and pkBanktype != ''"> and pk_banktype like concat('%',#{pkBanktype},'%') </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp like concat('%',#{pkCorp},'%') </if>
<if test="pkFatherbank != null and pkFatherbank != ''"> and pk_fatherbank like concat('%',#{pkFatherbank},'%') </if>
<if test="pkPcombine != null and pkPcombine != ''"> and pk_pcombine like concat('%',#{pkPcombine},'%') </if>
<if test="pkSettlecenter != null and pkSettlecenter != ''"> and pk_settlecenter like concat('%',#{pkSettlecenter},'%') </if>
<if test="province != null and province != ''"> and province like concat('%',#{province},'%') </if>
<if test="sealflag != null and sealflag != ''"> and sealflag like concat('%',#{sealflag},'%') </if>
<if test="shortname != null and shortname != ''"> and shortname like concat('%',#{shortname},'%') </if>
<if test="swiftnum != null and swiftnum != ''"> and swiftnum like concat('%',#{swiftnum},'%') </if>
<if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="BdBankdocentity_list_or" resultMap="get-BdBankdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdBankdocEntity">
select
<include refid="BdBankdocEntity_Base_Column_List" />
from bd_bankdoc
<trim prefix="where" prefixOverrides="and">
<if test="address != null and address != ''"> or address = #{address} </if>
<if test="amcode != null and amcode != ''"> or amcode = #{amcode} </if>
<if test="bankdoccode != null and bankdoccode != ''"> or bankdoccode = #{bankdoccode} </if>
<if test="bankdocname != null and bankdocname != ''"> or bankdocname = #{bankdocname} </if>
<if test="city != null and city != ''"> or city = #{city} </if>
<if test="createtime != null and createtime != ''"> or createtime = #{createtime} </if>
<if test="creator != null and creator != ''"> or creator = #{creator} </if>
<if test="def1 != null and def1 != ''"> or def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> or def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> or def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> or def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> or def5 = #{def5} </if>
<if test="dr != null"> or dr = #{dr} </if>
<if test="iscustbank != null and iscustbank != ''"> or iscustbank = #{iscustbank} </if>
<if test="linkman1 != null and linkman1 != ''"> or linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> or linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> or linkman3 = #{linkman3} </if>
<if test="modifier != null and modifier != ''"> or modifier = #{modifier} </if>
<if test="modifytime != null and modifytime != ''"> or modifytime = #{modifytime} </if>
<if test="pcombinename != null and pcombinename != ''"> or pcombinename = #{pcombinename} </if>
<if test="pcombinenum != null and pcombinenum != ''"> or pcombinenum = #{pcombinenum} </if>
<if test="phone1 != null and phone1 != ''"> or phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> or phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> or phone3 = #{phone3} </if>
<if test="pkBankdoc != null and pkBankdoc != ''"> or pk_bankdoc = #{pkBankdoc} </if>
<if test="pkBanktype != null and pkBanktype != ''"> or pk_banktype = #{pkBanktype} </if>
<if test="pkCorp != null and pkCorp != ''"> or pk_corp = #{pkCorp} </if>
<if test="pkFatherbank != null and pkFatherbank != ''"> or pk_fatherbank = #{pkFatherbank} </if>
<if test="pkPcombine != null and pkPcombine != ''"> or pk_pcombine = #{pkPcombine} </if>
<if test="pkSettlecenter != null and pkSettlecenter != ''"> or pk_settlecenter = #{pkSettlecenter} </if>
<if test="province != null and province != ''"> or province = #{province} </if>
<if test="sealflag != null and sealflag != ''"> or sealflag = #{sealflag} </if>
<if test="shortname != null and shortname != ''"> or shortname = #{shortname} </if>
<if test="swiftnum != null and swiftnum != ''"> or swiftnum = #{swiftnum} </if>
<if test="ts != null and ts != ''"> or ts = #{ts} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.lets.entity.BdBankdocEntity" keyProperty="pkBankdoc" useGeneratedKeys="true">
insert into bd_bankdoc(
<trim suffix="" suffixOverrides=",">
<if test="address != null and address != ''"> address , </if>
<if test="amcode != null and amcode != ''"> amcode , </if>
<if test="bankdoccode != null and bankdoccode != ''"> bankdoccode , </if>
<if test="bankdocname != null and bankdocname != ''"> bankdocname , </if>
<if test="city != null and city != ''"> city , </if>
<if test="createtime != null and createtime != ''"> createtime , </if>
<if test="creator != null and creator != ''"> creator , </if>
<if test="def1 != null and def1 != ''"> def1 , </if>
<if test="def2 != null and def2 != ''"> def2 , </if>
<if test="def3 != null and def3 != ''"> def3 , </if>
<if test="def4 != null and def4 != ''"> def4 , </if>
<if test="def5 != null and def5 != ''"> def5 , </if>
<if test="dr != null"> dr , </if>
<if test="iscustbank != null and iscustbank != ''"> iscustbank , </if>
<if test="linkman1 != null and linkman1 != ''"> linkman1 , </if>
<if test="linkman2 != null and linkman2 != ''"> linkman2 , </if>
<if test="linkman3 != null and linkman3 != ''"> linkman3 , </if>
<if test="modifier != null and modifier != ''"> modifier , </if>
<if test="modifytime != null and modifytime != ''"> modifytime , </if>
<if test="pcombinename != null and pcombinename != ''"> pcombinename , </if>
<if test="pcombinenum != null and pcombinenum != ''"> pcombinenum , </if>
<if test="phone1 != null and phone1 != ''"> phone1 , </if>
<if test="phone2 != null and phone2 != ''"> phone2 , </if>
<if test="phone3 != null and phone3 != ''"> phone3 , </if>
<if test="pkBankdoc != null and pkBankdoc != ''"> pk_bankdoc , </if>
<if test="pkBanktype != null and pkBanktype != ''"> pk_banktype , </if>
<if test="pkCorp != null and pkCorp != ''"> pk_corp , </if>
<if test="pkFatherbank != null and pkFatherbank != ''"> pk_fatherbank , </if>
<if test="pkPcombine != null and pkPcombine != ''"> pk_pcombine , </if>
<if test="pkSettlecenter != null and pkSettlecenter != ''"> pk_settlecenter , </if>
<if test="province != null and province != ''"> province , </if>
<if test="sealflag != null and sealflag != ''"> sealflag , </if>
<if test="shortname != null and shortname != ''"> shortname , </if>
<if test="swiftnum != null and swiftnum != ''"> swiftnum , </if>
<if test="ts != null and ts != ''"> ts , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="address != null and address != ''"> #{address} ,</if>
<if test="amcode != null and amcode != ''"> #{amcode} ,</if>
<if test="bankdoccode != null and bankdoccode != ''"> #{bankdoccode} ,</if>
<if test="bankdocname != null and bankdocname != ''"> #{bankdocname} ,</if>
<if test="city != null and city != ''"> #{city} ,</if>
<if test="createtime != null and createtime != ''"> #{createtime} ,</if>
<if test="creator != null and creator != ''"> #{creator} ,</if>
<if test="def1 != null and def1 != ''"> #{def1} ,</if>
<if test="def2 != null and def2 != ''"> #{def2} ,</if>
<if test="def3 != null and def3 != ''"> #{def3} ,</if>
<if test="def4 != null and def4 != ''"> #{def4} ,</if>
<if test="def5 != null and def5 != ''"> #{def5} ,</if>
<if test="dr != null"> #{dr} ,</if>
<if test="iscustbank != null and iscustbank != ''"> #{iscustbank} ,</if>
<if test="linkman1 != null and linkman1 != ''"> #{linkman1} ,</if>
<if test="linkman2 != null and linkman2 != ''"> #{linkman2} ,</if>
<if test="linkman3 != null and linkman3 != ''"> #{linkman3} ,</if>
<if test="modifier != null and modifier != ''"> #{modifier} ,</if>
<if test="modifytime != null and modifytime != ''"> #{modifytime} ,</if>
<if test="pcombinename != null and pcombinename != ''"> #{pcombinename} ,</if>
<if test="pcombinenum != null and pcombinenum != ''"> #{pcombinenum} ,</if>
<if test="phone1 != null and phone1 != ''"> #{phone1} ,</if>
<if test="phone2 != null and phone2 != ''"> #{phone2} ,</if>
<if test="phone3 != null and phone3 != ''"> #{phone3} ,</if>
<if test="pkBankdoc != null and pkBankdoc != ''"> #{pkBankdoc} ,</if>
<if test="pkBanktype != null and pkBanktype != ''"> #{pkBanktype} ,</if>
<if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>
<if test="pkFatherbank != null and pkFatherbank != ''"> #{pkFatherbank} ,</if>
<if test="pkPcombine != null and pkPcombine != ''"> #{pkPcombine} ,</if>
<if test="pkSettlecenter != null and pkSettlecenter != ''"> #{pkSettlecenter} ,</if>
<if test="province != null and province != ''"> #{province} ,</if>
<if test="sealflag != null and sealflag != ''"> #{sealflag} ,</if>
<if test="shortname != null and shortname != ''"> #{shortname} ,</if>
<if test="swiftnum != null and swiftnum != ''"> #{swiftnum} ,</if>
<if test="ts != null and ts != ''"> #{ts} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_bankdoc a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="pkBankdoc" useGeneratedKeys="true">
insert into bd_bankdoc(address, amcode, bankdoccode, bankdocname, city, createtime, creator, def1, def2, def3, def4, def5, dr, iscustbank, linkman1, linkman2, linkman3, modifier, modifytime, pcombinename, pcombinenum, phone1, phone2, phone3, pk_banktype, pk_corp, pk_fatherbank, pk_pcombine, pk_settlecenter, province, sealflag, shortname, swiftnum, ts, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.address},#{entity.amcode},#{entity.bankdoccode},#{entity.bankdocname},#{entity.city},#{entity.createtime},#{entity.creator},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.dr},#{entity.iscustbank},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.modifier},#{entity.modifytime},#{entity.pcombinename},#{entity.pcombinenum},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkBanktype},#{entity.pkCorp},#{entity.pkFatherbank},#{entity.pkPcombine},#{entity.pkSettlecenter},#{entity.province},#{entity.sealflag},#{entity.shortname},#{entity.swiftnum},#{entity.ts}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="pkBankdoc" useGeneratedKeys="true">
insert into bd_bankdoc(address, amcode, bankdoccode, bankdocname, city, createtime, creator, def1, def2, def3, def4, def5, dr, iscustbank, linkman1, linkman2, linkman3, modifier, modifytime, pcombinename, pcombinenum, phone1, phone2, phone3, pk_banktype, pk_corp, pk_fatherbank, pk_pcombine, pk_settlecenter, province, sealflag, shortname, swiftnum, ts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.address},#{entity.amcode},#{entity.bankdoccode},#{entity.bankdocname},#{entity.city},#{entity.createtime},#{entity.creator},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.dr},#{entity.iscustbank},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.modifier},#{entity.modifytime},#{entity.pcombinename},#{entity.pcombinenum},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkBanktype},#{entity.pkCorp},#{entity.pkFatherbank},#{entity.pkPcombine},#{entity.pkSettlecenter},#{entity.province},#{entity.sealflag},#{entity.shortname},#{entity.swiftnum},#{entity.ts})
</foreach>
on duplicate key update
address = values(address),
amcode = values(amcode),
bankdoccode = values(bankdoccode),
bankdocname = values(bankdocname),
city = values(city),
createtime = values(createtime),
creator = values(creator),
def1 = values(def1),
def2 = values(def2),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
dr = values(dr),
iscustbank = values(iscustbank),
linkman1 = values(linkman1),
linkman2 = values(linkman2),
linkman3 = values(linkman3),
modifier = values(modifier),
modifytime = values(modifytime),
pcombinename = values(pcombinename),
pcombinenum = values(pcombinenum),
phone1 = values(phone1),
phone2 = values(phone2),
phone3 = values(phone3),
pk_banktype = values(pk_banktype),
pk_corp = values(pk_corp),
pk_fatherbank = values(pk_fatherbank),
pk_pcombine = values(pk_pcombine),
pk_settlecenter = values(pk_settlecenter),
province = values(province),
sealflag = values(sealflag),
shortname = values(shortname),
swiftnum = values(swiftnum),
ts = values(ts)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.BdBankdocEntity" >
update bd_bankdoc set
<trim suffix="" suffixOverrides=",">
<if test="address != null and address != ''"> address = #{address},</if>
<if test="amcode != null and amcode != ''"> amcode = #{amcode},</if>
<if test="bankdoccode != null and bankdoccode != ''"> bankdoccode = #{bankdoccode},</if>
<if test="bankdocname != null and bankdocname != ''"> bankdocname = #{bankdocname},</if>
<if test="city != null and city != ''"> city = #{city},</if>
<if test="createtime != null and createtime != ''"> createtime = #{createtime},</if>
<if test="creator != null and creator != ''"> creator = #{creator},</if>
<if test="def1 != null and def1 != ''"> def1 = #{def1},</if>
<if test="def2 != null and def2 != ''"> def2 = #{def2},</if>
<if test="def3 != null and def3 != ''"> def3 = #{def3},</if>
<if test="def4 != null and def4 != ''"> def4 = #{def4},</if>
<if test="def5 != null and def5 != ''"> def5 = #{def5},</if>
<if test="dr != null"> dr = #{dr},</if>
<if test="iscustbank != null and iscustbank != ''"> iscustbank = #{iscustbank},</if>
<if test="linkman1 != null and linkman1 != ''"> linkman1 = #{linkman1},</if>
<if test="linkman2 != null and linkman2 != ''"> linkman2 = #{linkman2},</if>
<if test="linkman3 != null and linkman3 != ''"> linkman3 = #{linkman3},</if>
<if test="modifier != null and modifier != ''"> modifier = #{modifier},</if>
<if test="modifytime != null and modifytime != ''"> modifytime = #{modifytime},</if>
<if test="pcombinename != null and pcombinename != ''"> pcombinename = #{pcombinename},</if>
<if test="pcombinenum != null and pcombinenum != ''"> pcombinenum = #{pcombinenum},</if>
<if test="phone1 != null and phone1 != ''"> phone1 = #{phone1},</if>
<if test="phone2 != null and phone2 != ''"> phone2 = #{phone2},</if>
<if test="phone3 != null and phone3 != ''"> phone3 = #{phone3},</if>
<if test="pkBanktype != null and pkBanktype != ''"> pk_banktype = #{pkBanktype},</if>
<if test="pkCorp != null and pkCorp != ''"> pk_corp = #{pkCorp},</if>
<if test="pkFatherbank != null and pkFatherbank != ''"> pk_fatherbank = #{pkFatherbank},</if>
<if test="pkPcombine != null and pkPcombine != ''"> pk_pcombine = #{pkPcombine},</if>
<if test="pkSettlecenter != null and pkSettlecenter != ''"> pk_settlecenter = #{pkSettlecenter},</if>
<if test="province != null and province != ''"> province = #{province},</if>
<if test="sealflag != null and sealflag != ''"> sealflag = #{sealflag},</if>
<if test="shortname != null and shortname != ''"> shortname = #{shortname},</if>
<if test="swiftnum != null and swiftnum != ''"> swiftnum = #{swiftnum},</if>
<if test="ts != null and ts != ''"> ts = #{ts},</if>
</trim>
where pk_bankdoc = #{pkBankdoc}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.BdBankdocEntity" >
update bd_bankdoc set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where pk_bankdoc = #{pkBankdoc}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.BdBankdocEntity" >
update bd_bankdoc set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="address != null and address != ''"> and address = #{address} </if>
<if test="amcode != null and amcode != ''"> and amcode = #{amcode} </if>
<if test="bankdoccode != null and bankdoccode != ''"> and bankdoccode = #{bankdoccode} </if>
<if test="bankdocname != null and bankdocname != ''"> and bankdocname = #{bankdocname} </if>
<if test="city != null and city != ''"> and city = #{city} </if>
<if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>
<if test="creator != null and creator != ''"> and creator = #{creator} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="iscustbank != null and iscustbank != ''"> and iscustbank = #{iscustbank} </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
<if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>
<if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </if>
<if test="pcombinename != null and pcombinename != ''"> and pcombinename = #{pcombinename} </if>
<if test="pcombinenum != null and pcombinenum != ''"> and pcombinenum = #{pcombinenum} </if>
<if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
<if test="pkBankdoc != null and pkBankdoc != ''"> and pk_bankdoc = #{pkBankdoc} </if>
<if test="pkBanktype != null and pkBanktype != ''"> and pk_banktype = #{pkBanktype} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="pkFatherbank != null and pkFatherbank != ''"> and pk_fatherbank = #{pkFatherbank} </if>
<if test="pkPcombine != null and pkPcombine != ''"> and pk_pcombine = #{pkPcombine} </if>
<if test="pkSettlecenter != null and pkSettlecenter != ''"> and pk_settlecenter = #{pkSettlecenter} </if>
<if test="province != null and province != ''"> and province = #{province} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="shortname != null and shortname != ''"> and shortname = #{shortname} </if>
<if test="swiftnum != null and swiftnum != ''"> and swiftnum = #{swiftnum} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from bd_bankdoc where pk_bankdoc = #{pkBankdoc}
</delete>
</mapper>

View File

@ -0,0 +1,222 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdBusitype)实体类
*
* @author makejava
* @since 2023-11-21 10:57:24
*/
public class BdBusitypeEntity extends BaseEntity {
private String busicode;
private String businame;
private Integer busiprop;
private Integer defaultgather;
private String defstr2;
private String defstr3;
private String defstr4;
private String defstr5;
private Integer dr;
private String encapsulate;
private String fktype;
private String isdapclassified;
private String isitem;
private String issrqr;
private String mnecode;
private String owetype;
private String pkBusitype;
private String pkCorp;
private String receipttype;
private String sktype;
private String ts;
private String verifyrule;
private String ystype;
public String getBusicode() {
return busicode;
}
public void setBusicode(String busicode) {
this.busicode = busicode;
}
public String getBusiname() {
return businame;
}
public void setBusiname(String businame) {
this.businame = businame;
}
public Integer getBusiprop() {
return busiprop;
}
public void setBusiprop(Integer busiprop) {
this.busiprop = busiprop;
}
public Integer getDefaultgather() {
return defaultgather;
}
public void setDefaultgather(Integer defaultgather) {
this.defaultgather = defaultgather;
}
public String getDefstr2() {
return defstr2;
}
public void setDefstr2(String defstr2) {
this.defstr2 = defstr2;
}
public String getDefstr3() {
return defstr3;
}
public void setDefstr3(String defstr3) {
this.defstr3 = defstr3;
}
public String getDefstr4() {
return defstr4;
}
public void setDefstr4(String defstr4) {
this.defstr4 = defstr4;
}
public String getDefstr5() {
return defstr5;
}
public void setDefstr5(String defstr5) {
this.defstr5 = defstr5;
}
public Integer getDr() {
return dr;
}
public void setDr(Integer dr) {
this.dr = dr;
}
public String getEncapsulate() {
return encapsulate;
}
public void setEncapsulate(String encapsulate) {
this.encapsulate = encapsulate;
}
public String getFktype() {
return fktype;
}
public void setFktype(String fktype) {
this.fktype = fktype;
}
public String getIsdapclassified() {
return isdapclassified;
}
public void setIsdapclassified(String isdapclassified) {
this.isdapclassified = isdapclassified;
}
public String getIsitem() {
return isitem;
}
public void setIsitem(String isitem) {
this.isitem = isitem;
}
public String getIssrqr() {
return issrqr;
}
public void setIssrqr(String issrqr) {
this.issrqr = issrqr;
}
public String getMnecode() {
return mnecode;
}
public void setMnecode(String mnecode) {
this.mnecode = mnecode;
}
public String getOwetype() {
return owetype;
}
public void setOwetype(String owetype) {
this.owetype = owetype;
}
public String getPkBusitype() {
return pkBusitype;
}
public void setPkBusitype(String pkBusitype) {
this.pkBusitype = pkBusitype;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getReceipttype() {
return receipttype;
}
public void setReceipttype(String receipttype) {
this.receipttype = receipttype;
}
public String getSktype() {
return sktype;
}
public void setSktype(String sktype) {
this.sktype = sktype;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
public String getVerifyrule() {
return verifyrule;
}
public void setVerifyrule(String verifyrule) {
this.verifyrule = verifyrule;
}
public String getYstype() {
return ystype;
}
public void setYstype(String ystype) {
this.ystype = ystype;
}
}

View File

@ -0,0 +1,362 @@
<?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.lets.dao.impl.BdBusitypeDaoImpl">
<resultMap id="get-BdBusitypeEntity-result" type="com.hzya.frame.plugin.lets.entity.BdBusitypeEntity" >
<result property="busicode" column="busicode" jdbcType="VARCHAR"/>
<result property="businame" column="businame" jdbcType="VARCHAR"/>
<result property="busiprop" column="busiprop" jdbcType="INTEGER"/>
<result property="defaultgather" column="defaultgather" jdbcType="INTEGER"/>
<result property="defstr2" column="defstr2" jdbcType="VARCHAR"/>
<result property="defstr3" column="defstr3" jdbcType="VARCHAR"/>
<result property="defstr4" column="defstr4" jdbcType="VARCHAR"/>
<result property="defstr5" column="defstr5" jdbcType="VARCHAR"/>
<result property="dr" column="dr" jdbcType="INTEGER"/>
<result property="encapsulate" column="encapsulate" jdbcType="VARCHAR"/>
<result property="fktype" column="fktype" jdbcType="VARCHAR"/>
<result property="isdapclassified" column="isdapclassified" jdbcType="VARCHAR"/>
<result property="isitem" column="isitem" jdbcType="VARCHAR"/>
<result property="issrqr" column="issrqr" jdbcType="VARCHAR"/>
<result property="mnecode" column="mnecode" jdbcType="VARCHAR"/>
<result property="owetype" column="owetype" jdbcType="VARCHAR"/>
<result property="pkBusitype" column="pk_busitype" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
<result property="receipttype" column="receipttype" jdbcType="VARCHAR"/>
<result property="sktype" column="sktype" jdbcType="VARCHAR"/>
<result property="ts" column="ts" jdbcType="VARCHAR"/>
<result property="verifyrule" column="verifyrule" jdbcType="VARCHAR"/>
<result property="ystype" column="ystype" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "BdBusitypeEntity_Base_Column_List">
busicode
,businame
,busiprop
,defaultgather
,defstr2
,defstr3
,defstr4
,defstr5
,dr
,encapsulate
,fktype
,isdapclassified
,isitem
,issrqr
,mnecode
,owetype
,pk_busitype
,pk_corp
,receipttype
,sktype
,ts
,verifyrule
,ystype
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-BdBusitypeEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdBusitypeEntity">
select
<include refid="BdBusitypeEntity_Base_Column_List" />
from bd_busitype
<trim prefix="where" prefixOverrides="and">
<if test="busicode != null and busicode != ''"> and busicode = #{busicode} </if>
<if test="businame != null and businame != ''"> and businame = #{businame} </if>
<if test="busiprop != null"> and busiprop = #{busiprop} </if>
<if test="defaultgather != null"> and defaultgather = #{defaultgather} </if>
<if test="defstr2 != null and defstr2 != ''"> and defstr2 = #{defstr2} </if>
<if test="defstr3 != null and defstr3 != ''"> and defstr3 = #{defstr3} </if>
<if test="defstr4 != null and defstr4 != ''"> and defstr4 = #{defstr4} </if>
<if test="defstr5 != null and defstr5 != ''"> and defstr5 = #{defstr5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="encapsulate != null and encapsulate != ''"> and encapsulate = #{encapsulate} </if>
<if test="fktype != null and fktype != ''"> and fktype = #{fktype} </if>
<if test="isdapclassified != null and isdapclassified != ''"> and isdapclassified = #{isdapclassified} </if>
<if test="isitem != null and isitem != ''"> and isitem = #{isitem} </if>
<if test="issrqr != null and issrqr != ''"> and issrqr = #{issrqr} </if>
<if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>
<if test="owetype != null and owetype != ''"> and owetype = #{owetype} </if>
<if test="pkBusitype != null and pkBusitype != ''"> and pk_busitype = #{pkBusitype} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="receipttype != null and receipttype != ''"> and receipttype = #{receipttype} </if>
<if test="sktype != null and sktype != ''"> and sktype = #{sktype} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="verifyrule != null and verifyrule != ''"> and verifyrule = #{verifyrule} </if>
<if test="ystype != null and ystype != ''"> and ystype = #{ystype} </if>
-- and sts='Y'
</trim>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.BdBusitypeEntity">
select count(1) from bd_busitype
<trim prefix="where" prefixOverrides="and">
<if test="busicode != null and busicode != ''"> and busicode = #{busicode} </if>
<if test="businame != null and businame != ''"> and businame = #{businame} </if>
<if test="busiprop != null"> and busiprop = #{busiprop} </if>
<if test="defaultgather != null"> and defaultgather = #{defaultgather} </if>
<if test="defstr2 != null and defstr2 != ''"> and defstr2 = #{defstr2} </if>
<if test="defstr3 != null and defstr3 != ''"> and defstr3 = #{defstr3} </if>
<if test="defstr4 != null and defstr4 != ''"> and defstr4 = #{defstr4} </if>
<if test="defstr5 != null and defstr5 != ''"> and defstr5 = #{defstr5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="encapsulate != null and encapsulate != ''"> and encapsulate = #{encapsulate} </if>
<if test="fktype != null and fktype != ''"> and fktype = #{fktype} </if>
<if test="isdapclassified != null and isdapclassified != ''"> and isdapclassified = #{isdapclassified} </if>
<if test="isitem != null and isitem != ''"> and isitem = #{isitem} </if>
<if test="issrqr != null and issrqr != ''"> and issrqr = #{issrqr} </if>
<if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>
<if test="owetype != null and owetype != ''"> and owetype = #{owetype} </if>
<if test="pkBusitype != null and pkBusitype != ''"> and pk_busitype = #{pkBusitype} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="receipttype != null and receipttype != ''"> and receipttype = #{receipttype} </if>
<if test="sktype != null and sktype != ''"> and sktype = #{sktype} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="verifyrule != null and verifyrule != ''"> and verifyrule = #{verifyrule} </if>
<if test="ystype != null and ystype != ''"> and ystype = #{ystype} </if>
-- and sts='Y'
</trim>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-BdBusitypeEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdBusitypeEntity">
select
<include refid="BdBusitypeEntity_Base_Column_List" />
from bd_busitype
<trim prefix="where" prefixOverrides="and">
<if test="busicode != null and busicode != ''"> and busicode like concat('%',#{busicode},'%') </if>
<if test="businame != null and businame != ''"> and businame like concat('%',#{businame},'%') </if>
<if test="busiprop != null"> and busiprop like concat('%',#{busiprop},'%') </if>
<if test="defaultgather != null"> and defaultgather like concat('%',#{defaultgather},'%') </if>
<if test="defstr2 != null and defstr2 != ''"> and defstr2 like concat('%',#{defstr2},'%') </if>
<if test="defstr3 != null and defstr3 != ''"> and defstr3 like concat('%',#{defstr3},'%') </if>
<if test="defstr4 != null and defstr4 != ''"> and defstr4 like concat('%',#{defstr4},'%') </if>
<if test="defstr5 != null and defstr5 != ''"> and defstr5 like concat('%',#{defstr5},'%') </if>
<if test="dr != null"> and dr like concat('%',#{dr},'%') </if>
<if test="encapsulate != null and encapsulate != ''"> and encapsulate like concat('%',#{encapsulate},'%') </if>
<if test="fktype != null and fktype != ''"> and fktype like concat('%',#{fktype},'%') </if>
<if test="isdapclassified != null and isdapclassified != ''"> and isdapclassified like concat('%',#{isdapclassified},'%') </if>
<if test="isitem != null and isitem != ''"> and isitem like concat('%',#{isitem},'%') </if>
<if test="issrqr != null and issrqr != ''"> and issrqr like concat('%',#{issrqr},'%') </if>
<if test="mnecode != null and mnecode != ''"> and mnecode like concat('%',#{mnecode},'%') </if>
<if test="owetype != null and owetype != ''"> and owetype like concat('%',#{owetype},'%') </if>
<if test="pkBusitype != null and pkBusitype != ''"> and pk_busitype like concat('%',#{pkBusitype},'%') </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp like concat('%',#{pkCorp},'%') </if>
<if test="receipttype != null and receipttype != ''"> and receipttype like concat('%',#{receipttype},'%') </if>
<if test="sktype != null and sktype != ''"> and sktype like concat('%',#{sktype},'%') </if>
<if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
<if test="verifyrule != null and verifyrule != ''"> and verifyrule like concat('%',#{verifyrule},'%') </if>
<if test="ystype != null and ystype != ''"> and ystype like concat('%',#{ystype},'%') </if>
-- and sts='Y'
</trim>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="BdBusitypeentity_list_or" resultMap="get-BdBusitypeEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdBusitypeEntity">
select
<include refid="BdBusitypeEntity_Base_Column_List" />
from bd_busitype
<trim prefix="where" prefixOverrides="and">
<if test="busicode != null and busicode != ''"> or busicode = #{busicode} </if>
<if test="businame != null and businame != ''"> or businame = #{businame} </if>
<if test="busiprop != null"> or busiprop = #{busiprop} </if>
<if test="defaultgather != null"> or defaultgather = #{defaultgather} </if>
<if test="defstr2 != null and defstr2 != ''"> or defstr2 = #{defstr2} </if>
<if test="defstr3 != null and defstr3 != ''"> or defstr3 = #{defstr3} </if>
<if test="defstr4 != null and defstr4 != ''"> or defstr4 = #{defstr4} </if>
<if test="defstr5 != null and defstr5 != ''"> or defstr5 = #{defstr5} </if>
<if test="dr != null"> or dr = #{dr} </if>
<if test="encapsulate != null and encapsulate != ''"> or encapsulate = #{encapsulate} </if>
<if test="fktype != null and fktype != ''"> or fktype = #{fktype} </if>
<if test="isdapclassified != null and isdapclassified != ''"> or isdapclassified = #{isdapclassified} </if>
<if test="isitem != null and isitem != ''"> or isitem = #{isitem} </if>
<if test="issrqr != null and issrqr != ''"> or issrqr = #{issrqr} </if>
<if test="mnecode != null and mnecode != ''"> or mnecode = #{mnecode} </if>
<if test="owetype != null and owetype != ''"> or owetype = #{owetype} </if>
<if test="pkBusitype != null and pkBusitype != ''"> or pk_busitype = #{pkBusitype} </if>
<if test="pkCorp != null and pkCorp != ''"> or pk_corp = #{pkCorp} </if>
<if test="receipttype != null and receipttype != ''"> or receipttype = #{receipttype} </if>
<if test="sktype != null and sktype != ''"> or sktype = #{sktype} </if>
<if test="ts != null and ts != ''"> or ts = #{ts} </if>
<if test="verifyrule != null and verifyrule != ''"> or verifyrule = #{verifyrule} </if>
<if test="ystype != null and ystype != ''"> or ystype = #{ystype} </if>
-- and sts='Y'
</trim>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.lets.entity.BdBusitypeEntity" keyProperty="pkBusitype" useGeneratedKeys="true">
insert into bd_busitype(
<trim suffix="" suffixOverrides=",">
<if test="busicode != null and busicode != ''"> busicode , </if>
<if test="businame != null and businame != ''"> businame , </if>
<if test="busiprop != null"> busiprop , </if>
<if test="defaultgather != null"> defaultgather , </if>
<if test="defstr2 != null and defstr2 != ''"> defstr2 , </if>
<if test="defstr3 != null and defstr3 != ''"> defstr3 , </if>
<if test="defstr4 != null and defstr4 != ''"> defstr4 , </if>
<if test="defstr5 != null and defstr5 != ''"> defstr5 , </if>
<if test="dr != null"> dr , </if>
<if test="encapsulate != null and encapsulate != ''"> encapsulate , </if>
<if test="fktype != null and fktype != ''"> fktype , </if>
<if test="isdapclassified != null and isdapclassified != ''"> isdapclassified , </if>
<if test="isitem != null and isitem != ''"> isitem , </if>
<if test="issrqr != null and issrqr != ''"> issrqr , </if>
<if test="mnecode != null and mnecode != ''"> mnecode , </if>
<if test="owetype != null and owetype != ''"> owetype , </if>
<if test="pkBusitype != null and pkBusitype != ''"> pk_busitype , </if>
<if test="pkCorp != null and pkCorp != ''"> pk_corp , </if>
<if test="receipttype != null and receipttype != ''"> receipttype , </if>
<if test="sktype != null and sktype != ''"> sktype , </if>
<if test="ts != null and ts != ''"> ts , </if>
<if test="verifyrule != null and verifyrule != ''"> verifyrule , </if>
<if test="ystype != null and ystype != ''"> ystype , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="busicode != null and busicode != ''"> #{busicode} ,</if>
<if test="businame != null and businame != ''"> #{businame} ,</if>
<if test="busiprop != null"> #{busiprop} ,</if>
<if test="defaultgather != null"> #{defaultgather} ,</if>
<if test="defstr2 != null and defstr2 != ''"> #{defstr2} ,</if>
<if test="defstr3 != null and defstr3 != ''"> #{defstr3} ,</if>
<if test="defstr4 != null and defstr4 != ''"> #{defstr4} ,</if>
<if test="defstr5 != null and defstr5 != ''"> #{defstr5} ,</if>
<if test="dr != null"> #{dr} ,</if>
<if test="encapsulate != null and encapsulate != ''"> #{encapsulate} ,</if>
<if test="fktype != null and fktype != ''"> #{fktype} ,</if>
<if test="isdapclassified != null and isdapclassified != ''"> #{isdapclassified} ,</if>
<if test="isitem != null and isitem != ''"> #{isitem} ,</if>
<if test="issrqr != null and issrqr != ''"> #{issrqr} ,</if>
<if test="mnecode != null and mnecode != ''"> #{mnecode} ,</if>
<if test="owetype != null and owetype != ''"> #{owetype} ,</if>
<if test="pkBusitype != null and pkBusitype != ''"> #{pkBusitype} ,</if>
<if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>
<if test="receipttype != null and receipttype != ''"> #{receipttype} ,</if>
<if test="sktype != null and sktype != ''"> #{sktype} ,</if>
<if test="ts != null and ts != ''"> #{ts} ,</if>
<if test="verifyrule != null and verifyrule != ''"> #{verifyrule} ,</if>
<if test="ystype != null and ystype != ''"> #{ystype} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_busitype a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="pkBusitype" useGeneratedKeys="true">
insert into bd_busitype(busicode, businame, busiprop, defaultgather, defstr2, defstr3, defstr4, defstr5, dr, encapsulate, fktype, isdapclassified, isitem, issrqr, mnecode, owetype, pk_corp, receipttype, sktype, ts, verifyrule, ystype, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.busicode},#{entity.businame},#{entity.busiprop},#{entity.defaultgather},#{entity.defstr2},#{entity.defstr3},#{entity.defstr4},#{entity.defstr5},#{entity.dr},#{entity.encapsulate},#{entity.fktype},#{entity.isdapclassified},#{entity.isitem},#{entity.issrqr},#{entity.mnecode},#{entity.owetype},#{entity.pkCorp},#{entity.receipttype},#{entity.sktype},#{entity.ts},#{entity.verifyrule},#{entity.ystype}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="pkBusitype" useGeneratedKeys="true">
insert into bd_busitype(busicode, businame, busiprop, defaultgather, defstr2, defstr3, defstr4, defstr5, dr, encapsulate, fktype, isdapclassified, isitem, issrqr, mnecode, owetype, pk_corp, receipttype, sktype, ts, verifyrule, ystype)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.busicode},#{entity.businame},#{entity.busiprop},#{entity.defaultgather},#{entity.defstr2},#{entity.defstr3},#{entity.defstr4},#{entity.defstr5},#{entity.dr},#{entity.encapsulate},#{entity.fktype},#{entity.isdapclassified},#{entity.isitem},#{entity.issrqr},#{entity.mnecode},#{entity.owetype},#{entity.pkCorp},#{entity.receipttype},#{entity.sktype},#{entity.ts},#{entity.verifyrule},#{entity.ystype})
</foreach>
on duplicate key update
busicode = values(busicode),
businame = values(businame),
busiprop = values(busiprop),
defaultgather = values(defaultgather),
defstr2 = values(defstr2),
defstr3 = values(defstr3),
defstr4 = values(defstr4),
defstr5 = values(defstr5),
dr = values(dr),
encapsulate = values(encapsulate),
fktype = values(fktype),
isdapclassified = values(isdapclassified),
isitem = values(isitem),
issrqr = values(issrqr),
mnecode = values(mnecode),
owetype = values(owetype),
pk_corp = values(pk_corp),
receipttype = values(receipttype),
sktype = values(sktype),
ts = values(ts),
verifyrule = values(verifyrule),
ystype = values(ystype)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.BdBusitypeEntity" >
update bd_busitype set
<trim suffix="" suffixOverrides=",">
<if test="busicode != null and busicode != ''"> busicode = #{busicode},</if>
<if test="businame != null and businame != ''"> businame = #{businame},</if>
<if test="busiprop != null"> busiprop = #{busiprop},</if>
<if test="defaultgather != null"> defaultgather = #{defaultgather},</if>
<if test="defstr2 != null and defstr2 != ''"> defstr2 = #{defstr2},</if>
<if test="defstr3 != null and defstr3 != ''"> defstr3 = #{defstr3},</if>
<if test="defstr4 != null and defstr4 != ''"> defstr4 = #{defstr4},</if>
<if test="defstr5 != null and defstr5 != ''"> defstr5 = #{defstr5},</if>
<if test="dr != null"> dr = #{dr},</if>
<if test="encapsulate != null and encapsulate != ''"> encapsulate = #{encapsulate},</if>
<if test="fktype != null and fktype != ''"> fktype = #{fktype},</if>
<if test="isdapclassified != null and isdapclassified != ''"> isdapclassified = #{isdapclassified},</if>
<if test="isitem != null and isitem != ''"> isitem = #{isitem},</if>
<if test="issrqr != null and issrqr != ''"> issrqr = #{issrqr},</if>
<if test="mnecode != null and mnecode != ''"> mnecode = #{mnecode},</if>
<if test="owetype != null and owetype != ''"> owetype = #{owetype},</if>
<if test="pkCorp != null and pkCorp != ''"> pk_corp = #{pkCorp},</if>
<if test="receipttype != null and receipttype != ''"> receipttype = #{receipttype},</if>
<if test="sktype != null and sktype != ''"> sktype = #{sktype},</if>
<if test="ts != null and ts != ''"> ts = #{ts},</if>
<if test="verifyrule != null and verifyrule != ''"> verifyrule = #{verifyrule},</if>
<if test="ystype != null and ystype != ''"> ystype = #{ystype},</if>
</trim>
where pk_busitype = #{pkBusitype}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.BdBusitypeEntity" >
update bd_busitype set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where pk_busitype = #{pkBusitype}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.BdBusitypeEntity" >
update bd_busitype set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="busicode != null and busicode != ''"> and busicode = #{busicode} </if>
<if test="businame != null and businame != ''"> and businame = #{businame} </if>
<if test="busiprop != null"> and busiprop = #{busiprop} </if>
<if test="defaultgather != null"> and defaultgather = #{defaultgather} </if>
<if test="defstr2 != null and defstr2 != ''"> and defstr2 = #{defstr2} </if>
<if test="defstr3 != null and defstr3 != ''"> and defstr3 = #{defstr3} </if>
<if test="defstr4 != null and defstr4 != ''"> and defstr4 = #{defstr4} </if>
<if test="defstr5 != null and defstr5 != ''"> and defstr5 = #{defstr5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="encapsulate != null and encapsulate != ''"> and encapsulate = #{encapsulate} </if>
<if test="fktype != null and fktype != ''"> and fktype = #{fktype} </if>
<if test="isdapclassified != null and isdapclassified != ''"> and isdapclassified = #{isdapclassified} </if>
<if test="isitem != null and isitem != ''"> and isitem = #{isitem} </if>
<if test="issrqr != null and issrqr != ''"> and issrqr = #{issrqr} </if>
<if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>
<if test="owetype != null and owetype != ''"> and owetype = #{owetype} </if>
<if test="pkBusitype != null and pkBusitype != ''"> and pk_busitype = #{pkBusitype} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="receipttype != null and receipttype != ''"> and receipttype = #{receipttype} </if>
<if test="sktype != null and sktype != ''"> and sktype = #{sktype} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="verifyrule != null and verifyrule != ''"> and verifyrule = #{verifyrule} </if>
<if test="ystype != null and ystype != ''"> and ystype = #{ystype} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from bd_busitype where pk_busitype = #{pkBusitype}
</delete>
</mapper>

View File

@ -0,0 +1,204 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdCalbody)实体类
*
* @author makejava
* @since 2023-09-06 17:31:08
*/
public class BdCalbodyEntity extends BaseEntity {
private Integer aheaddays;
private String area;
private String bodycode;
private String bodyname;
private String createdate;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private Integer dr;
private String isuseretail;
private String pkAddress;
private String pkAreacl;
private String pkCalbody;
private String pkCorp;
private Integer property;
private Double rationmny;
private String sealflag;
private String ts;
private String vnote;
public Integer getAheaddays() {
return aheaddays;
}
public void setAheaddays(Integer aheaddays) {
this.aheaddays = aheaddays;
}
public String getArea() {
return area;
}
public void setArea(String area) {
this.area = area;
}
public String getBodycode() {
return bodycode;
}
public void setBodycode(String bodycode) {
this.bodycode = bodycode;
}
public String getBodyname() {
return bodyname;
}
public void setBodyname(String bodyname) {
this.bodyname = bodyname;
}
public String getCreatedate() {
return createdate;
}
public void setCreatedate(String createdate) {
this.createdate = createdate;
}
public String getDef1() {
return def1;
}
public void setDef1(String def1) {
this.def1 = def1;
}
public String getDef2() {
return def2;
}
public void setDef2(String def2) {
this.def2 = def2;
}
public String getDef3() {
return def3;
}
public void setDef3(String def3) {
this.def3 = def3;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public Integer getDr() {
return dr;
}
public void setDr(Integer dr) {
this.dr = dr;
}
public String getIsuseretail() {
return isuseretail;
}
public void setIsuseretail(String isuseretail) {
this.isuseretail = isuseretail;
}
public String getPkAddress() {
return pkAddress;
}
public void setPkAddress(String pkAddress) {
this.pkAddress = pkAddress;
}
public String getPkAreacl() {
return pkAreacl;
}
public void setPkAreacl(String pkAreacl) {
this.pkAreacl = pkAreacl;
}
public String getPkCalbody() {
return pkCalbody;
}
public void setPkCalbody(String pkCalbody) {
this.pkCalbody = pkCalbody;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public Integer getProperty() {
return property;
}
public void setProperty(Integer property) {
this.property = property;
}
public Double getRationmny() {
return rationmny;
}
public void setRationmny(Double rationmny) {
this.rationmny = rationmny;
}
public String getSealflag() {
return sealflag;
}
public void setSealflag(String sealflag) {
this.sealflag = sealflag;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
public String getVnote() {
return vnote;
}
public void setVnote(String vnote) {
this.vnote = vnote;
}
}

View File

@ -0,0 +1,339 @@
<?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.lets.dao.impl.BdCalbodyDaoImpl">
<resultMap id="get-BdCalbodyEntity-result" type="com.hzya.frame.plugin.lets.entity.BdCalbodyEntity" >
<result property="aheaddays" column="aheaddays" jdbcType="INTEGER"/>
<result property="area" column="area" jdbcType="VARCHAR"/>
<result property="bodycode" column="bodycode" jdbcType="VARCHAR"/>
<result property="bodyname" column="bodyname" jdbcType="VARCHAR"/>
<result property="createdate" column="createdate" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="dr" column="dr" jdbcType="INTEGER"/>
<result property="isuseretail" column="isuseretail" jdbcType="VARCHAR"/>
<result property="pkAddress" column="pk_address" jdbcType="VARCHAR"/>
<result property="pkAreacl" column="pk_areacl" jdbcType="VARCHAR"/>
<result property="pkCalbody" column="pk_calbody" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
<result property="property" column="property" jdbcType="INTEGER"/>
<result property="rationmny" column="rationmny" jdbcType="NUMERIC"/>
<result property="sealflag" column="sealflag" jdbcType="VARCHAR"/>
<result property="ts" column="ts" jdbcType="VARCHAR"/>
<result property="vnote" column="vnote" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "BdCalbodyEntity_Base_Column_List">
aheaddays
,area
,bodycode
,bodyname
,createdate
,def1
,def2
,def3
,def4
,def5
,dr
,isuseretail
,pk_address
,pk_areacl
,pk_calbody
,pk_corp
,property
,rationmny
,sealflag
,ts
,vnote
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-BdCalbodyEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCalbodyEntity">
select
<include refid="BdCalbodyEntity_Base_Column_List" />
from bd_calbody
<trim prefix="where" prefixOverrides="and">
<if test="aheaddays != null"> and aheaddays = #{aheaddays} </if>
<if test="area != null and area != ''"> and area = #{area} </if>
<if test="bodycode != null and bodycode != ''"> and bodycode = #{bodycode} </if>
<if test="bodyname != null and bodyname != ''"> and bodyname = #{bodyname} </if>
<if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
<if test="pkAddress != null and pkAddress != ''"> and pk_address = #{pkAddress} </if>
<if test="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>
<if test="pkCalbody != null and pkCalbody != ''"> and pk_calbody = #{pkCalbody} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="property != null"> and property = #{property} </if>
<if test="rationmny != null"> and rationmny = #{rationmny} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="vnote != null and vnote != ''"> and vnote = #{vnote} </if>
</trim>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.BdCalbodyEntity">
select count(1) from bd_calbody
<trim prefix="where" prefixOverrides="and">
<if test="aheaddays != null"> and aheaddays = #{aheaddays} </if>
<if test="area != null and area != ''"> and area = #{area} </if>
<if test="bodycode != null and bodycode != ''"> and bodycode = #{bodycode} </if>
<if test="bodyname != null and bodyname != ''"> and bodyname = #{bodyname} </if>
<if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
<if test="pkAddress != null and pkAddress != ''"> and pk_address = #{pkAddress} </if>
<if test="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>
<if test="pkCalbody != null and pkCalbody != ''"> and pk_calbody = #{pkCalbody} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="property != null"> and property = #{property} </if>
<if test="rationmny != null"> and rationmny = #{rationmny} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="vnote != null and vnote != ''"> and vnote = #{vnote} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-BdCalbodyEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCalbodyEntity">
select
<include refid="BdCalbodyEntity_Base_Column_List" />
from bd_calbody
<trim prefix="where" prefixOverrides="and">
<if test="aheaddays != null"> and aheaddays like concat('%',#{aheaddays},'%') </if>
<if test="area != null and area != ''"> and area like concat('%',#{area},'%') </if>
<if test="bodycode != null and bodycode != ''"> and bodycode like concat('%',#{bodycode},'%') </if>
<if test="bodyname != null and bodyname != ''"> and bodyname like concat('%',#{bodyname},'%') </if>
<if test="createdate != null and createdate != ''"> and createdate like concat('%',#{createdate},'%') </if>
<if test="def1 != null and def1 != ''"> and def1 like concat('%',#{def1},'%') </if>
<if test="def2 != null and def2 != ''"> and def2 like concat('%',#{def2},'%') </if>
<if test="def3 != null and def3 != ''"> and def3 like concat('%',#{def3},'%') </if>
<if test="def4 != null and def4 != ''"> and def4 like concat('%',#{def4},'%') </if>
<if test="def5 != null and def5 != ''"> and def5 like concat('%',#{def5},'%') </if>
<if test="dr != null"> and dr like concat('%',#{dr},'%') </if>
<if test="isuseretail != null and isuseretail != ''"> and isuseretail like concat('%',#{isuseretail},'%') </if>
<if test="pkAddress != null and pkAddress != ''"> and pk_address like concat('%',#{pkAddress},'%') </if>
<if test="pkAreacl != null and pkAreacl != ''"> and pk_areacl like concat('%',#{pkAreacl},'%') </if>
<if test="pkCalbody != null and pkCalbody != ''"> and pk_calbody like concat('%',#{pkCalbody},'%') </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp like concat('%',#{pkCorp},'%') </if>
<if test="property != null"> and property like concat('%',#{property},'%') </if>
<if test="rationmny != null"> and rationmny like concat('%',#{rationmny},'%') </if>
<if test="sealflag != null and sealflag != ''"> and sealflag like concat('%',#{sealflag},'%') </if>
<if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
<if test="vnote != null and vnote != ''"> and vnote like concat('%',#{vnote},'%') </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="BdCalbodyentity_list_or" resultMap="get-BdCalbodyEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCalbodyEntity">
select
<include refid="BdCalbodyEntity_Base_Column_List" />
from bd_calbody
<trim prefix="where" prefixOverrides="and">
<if test="aheaddays != null"> or aheaddays = #{aheaddays} </if>
<if test="area != null and area != ''"> or area = #{area} </if>
<if test="bodycode != null and bodycode != ''"> or bodycode = #{bodycode} </if>
<if test="bodyname != null and bodyname != ''"> or bodyname = #{bodyname} </if>
<if test="createdate != null and createdate != ''"> or createdate = #{createdate} </if>
<if test="def1 != null and def1 != ''"> or def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> or def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> or def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> or def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> or def5 = #{def5} </if>
<if test="dr != null"> or dr = #{dr} </if>
<if test="isuseretail != null and isuseretail != ''"> or isuseretail = #{isuseretail} </if>
<if test="pkAddress != null and pkAddress != ''"> or pk_address = #{pkAddress} </if>
<if test="pkAreacl != null and pkAreacl != ''"> or pk_areacl = #{pkAreacl} </if>
<if test="pkCalbody != null and pkCalbody != ''"> or pk_calbody = #{pkCalbody} </if>
<if test="pkCorp != null and pkCorp != ''"> or pk_corp = #{pkCorp} </if>
<if test="property != null"> or property = #{property} </if>
<if test="rationmny != null"> or rationmny = #{rationmny} </if>
<if test="sealflag != null and sealflag != ''"> or sealflag = #{sealflag} </if>
<if test="ts != null and ts != ''"> or ts = #{ts} </if>
<if test="vnote != null and vnote != ''"> or vnote = #{vnote} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.lets.entity.BdCalbodyEntity" keyProperty="pkCalbody" useGeneratedKeys="true">
insert into bd_calbody(
<trim suffix="" suffixOverrides=",">
<if test="aheaddays != null"> aheaddays , </if>
<if test="area != null and area != ''"> area , </if>
<if test="bodycode != null and bodycode != ''"> bodycode , </if>
<if test="bodyname != null and bodyname != ''"> bodyname , </if>
<if test="createdate != null and createdate != ''"> createdate , </if>
<if test="def1 != null and def1 != ''"> def1 , </if>
<if test="def2 != null and def2 != ''"> def2 , </if>
<if test="def3 != null and def3 != ''"> def3 , </if>
<if test="def4 != null and def4 != ''"> def4 , </if>
<if test="def5 != null and def5 != ''"> def5 , </if>
<if test="dr != null"> dr , </if>
<if test="isuseretail != null and isuseretail != ''"> isuseretail , </if>
<if test="pkAddress != null and pkAddress != ''"> pk_address , </if>
<if test="pkAreacl != null and pkAreacl != ''"> pk_areacl , </if>
<if test="pkCalbody != null and pkCalbody != ''"> pk_calbody , </if>
<if test="pkCorp != null and pkCorp != ''"> pk_corp , </if>
<if test="property != null"> property , </if>
<if test="rationmny != null"> rationmny , </if>
<if test="sealflag != null and sealflag != ''"> sealflag , </if>
<if test="ts != null and ts != ''"> ts , </if>
<if test="vnote != null and vnote != ''"> vnote , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="aheaddays != null"> #{aheaddays} ,</if>
<if test="area != null and area != ''"> #{area} ,</if>
<if test="bodycode != null and bodycode != ''"> #{bodycode} ,</if>
<if test="bodyname != null and bodyname != ''"> #{bodyname} ,</if>
<if test="createdate != null and createdate != ''"> #{createdate} ,</if>
<if test="def1 != null and def1 != ''"> #{def1} ,</if>
<if test="def2 != null and def2 != ''"> #{def2} ,</if>
<if test="def3 != null and def3 != ''"> #{def3} ,</if>
<if test="def4 != null and def4 != ''"> #{def4} ,</if>
<if test="def5 != null and def5 != ''"> #{def5} ,</if>
<if test="dr != null"> #{dr} ,</if>
<if test="isuseretail != null and isuseretail != ''"> #{isuseretail} ,</if>
<if test="pkAddress != null and pkAddress != ''"> #{pkAddress} ,</if>
<if test="pkAreacl != null and pkAreacl != ''"> #{pkAreacl} ,</if>
<if test="pkCalbody != null and pkCalbody != ''"> #{pkCalbody} ,</if>
<if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>
<if test="property != null"> #{property} ,</if>
<if test="rationmny != null"> #{rationmny} ,</if>
<if test="sealflag != null and sealflag != ''"> #{sealflag} ,</if>
<if test="ts != null and ts != ''"> #{ts} ,</if>
<if test="vnote != null and vnote != ''"> #{vnote} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_calbody a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="pkCalbody" useGeneratedKeys="true">
insert into bd_calbody(aheaddays, area, bodycode, bodyname, createdate, def1, def2, def3, def4, def5, dr, isuseretail, pk_address, pk_areacl, pk_corp, property, rationmny, sealflag, ts, vnote, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.aheaddays},#{entity.area},#{entity.bodycode},#{entity.bodyname},#{entity.createdate},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.dr},#{entity.isuseretail},#{entity.pkAddress},#{entity.pkAreacl},#{entity.pkCorp},#{entity.property},#{entity.rationmny},#{entity.sealflag},#{entity.ts},#{entity.vnote}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="pkCalbody" useGeneratedKeys="true">
insert into bd_calbody(aheaddays, area, bodycode, bodyname, createdate, def1, def2, def3, def4, def5, dr, isuseretail, pk_address, pk_areacl, pk_corp, property, rationmny, sealflag, ts, vnote)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.aheaddays},#{entity.area},#{entity.bodycode},#{entity.bodyname},#{entity.createdate},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.dr},#{entity.isuseretail},#{entity.pkAddress},#{entity.pkAreacl},#{entity.pkCorp},#{entity.property},#{entity.rationmny},#{entity.sealflag},#{entity.ts},#{entity.vnote})
</foreach>
on duplicate key update
aheaddays = values(aheaddays),
area = values(area),
bodycode = values(bodycode),
bodyname = values(bodyname),
createdate = values(createdate),
def1 = values(def1),
def2 = values(def2),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
dr = values(dr),
isuseretail = values(isuseretail),
pk_address = values(pk_address),
pk_areacl = values(pk_areacl),
pk_corp = values(pk_corp),
property = values(property),
rationmny = values(rationmny),
sealflag = values(sealflag),
ts = values(ts),
vnote = values(vnote)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.BdCalbodyEntity" >
update bd_calbody set
<trim suffix="" suffixOverrides=",">
<if test="aheaddays != null"> aheaddays = #{aheaddays},</if>
<if test="area != null and area != ''"> area = #{area},</if>
<if test="bodycode != null and bodycode != ''"> bodycode = #{bodycode},</if>
<if test="bodyname != null and bodyname != ''"> bodyname = #{bodyname},</if>
<if test="createdate != null and createdate != ''"> createdate = #{createdate},</if>
<if test="def1 != null and def1 != ''"> def1 = #{def1},</if>
<if test="def2 != null and def2 != ''"> def2 = #{def2},</if>
<if test="def3 != null and def3 != ''"> def3 = #{def3},</if>
<if test="def4 != null and def4 != ''"> def4 = #{def4},</if>
<if test="def5 != null and def5 != ''"> def5 = #{def5},</if>
<if test="dr != null"> dr = #{dr},</if>
<if test="isuseretail != null and isuseretail != ''"> isuseretail = #{isuseretail},</if>
<if test="pkAddress != null and pkAddress != ''"> pk_address = #{pkAddress},</if>
<if test="pkAreacl != null and pkAreacl != ''"> pk_areacl = #{pkAreacl},</if>
<if test="pkCorp != null and pkCorp != ''"> pk_corp = #{pkCorp},</if>
<if test="property != null"> property = #{property},</if>
<if test="rationmny != null"> rationmny = #{rationmny},</if>
<if test="sealflag != null and sealflag != ''"> sealflag = #{sealflag},</if>
<if test="ts != null and ts != ''"> ts = #{ts},</if>
<if test="vnote != null and vnote != ''"> vnote = #{vnote},</if>
</trim>
where pk_calbody = #{pkCalbody}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.BdCalbodyEntity" >
update bd_calbody set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where pk_calbody = #{pkCalbody}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.BdCalbodyEntity" >
update bd_calbody set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="aheaddays != null"> and aheaddays = #{aheaddays} </if>
<if test="area != null and area != ''"> and area = #{area} </if>
<if test="bodycode != null and bodycode != ''"> and bodycode = #{bodycode} </if>
<if test="bodyname != null and bodyname != ''"> and bodyname = #{bodyname} </if>
<if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
<if test="pkAddress != null and pkAddress != ''"> and pk_address = #{pkAddress} </if>
<if test="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>
<if test="pkCalbody != null and pkCalbody != ''"> and pk_calbody = #{pkCalbody} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="property != null"> and property = #{property} </if>
<if test="rationmny != null"> and rationmny = #{rationmny} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="vnote != null and vnote != ''"> and vnote = #{vnote} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from bd_calbody where pk_calbody = #{pkCalbody}
</delete>
</mapper>

View File

@ -0,0 +1,169 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdCargdoc)实体类
*
* @author makejava
* @since 2023-09-07 09:05:12
*/
public class BdCargdocEntity extends BaseEntity {
private Integer codelev;
private Integer csattr;
private String cscode;
private String csname;
private Integer dr;
private String endflag;
private Integer inpriority;
private String ischecked;
private String isrmplace;
private String memo;
private Integer outpriority;
private String pkCargdoc;
private String pkPsndoc;
private String pkStordoc;
private String sealflag;
private String ts;
private Double volume;
public Integer getCodelev() {
return codelev;
}
public void setCodelev(Integer codelev) {
this.codelev = codelev;
}
public Integer getCsattr() {
return csattr;
}
public void setCsattr(Integer csattr) {
this.csattr = csattr;
}
public String getCscode() {
return cscode;
}
public void setCscode(String cscode) {
this.cscode = cscode;
}
public String getCsname() {
return csname;
}
public void setCsname(String csname) {
this.csname = csname;
}
public Integer getDr() {
return dr;
}
public void setDr(Integer dr) {
this.dr = dr;
}
public String getEndflag() {
return endflag;
}
public void setEndflag(String endflag) {
this.endflag = endflag;
}
public Integer getInpriority() {
return inpriority;
}
public void setInpriority(Integer inpriority) {
this.inpriority = inpriority;
}
public String getIschecked() {
return ischecked;
}
public void setIschecked(String ischecked) {
this.ischecked = ischecked;
}
public String getIsrmplace() {
return isrmplace;
}
public void setIsrmplace(String isrmplace) {
this.isrmplace = isrmplace;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public Integer getOutpriority() {
return outpriority;
}
public void setOutpriority(Integer outpriority) {
this.outpriority = outpriority;
}
public String getPkCargdoc() {
return pkCargdoc;
}
public void setPkCargdoc(String pkCargdoc) {
this.pkCargdoc = pkCargdoc;
}
public String getPkPsndoc() {
return pkPsndoc;
}
public void setPkPsndoc(String pkPsndoc) {
this.pkPsndoc = pkPsndoc;
}
public String getPkStordoc() {
return pkStordoc;
}
public void setPkStordoc(String pkStordoc) {
this.pkStordoc = pkStordoc;
}
public String getSealflag() {
return sealflag;
}
public void setSealflag(String sealflag) {
this.sealflag = sealflag;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
public Double getVolume() {
return volume;
}
public void setVolume(Double volume) {
this.volume = volume;
}
}

View File

@ -0,0 +1,295 @@
<?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.lets.dao.impl.BdCargdocDaoImpl">
<resultMap id="get-BdCargdocEntity-result" type="com.hzya.frame.plugin.lets.entity.BdCargdocEntity" >
<result property="codelev" column="codelev" jdbcType="INTEGER"/>
<result property="csattr" column="csattr" jdbcType="INTEGER"/>
<result property="cscode" column="cscode" jdbcType="VARCHAR"/>
<result property="csname" column="csname" jdbcType="VARCHAR"/>
<result property="dr" column="dr" jdbcType="INTEGER"/>
<result property="endflag" column="endflag" jdbcType="VARCHAR"/>
<result property="inpriority" column="inpriority" jdbcType="INTEGER"/>
<result property="ischecked" column="ischecked" jdbcType="VARCHAR"/>
<result property="isrmplace" column="isrmplace" jdbcType="VARCHAR"/>
<result property="memo" column="memo" jdbcType="VARCHAR"/>
<result property="outpriority" column="outpriority" jdbcType="INTEGER"/>
<result property="pkCargdoc" column="pk_cargdoc" jdbcType="VARCHAR"/>
<result property="pkPsndoc" column="pk_psndoc" jdbcType="VARCHAR"/>
<result property="pkStordoc" column="pk_stordoc" jdbcType="VARCHAR"/>
<result property="sealflag" column="sealflag" jdbcType="VARCHAR"/>
<result property="ts" column="ts" jdbcType="VARCHAR"/>
<result property="volume" column="volume" jdbcType="NUMERIC"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "BdCargdocEntity_Base_Column_List">
codelev
,csattr
,cscode
,csname
,dr
,endflag
,inpriority
,ischecked
,isrmplace
,memo
,outpriority
,pk_cargdoc
,pk_psndoc
,pk_stordoc
,sealflag
,ts
,volume
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-BdCargdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCargdocEntity">
select
<include refid="BdCargdocEntity_Base_Column_List" />
from bd_cargdoc
<trim prefix="where" prefixOverrides="and">
<if test="codelev != null"> and codelev = #{codelev} </if>
<if test="csattr != null"> and csattr = #{csattr} </if>
<if test="cscode != null and cscode != ''"> and cscode = #{cscode} </if>
<if test="csname != null and csname != ''"> and csname = #{csname} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="endflag != null and endflag != ''"> and endflag = #{endflag} </if>
<if test="inpriority != null"> and inpriority = #{inpriority} </if>
<if test="ischecked != null and ischecked != ''"> and ischecked = #{ischecked} </if>
<if test="isrmplace != null and isrmplace != ''"> and isrmplace = #{isrmplace} </if>
<if test="memo != null and memo != ''"> and memo = #{memo} </if>
<if test="outpriority != null"> and outpriority = #{outpriority} </if>
<if test="pkCargdoc != null and pkCargdoc != ''"> and pk_cargdoc = #{pkCargdoc} </if>
<if test="pkPsndoc != null and pkPsndoc != ''"> and pk_psndoc = #{pkPsndoc} </if>
<if test="pkStordoc != null and pkStordoc != ''"> and pk_stordoc = #{pkStordoc} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="volume != null"> and volume = #{volume} </if>
</trim>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.BdCargdocEntity">
select count(1) from bd_cargdoc
<trim prefix="where" prefixOverrides="and">
<if test="codelev != null"> and codelev = #{codelev} </if>
<if test="csattr != null"> and csattr = #{csattr} </if>
<if test="cscode != null and cscode != ''"> and cscode = #{cscode} </if>
<if test="csname != null and csname != ''"> and csname = #{csname} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="endflag != null and endflag != ''"> and endflag = #{endflag} </if>
<if test="inpriority != null"> and inpriority = #{inpriority} </if>
<if test="ischecked != null and ischecked != ''"> and ischecked = #{ischecked} </if>
<if test="isrmplace != null and isrmplace != ''"> and isrmplace = #{isrmplace} </if>
<if test="memo != null and memo != ''"> and memo = #{memo} </if>
<if test="outpriority != null"> and outpriority = #{outpriority} </if>
<if test="pkCargdoc != null and pkCargdoc != ''"> and pk_cargdoc = #{pkCargdoc} </if>
<if test="pkPsndoc != null and pkPsndoc != ''"> and pk_psndoc = #{pkPsndoc} </if>
<if test="pkStordoc != null and pkStordoc != ''"> and pk_stordoc = #{pkStordoc} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="volume != null"> and volume = #{volume} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-BdCargdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCargdocEntity">
select
<include refid="BdCargdocEntity_Base_Column_List" />
from bd_cargdoc
<trim prefix="where" prefixOverrides="and">
<if test="codelev != null"> and codelev like concat('%',#{codelev},'%') </if>
<if test="csattr != null"> and csattr like concat('%',#{csattr},'%') </if>
<if test="cscode != null and cscode != ''"> and cscode like concat('%',#{cscode},'%') </if>
<if test="csname != null and csname != ''"> and csname like concat('%',#{csname},'%') </if>
<if test="dr != null"> and dr like concat('%',#{dr},'%') </if>
<if test="endflag != null and endflag != ''"> and endflag like concat('%',#{endflag},'%') </if>
<if test="inpriority != null"> and inpriority like concat('%',#{inpriority},'%') </if>
<if test="ischecked != null and ischecked != ''"> and ischecked like concat('%',#{ischecked},'%') </if>
<if test="isrmplace != null and isrmplace != ''"> and isrmplace like concat('%',#{isrmplace},'%') </if>
<if test="memo != null and memo != ''"> and memo like concat('%',#{memo},'%') </if>
<if test="outpriority != null"> and outpriority like concat('%',#{outpriority},'%') </if>
<if test="pkCargdoc != null and pkCargdoc != ''"> and pk_cargdoc like concat('%',#{pkCargdoc},'%') </if>
<if test="pkPsndoc != null and pkPsndoc != ''"> and pk_psndoc like concat('%',#{pkPsndoc},'%') </if>
<if test="pkStordoc != null and pkStordoc != ''"> and pk_stordoc like concat('%',#{pkStordoc},'%') </if>
<if test="sealflag != null and sealflag != ''"> and sealflag like concat('%',#{sealflag},'%') </if>
<if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
<if test="volume != null"> and volume like concat('%',#{volume},'%') </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="BdCargdocentity_list_or" resultMap="get-BdCargdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCargdocEntity">
select
<include refid="BdCargdocEntity_Base_Column_List" />
from bd_cargdoc
<trim prefix="where" prefixOverrides="and">
<if test="codelev != null"> or codelev = #{codelev} </if>
<if test="csattr != null"> or csattr = #{csattr} </if>
<if test="cscode != null and cscode != ''"> or cscode = #{cscode} </if>
<if test="csname != null and csname != ''"> or csname = #{csname} </if>
<if test="dr != null"> or dr = #{dr} </if>
<if test="endflag != null and endflag != ''"> or endflag = #{endflag} </if>
<if test="inpriority != null"> or inpriority = #{inpriority} </if>
<if test="ischecked != null and ischecked != ''"> or ischecked = #{ischecked} </if>
<if test="isrmplace != null and isrmplace != ''"> or isrmplace = #{isrmplace} </if>
<if test="memo != null and memo != ''"> or memo = #{memo} </if>
<if test="outpriority != null"> or outpriority = #{outpriority} </if>
<if test="pkCargdoc != null and pkCargdoc != ''"> or pk_cargdoc = #{pkCargdoc} </if>
<if test="pkPsndoc != null and pkPsndoc != ''"> or pk_psndoc = #{pkPsndoc} </if>
<if test="pkStordoc != null and pkStordoc != ''"> or pk_stordoc = #{pkStordoc} </if>
<if test="sealflag != null and sealflag != ''"> or sealflag = #{sealflag} </if>
<if test="ts != null and ts != ''"> or ts = #{ts} </if>
<if test="volume != null"> or volume = #{volume} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.lets.entity.BdCargdocEntity" keyProperty="pkCargdoc" useGeneratedKeys="true">
insert into bd_cargdoc(
<trim suffix="" suffixOverrides=",">
<if test="codelev != null"> codelev , </if>
<if test="csattr != null"> csattr , </if>
<if test="cscode != null and cscode != ''"> cscode , </if>
<if test="csname != null and csname != ''"> csname , </if>
<if test="dr != null"> dr , </if>
<if test="endflag != null and endflag != ''"> endflag , </if>
<if test="inpriority != null"> inpriority , </if>
<if test="ischecked != null and ischecked != ''"> ischecked , </if>
<if test="isrmplace != null and isrmplace != ''"> isrmplace , </if>
<if test="memo != null and memo != ''"> memo , </if>
<if test="outpriority != null"> outpriority , </if>
<if test="pkCargdoc != null and pkCargdoc != ''"> pk_cargdoc , </if>
<if test="pkPsndoc != null and pkPsndoc != ''"> pk_psndoc , </if>
<if test="pkStordoc != null and pkStordoc != ''"> pk_stordoc , </if>
<if test="sealflag != null and sealflag != ''"> sealflag , </if>
<if test="ts != null and ts != ''"> ts , </if>
<if test="volume != null"> volume , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="codelev != null"> #{codelev} ,</if>
<if test="csattr != null"> #{csattr} ,</if>
<if test="cscode != null and cscode != ''"> #{cscode} ,</if>
<if test="csname != null and csname != ''"> #{csname} ,</if>
<if test="dr != null"> #{dr} ,</if>
<if test="endflag != null and endflag != ''"> #{endflag} ,</if>
<if test="inpriority != null"> #{inpriority} ,</if>
<if test="ischecked != null and ischecked != ''"> #{ischecked} ,</if>
<if test="isrmplace != null and isrmplace != ''"> #{isrmplace} ,</if>
<if test="memo != null and memo != ''"> #{memo} ,</if>
<if test="outpriority != null"> #{outpriority} ,</if>
<if test="pkCargdoc != null and pkCargdoc != ''"> #{pkCargdoc} ,</if>
<if test="pkPsndoc != null and pkPsndoc != ''"> #{pkPsndoc} ,</if>
<if test="pkStordoc != null and pkStordoc != ''"> #{pkStordoc} ,</if>
<if test="sealflag != null and sealflag != ''"> #{sealflag} ,</if>
<if test="ts != null and ts != ''"> #{ts} ,</if>
<if test="volume != null"> #{volume} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_cargdoc a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="pkCargdoc" useGeneratedKeys="true">
insert into bd_cargdoc(codelev, csattr, cscode, csname, dr, endflag, inpriority, ischecked, isrmplace, memo, outpriority, pk_psndoc, pk_stordoc, sealflag, ts, volume, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.codelev},#{entity.csattr},#{entity.cscode},#{entity.csname},#{entity.dr},#{entity.endflag},#{entity.inpriority},#{entity.ischecked},#{entity.isrmplace},#{entity.memo},#{entity.outpriority},#{entity.pkPsndoc},#{entity.pkStordoc},#{entity.sealflag},#{entity.ts},#{entity.volume}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="pkCargdoc" useGeneratedKeys="true">
insert into bd_cargdoc(codelev, csattr, cscode, csname, dr, endflag, inpriority, ischecked, isrmplace, memo, outpriority, pk_psndoc, pk_stordoc, sealflag, ts, volume)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.codelev},#{entity.csattr},#{entity.cscode},#{entity.csname},#{entity.dr},#{entity.endflag},#{entity.inpriority},#{entity.ischecked},#{entity.isrmplace},#{entity.memo},#{entity.outpriority},#{entity.pkPsndoc},#{entity.pkStordoc},#{entity.sealflag},#{entity.ts},#{entity.volume})
</foreach>
on duplicate key update
codelev = values(codelev),
csattr = values(csattr),
cscode = values(cscode),
csname = values(csname),
dr = values(dr),
endflag = values(endflag),
inpriority = values(inpriority),
ischecked = values(ischecked),
isrmplace = values(isrmplace),
memo = values(memo),
outpriority = values(outpriority),
pk_psndoc = values(pk_psndoc),
pk_stordoc = values(pk_stordoc),
sealflag = values(sealflag),
ts = values(ts),
volume = values(volume)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.BdCargdocEntity" >
update bd_cargdoc set
<trim suffix="" suffixOverrides=",">
<if test="codelev != null"> codelev = #{codelev},</if>
<if test="csattr != null"> csattr = #{csattr},</if>
<if test="cscode != null and cscode != ''"> cscode = #{cscode},</if>
<if test="csname != null and csname != ''"> csname = #{csname},</if>
<if test="dr != null"> dr = #{dr},</if>
<if test="endflag != null and endflag != ''"> endflag = #{endflag},</if>
<if test="inpriority != null"> inpriority = #{inpriority},</if>
<if test="ischecked != null and ischecked != ''"> ischecked = #{ischecked},</if>
<if test="isrmplace != null and isrmplace != ''"> isrmplace = #{isrmplace},</if>
<if test="memo != null and memo != ''"> memo = #{memo},</if>
<if test="outpriority != null"> outpriority = #{outpriority},</if>
<if test="pkPsndoc != null and pkPsndoc != ''"> pk_psndoc = #{pkPsndoc},</if>
<if test="pkStordoc != null and pkStordoc != ''"> pk_stordoc = #{pkStordoc},</if>
<if test="sealflag != null and sealflag != ''"> sealflag = #{sealflag},</if>
<if test="ts != null and ts != ''"> ts = #{ts},</if>
<if test="volume != null"> volume = #{volume},</if>
</trim>
where pk_cargdoc = #{pkCargdoc}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.BdCargdocEntity" >
update bd_cargdoc set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where pk_cargdoc = #{pkCargdoc}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.BdCargdocEntity" >
update bd_cargdoc set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="codelev != null"> and codelev = #{codelev} </if>
<if test="csattr != null"> and csattr = #{csattr} </if>
<if test="cscode != null and cscode != ''"> and cscode = #{cscode} </if>
<if test="csname != null and csname != ''"> and csname = #{csname} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="endflag != null and endflag != ''"> and endflag = #{endflag} </if>
<if test="inpriority != null"> and inpriority = #{inpriority} </if>
<if test="ischecked != null and ischecked != ''"> and ischecked = #{ischecked} </if>
<if test="isrmplace != null and isrmplace != ''"> and isrmplace = #{isrmplace} </if>
<if test="memo != null and memo != ''"> and memo = #{memo} </if>
<if test="outpriority != null"> and outpriority = #{outpriority} </if>
<if test="pkCargdoc != null and pkCargdoc != ''"> and pk_cargdoc = #{pkCargdoc} </if>
<if test="pkPsndoc != null and pkPsndoc != ''"> and pk_psndoc = #{pkPsndoc} </if>
<if test="pkStordoc != null and pkStordoc != ''"> and pk_stordoc = #{pkStordoc} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="volume != null"> and volume = #{volume} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from bd_cargdoc where pk_cargdoc = #{pkCargdoc}
</delete>
</mapper>

View File

@ -0,0 +1,718 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdCorp)实体类
*
* @author makejava
* @since 2023-09-06 14:47:18
*/
public class BdCorpEntity extends BaseEntity {
private String begindate;
private String briefintro;
private String busibegindate;
private String busienddate;
private String chargedeptcode;
private String chargedeptname;
private String citycounty;
private String corptype;
private String countryarea;
private String createdate;
private String def1;
private String def10;
private String def11;
private String def12;
private String def13;
private String def14;
private String def15;
private String def16;
private String def17;
private String def18;
private String def19;
private String def2;
private String def20;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private Integer dr;
private String ecotype;
private String email1;
private String email2;
private String email3;
private String enddate;
private String fathercorp;
private String fax1;
private String fax2;
private String foreignname;
private String holdflag;
private String idnumber;
private String industry;
private String innercode;
private String ishasaccount;
private String isseal;
private String isuseretail;
private String isworkingunit;
private String legalbodycode;
private String linkman1;
private String linkman2;
private String linkman3;
private String maxinnercode;
private String memo;
private Double ownersharerate;
private String phone1;
private String phone2;
private String phone3;
private String pkCorp;
private String pkCorpkind;
private String pkCurrency;
private String postaddr;
private String province;
private Double regcapital;
private String region;
private String saleaddr;
private String sealeddate;
private Integer showorder;
private String taxcode;
private Integer taxpayertype;
private String tenantNo;
private String ts;
private String unitcode;
private String unitdistinction;
private String unitname;
private String unitshortname;
private String url;
private String zipcode;
public String getBegindate() {
return begindate;
}
public void setBegindate(String begindate) {
this.begindate = begindate;
}
public String getBriefintro() {
return briefintro;
}
public void setBriefintro(String briefintro) {
this.briefintro = briefintro;
}
public String getBusibegindate() {
return busibegindate;
}
public void setBusibegindate(String busibegindate) {
this.busibegindate = busibegindate;
}
public String getBusienddate() {
return busienddate;
}
public void setBusienddate(String busienddate) {
this.busienddate = busienddate;
}
public String getChargedeptcode() {
return chargedeptcode;
}
public void setChargedeptcode(String chargedeptcode) {
this.chargedeptcode = chargedeptcode;
}
public String getChargedeptname() {
return chargedeptname;
}
public void setChargedeptname(String chargedeptname) {
this.chargedeptname = chargedeptname;
}
public String getCitycounty() {
return citycounty;
}
public void setCitycounty(String citycounty) {
this.citycounty = citycounty;
}
public String getCorptype() {
return corptype;
}
public void setCorptype(String corptype) {
this.corptype = corptype;
}
public String getCountryarea() {
return countryarea;
}
public void setCountryarea(String countryarea) {
this.countryarea = countryarea;
}
public String getCreatedate() {
return createdate;
}
public void setCreatedate(String createdate) {
this.createdate = createdate;
}
public String getDef1() {
return def1;
}
public void setDef1(String def1) {
this.def1 = def1;
}
public String getDef10() {
return def10;
}
public void setDef10(String def10) {
this.def10 = def10;
}
public String getDef11() {
return def11;
}
public void setDef11(String def11) {
this.def11 = def11;
}
public String getDef12() {
return def12;
}
public void setDef12(String def12) {
this.def12 = def12;
}
public String getDef13() {
return def13;
}
public void setDef13(String def13) {
this.def13 = def13;
}
public String getDef14() {
return def14;
}
public void setDef14(String def14) {
this.def14 = def14;
}
public String getDef15() {
return def15;
}
public void setDef15(String def15) {
this.def15 = def15;
}
public String getDef16() {
return def16;
}
public void setDef16(String def16) {
this.def16 = def16;
}
public String getDef17() {
return def17;
}
public void setDef17(String def17) {
this.def17 = def17;
}
public String getDef18() {
return def18;
}
public void setDef18(String def18) {
this.def18 = def18;
}
public String getDef19() {
return def19;
}
public void setDef19(String def19) {
this.def19 = def19;
}
public String getDef2() {
return def2;
}
public void setDef2(String def2) {
this.def2 = def2;
}
public String getDef20() {
return def20;
}
public void setDef20(String def20) {
this.def20 = def20;
}
public String getDef3() {
return def3;
}
public void setDef3(String def3) {
this.def3 = def3;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public String getDef6() {
return def6;
}
public void setDef6(String def6) {
this.def6 = def6;
}
public String getDef7() {
return def7;
}
public void setDef7(String def7) {
this.def7 = def7;
}
public String getDef8() {
return def8;
}
public void setDef8(String def8) {
this.def8 = def8;
}
public String getDef9() {
return def9;
}
public void setDef9(String def9) {
this.def9 = def9;
}
public Integer getDr() {
return dr;
}
public void setDr(Integer dr) {
this.dr = dr;
}
public String getEcotype() {
return ecotype;
}
public void setEcotype(String ecotype) {
this.ecotype = ecotype;
}
public String getEmail1() {
return email1;
}
public void setEmail1(String email1) {
this.email1 = email1;
}
public String getEmail2() {
return email2;
}
public void setEmail2(String email2) {
this.email2 = email2;
}
public String getEmail3() {
return email3;
}
public void setEmail3(String email3) {
this.email3 = email3;
}
public String getEnddate() {
return enddate;
}
public void setEnddate(String enddate) {
this.enddate = enddate;
}
public String getFathercorp() {
return fathercorp;
}
public void setFathercorp(String fathercorp) {
this.fathercorp = fathercorp;
}
public String getFax1() {
return fax1;
}
public void setFax1(String fax1) {
this.fax1 = fax1;
}
public String getFax2() {
return fax2;
}
public void setFax2(String fax2) {
this.fax2 = fax2;
}
public String getForeignname() {
return foreignname;
}
public void setForeignname(String foreignname) {
this.foreignname = foreignname;
}
public String getHoldflag() {
return holdflag;
}
public void setHoldflag(String holdflag) {
this.holdflag = holdflag;
}
public String getIdnumber() {
return idnumber;
}
public void setIdnumber(String idnumber) {
this.idnumber = idnumber;
}
public String getIndustry() {
return industry;
}
public void setIndustry(String industry) {
this.industry = industry;
}
public String getInnercode() {
return innercode;
}
public void setInnercode(String innercode) {
this.innercode = innercode;
}
public String getIshasaccount() {
return ishasaccount;
}
public void setIshasaccount(String ishasaccount) {
this.ishasaccount = ishasaccount;
}
public String getIsseal() {
return isseal;
}
public void setIsseal(String isseal) {
this.isseal = isseal;
}
public String getIsuseretail() {
return isuseretail;
}
public void setIsuseretail(String isuseretail) {
this.isuseretail = isuseretail;
}
public String getIsworkingunit() {
return isworkingunit;
}
public void setIsworkingunit(String isworkingunit) {
this.isworkingunit = isworkingunit;
}
public String getLegalbodycode() {
return legalbodycode;
}
public void setLegalbodycode(String legalbodycode) {
this.legalbodycode = legalbodycode;
}
public String getLinkman1() {
return linkman1;
}
public void setLinkman1(String linkman1) {
this.linkman1 = linkman1;
}
public String getLinkman2() {
return linkman2;
}
public void setLinkman2(String linkman2) {
this.linkman2 = linkman2;
}
public String getLinkman3() {
return linkman3;
}
public void setLinkman3(String linkman3) {
this.linkman3 = linkman3;
}
public String getMaxinnercode() {
return maxinnercode;
}
public void setMaxinnercode(String maxinnercode) {
this.maxinnercode = maxinnercode;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public Double getOwnersharerate() {
return ownersharerate;
}
public void setOwnersharerate(Double ownersharerate) {
this.ownersharerate = ownersharerate;
}
public String getPhone1() {
return phone1;
}
public void setPhone1(String phone1) {
this.phone1 = phone1;
}
public String getPhone2() {
return phone2;
}
public void setPhone2(String phone2) {
this.phone2 = phone2;
}
public String getPhone3() {
return phone3;
}
public void setPhone3(String phone3) {
this.phone3 = phone3;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getPkCorpkind() {
return pkCorpkind;
}
public void setPkCorpkind(String pkCorpkind) {
this.pkCorpkind = pkCorpkind;
}
public String getPkCurrency() {
return pkCurrency;
}
public void setPkCurrency(String pkCurrency) {
this.pkCurrency = pkCurrency;
}
public String getPostaddr() {
return postaddr;
}
public void setPostaddr(String postaddr) {
this.postaddr = postaddr;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public Double getRegcapital() {
return regcapital;
}
public void setRegcapital(Double regcapital) {
this.regcapital = regcapital;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public String getSaleaddr() {
return saleaddr;
}
public void setSaleaddr(String saleaddr) {
this.saleaddr = saleaddr;
}
public String getSealeddate() {
return sealeddate;
}
public void setSealeddate(String sealeddate) {
this.sealeddate = sealeddate;
}
public Integer getShoworder() {
return showorder;
}
public void setShoworder(Integer showorder) {
this.showorder = showorder;
}
public String getTaxcode() {
return taxcode;
}
public void setTaxcode(String taxcode) {
this.taxcode = taxcode;
}
public Integer getTaxpayertype() {
return taxpayertype;
}
public void setTaxpayertype(Integer taxpayertype) {
this.taxpayertype = taxpayertype;
}
public String getTenantNo() {
return tenantNo;
}
public void setTenantNo(String tenantNo) {
this.tenantNo = tenantNo;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
public String getUnitcode() {
return unitcode;
}
public void setUnitcode(String unitcode) {
this.unitcode = unitcode;
}
public String getUnitdistinction() {
return unitdistinction;
}
public void setUnitdistinction(String unitdistinction) {
this.unitdistinction = unitdistinction;
}
public String getUnitname() {
return unitname;
}
public void setUnitname(String unitname) {
this.unitname = unitname;
}
public String getUnitshortname() {
return unitshortname;
}
public void setUnitshortname(String unitshortname) {
this.unitshortname = unitshortname;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getZipcode() {
return zipcode;
}
public void setZipcode(String zipcode) {
this.zipcode = zipcode;
}
}

View File

@ -0,0 +1,966 @@
<?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.lets.dao.impl.BdCorpDaoImpl">
<resultMap id="get-BdCorpEntity-result" type="com.hzya.frame.plugin.lets.entity.BdCorpEntity" >
<result property="begindate" column="begindate" jdbcType="VARCHAR"/>
<result property="briefintro" column="briefintro" jdbcType="VARCHAR"/>
<result property="busibegindate" column="busibegindate" jdbcType="VARCHAR"/>
<result property="busienddate" column="busienddate" jdbcType="VARCHAR"/>
<result property="chargedeptcode" column="chargedeptcode" jdbcType="VARCHAR"/>
<result property="chargedeptname" column="chargedeptname" jdbcType="VARCHAR"/>
<result property="citycounty" column="citycounty" jdbcType="VARCHAR"/>
<result property="corptype" column="corptype" jdbcType="VARCHAR"/>
<result property="countryarea" column="countryarea" jdbcType="VARCHAR"/>
<result property="createdate" column="createdate" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def10" column="def10" jdbcType="VARCHAR"/>
<result property="def11" column="def11" jdbcType="VARCHAR"/>
<result property="def12" column="def12" jdbcType="VARCHAR"/>
<result property="def13" column="def13" jdbcType="VARCHAR"/>
<result property="def14" column="def14" jdbcType="VARCHAR"/>
<result property="def15" column="def15" jdbcType="VARCHAR"/>
<result property="def16" column="def16" jdbcType="VARCHAR"/>
<result property="def17" column="def17" jdbcType="VARCHAR"/>
<result property="def18" column="def18" jdbcType="VARCHAR"/>
<result property="def19" column="def19" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def20" column="def20" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="def6" column="def6" jdbcType="VARCHAR"/>
<result property="def7" column="def7" jdbcType="VARCHAR"/>
<result property="def8" column="def8" jdbcType="VARCHAR"/>
<result property="def9" column="def9" jdbcType="VARCHAR"/>
<result property="dr" column="dr" jdbcType="INTEGER"/>
<result property="ecotype" column="ecotype" jdbcType="VARCHAR"/>
<result property="email1" column="email1" jdbcType="VARCHAR"/>
<result property="email2" column="email2" jdbcType="VARCHAR"/>
<result property="email3" column="email3" jdbcType="VARCHAR"/>
<result property="enddate" column="enddate" jdbcType="VARCHAR"/>
<result property="fathercorp" column="fathercorp" jdbcType="VARCHAR"/>
<result property="fax1" column="fax1" jdbcType="VARCHAR"/>
<result property="fax2" column="fax2" jdbcType="VARCHAR"/>
<result property="foreignname" column="foreignname" jdbcType="VARCHAR"/>
<result property="holdflag" column="holdflag" jdbcType="VARCHAR"/>
<result property="idnumber" column="idnumber" jdbcType="VARCHAR"/>
<result property="industry" column="industry" jdbcType="VARCHAR"/>
<result property="innercode" column="innercode" jdbcType="VARCHAR"/>
<result property="ishasaccount" column="ishasaccount" jdbcType="VARCHAR"/>
<result property="isseal" column="isseal" jdbcType="VARCHAR"/>
<result property="isuseretail" column="isuseretail" jdbcType="VARCHAR"/>
<result property="isworkingunit" column="isworkingunit" jdbcType="VARCHAR"/>
<result property="legalbodycode" column="legalbodycode" jdbcType="VARCHAR"/>
<result property="linkman1" column="linkman1" jdbcType="VARCHAR"/>
<result property="linkman2" column="linkman2" jdbcType="VARCHAR"/>
<result property="linkman3" column="linkman3" jdbcType="VARCHAR"/>
<result property="maxinnercode" column="maxinnercode" jdbcType="VARCHAR"/>
<result property="memo" column="memo" jdbcType="VARCHAR"/>
<result property="ownersharerate" column="ownersharerate" jdbcType="NUMERIC"/>
<result property="phone1" column="phone1" jdbcType="VARCHAR"/>
<result property="phone2" column="phone2" jdbcType="VARCHAR"/>
<result property="phone3" column="phone3" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
<result property="pkCorpkind" column="pk_corpkind" jdbcType="VARCHAR"/>
<result property="pkCurrency" column="pk_currency" jdbcType="VARCHAR"/>
<result property="postaddr" column="postaddr" jdbcType="VARCHAR"/>
<result property="province" column="province" jdbcType="VARCHAR"/>
<result property="regcapital" column="regcapital" jdbcType="NUMERIC"/>
<result property="region" column="region" jdbcType="VARCHAR"/>
<result property="saleaddr" column="saleaddr" jdbcType="VARCHAR"/>
<result property="sealeddate" column="sealeddate" jdbcType="VARCHAR"/>
<result property="showorder" column="showorder" jdbcType="INTEGER"/>
<result property="taxcode" column="taxcode" jdbcType="VARCHAR"/>
<result property="taxpayertype" column="taxpayertype" jdbcType="INTEGER"/>
<result property="tenantNo" column="tenant_no" jdbcType="VARCHAR"/>
<result property="ts" column="ts" jdbcType="VARCHAR"/>
<result property="unitcode" column="unitcode" jdbcType="VARCHAR"/>
<result property="unitdistinction" column="unitdistinction" jdbcType="VARCHAR"/>
<result property="unitname" column="unitname" jdbcType="VARCHAR"/>
<result property="unitshortname" column="unitshortname" jdbcType="VARCHAR"/>
<result property="url" column="url" jdbcType="VARCHAR"/>
<result property="zipcode" column="zipcode" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "BdCorpEntity_Base_Column_List">
begindate
,briefintro
,busibegindate
,busienddate
,chargedeptcode
,chargedeptname
,citycounty
,corptype
,countryarea
,createdate
,def1
,def10
,def11
,def12
,def13
,def14
,def15
,def16
,def17
,def18
,def19
,def2
,def20
,def3
,def4
,def5
,def6
,def7
,def8
,def9
,dr
,ecotype
,email1
,email2
,email3
,enddate
,fathercorp
,fax1
,fax2
,foreignname
,holdflag
,idnumber
,industry
,innercode
,ishasaccount
,isseal
,isuseretail
,isworkingunit
,legalbodycode
,linkman1
,linkman2
,linkman3
,maxinnercode
,memo
,ownersharerate
,phone1
,phone2
,phone3
,pk_corp
,pk_corpkind
,pk_currency
,postaddr
,province
,regcapital
,region
,saleaddr
,sealeddate
,showorder
,taxcode
,taxpayertype
,tenant_no
,ts
,unitcode
,unitdistinction
,unitname
,unitshortname
,url
,zipcode
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-BdCorpEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity">
select
<include refid="BdCorpEntity_Base_Column_List" />
from bd_corp
<trim prefix="where" prefixOverrides="and">
<if test="begindate != null and begindate != ''"> and begindate = #{begindate} </if>
<if test="briefintro != null and briefintro != ''"> and briefintro = #{briefintro} </if>
<if test="busibegindate != null and busibegindate != ''"> and busibegindate = #{busibegindate} </if>
<if test="busienddate != null and busienddate != ''"> and busienddate = #{busienddate} </if>
<if test="chargedeptcode != null and chargedeptcode != ''"> and chargedeptcode = #{chargedeptcode} </if>
<if test="chargedeptname != null and chargedeptname != ''"> and chargedeptname = #{chargedeptname} </if>
<if test="citycounty != null and citycounty != ''"> and citycounty = #{citycounty} </if>
<if test="corptype != null and corptype != ''"> and corptype = #{corptype} </if>
<if test="countryarea != null and countryarea != ''"> and countryarea = #{countryarea} </if>
<if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>
<if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>
<if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>
<if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>
<if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>
<if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>
<if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>
<if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>
<if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>
<if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="ecotype != null and ecotype != ''"> and ecotype = #{ecotype} </if>
<if test="email1 != null and email1 != ''"> and email1 = #{email1} </if>
<if test="email2 != null and email2 != ''"> and email2 = #{email2} </if>
<if test="email3 != null and email3 != ''"> and email3 = #{email3} </if>
<if test="enddate != null and enddate != ''"> and enddate = #{enddate} </if>
<if test="fathercorp != null and fathercorp != ''"> and fathercorp = #{fathercorp} </if>
<if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
<if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
<if test="foreignname != null and foreignname != ''"> and foreignname = #{foreignname} </if>
<if test="holdflag != null and holdflag != ''"> and holdflag = #{holdflag} </if>
<if test="idnumber != null and idnumber != ''"> and idnumber = #{idnumber} </if>
<if test="industry != null and industry != ''"> and industry = #{industry} </if>
<if test="innercode != null and innercode != ''"> and innercode = #{innercode} </if>
<if test="ishasaccount != null and ishasaccount != ''"> and ishasaccount = #{ishasaccount} </if>
<if test="isseal != null and isseal != ''"> and isseal = #{isseal} </if>
<if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
<if test="isworkingunit != null and isworkingunit != ''"> and isworkingunit = #{isworkingunit} </if>
<if test="legalbodycode != null and legalbodycode != ''"> and legalbodycode = #{legalbodycode} </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
<if test="maxinnercode != null and maxinnercode != ''"> and maxinnercode = #{maxinnercode} </if>
<if test="memo != null and memo != ''"> and memo = #{memo} </if>
<if test="ownersharerate != null"> and ownersharerate = #{ownersharerate} </if>
<if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="pkCorpkind != null and pkCorpkind != ''"> and pk_corpkind = #{pkCorpkind} </if>
<if test="pkCurrency != null and pkCurrency != ''"> and pk_currency = #{pkCurrency} </if>
<if test="postaddr != null and postaddr != ''"> and postaddr = #{postaddr} </if>
<if test="province != null and province != ''"> and province = #{province} </if>
<if test="regcapital != null"> and regcapital = #{regcapital} </if>
<if test="region != null and region != ''"> and region = #{region} </if>
<if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
<if test="sealeddate != null and sealeddate != ''"> and sealeddate = #{sealeddate} </if>
<if test="showorder != null"> and showorder = #{showorder} </if>
<if test="taxcode != null and taxcode != ''"> and taxcode = #{taxcode} </if>
<if test="taxpayertype != null"> and taxpayertype = #{taxpayertype} </if>
<if test="tenantNo != null and tenantNo != ''"> and tenant_no = #{tenantNo} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="unitcode != null and unitcode != ''"> and unitcode = #{unitcode} </if>
<if test="unitdistinction != null and unitdistinction != ''"> and unitdistinction = #{unitdistinction} </if>
<if test="unitname != null and unitname != ''"> and unitname = #{unitname} </if>
<if test="unitshortname != null and unitshortname != ''"> and unitshortname = #{unitshortname} </if>
<if test="url != null and url != ''"> and url = #{url} </if>
<if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>
</trim>
<!-- <if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>-->
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity">
select count(1) from bd_corp
<trim prefix="where" prefixOverrides="and">
<if test="begindate != null and begindate != ''"> and begindate = #{begindate} </if>
<if test="briefintro != null and briefintro != ''"> and briefintro = #{briefintro} </if>
<if test="busibegindate != null and busibegindate != ''"> and busibegindate = #{busibegindate} </if>
<if test="busienddate != null and busienddate != ''"> and busienddate = #{busienddate} </if>
<if test="chargedeptcode != null and chargedeptcode != ''"> and chargedeptcode = #{chargedeptcode} </if>
<if test="chargedeptname != null and chargedeptname != ''"> and chargedeptname = #{chargedeptname} </if>
<if test="citycounty != null and citycounty != ''"> and citycounty = #{citycounty} </if>
<if test="corptype != null and corptype != ''"> and corptype = #{corptype} </if>
<if test="countryarea != null and countryarea != ''"> and countryarea = #{countryarea} </if>
<if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>
<if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>
<if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>
<if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>
<if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>
<if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>
<if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>
<if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>
<if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>
<if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="ecotype != null and ecotype != ''"> and ecotype = #{ecotype} </if>
<if test="email1 != null and email1 != ''"> and email1 = #{email1} </if>
<if test="email2 != null and email2 != ''"> and email2 = #{email2} </if>
<if test="email3 != null and email3 != ''"> and email3 = #{email3} </if>
<if test="enddate != null and enddate != ''"> and enddate = #{enddate} </if>
<if test="fathercorp != null and fathercorp != ''"> and fathercorp = #{fathercorp} </if>
<if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
<if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
<if test="foreignname != null and foreignname != ''"> and foreignname = #{foreignname} </if>
<if test="holdflag != null and holdflag != ''"> and holdflag = #{holdflag} </if>
<if test="idnumber != null and idnumber != ''"> and idnumber = #{idnumber} </if>
<if test="industry != null and industry != ''"> and industry = #{industry} </if>
<if test="innercode != null and innercode != ''"> and innercode = #{innercode} </if>
<if test="ishasaccount != null and ishasaccount != ''"> and ishasaccount = #{ishasaccount} </if>
<if test="isseal != null and isseal != ''"> and isseal = #{isseal} </if>
<if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
<if test="isworkingunit != null and isworkingunit != ''"> and isworkingunit = #{isworkingunit} </if>
<if test="legalbodycode != null and legalbodycode != ''"> and legalbodycode = #{legalbodycode} </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
<if test="maxinnercode != null and maxinnercode != ''"> and maxinnercode = #{maxinnercode} </if>
<if test="memo != null and memo != ''"> and memo = #{memo} </if>
<if test="ownersharerate != null"> and ownersharerate = #{ownersharerate} </if>
<if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="pkCorpkind != null and pkCorpkind != ''"> and pk_corpkind = #{pkCorpkind} </if>
<if test="pkCurrency != null and pkCurrency != ''"> and pk_currency = #{pkCurrency} </if>
<if test="postaddr != null and postaddr != ''"> and postaddr = #{postaddr} </if>
<if test="province != null and province != ''"> and province = #{province} </if>
<if test="regcapital != null"> and regcapital = #{regcapital} </if>
<if test="region != null and region != ''"> and region = #{region} </if>
<if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
<if test="sealeddate != null and sealeddate != ''"> and sealeddate = #{sealeddate} </if>
<if test="showorder != null"> and showorder = #{showorder} </if>
<if test="taxcode != null and taxcode != ''"> and taxcode = #{taxcode} </if>
<if test="taxpayertype != null"> and taxpayertype = #{taxpayertype} </if>
<if test="tenantNo != null and tenantNo != ''"> and tenant_no = #{tenantNo} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="unitcode != null and unitcode != ''"> and unitcode = #{unitcode} </if>
<if test="unitdistinction != null and unitdistinction != ''"> and unitdistinction = #{unitdistinction} </if>
<if test="unitname != null and unitname != ''"> and unitname = #{unitname} </if>
<if test="unitshortname != null and unitshortname != ''"> and unitshortname = #{unitshortname} </if>
<if test="url != null and url != ''"> and url = #{url} </if>
<if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-BdCorpEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity">
select
<include refid="BdCorpEntity_Base_Column_List" />
from bd_corp
<trim prefix="where" prefixOverrides="and">
<if test="begindate != null and begindate != ''"> and begindate like concat('%',#{begindate},'%') </if>
<if test="briefintro != null and briefintro != ''"> and briefintro like concat('%',#{briefintro},'%') </if>
<if test="busibegindate != null and busibegindate != ''"> and busibegindate like concat('%',#{busibegindate},'%') </if>
<if test="busienddate != null and busienddate != ''"> and busienddate like concat('%',#{busienddate},'%') </if>
<if test="chargedeptcode != null and chargedeptcode != ''"> and chargedeptcode like concat('%',#{chargedeptcode},'%') </if>
<if test="chargedeptname != null and chargedeptname != ''"> and chargedeptname like concat('%',#{chargedeptname},'%') </if>
<if test="citycounty != null and citycounty != ''"> and citycounty like concat('%',#{citycounty},'%') </if>
<if test="corptype != null and corptype != ''"> and corptype like concat('%',#{corptype},'%') </if>
<if test="countryarea != null and countryarea != ''"> and countryarea like concat('%',#{countryarea},'%') </if>
<if test="createdate != null and createdate != ''"> and createdate like concat('%',#{createdate},'%') </if>
<if test="def1 != null and def1 != ''"> and def1 like concat('%',#{def1},'%') </if>
<if test="def10 != null and def10 != ''"> and def10 like concat('%',#{def10},'%') </if>
<if test="def11 != null and def11 != ''"> and def11 like concat('%',#{def11},'%') </if>
<if test="def12 != null and def12 != ''"> and def12 like concat('%',#{def12},'%') </if>
<if test="def13 != null and def13 != ''"> and def13 like concat('%',#{def13},'%') </if>
<if test="def14 != null and def14 != ''"> and def14 like concat('%',#{def14},'%') </if>
<if test="def15 != null and def15 != ''"> and def15 like concat('%',#{def15},'%') </if>
<if test="def16 != null and def16 != ''"> and def16 like concat('%',#{def16},'%') </if>
<if test="def17 != null and def17 != ''"> and def17 like concat('%',#{def17},'%') </if>
<if test="def18 != null and def18 != ''"> and def18 like concat('%',#{def18},'%') </if>
<if test="def19 != null and def19 != ''"> and def19 like concat('%',#{def19},'%') </if>
<if test="def2 != null and def2 != ''"> and def2 like concat('%',#{def2},'%') </if>
<if test="def20 != null and def20 != ''"> and def20 like concat('%',#{def20},'%') </if>
<if test="def3 != null and def3 != ''"> and def3 like concat('%',#{def3},'%') </if>
<if test="def4 != null and def4 != ''"> and def4 like concat('%',#{def4},'%') </if>
<if test="def5 != null and def5 != ''"> and def5 like concat('%',#{def5},'%') </if>
<if test="def6 != null and def6 != ''"> and def6 like concat('%',#{def6},'%') </if>
<if test="def7 != null and def7 != ''"> and def7 like concat('%',#{def7},'%') </if>
<if test="def8 != null and def8 != ''"> and def8 like concat('%',#{def8},'%') </if>
<if test="def9 != null and def9 != ''"> and def9 like concat('%',#{def9},'%') </if>
<if test="dr != null"> and dr like concat('%',#{dr},'%') </if>
<if test="ecotype != null and ecotype != ''"> and ecotype like concat('%',#{ecotype},'%') </if>
<if test="email1 != null and email1 != ''"> and email1 like concat('%',#{email1},'%') </if>
<if test="email2 != null and email2 != ''"> and email2 like concat('%',#{email2},'%') </if>
<if test="email3 != null and email3 != ''"> and email3 like concat('%',#{email3},'%') </if>
<if test="enddate != null and enddate != ''"> and enddate like concat('%',#{enddate},'%') </if>
<if test="fathercorp != null and fathercorp != ''"> and fathercorp like concat('%',#{fathercorp},'%') </if>
<if test="fax1 != null and fax1 != ''"> and fax1 like concat('%',#{fax1},'%') </if>
<if test="fax2 != null and fax2 != ''"> and fax2 like concat('%',#{fax2},'%') </if>
<if test="foreignname != null and foreignname != ''"> and foreignname like concat('%',#{foreignname},'%') </if>
<if test="holdflag != null and holdflag != ''"> and holdflag like concat('%',#{holdflag},'%') </if>
<if test="idnumber != null and idnumber != ''"> and idnumber like concat('%',#{idnumber},'%') </if>
<if test="industry != null and industry != ''"> and industry like concat('%',#{industry},'%') </if>
<if test="innercode != null and innercode != ''"> and innercode like concat('%',#{innercode},'%') </if>
<if test="ishasaccount != null and ishasaccount != ''"> and ishasaccount like concat('%',#{ishasaccount},'%') </if>
<if test="isseal != null and isseal != ''"> and isseal like concat('%',#{isseal},'%') </if>
<if test="isuseretail != null and isuseretail != ''"> and isuseretail like concat('%',#{isuseretail},'%') </if>
<if test="isworkingunit != null and isworkingunit != ''"> and isworkingunit like concat('%',#{isworkingunit},'%') </if>
<if test="legalbodycode != null and legalbodycode != ''"> and legalbodycode like concat('%',#{legalbodycode},'%') </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 like concat('%',#{linkman1},'%') </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 like concat('%',#{linkman2},'%') </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 like concat('%',#{linkman3},'%') </if>
<if test="maxinnercode != null and maxinnercode != ''"> and maxinnercode like concat('%',#{maxinnercode},'%') </if>
<if test="memo != null and memo != ''"> and memo like concat('%',#{memo},'%') </if>
<if test="ownersharerate != null"> and ownersharerate like concat('%',#{ownersharerate},'%') </if>
<if test="phone1 != null and phone1 != ''"> and phone1 like concat('%',#{phone1},'%') </if>
<if test="phone2 != null and phone2 != ''"> and phone2 like concat('%',#{phone2},'%') </if>
<if test="phone3 != null and phone3 != ''"> and phone3 like concat('%',#{phone3},'%') </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp like concat('%',#{pkCorp},'%') </if>
<if test="pkCorpkind != null and pkCorpkind != ''"> and pk_corpkind like concat('%',#{pkCorpkind},'%') </if>
<if test="pkCurrency != null and pkCurrency != ''"> and pk_currency like concat('%',#{pkCurrency},'%') </if>
<if test="postaddr != null and postaddr != ''"> and postaddr like concat('%',#{postaddr},'%') </if>
<if test="province != null and province != ''"> and province like concat('%',#{province},'%') </if>
<if test="regcapital != null"> and regcapital like concat('%',#{regcapital},'%') </if>
<if test="region != null and region != ''"> and region like concat('%',#{region},'%') </if>
<if test="saleaddr != null and saleaddr != ''"> and saleaddr like concat('%',#{saleaddr},'%') </if>
<if test="sealeddate != null and sealeddate != ''"> and sealeddate like concat('%',#{sealeddate},'%') </if>
<if test="showorder != null"> and showorder like concat('%',#{showorder},'%') </if>
<if test="taxcode != null and taxcode != ''"> and taxcode like concat('%',#{taxcode},'%') </if>
<if test="taxpayertype != null"> and taxpayertype like concat('%',#{taxpayertype},'%') </if>
<if test="tenantNo != null and tenantNo != ''"> and tenant_no like concat('%',#{tenantNo},'%') </if>
<if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
<if test="unitcode != null and unitcode != ''"> and unitcode like concat('%',#{unitcode},'%') </if>
<if test="unitdistinction != null and unitdistinction != ''"> and unitdistinction like concat('%',#{unitdistinction},'%') </if>
<if test="unitname != null and unitname != ''"> and unitname like concat('%',#{unitname},'%') </if>
<if test="unitshortname != null and unitshortname != ''"> and unitshortname like concat('%',#{unitshortname},'%') </if>
<if test="url != null and url != ''"> and url like concat('%',#{url},'%') </if>
<if test="zipcode != null and zipcode != ''"> and zipcode like concat('%',#{zipcode},'%') </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="BdCorpentity_list_or" resultMap="get-BdCorpEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity">
select
<include refid="BdCorpEntity_Base_Column_List" />
from bd_corp
<trim prefix="where" prefixOverrides="and">
<if test="begindate != null and begindate != ''"> or begindate = #{begindate} </if>
<if test="briefintro != null and briefintro != ''"> or briefintro = #{briefintro} </if>
<if test="busibegindate != null and busibegindate != ''"> or busibegindate = #{busibegindate} </if>
<if test="busienddate != null and busienddate != ''"> or busienddate = #{busienddate} </if>
<if test="chargedeptcode != null and chargedeptcode != ''"> or chargedeptcode = #{chargedeptcode} </if>
<if test="chargedeptname != null and chargedeptname != ''"> or chargedeptname = #{chargedeptname} </if>
<if test="citycounty != null and citycounty != ''"> or citycounty = #{citycounty} </if>
<if test="corptype != null and corptype != ''"> or corptype = #{corptype} </if>
<if test="countryarea != null and countryarea != ''"> or countryarea = #{countryarea} </if>
<if test="createdate != null and createdate != ''"> or createdate = #{createdate} </if>
<if test="def1 != null and def1 != ''"> or def1 = #{def1} </if>
<if test="def10 != null and def10 != ''"> or def10 = #{def10} </if>
<if test="def11 != null and def11 != ''"> or def11 = #{def11} </if>
<if test="def12 != null and def12 != ''"> or def12 = #{def12} </if>
<if test="def13 != null and def13 != ''"> or def13 = #{def13} </if>
<if test="def14 != null and def14 != ''"> or def14 = #{def14} </if>
<if test="def15 != null and def15 != ''"> or def15 = #{def15} </if>
<if test="def16 != null and def16 != ''"> or def16 = #{def16} </if>
<if test="def17 != null and def17 != ''"> or def17 = #{def17} </if>
<if test="def18 != null and def18 != ''"> or def18 = #{def18} </if>
<if test="def19 != null and def19 != ''"> or def19 = #{def19} </if>
<if test="def2 != null and def2 != ''"> or def2 = #{def2} </if>
<if test="def20 != null and def20 != ''"> or def20 = #{def20} </if>
<if test="def3 != null and def3 != ''"> or def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> or def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> or def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> or def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> or def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> or def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> or def9 = #{def9} </if>
<if test="dr != null"> or dr = #{dr} </if>
<if test="ecotype != null and ecotype != ''"> or ecotype = #{ecotype} </if>
<if test="email1 != null and email1 != ''"> or email1 = #{email1} </if>
<if test="email2 != null and email2 != ''"> or email2 = #{email2} </if>
<if test="email3 != null and email3 != ''"> or email3 = #{email3} </if>
<if test="enddate != null and enddate != ''"> or enddate = #{enddate} </if>
<if test="fathercorp != null and fathercorp != ''"> or fathercorp = #{fathercorp} </if>
<if test="fax1 != null and fax1 != ''"> or fax1 = #{fax1} </if>
<if test="fax2 != null and fax2 != ''"> or fax2 = #{fax2} </if>
<if test="foreignname != null and foreignname != ''"> or foreignname = #{foreignname} </if>
<if test="holdflag != null and holdflag != ''"> or holdflag = #{holdflag} </if>
<if test="idnumber != null and idnumber != ''"> or idnumber = #{idnumber} </if>
<if test="industry != null and industry != ''"> or industry = #{industry} </if>
<if test="innercode != null and innercode != ''"> or innercode = #{innercode} </if>
<if test="ishasaccount != null and ishasaccount != ''"> or ishasaccount = #{ishasaccount} </if>
<if test="isseal != null and isseal != ''"> or isseal = #{isseal} </if>
<if test="isuseretail != null and isuseretail != ''"> or isuseretail = #{isuseretail} </if>
<if test="isworkingunit != null and isworkingunit != ''"> or isworkingunit = #{isworkingunit} </if>
<if test="legalbodycode != null and legalbodycode != ''"> or legalbodycode = #{legalbodycode} </if>
<if test="linkman1 != null and linkman1 != ''"> or linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> or linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> or linkman3 = #{linkman3} </if>
<if test="maxinnercode != null and maxinnercode != ''"> or maxinnercode = #{maxinnercode} </if>
<if test="memo != null and memo != ''"> or memo = #{memo} </if>
<if test="ownersharerate != null"> or ownersharerate = #{ownersharerate} </if>
<if test="phone1 != null and phone1 != ''"> or phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> or phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> or phone3 = #{phone3} </if>
<if test="pkCorp != null and pkCorp != ''"> or pk_corp = #{pkCorp} </if>
<if test="pkCorpkind != null and pkCorpkind != ''"> or pk_corpkind = #{pkCorpkind} </if>
<if test="pkCurrency != null and pkCurrency != ''"> or pk_currency = #{pkCurrency} </if>
<if test="postaddr != null and postaddr != ''"> or postaddr = #{postaddr} </if>
<if test="province != null and province != ''"> or province = #{province} </if>
<if test="regcapital != null"> or regcapital = #{regcapital} </if>
<if test="region != null and region != ''"> or region = #{region} </if>
<if test="saleaddr != null and saleaddr != ''"> or saleaddr = #{saleaddr} </if>
<if test="sealeddate != null and sealeddate != ''"> or sealeddate = #{sealeddate} </if>
<if test="showorder != null"> or showorder = #{showorder} </if>
<if test="taxcode != null and taxcode != ''"> or taxcode = #{taxcode} </if>
<if test="taxpayertype != null"> or taxpayertype = #{taxpayertype} </if>
<if test="tenantNo != null and tenantNo != ''"> or tenant_no = #{tenantNo} </if>
<if test="ts != null and ts != ''"> or ts = #{ts} </if>
<if test="unitcode != null and unitcode != ''"> or unitcode = #{unitcode} </if>
<if test="unitdistinction != null and unitdistinction != ''"> or unitdistinction = #{unitdistinction} </if>
<if test="unitname != null and unitname != ''"> or unitname = #{unitname} </if>
<if test="unitshortname != null and unitshortname != ''"> or unitshortname = #{unitshortname} </if>
<if test="url != null and url != ''"> or url = #{url} </if>
<if test="zipcode != null and zipcode != ''"> or zipcode = #{zipcode} </if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity" keyProperty="pkCorp" useGeneratedKeys="true">
insert into bd_corp(
<trim suffix="" suffixOverrides=",">
<if test="begindate != null and begindate != ''"> begindate , </if>
<if test="briefintro != null and briefintro != ''"> briefintro , </if>
<if test="busibegindate != null and busibegindate != ''"> busibegindate , </if>
<if test="busienddate != null and busienddate != ''"> busienddate , </if>
<if test="chargedeptcode != null and chargedeptcode != ''"> chargedeptcode , </if>
<if test="chargedeptname != null and chargedeptname != ''"> chargedeptname , </if>
<if test="citycounty != null and citycounty != ''"> citycounty , </if>
<if test="corptype != null and corptype != ''"> corptype , </if>
<if test="countryarea != null and countryarea != ''"> countryarea , </if>
<if test="createdate != null and createdate != ''"> createdate , </if>
<if test="def1 != null and def1 != ''"> def1 , </if>
<if test="def10 != null and def10 != ''"> def10 , </if>
<if test="def11 != null and def11 != ''"> def11 , </if>
<if test="def12 != null and def12 != ''"> def12 , </if>
<if test="def13 != null and def13 != ''"> def13 , </if>
<if test="def14 != null and def14 != ''"> def14 , </if>
<if test="def15 != null and def15 != ''"> def15 , </if>
<if test="def16 != null and def16 != ''"> def16 , </if>
<if test="def17 != null and def17 != ''"> def17 , </if>
<if test="def18 != null and def18 != ''"> def18 , </if>
<if test="def19 != null and def19 != ''"> def19 , </if>
<if test="def2 != null and def2 != ''"> def2 , </if>
<if test="def20 != null and def20 != ''"> def20 , </if>
<if test="def3 != null and def3 != ''"> def3 , </if>
<if test="def4 != null and def4 != ''"> def4 , </if>
<if test="def5 != null and def5 != ''"> def5 , </if>
<if test="def6 != null and def6 != ''"> def6 , </if>
<if test="def7 != null and def7 != ''"> def7 , </if>
<if test="def8 != null and def8 != ''"> def8 , </if>
<if test="def9 != null and def9 != ''"> def9 , </if>
<if test="dr != null"> dr , </if>
<if test="ecotype != null and ecotype != ''"> ecotype , </if>
<if test="email1 != null and email1 != ''"> email1 , </if>
<if test="email2 != null and email2 != ''"> email2 , </if>
<if test="email3 != null and email3 != ''"> email3 , </if>
<if test="enddate != null and enddate != ''"> enddate , </if>
<if test="fathercorp != null and fathercorp != ''"> fathercorp , </if>
<if test="fax1 != null and fax1 != ''"> fax1 , </if>
<if test="fax2 != null and fax2 != ''"> fax2 , </if>
<if test="foreignname != null and foreignname != ''"> foreignname , </if>
<if test="holdflag != null and holdflag != ''"> holdflag , </if>
<if test="idnumber != null and idnumber != ''"> idnumber , </if>
<if test="industry != null and industry != ''"> industry , </if>
<if test="innercode != null and innercode != ''"> innercode , </if>
<if test="ishasaccount != null and ishasaccount != ''"> ishasaccount , </if>
<if test="isseal != null and isseal != ''"> isseal , </if>
<if test="isuseretail != null and isuseretail != ''"> isuseretail , </if>
<if test="isworkingunit != null and isworkingunit != ''"> isworkingunit , </if>
<if test="legalbodycode != null and legalbodycode != ''"> legalbodycode , </if>
<if test="linkman1 != null and linkman1 != ''"> linkman1 , </if>
<if test="linkman2 != null and linkman2 != ''"> linkman2 , </if>
<if test="linkman3 != null and linkman3 != ''"> linkman3 , </if>
<if test="maxinnercode != null and maxinnercode != ''"> maxinnercode , </if>
<if test="memo != null and memo != ''"> memo , </if>
<if test="ownersharerate != null"> ownersharerate , </if>
<if test="phone1 != null and phone1 != ''"> phone1 , </if>
<if test="phone2 != null and phone2 != ''"> phone2 , </if>
<if test="phone3 != null and phone3 != ''"> phone3 , </if>
<if test="pkCorp != null and pkCorp != ''"> pk_corp , </if>
<if test="pkCorpkind != null and pkCorpkind != ''"> pk_corpkind , </if>
<if test="pkCurrency != null and pkCurrency != ''"> pk_currency , </if>
<if test="postaddr != null and postaddr != ''"> postaddr , </if>
<if test="province != null and province != ''"> province , </if>
<if test="regcapital != null"> regcapital , </if>
<if test="region != null and region != ''"> region , </if>
<if test="saleaddr != null and saleaddr != ''"> saleaddr , </if>
<if test="sealeddate != null and sealeddate != ''"> sealeddate , </if>
<if test="showorder != null"> showorder , </if>
<if test="taxcode != null and taxcode != ''"> taxcode , </if>
<if test="taxpayertype != null"> taxpayertype , </if>
<if test="tenantNo != null and tenantNo != ''"> tenant_no , </if>
<if test="ts != null and ts != ''"> ts , </if>
<if test="unitcode != null and unitcode != ''"> unitcode , </if>
<if test="unitdistinction != null and unitdistinction != ''"> unitdistinction , </if>
<if test="unitname != null and unitname != ''"> unitname , </if>
<if test="unitshortname != null and unitshortname != ''"> unitshortname , </if>
<if test="url != null and url != ''"> url , </if>
<if test="zipcode != null and zipcode != ''"> zipcode , </if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="begindate != null and begindate != ''"> #{begindate} ,</if>
<if test="briefintro != null and briefintro != ''"> #{briefintro} ,</if>
<if test="busibegindate != null and busibegindate != ''"> #{busibegindate} ,</if>
<if test="busienddate != null and busienddate != ''"> #{busienddate} ,</if>
<if test="chargedeptcode != null and chargedeptcode != ''"> #{chargedeptcode} ,</if>
<if test="chargedeptname != null and chargedeptname != ''"> #{chargedeptname} ,</if>
<if test="citycounty != null and citycounty != ''"> #{citycounty} ,</if>
<if test="corptype != null and corptype != ''"> #{corptype} ,</if>
<if test="countryarea != null and countryarea != ''"> #{countryarea} ,</if>
<if test="createdate != null and createdate != ''"> #{createdate} ,</if>
<if test="def1 != null and def1 != ''"> #{def1} ,</if>
<if test="def10 != null and def10 != ''"> #{def10} ,</if>
<if test="def11 != null and def11 != ''"> #{def11} ,</if>
<if test="def12 != null and def12 != ''"> #{def12} ,</if>
<if test="def13 != null and def13 != ''"> #{def13} ,</if>
<if test="def14 != null and def14 != ''"> #{def14} ,</if>
<if test="def15 != null and def15 != ''"> #{def15} ,</if>
<if test="def16 != null and def16 != ''"> #{def16} ,</if>
<if test="def17 != null and def17 != ''"> #{def17} ,</if>
<if test="def18 != null and def18 != ''"> #{def18} ,</if>
<if test="def19 != null and def19 != ''"> #{def19} ,</if>
<if test="def2 != null and def2 != ''"> #{def2} ,</if>
<if test="def20 != null and def20 != ''"> #{def20} ,</if>
<if test="def3 != null and def3 != ''"> #{def3} ,</if>
<if test="def4 != null and def4 != ''"> #{def4} ,</if>
<if test="def5 != null and def5 != ''"> #{def5} ,</if>
<if test="def6 != null and def6 != ''"> #{def6} ,</if>
<if test="def7 != null and def7 != ''"> #{def7} ,</if>
<if test="def8 != null and def8 != ''"> #{def8} ,</if>
<if test="def9 != null and def9 != ''"> #{def9} ,</if>
<if test="dr != null"> #{dr} ,</if>
<if test="ecotype != null and ecotype != ''"> #{ecotype} ,</if>
<if test="email1 != null and email1 != ''"> #{email1} ,</if>
<if test="email2 != null and email2 != ''"> #{email2} ,</if>
<if test="email3 != null and email3 != ''"> #{email3} ,</if>
<if test="enddate != null and enddate != ''"> #{enddate} ,</if>
<if test="fathercorp != null and fathercorp != ''"> #{fathercorp} ,</if>
<if test="fax1 != null and fax1 != ''"> #{fax1} ,</if>
<if test="fax2 != null and fax2 != ''"> #{fax2} ,</if>
<if test="foreignname != null and foreignname != ''"> #{foreignname} ,</if>
<if test="holdflag != null and holdflag != ''"> #{holdflag} ,</if>
<if test="idnumber != null and idnumber != ''"> #{idnumber} ,</if>
<if test="industry != null and industry != ''"> #{industry} ,</if>
<if test="innercode != null and innercode != ''"> #{innercode} ,</if>
<if test="ishasaccount != null and ishasaccount != ''"> #{ishasaccount} ,</if>
<if test="isseal != null and isseal != ''"> #{isseal} ,</if>
<if test="isuseretail != null and isuseretail != ''"> #{isuseretail} ,</if>
<if test="isworkingunit != null and isworkingunit != ''"> #{isworkingunit} ,</if>
<if test="legalbodycode != null and legalbodycode != ''"> #{legalbodycode} ,</if>
<if test="linkman1 != null and linkman1 != ''"> #{linkman1} ,</if>
<if test="linkman2 != null and linkman2 != ''"> #{linkman2} ,</if>
<if test="linkman3 != null and linkman3 != ''"> #{linkman3} ,</if>
<if test="maxinnercode != null and maxinnercode != ''"> #{maxinnercode} ,</if>
<if test="memo != null and memo != ''"> #{memo} ,</if>
<if test="ownersharerate != null"> #{ownersharerate} ,</if>
<if test="phone1 != null and phone1 != ''"> #{phone1} ,</if>
<if test="phone2 != null and phone2 != ''"> #{phone2} ,</if>
<if test="phone3 != null and phone3 != ''"> #{phone3} ,</if>
<if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>
<if test="pkCorpkind != null and pkCorpkind != ''"> #{pkCorpkind} ,</if>
<if test="pkCurrency != null and pkCurrency != ''"> #{pkCurrency} ,</if>
<if test="postaddr != null and postaddr != ''"> #{postaddr} ,</if>
<if test="province != null and province != ''"> #{province} ,</if>
<if test="regcapital != null"> #{regcapital} ,</if>
<if test="region != null and region != ''"> #{region} ,</if>
<if test="saleaddr != null and saleaddr != ''"> #{saleaddr} ,</if>
<if test="sealeddate != null and sealeddate != ''"> #{sealeddate} ,</if>
<if test="showorder != null"> #{showorder} ,</if>
<if test="taxcode != null and taxcode != ''"> #{taxcode} ,</if>
<if test="taxpayertype != null"> #{taxpayertype} ,</if>
<if test="tenantNo != null and tenantNo != ''"> #{tenantNo} ,</if>
<if test="ts != null and ts != ''"> #{ts} ,</if>
<if test="unitcode != null and unitcode != ''"> #{unitcode} ,</if>
<if test="unitdistinction != null and unitdistinction != ''"> #{unitdistinction} ,</if>
<if test="unitname != null and unitname != ''"> #{unitname} ,</if>
<if test="unitshortname != null and unitshortname != ''"> #{unitshortname} ,</if>
<if test="url != null and url != ''"> #{url} ,</if>
<if test="zipcode != null and zipcode != ''"> #{zipcode} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_corp a WHERE a.sts = 'Y' ),</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="pkCorp" useGeneratedKeys="true">
insert into bd_corp(begindate, briefintro, busibegindate, busienddate, chargedeptcode, chargedeptname, citycounty, corptype, countryarea, createdate, def1, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def2, def20, def3, def4, def5, def6, def7, def8, def9, dr, ecotype, email1, email2, email3, enddate, fathercorp, fax1, fax2, foreignname, holdflag, idnumber, industry, innercode, ishasaccount, isseal, isuseretail, isworkingunit, legalbodycode, linkman1, linkman2, linkman3, maxinnercode, memo, ownersharerate, phone1, phone2, phone3, pk_corpkind, pk_currency, postaddr, province, regcapital, region, saleaddr, sealeddate, showorder, taxcode, taxpayertype, tenant_no, ts, unitcode, unitdistinction, unitname, unitshortname, url, zipcode, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.begindate},#{entity.briefintro},#{entity.busibegindate},#{entity.busienddate},#{entity.chargedeptcode},#{entity.chargedeptname},#{entity.citycounty},#{entity.corptype},#{entity.countryarea},#{entity.createdate},#{entity.def1},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def2},#{entity.def20},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.dr},#{entity.ecotype},#{entity.email1},#{entity.email2},#{entity.email3},#{entity.enddate},#{entity.fathercorp},#{entity.fax1},#{entity.fax2},#{entity.foreignname},#{entity.holdflag},#{entity.idnumber},#{entity.industry},#{entity.innercode},#{entity.ishasaccount},#{entity.isseal},#{entity.isuseretail},#{entity.isworkingunit},#{entity.legalbodycode},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.maxinnercode},#{entity.memo},#{entity.ownersharerate},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkCorpkind},#{entity.pkCurrency},#{entity.postaddr},#{entity.province},#{entity.regcapital},#{entity.region},#{entity.saleaddr},#{entity.sealeddate},#{entity.showorder},#{entity.taxcode},#{entity.taxpayertype},#{entity.tenantNo},#{entity.ts},#{entity.unitcode},#{entity.unitdistinction},#{entity.unitname},#{entity.unitshortname},#{entity.url},#{entity.zipcode}, 'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="pkCorp" useGeneratedKeys="true">
insert into bd_corp(begindate, briefintro, busibegindate, busienddate, chargedeptcode, chargedeptname, citycounty, corptype, countryarea, createdate, def1, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def2, def20, def3, def4, def5, def6, def7, def8, def9, dr, ecotype, email1, email2, email3, enddate, fathercorp, fax1, fax2, foreignname, holdflag, idnumber, industry, innercode, ishasaccount, isseal, isuseretail, isworkingunit, legalbodycode, linkman1, linkman2, linkman3, maxinnercode, memo, ownersharerate, phone1, phone2, phone3, pk_corpkind, pk_currency, postaddr, province, regcapital, region, saleaddr, sealeddate, showorder, taxcode, taxpayertype, tenant_no, ts, unitcode, unitdistinction, unitname, unitshortname, url, zipcode)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.begindate},#{entity.briefintro},#{entity.busibegindate},#{entity.busienddate},#{entity.chargedeptcode},#{entity.chargedeptname},#{entity.citycounty},#{entity.corptype},#{entity.countryarea},#{entity.createdate},#{entity.def1},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def2},#{entity.def20},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.dr},#{entity.ecotype},#{entity.email1},#{entity.email2},#{entity.email3},#{entity.enddate},#{entity.fathercorp},#{entity.fax1},#{entity.fax2},#{entity.foreignname},#{entity.holdflag},#{entity.idnumber},#{entity.industry},#{entity.innercode},#{entity.ishasaccount},#{entity.isseal},#{entity.isuseretail},#{entity.isworkingunit},#{entity.legalbodycode},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.maxinnercode},#{entity.memo},#{entity.ownersharerate},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkCorpkind},#{entity.pkCurrency},#{entity.postaddr},#{entity.province},#{entity.regcapital},#{entity.region},#{entity.saleaddr},#{entity.sealeddate},#{entity.showorder},#{entity.taxcode},#{entity.taxpayertype},#{entity.tenantNo},#{entity.ts},#{entity.unitcode},#{entity.unitdistinction},#{entity.unitname},#{entity.unitshortname},#{entity.url},#{entity.zipcode})
</foreach>
on duplicate key update
begindate = values(begindate),
briefintro = values(briefintro),
busibegindate = values(busibegindate),
busienddate = values(busienddate),
chargedeptcode = values(chargedeptcode),
chargedeptname = values(chargedeptname),
citycounty = values(citycounty),
corptype = values(corptype),
countryarea = values(countryarea),
createdate = values(createdate),
def1 = values(def1),
def10 = values(def10),
def11 = values(def11),
def12 = values(def12),
def13 = values(def13),
def14 = values(def14),
def15 = values(def15),
def16 = values(def16),
def17 = values(def17),
def18 = values(def18),
def19 = values(def19),
def2 = values(def2),
def20 = values(def20),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
def6 = values(def6),
def7 = values(def7),
def8 = values(def8),
def9 = values(def9),
dr = values(dr),
ecotype = values(ecotype),
email1 = values(email1),
email2 = values(email2),
email3 = values(email3),
enddate = values(enddate),
fathercorp = values(fathercorp),
fax1 = values(fax1),
fax2 = values(fax2),
foreignname = values(foreignname),
holdflag = values(holdflag),
idnumber = values(idnumber),
industry = values(industry),
innercode = values(innercode),
ishasaccount = values(ishasaccount),
isseal = values(isseal),
isuseretail = values(isuseretail),
isworkingunit = values(isworkingunit),
legalbodycode = values(legalbodycode),
linkman1 = values(linkman1),
linkman2 = values(linkman2),
linkman3 = values(linkman3),
maxinnercode = values(maxinnercode),
memo = values(memo),
ownersharerate = values(ownersharerate),
phone1 = values(phone1),
phone2 = values(phone2),
phone3 = values(phone3),
pk_corpkind = values(pk_corpkind),
pk_currency = values(pk_currency),
postaddr = values(postaddr),
province = values(province),
regcapital = values(regcapital),
region = values(region),
saleaddr = values(saleaddr),
sealeddate = values(sealeddate),
showorder = values(showorder),
taxcode = values(taxcode),
taxpayertype = values(taxpayertype),
tenant_no = values(tenant_no),
ts = values(ts),
unitcode = values(unitcode),
unitdistinction = values(unitdistinction),
unitname = values(unitname),
unitshortname = values(unitshortname),
url = values(url),
zipcode = values(zipcode)</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity" >
update bd_corp set
<trim suffix="" suffixOverrides=",">
<if test="begindate != null and begindate != ''"> begindate = #{begindate},</if>
<if test="briefintro != null and briefintro != ''"> briefintro = #{briefintro},</if>
<if test="busibegindate != null and busibegindate != ''"> busibegindate = #{busibegindate},</if>
<if test="busienddate != null and busienddate != ''"> busienddate = #{busienddate},</if>
<if test="chargedeptcode != null and chargedeptcode != ''"> chargedeptcode = #{chargedeptcode},</if>
<if test="chargedeptname != null and chargedeptname != ''"> chargedeptname = #{chargedeptname},</if>
<if test="citycounty != null and citycounty != ''"> citycounty = #{citycounty},</if>
<if test="corptype != null and corptype != ''"> corptype = #{corptype},</if>
<if test="countryarea != null and countryarea != ''"> countryarea = #{countryarea},</if>
<if test="createdate != null and createdate != ''"> createdate = #{createdate},</if>
<if test="def1 != null and def1 != ''"> def1 = #{def1},</if>
<if test="def10 != null and def10 != ''"> def10 = #{def10},</if>
<if test="def11 != null and def11 != ''"> def11 = #{def11},</if>
<if test="def12 != null and def12 != ''"> def12 = #{def12},</if>
<if test="def13 != null and def13 != ''"> def13 = #{def13},</if>
<if test="def14 != null and def14 != ''"> def14 = #{def14},</if>
<if test="def15 != null and def15 != ''"> def15 = #{def15},</if>
<if test="def16 != null and def16 != ''"> def16 = #{def16},</if>
<if test="def17 != null and def17 != ''"> def17 = #{def17},</if>
<if test="def18 != null and def18 != ''"> def18 = #{def18},</if>
<if test="def19 != null and def19 != ''"> def19 = #{def19},</if>
<if test="def2 != null and def2 != ''"> def2 = #{def2},</if>
<if test="def20 != null and def20 != ''"> def20 = #{def20},</if>
<if test="def3 != null and def3 != ''"> def3 = #{def3},</if>
<if test="def4 != null and def4 != ''"> def4 = #{def4},</if>
<if test="def5 != null and def5 != ''"> def5 = #{def5},</if>
<if test="def6 != null and def6 != ''"> def6 = #{def6},</if>
<if test="def7 != null and def7 != ''"> def7 = #{def7},</if>
<if test="def8 != null and def8 != ''"> def8 = #{def8},</if>
<if test="def9 != null and def9 != ''"> def9 = #{def9},</if>
<if test="dr != null"> dr = #{dr},</if>
<if test="ecotype != null and ecotype != ''"> ecotype = #{ecotype},</if>
<if test="email1 != null and email1 != ''"> email1 = #{email1},</if>
<if test="email2 != null and email2 != ''"> email2 = #{email2},</if>
<if test="email3 != null and email3 != ''"> email3 = #{email3},</if>
<if test="enddate != null and enddate != ''"> enddate = #{enddate},</if>
<if test="fathercorp != null and fathercorp != ''"> fathercorp = #{fathercorp},</if>
<if test="fax1 != null and fax1 != ''"> fax1 = #{fax1},</if>
<if test="fax2 != null and fax2 != ''"> fax2 = #{fax2},</if>
<if test="foreignname != null and foreignname != ''"> foreignname = #{foreignname},</if>
<if test="holdflag != null and holdflag != ''"> holdflag = #{holdflag},</if>
<if test="idnumber != null and idnumber != ''"> idnumber = #{idnumber},</if>
<if test="industry != null and industry != ''"> industry = #{industry},</if>
<if test="innercode != null and innercode != ''"> innercode = #{innercode},</if>
<if test="ishasaccount != null and ishasaccount != ''"> ishasaccount = #{ishasaccount},</if>
<if test="isseal != null and isseal != ''"> isseal = #{isseal},</if>
<if test="isuseretail != null and isuseretail != ''"> isuseretail = #{isuseretail},</if>
<if test="isworkingunit != null and isworkingunit != ''"> isworkingunit = #{isworkingunit},</if>
<if test="legalbodycode != null and legalbodycode != ''"> legalbodycode = #{legalbodycode},</if>
<if test="linkman1 != null and linkman1 != ''"> linkman1 = #{linkman1},</if>
<if test="linkman2 != null and linkman2 != ''"> linkman2 = #{linkman2},</if>
<if test="linkman3 != null and linkman3 != ''"> linkman3 = #{linkman3},</if>
<if test="maxinnercode != null and maxinnercode != ''"> maxinnercode = #{maxinnercode},</if>
<if test="memo != null and memo != ''"> memo = #{memo},</if>
<if test="ownersharerate != null"> ownersharerate = #{ownersharerate},</if>
<if test="phone1 != null and phone1 != ''"> phone1 = #{phone1},</if>
<if test="phone2 != null and phone2 != ''"> phone2 = #{phone2},</if>
<if test="phone3 != null and phone3 != ''"> phone3 = #{phone3},</if>
<if test="pkCorpkind != null and pkCorpkind != ''"> pk_corpkind = #{pkCorpkind},</if>
<if test="pkCurrency != null and pkCurrency != ''"> pk_currency = #{pkCurrency},</if>
<if test="postaddr != null and postaddr != ''"> postaddr = #{postaddr},</if>
<if test="province != null and province != ''"> province = #{province},</if>
<if test="regcapital != null"> regcapital = #{regcapital},</if>
<if test="region != null and region != ''"> region = #{region},</if>
<if test="saleaddr != null and saleaddr != ''"> saleaddr = #{saleaddr},</if>
<if test="sealeddate != null and sealeddate != ''"> sealeddate = #{sealeddate},</if>
<if test="showorder != null"> showorder = #{showorder},</if>
<if test="taxcode != null and taxcode != ''"> taxcode = #{taxcode},</if>
<if test="taxpayertype != null"> taxpayertype = #{taxpayertype},</if>
<if test="tenantNo != null and tenantNo != ''"> tenant_no = #{tenantNo},</if>
<if test="ts != null and ts != ''"> ts = #{ts},</if>
<if test="unitcode != null and unitcode != ''"> unitcode = #{unitcode},</if>
<if test="unitdistinction != null and unitdistinction != ''"> unitdistinction = #{unitdistinction},</if>
<if test="unitname != null and unitname != ''"> unitname = #{unitname},</if>
<if test="unitshortname != null and unitshortname != ''"> unitshortname = #{unitshortname},</if>
<if test="url != null and url != ''"> url = #{url},</if>
<if test="zipcode != null and zipcode != ''"> zipcode = #{zipcode},</if>
</trim>
where pk_corp = #{pkCorp}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity" >
update bd_corp set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
where pk_corp = #{pkCorp}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.BdCorpEntity" >
update bd_corp set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="begindate != null and begindate != ''"> and begindate = #{begindate} </if>
<if test="briefintro != null and briefintro != ''"> and briefintro = #{briefintro} </if>
<if test="busibegindate != null and busibegindate != ''"> and busibegindate = #{busibegindate} </if>
<if test="busienddate != null and busienddate != ''"> and busienddate = #{busienddate} </if>
<if test="chargedeptcode != null and chargedeptcode != ''"> and chargedeptcode = #{chargedeptcode} </if>
<if test="chargedeptname != null and chargedeptname != ''"> and chargedeptname = #{chargedeptname} </if>
<if test="citycounty != null and citycounty != ''"> and citycounty = #{citycounty} </if>
<if test="corptype != null and corptype != ''"> and corptype = #{corptype} </if>
<if test="countryarea != null and countryarea != ''"> and countryarea = #{countryarea} </if>
<if test="createdate != null and createdate != ''"> and createdate = #{createdate} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>
<if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>
<if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>
<if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>
<if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>
<if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>
<if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>
<if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>
<if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>
<if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="ecotype != null and ecotype != ''"> and ecotype = #{ecotype} </if>
<if test="email1 != null and email1 != ''"> and email1 = #{email1} </if>
<if test="email2 != null and email2 != ''"> and email2 = #{email2} </if>
<if test="email3 != null and email3 != ''"> and email3 = #{email3} </if>
<if test="enddate != null and enddate != ''"> and enddate = #{enddate} </if>
<if test="fathercorp != null and fathercorp != ''"> and fathercorp = #{fathercorp} </if>
<if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
<if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
<if test="foreignname != null and foreignname != ''"> and foreignname = #{foreignname} </if>
<if test="holdflag != null and holdflag != ''"> and holdflag = #{holdflag} </if>
<if test="idnumber != null and idnumber != ''"> and idnumber = #{idnumber} </if>
<if test="industry != null and industry != ''"> and industry = #{industry} </if>
<if test="innercode != null and innercode != ''"> and innercode = #{innercode} </if>
<if test="ishasaccount != null and ishasaccount != ''"> and ishasaccount = #{ishasaccount} </if>
<if test="isseal != null and isseal != ''"> and isseal = #{isseal} </if>
<if test="isuseretail != null and isuseretail != ''"> and isuseretail = #{isuseretail} </if>
<if test="isworkingunit != null and isworkingunit != ''"> and isworkingunit = #{isworkingunit} </if>
<if test="legalbodycode != null and legalbodycode != ''"> and legalbodycode = #{legalbodycode} </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
<if test="maxinnercode != null and maxinnercode != ''"> and maxinnercode = #{maxinnercode} </if>
<if test="memo != null and memo != ''"> and memo = #{memo} </if>
<if test="ownersharerate != null"> and ownersharerate = #{ownersharerate} </if>
<if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="pkCorpkind != null and pkCorpkind != ''"> and pk_corpkind = #{pkCorpkind} </if>
<if test="pkCurrency != null and pkCurrency != ''"> and pk_currency = #{pkCurrency} </if>
<if test="postaddr != null and postaddr != ''"> and postaddr = #{postaddr} </if>
<if test="province != null and province != ''"> and province = #{province} </if>
<if test="regcapital != null"> and regcapital = #{regcapital} </if>
<if test="region != null and region != ''"> and region = #{region} </if>
<if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
<if test="sealeddate != null and sealeddate != ''"> and sealeddate = #{sealeddate} </if>
<if test="showorder != null"> and showorder = #{showorder} </if>
<if test="taxcode != null and taxcode != ''"> and taxcode = #{taxcode} </if>
<if test="taxpayertype != null"> and taxpayertype = #{taxpayertype} </if>
<if test="tenantNo != null and tenantNo != ''"> and tenant_no = #{tenantNo} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="unitcode != null and unitcode != ''"> and unitcode = #{unitcode} </if>
<if test="unitdistinction != null and unitdistinction != ''"> and unitdistinction = #{unitdistinction} </if>
<if test="unitname != null and unitname != ''"> and unitname = #{unitname} </if>
<if test="unitshortname != null and unitshortname != ''"> and unitshortname = #{unitshortname} </if>
<if test="url != null and url != ''"> and url = #{url} </if>
<if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete from bd_corp where pk_corp = #{pkCorp}
</delete>
</mapper>

View File

@ -0,0 +1,707 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdCubasdoc)实体类-客商档案
*
* @author makejava
* @since 2023-08-25 09:41:41
*/
public class BdCubasdocEntity extends BaseEntity {
private String accdefault;
private String billtemplet;
private String bp1;
private String bp2;
private String bp3;
private String conaddr;
private String correspondunit;
private String createtime;
private String creator;
private String creditmny;
private String custcode;
private String custname;
private Long custprop;
private String custshortname;
private String def1;
private String def10;
private String def11;
private String def12;
private String def13;
private String def14;
private String def15;
private String def16;
private String def17;
private String def18;
private String def19;
private String def2;
private String def20;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private Long dr;
private String drpnodeflag;
private String ecotypesincevfive;
private String email;
private String engname;
private String fax1;
private String fax2;
private String freecustflag;
private String isconnflag;
private String legalbody;
private String linkman1;
private String linkman2;
private String linkman3;
private String memo;
private String mnecode;
private String mobilephone1;
private String mobilephone2;
private String mobilephone3;
private String modifier;
private String modifytime;
private String phone1;
private String phone2;
private String phone3;
private String pkAreacl;
private String pkCorp;
private String pkCorp1;
private String pkCubasdoc;
private String pkCubasdoc1;
private String pkPricegroup;
private String registerfund;
private String saleaddr;
private String sealflag;
private String taxpayerid;
private String trade;
private String ts;
private String url;
private String zipcode;
/**
* 客商管理档案主键
*/
private String pk_cumandoc;
/**
* 客商
*/
private String custflag;
/**
* 创建开始时间
*/
private String start_createtime;
/**
* 创建结束时间
*/
private String end_createtime;
public String getStart_createtime() {
return start_createtime;
}
public void setStart_createtime(String start_createtime) {
this.start_createtime = start_createtime;
}
public String getEnd_createtime() {
return end_createtime;
}
public void setEnd_createtime(String end_createtime) {
this.end_createtime = end_createtime;
}
public String getCustflag() {
return custflag;
}
public void setCustflag(String custflag) {
this.custflag = custflag;
}
public String getPk_cumandoc() {
return pk_cumandoc;
}
public void setPk_cumandoc(String pk_cumandoc) {
this.pk_cumandoc = pk_cumandoc;
}
public String getAccdefault() {
return accdefault;
}
public void setAccdefault(String accdefault) {
this.accdefault = accdefault;
}
public String getBilltemplet() {
return billtemplet;
}
public void setBilltemplet(String billtemplet) {
this.billtemplet = billtemplet;
}
public String getBp1() {
return bp1;
}
public void setBp1(String bp1) {
this.bp1 = bp1;
}
public String getBp2() {
return bp2;
}
public void setBp2(String bp2) {
this.bp2 = bp2;
}
public String getBp3() {
return bp3;
}
public void setBp3(String bp3) {
this.bp3 = bp3;
}
public String getConaddr() {
return conaddr;
}
public void setConaddr(String conaddr) {
this.conaddr = conaddr;
}
public String getCorrespondunit() {
return correspondunit;
}
public void setCorrespondunit(String correspondunit) {
this.correspondunit = correspondunit;
}
public String getCreatetime() {
return createtime;
}
public void setCreatetime(String createtime) {
this.createtime = createtime;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getCreditmny() {
return creditmny;
}
public void setCreditmny(String creditmny) {
this.creditmny = creditmny;
}
public String getCustcode() {
return custcode;
}
public void setCustcode(String custcode) {
this.custcode = custcode;
}
public String getCustname() {
return custname;
}
public void setCustname(String custname) {
this.custname = custname;
}
public Long getCustprop() {
return custprop;
}
public void setCustprop(Long custprop) {
this.custprop = custprop;
}
public String getCustshortname() {
return custshortname;
}
public void setCustshortname(String custshortname) {
this.custshortname = custshortname;
}
public String getDef1() {
return def1;
}
public void setDef1(String def1) {
this.def1 = def1;
}
public String getDef10() {
return def10;
}
public void setDef10(String def10) {
this.def10 = def10;
}
public String getDef11() {
return def11;
}
public void setDef11(String def11) {
this.def11 = def11;
}
public String getDef12() {
return def12;
}
public void setDef12(String def12) {
this.def12 = def12;
}
public String getDef13() {
return def13;
}
public void setDef13(String def13) {
this.def13 = def13;
}
public String getDef14() {
return def14;
}
public void setDef14(String def14) {
this.def14 = def14;
}
public String getDef15() {
return def15;
}
public void setDef15(String def15) {
this.def15 = def15;
}
public String getDef16() {
return def16;
}
public void setDef16(String def16) {
this.def16 = def16;
}
public String getDef17() {
return def17;
}
public void setDef17(String def17) {
this.def17 = def17;
}
public String getDef18() {
return def18;
}
public void setDef18(String def18) {
this.def18 = def18;
}
public String getDef19() {
return def19;
}
public void setDef19(String def19) {
this.def19 = def19;
}
public String getDef2() {
return def2;
}
public void setDef2(String def2) {
this.def2 = def2;
}
public String getDef20() {
return def20;
}
public void setDef20(String def20) {
this.def20 = def20;
}
public String getDef3() {
return def3;
}
public void setDef3(String def3) {
this.def3 = def3;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public String getDef6() {
return def6;
}
public void setDef6(String def6) {
this.def6 = def6;
}
public String getDef7() {
return def7;
}
public void setDef7(String def7) {
this.def7 = def7;
}
public String getDef8() {
return def8;
}
public void setDef8(String def8) {
this.def8 = def8;
}
public String getDef9() {
return def9;
}
public void setDef9(String def9) {
this.def9 = def9;
}
public Long getDr() {
return dr;
}
public void setDr(Long dr) {
this.dr = dr;
}
public String getDrpnodeflag() {
return drpnodeflag;
}
public void setDrpnodeflag(String drpnodeflag) {
this.drpnodeflag = drpnodeflag;
}
public String getEcotypesincevfive() {
return ecotypesincevfive;
}
public void setEcotypesincevfive(String ecotypesincevfive) {
this.ecotypesincevfive = ecotypesincevfive;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getEngname() {
return engname;
}
public void setEngname(String engname) {
this.engname = engname;
}
public String getFax1() {
return fax1;
}
public void setFax1(String fax1) {
this.fax1 = fax1;
}
public String getFax2() {
return fax2;
}
public void setFax2(String fax2) {
this.fax2 = fax2;
}
public String getFreecustflag() {
return freecustflag;
}
public void setFreecustflag(String freecustflag) {
this.freecustflag = freecustflag;
}
public String getIsconnflag() {
return isconnflag;
}
public void setIsconnflag(String isconnflag) {
this.isconnflag = isconnflag;
}
public String getLegalbody() {
return legalbody;
}
public void setLegalbody(String legalbody) {
this.legalbody = legalbody;
}
public String getLinkman1() {
return linkman1;
}
public void setLinkman1(String linkman1) {
this.linkman1 = linkman1;
}
public String getLinkman2() {
return linkman2;
}
public void setLinkman2(String linkman2) {
this.linkman2 = linkman2;
}
public String getLinkman3() {
return linkman3;
}
public void setLinkman3(String linkman3) {
this.linkman3 = linkman3;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public String getMnecode() {
return mnecode;
}
public void setMnecode(String mnecode) {
this.mnecode = mnecode;
}
public String getMobilephone1() {
return mobilephone1;
}
public void setMobilephone1(String mobilephone1) {
this.mobilephone1 = mobilephone1;
}
public String getMobilephone2() {
return mobilephone2;
}
public void setMobilephone2(String mobilephone2) {
this.mobilephone2 = mobilephone2;
}
public String getMobilephone3() {
return mobilephone3;
}
public void setMobilephone3(String mobilephone3) {
this.mobilephone3 = mobilephone3;
}
public String getModifier() {
return modifier;
}
public void setModifier(String modifier) {
this.modifier = modifier;
}
public String getModifytime() {
return modifytime;
}
public void setModifytime(String modifytime) {
this.modifytime = modifytime;
}
public String getPhone1() {
return phone1;
}
public void setPhone1(String phone1) {
this.phone1 = phone1;
}
public String getPhone2() {
return phone2;
}
public void setPhone2(String phone2) {
this.phone2 = phone2;
}
public String getPhone3() {
return phone3;
}
public void setPhone3(String phone3) {
this.phone3 = phone3;
}
public String getPkAreacl() {
return pkAreacl;
}
public void setPkAreacl(String pkAreacl) {
this.pkAreacl = pkAreacl;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getPkCorp1() {
return pkCorp1;
}
public void setPkCorp1(String pkCorp1) {
this.pkCorp1 = pkCorp1;
}
public String getPkCubasdoc() {
return pkCubasdoc;
}
public void setPkCubasdoc(String pkCubasdoc) {
this.pkCubasdoc = pkCubasdoc;
}
public String getPkCubasdoc1() {
return pkCubasdoc1;
}
public void setPkCubasdoc1(String pkCubasdoc1) {
this.pkCubasdoc1 = pkCubasdoc1;
}
public String getPkPricegroup() {
return pkPricegroup;
}
public void setPkPricegroup(String pkPricegroup) {
this.pkPricegroup = pkPricegroup;
}
public String getRegisterfund() {
return registerfund;
}
public void setRegisterfund(String registerfund) {
this.registerfund = registerfund;
}
public String getSaleaddr() {
return saleaddr;
}
public void setSaleaddr(String saleaddr) {
this.saleaddr = saleaddr;
}
public String getSealflag() {
return sealflag;
}
public void setSealflag(String sealflag) {
this.sealflag = sealflag;
}
public String getTaxpayerid() {
return taxpayerid;
}
public void setTaxpayerid(String taxpayerid) {
this.taxpayerid = taxpayerid;
}
public String getTrade() {
return trade;
}
public void setTrade(String trade) {
this.trade = trade;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getZipcode() {
return zipcode;
}
public void setZipcode(String zipcode) {
this.zipcode = zipcode;
}
}

View File

@ -0,0 +1,906 @@
<?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.lets.dao.impl.BdCubasdocDaoImpl">
<resultMap id="get-BdCubasdocEntity-result" type="com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" >
<result property="accdefault" column="accdefault" jdbcType="VARCHAR"/>
<result property="billtemplet" column="billtemplet" jdbcType="VARCHAR"/>
<result property="bp1" column="bp1" jdbcType="VARCHAR"/>
<result property="bp2" column="bp2" jdbcType="VARCHAR"/>
<result property="bp3" column="bp3" jdbcType="VARCHAR"/>
<result property="conaddr" column="conaddr" jdbcType="VARCHAR"/>
<result property="correspondunit" column="correspondunit" jdbcType="VARCHAR"/>
<result property="createtime" column="createtime" jdbcType="VARCHAR"/>
<result property="creator" column="creator" jdbcType="VARCHAR"/>
<result property="creditmny" column="creditmny" jdbcType="VARCHAR"/>
<result property="custcode" column="custcode" jdbcType="VARCHAR"/>
<result property="custname" column="custname" jdbcType="VARCHAR"/>
<result property="custprop" column="custprop" jdbcType="INTEGER"/>
<result property="custshortname" column="custshortname" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def10" column="def10" jdbcType="VARCHAR"/>
<result property="def11" column="def11" jdbcType="VARCHAR"/>
<result property="def12" column="def12" jdbcType="VARCHAR"/>
<result property="def13" column="def13" jdbcType="VARCHAR"/>
<result property="def14" column="def14" jdbcType="VARCHAR"/>
<result property="def15" column="def15" jdbcType="VARCHAR"/>
<result property="def16" column="def16" jdbcType="VARCHAR"/>
<result property="def17" column="def17" jdbcType="VARCHAR"/>
<result property="def18" column="def18" jdbcType="VARCHAR"/>
<result property="def19" column="def19" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def20" column="def20" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="def6" column="def6" jdbcType="VARCHAR"/>
<result property="def7" column="def7" jdbcType="VARCHAR"/>
<result property="def8" column="def8" jdbcType="VARCHAR"/>
<result property="def9" column="def9" jdbcType="VARCHAR"/>
<result property="dr" column="dr" jdbcType="INTEGER"/>
<result property="drpnodeflag" column="drpnodeflag" jdbcType="VARCHAR"/>
<result property="ecotypesincevfive" column="ecotypesincevfive" jdbcType="VARCHAR"/>
<result property="email" column="email" jdbcType="VARCHAR"/>
<result property="engname" column="engname" jdbcType="VARCHAR"/>
<result property="fax1" column="fax1" jdbcType="VARCHAR"/>
<result property="fax2" column="fax2" jdbcType="VARCHAR"/>
<result property="freecustflag" column="freecustflag" jdbcType="VARCHAR"/>
<result property="isconnflag" column="isconnflag" jdbcType="VARCHAR"/>
<result property="legalbody" column="legalbody" jdbcType="VARCHAR"/>
<result property="linkman1" column="linkman1" jdbcType="VARCHAR"/>
<result property="linkman2" column="linkman2" jdbcType="VARCHAR"/>
<result property="linkman3" column="linkman3" jdbcType="VARCHAR"/>
<result property="memo" column="memo" jdbcType="VARCHAR"/>
<result property="mnecode" column="mnecode" jdbcType="VARCHAR"/>
<result property="mobilephone1" column="mobilephone1" jdbcType="VARCHAR"/>
<result property="mobilephone2" column="mobilephone2" jdbcType="VARCHAR"/>
<result property="mobilephone3" column="mobilephone3" jdbcType="VARCHAR"/>
<result property="modifier" column="modifier" jdbcType="VARCHAR"/>
<result property="modifytime" column="modifytime" jdbcType="VARCHAR"/>
<result property="phone1" column="phone1" jdbcType="VARCHAR"/>
<result property="phone2" column="phone2" jdbcType="VARCHAR"/>
<result property="phone3" column="phone3" jdbcType="VARCHAR"/>
<result property="pkAreacl" column="pk_areacl" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
<result property="pkCorp1" column="pk_corp1" jdbcType="VARCHAR"/>
<result property="pkCubasdoc" column="pk_cubasdoc" jdbcType="VARCHAR"/>
<result property="pkCubasdoc1" column="pk_cubasdoc1" jdbcType="VARCHAR"/>
<result property="pkPricegroup" column="pk_pricegroup" jdbcType="VARCHAR"/>
<result property="registerfund" column="registerfund" jdbcType="VARCHAR"/>
<result property="saleaddr" column="saleaddr" jdbcType="VARCHAR"/>
<result property="sealflag" column="sealflag" jdbcType="VARCHAR"/>
<result property="taxpayerid" column="taxpayerid" jdbcType="VARCHAR"/>
<result property="trade" column="trade" jdbcType="VARCHAR"/>
<result property="ts" column="ts" jdbcType="VARCHAR"/>
<result property="url" column="url" jdbcType="VARCHAR"/>
<result property="zipcode" column="zipcode" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id = "BdCubasdocEntity_Base_Column_List">
accdefault
,billtemplet
,bp1
,bp2
,bp3
,conaddr
,correspondunit
,createtime
,creator
,creditmny
,custcode
,custname
,custprop
,custshortname
,def1
,def10
,def11
,def12
,def13
,def14
,def15
,def16
,def17
,def18
,def19
,def2
,def20
,def3
,def4
,def5
,def6
,def7
,def8
,def9
,dr
,drpnodeflag
,ecotypesincevfive
,email
,engname
,fax1
,fax2
,freecustflag
,isconnflag
,legalbody
,linkman1
,linkman2
,linkman3
,memo
,mnecode
,mobilephone1
,mobilephone2
,mobilephone3
,modifier
,modifytime
,phone1
,phone2
,phone3
,pk_areacl
,pk_corp
,pk_corp1
,pk_cubasdoc
,pk_cubasdoc1
,pk_pricegroup
,registerfund
,saleaddr
,sealflag
,taxpayerid
,trade
,ts
,url
,zipcode
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-BdCubasdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity">
select
<include refid="BdCubasdocEntity_Base_Column_List" />
from bd_cubasdoc
<trim prefix="where" prefixOverrides="and">
<if test="accdefault != null and accdefault != ''"> and accdefault = #{accdefault} </if>
<if test="billtemplet != null and billtemplet != ''"> and billtemplet = #{billtemplet} </if>
<if test="bp1 != null and bp1 != ''"> and bp1 = #{bp1} </if>
<if test="bp2 != null and bp2 != ''"> and bp2 = #{bp2} </if>
<if test="bp3 != null and bp3 != ''"> and bp3 = #{bp3} </if>
<if test="conaddr != null and conaddr != ''"> and conaddr = #{conaddr} </if>
<if test="correspondunit != null and correspondunit != ''"> and correspondunit = #{correspondunit} </if>
<if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>
<if test="creator != null and creator != ''"> and creator = #{creator} </if>
<if test="creditmny != null and creditmny != ''"> and creditmny = #{creditmny} </if>
<if test="custcode != null and custcode != ''"> and custcode = #{custcode} </if>
<if test="custname != null and custname != ''"> and custname = #{custname} </if>
<if test="custprop != null"> and custprop = #{custprop} </if>
<if test="custshortname != null and custshortname != ''"> and custshortname = #{custshortname} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>
<if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>
<if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>
<if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>
<if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>
<if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>
<if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>
<if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>
<if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>
<if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="drpnodeflag != null and drpnodeflag != ''"> and drpnodeflag = #{drpnodeflag} </if>
<if test="ecotypesincevfive != null and ecotypesincevfive != ''"> and ecotypesincevfive = #{ecotypesincevfive} </if>
<if test="email != null and email != ''"> and email = #{email} </if>
<if test="engname != null and engname != ''"> and engname = #{engname} </if>
<if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
<if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
<if test="freecustflag != null and freecustflag != ''"> and freecustflag = #{freecustflag} </if>
<if test="isconnflag != null and isconnflag != ''"> and isconnflag = #{isconnflag} </if>
<if test="legalbody != null and legalbody != ''"> and legalbody = #{legalbody} </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
<if test="memo != null and memo != ''"> and memo = #{memo} </if>
<if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>
<if test="mobilephone1 != null and mobilephone1 != ''"> and mobilephone1 = #{mobilephone1} </if>
<if test="mobilephone2 != null and mobilephone2 != ''"> and mobilephone2 = #{mobilephone2} </if>
<if test="mobilephone3 != null and mobilephone3 != ''"> and mobilephone3 = #{mobilephone3} </if>
<if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>
<if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </if>
<if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
<if test="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="pkCorp1 != null and pkCorp1 != ''"> and pk_corp1 = #{pkCorp1} </if>
<if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>
<if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> and pk_cubasdoc1 = #{pkCubasdoc1} </if>
<if test="pkPricegroup != null and pkPricegroup != ''"> and pk_pricegroup = #{pkPricegroup} </if>
<if test="registerfund != null and registerfund != ''"> and registerfund = #{registerfund} </if>
<if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
<if test="trade != null and trade != ''"> and trade = #{trade} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="url != null and url != ''"> and url = #{url} </if>
<if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>
<if test="start_createtime!=null and start_createtime!=''"> and createtime >= #{start_createtime}</if>
<if test="end_createtime!=null and end_createtime!=''">and createtime &lt;= #{end_createtime}</if>
</trim>
<if test=" sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity">
select count(1) from bd_cubasdoc
<trim prefix="where" prefixOverrides="and">
<if test="accdefault != null and accdefault != ''"> and accdefault = #{accdefault} </if>
<if test="billtemplet != null and billtemplet != ''"> and billtemplet = #{billtemplet} </if>
<if test="bp1 != null and bp1 != ''"> and bp1 = #{bp1} </if>
<if test="bp2 != null and bp2 != ''"> and bp2 = #{bp2} </if>
<if test="bp3 != null and bp3 != ''"> and bp3 = #{bp3} </if>
<if test="conaddr != null and conaddr != ''"> and conaddr = #{conaddr} </if>
<if test="correspondunit != null and correspondunit != ''"> and correspondunit = #{correspondunit} </if>
<if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>
<if test="creator != null and creator != ''"> and creator = #{creator} </if>
<if test="creditmny != null and creditmny != ''"> and creditmny = #{creditmny} </if>
<if test="custcode != null and custcode != ''"> and custcode = #{custcode} </if>
<if test="custname != null and custname != ''"> and custname = #{custname} </if>
<if test="custprop != null"> and custprop = #{custprop} </if>
<if test="custshortname != null and custshortname != ''"> and custshortname = #{custshortname} </if>
<if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>
<if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>
<if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>
<if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>
<if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>
<if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>
<if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>
<if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>
<if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>
<if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>
<if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>
<if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>
<if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>
<if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>
<if test="dr != null"> and dr = #{dr} </if>
<if test="drpnodeflag != null and drpnodeflag != ''"> and drpnodeflag = #{drpnodeflag} </if>
<if test="ecotypesincevfive != null and ecotypesincevfive != ''"> and ecotypesincevfive = #{ecotypesincevfive} </if>
<if test="email != null and email != ''"> and email = #{email} </if>
<if test="engname != null and engname != ''"> and engname = #{engname} </if>
<if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>
<if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>
<if test="freecustflag != null and freecustflag != ''"> and freecustflag = #{freecustflag} </if>
<if test="isconnflag != null and isconnflag != ''"> and isconnflag = #{isconnflag} </if>
<if test="legalbody != null and legalbody != ''"> and legalbody = #{legalbody} </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>
<if test="memo != null and memo != ''"> and memo = #{memo} </if>
<if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>
<if test="mobilephone1 != null and mobilephone1 != ''"> and mobilephone1 = #{mobilephone1} </if>
<if test="mobilephone2 != null and mobilephone2 != ''"> and mobilephone2 = #{mobilephone2} </if>
<if test="mobilephone3 != null and mobilephone3 != ''"> and mobilephone3 = #{mobilephone3} </if>
<if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>
<if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </if>
<if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>
<if test="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>
<if test="pkCorp1 != null and pkCorp1 != ''"> and pk_corp1 = #{pkCorp1} </if>
<if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>
<if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> and pk_cubasdoc1 = #{pkCubasdoc1} </if>
<if test="pkPricegroup != null and pkPricegroup != ''"> and pk_pricegroup = #{pkPricegroup} </if>
<if test="registerfund != null and registerfund != ''"> and registerfund = #{registerfund} </if>
<if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>
<if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
<if test="trade != null and trade != ''"> and trade = #{trade} </if>
<if test="ts != null and ts != ''"> and ts = #{ts} </if>
<if test="url != null and url != ''"> and url = #{url} </if>
<if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>
</trim>
<if test=" sort ==''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-BdCubasdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity">
select
<include refid="BdCubasdocEntity_Base_Column_List" />
from bd_cubasdoc
<trim prefix="where" prefixOverrides="and">
<if test="accdefault != null and accdefault != ''"> and accdefault like concat('%',#{accdefault},'%') </if>
<if test="billtemplet != null and billtemplet != ''"> and billtemplet like concat('%',#{billtemplet},'%') </if>
<if test="bp1 != null and bp1 != ''"> and bp1 like concat('%',#{bp1},'%') </if>
<if test="bp2 != null and bp2 != ''"> and bp2 like concat('%',#{bp2},'%') </if>
<if test="bp3 != null and bp3 != ''"> and bp3 like concat('%',#{bp3},'%') </if>
<if test="conaddr != null and conaddr != ''"> and conaddr like concat('%',#{conaddr},'%') </if>
<if test="correspondunit != null and correspondunit != ''"> and correspondunit like concat('%',#{correspondunit},'%') </if>
<if test="createtime != null and createtime != ''"> and createtime like concat('%',#{createtime},'%') </if>
<if test="creator != null and creator != ''"> and creator like concat('%',#{creator},'%') </if>
<if test="creditmny != null and creditmny != ''"> and creditmny like concat('%',#{creditmny},'%') </if>
<if test="custcode != null and custcode != ''"> and custcode like concat('%',#{custcode},'%') </if>
<if test="custname != null and custname != ''"> and custname like concat('%',#{custname},'%') </if>
<if test="custprop != null"> and custprop like concat('%',#{custprop},'%') </if>
<if test="custshortname != null and custshortname != ''"> and custshortname like concat('%',#{custshortname},'%') </if>
<if test="def1 != null and def1 != ''"> and def1 like concat('%',#{def1},'%') </if>
<if test="def10 != null and def10 != ''"> and def10 like concat('%',#{def10},'%') </if>
<if test="def11 != null and def11 != ''"> and def11 like concat('%',#{def11},'%') </if>
<if test="def12 != null and def12 != ''"> and def12 like concat('%',#{def12},'%') </if>
<if test="def13 != null and def13 != ''"> and def13 like concat('%',#{def13},'%') </if>
<if test="def14 != null and def14 != ''"> and def14 like concat('%',#{def14},'%') </if>
<if test="def15 != null and def15 != ''"> and def15 like concat('%',#{def15},'%') </if>
<if test="def16 != null and def16 != ''"> and def16 like concat('%',#{def16},'%') </if>
<if test="def17 != null and def17 != ''"> and def17 like concat('%',#{def17},'%') </if>
<if test="def18 != null and def18 != ''"> and def18 like concat('%',#{def18},'%') </if>
<if test="def19 != null and def19 != ''"> and def19 like concat('%',#{def19},'%') </if>
<if test="def2 != null and def2 != ''"> and def2 like concat('%',#{def2},'%') </if>
<if test="def20 != null and def20 != ''"> and def20 like concat('%',#{def20},'%') </if>
<if test="def3 != null and def3 != ''"> and def3 like concat('%',#{def3},'%') </if>
<if test="def4 != null and def4 != ''"> and def4 like concat('%',#{def4},'%') </if>
<if test="def5 != null and def5 != ''"> and def5 like concat('%',#{def5},'%') </if>
<if test="def6 != null and def6 != ''"> and def6 like concat('%',#{def6},'%') </if>
<if test="def7 != null and def7 != ''"> and def7 like concat('%',#{def7},'%') </if>
<if test="def8 != null and def8 != ''"> and def8 like concat('%',#{def8},'%') </if>
<if test="def9 != null and def9 != ''"> and def9 like concat('%',#{def9},'%') </if>
<if test="dr != null"> and dr like concat('%',#{dr},'%') </if>
<if test="drpnodeflag != null and drpnodeflag != ''"> and drpnodeflag like concat('%',#{drpnodeflag},'%') </if>
<if test="ecotypesincevfive != null and ecotypesincevfive != ''"> and ecotypesincevfive like concat('%',#{ecotypesincevfive},'%') </if>
<if test="email != null and email != ''"> and email like concat('%',#{email},'%') </if>
<if test="engname != null and engname != ''"> and engname like concat('%',#{engname},'%') </if>
<if test="fax1 != null and fax1 != ''"> and fax1 like concat('%',#{fax1},'%') </if>
<if test="fax2 != null and fax2 != ''"> and fax2 like concat('%',#{fax2},'%') </if>
<if test="freecustflag != null and freecustflag != ''"> and freecustflag like concat('%',#{freecustflag},'%') </if>
<if test="isconnflag != null and isconnflag != ''"> and isconnflag like concat('%',#{isconnflag},'%') </if>
<if test="legalbody != null and legalbody != ''"> and legalbody like concat('%',#{legalbody},'%') </if>
<if test="linkman1 != null and linkman1 != ''"> and linkman1 like concat('%',#{linkman1},'%') </if>
<if test="linkman2 != null and linkman2 != ''"> and linkman2 like concat('%',#{linkman2},'%') </if>
<if test="linkman3 != null and linkman3 != ''"> and linkman3 like concat('%',#{linkman3},'%') </if>
<if test="memo != null and memo != ''"> and memo like concat('%',#{memo},'%') </if>
<if test="mnecode != null and mnecode != ''"> and mnecode like concat('%',#{mnecode},'%') </if>
<if test="mobilephone1 != null and mobilephone1 != ''"> and mobilephone1 like concat('%',#{mobilephone1},'%') </if>
<if test="mobilephone2 != null and mobilephone2 != ''"> and mobilephone2 like concat('%',#{mobilephone2},'%') </if>
<if test="mobilephone3 != null and mobilephone3 != ''"> and mobilephone3 like concat('%',#{mobilephone3},'%') </if>
<if test="modifier != null and modifier != ''"> and modifier like concat('%',#{modifier},'%') </if>
<if test="modifytime != null and modifytime != ''"> and modifytime like concat('%',#{modifytime},'%') </if>
<if test="phone1 != null and phone1 != ''"> and phone1 like concat('%',#{phone1},'%') </if>
<if test="phone2 != null and phone2 != ''"> and phone2 like concat('%',#{phone2},'%') </if>
<if test="phone3 != null and phone3 != ''"> and phone3 like concat('%',#{phone3},'%') </if>
<if test="pkAreacl != null and pkAreacl != ''"> and pk_areacl like concat('%',#{pkAreacl},'%') </if>
<if test="pkCorp != null and pkCorp != ''"> and pk_corp like concat('%',#{pkCorp},'%') </if>
<if test="pkCorp1 != null and pkCorp1 != ''"> and pk_corp1 like concat('%',#{pkCorp1},'%') </if>
<if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc like concat('%',#{pkCubasdoc},'%') </if>
<if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> and pk_cubasdoc1 like concat('%',#{pkCubasdoc1},'%') </if>
<if test="pkPricegroup != null and pkPricegroup != ''"> and pk_pricegroup like concat('%',#{pkPricegroup},'%') </if>
<if test="registerfund != null and registerfund != ''"> and registerfund like concat('%',#{registerfund},'%') </if>
<if test="saleaddr != null and saleaddr != ''"> and saleaddr like concat('%',#{saleaddr},'%') </if>
<if test="sealflag != null and sealflag != ''"> and sealflag like concat('%',#{sealflag},'%') </if>
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid like concat('%',#{taxpayerid},'%') </if>
<if test="trade != null and trade != ''"> and trade like concat('%',#{trade},'%') </if>
<if test="ts != null and ts != ''"> and ts like concat('%',#{ts},'%') </if>
<if test="url != null and url != ''"> and url like concat('%',#{url},'%') </if>
<if test="zipcode != null and zipcode != ''"> and zipcode like concat('%',#{zipcode},'%') </if>
</trim>
<if test=" sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="BdCubasdocentity_list_or" resultMap="get-BdCubasdocEntity-result" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity">
select
<include refid="BdCubasdocEntity_Base_Column_List" />
from bd_cubasdoc
<trim prefix="where" prefixOverrides="and">
<if test="accdefault != null and accdefault != ''"> or accdefault = #{accdefault} </if>
<if test="billtemplet != null and billtemplet != ''"> or billtemplet = #{billtemplet} </if>
<if test="bp1 != null and bp1 != ''"> or bp1 = #{bp1} </if>
<if test="bp2 != null and bp2 != ''"> or bp2 = #{bp2} </if>
<if test="bp3 != null and bp3 != ''"> or bp3 = #{bp3} </if>
<if test="conaddr != null and conaddr != ''"> or conaddr = #{conaddr} </if>
<if test="correspondunit != null and correspondunit != ''"> or correspondunit = #{correspondunit} </if>
<if test="createtime != null and createtime != ''"> or createtime = #{createtime} </if>
<if test="creator != null and creator != ''"> or creator = #{creator} </if>
<if test="creditmny != null and creditmny != ''"> or creditmny = #{creditmny} </if>
<if test="custcode != null and custcode != ''"> or custcode = #{custcode} </if>
<if test="custname != null and custname != ''"> or custname = #{custname} </if>
<if test="custprop != null"> or custprop = #{custprop} </if>
<if test="custshortname != null and custshortname != ''"> or custshortname = #{custshortname} </if>
<if test="def1 != null and def1 != ''"> or def1 = #{def1} </if>
<if test="def10 != null and def10 != ''"> or def10 = #{def10} </if>
<if test="def11 != null and def11 != ''"> or def11 = #{def11} </if>
<if test="def12 != null and def12 != ''"> or def12 = #{def12} </if>
<if test="def13 != null and def13 != ''"> or def13 = #{def13} </if>
<if test="def14 != null and def14 != ''"> or def14 = #{def14} </if>
<if test="def15 != null and def15 != ''"> or def15 = #{def15} </if>
<if test="def16 != null and def16 != ''"> or def16 = #{def16} </if>
<if test="def17 != null and def17 != ''"> or def17 = #{def17} </if>
<if test="def18 != null and def18 != ''"> or def18 = #{def18} </if>
<if test="def19 != null and def19 != ''"> or def19 = #{def19} </if>
<if test="def2 != null and def2 != ''"> or def2 = #{def2} </if>
<if test="def20 != null and def20 != ''"> or def20 = #{def20} </if>
<if test="def3 != null and def3 != ''"> or def3 = #{def3} </if>
<if test="def4 != null and def4 != ''"> or def4 = #{def4} </if>
<if test="def5 != null and def5 != ''"> or def5 = #{def5} </if>
<if test="def6 != null and def6 != ''"> or def6 = #{def6} </if>
<if test="def7 != null and def7 != ''"> or def7 = #{def7} </if>
<if test="def8 != null and def8 != ''"> or def8 = #{def8} </if>
<if test="def9 != null and def9 != ''"> or def9 = #{def9} </if>
<if test="dr != null"> or dr = #{dr} </if>
<if test="drpnodeflag != null and drpnodeflag != ''"> or drpnodeflag = #{drpnodeflag} </if>
<if test="ecotypesincevfive != null and ecotypesincevfive != ''"> or ecotypesincevfive = #{ecotypesincevfive} </if>
<if test="email != null and email != ''"> or email = #{email} </if>
<if test="engname != null and engname != ''"> or engname = #{engname} </if>
<if test="fax1 != null and fax1 != ''"> or fax1 = #{fax1} </if>
<if test="fax2 != null and fax2 != ''"> or fax2 = #{fax2} </if>
<if test="freecustflag != null and freecustflag != ''"> or freecustflag = #{freecustflag} </if>
<if test="isconnflag != null and isconnflag != ''"> or isconnflag = #{isconnflag} </if>
<if test="legalbody != null and legalbody != ''"> or legalbody = #{legalbody} </if>
<if test="linkman1 != null and linkman1 != ''"> or linkman1 = #{linkman1} </if>
<if test="linkman2 != null and linkman2 != ''"> or linkman2 = #{linkman2} </if>
<if test="linkman3 != null and linkman3 != ''"> or linkman3 = #{linkman3} </if>
<if test="memo != null and memo != ''"> or memo = #{memo} </if>
<if test="mnecode != null and mnecode != ''"> or mnecode = #{mnecode} </if>
<if test="mobilephone1 != null and mobilephone1 != ''"> or mobilephone1 = #{mobilephone1} </if>
<if test="mobilephone2 != null and mobilephone2 != ''"> or mobilephone2 = #{mobilephone2} </if>
<if test="mobilephone3 != null and mobilephone3 != ''"> or mobilephone3 = #{mobilephone3} </if>
<if test="modifier != null and modifier != ''"> or modifier = #{modifier} </if>
<if test="modifytime != null and modifytime != ''"> or modifytime = #{modifytime} </if>
<if test="phone1 != null and phone1 != ''"> or phone1 = #{phone1} </if>
<if test="phone2 != null and phone2 != ''"> or phone2 = #{phone2} </if>
<if test="phone3 != null and phone3 != ''"> or phone3 = #{phone3} </if>
<if test="pkAreacl != null and pkAreacl != ''"> or pk_areacl = #{pkAreacl} </if>
<if test="pkCorp != null and pkCorp != ''"> or pk_corp = #{pkCorp} </if>
<if test="pkCorp1 != null and pkCorp1 != ''"> or pk_corp1 = #{pkCorp1} </if>
<if test="pkCubasdoc != null and pkCubasdoc != ''"> or pk_cubasdoc = #{pkCubasdoc} </if>
<if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> or pk_cubasdoc1 = #{pkCubasdoc1} </if>
<if test="pkPricegroup != null and pkPricegroup != ''"> or pk_pricegroup = #{pkPricegroup} </if>
<if test="registerfund != null and registerfund != ''"> or registerfund = #{registerfund} </if>
<if test="saleaddr != null and saleaddr != ''"> or saleaddr = #{saleaddr} </if>
<if test="sealflag != null and sealflag != ''"> or sealflag = #{sealflag} </if>
<if test="taxpayerid != null and taxpayerid != ''"> or taxpayerid = #{taxpayerid} </if>
<if test="trade != null and trade != ''"> or trade = #{trade} </if>
<if test="ts != null and ts != ''"> or ts = #{ts} </if>
<if test="url != null and url != ''"> or url = #{url} </if>
<if test="zipcode != null and zipcode != ''"> or zipcode = #{zipcode} </if>
</trim>
<if test=" sort == ''.toString() "> order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<!--<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" keyProperty="pkCubasdoc" useGeneratedKeys="true">-->
<!-- insert into bd_cubasdoc(-->
<!-- <trim suffix="" suffixOverrides=",">-->
<!-- <if test="accdefault != null and accdefault != ''"> accdefault , </if>-->
<!-- <if test="billtemplet != null and billtemplet != ''"> billtemplet , </if>-->
<!-- <if test="bp1 != null and bp1 != ''"> bp1 , </if>-->
<!-- <if test="bp2 != null and bp2 != ''"> bp2 , </if>-->
<!-- <if test="bp3 != null and bp3 != ''"> bp3 , </if>-->
<!-- <if test="conaddr != null and conaddr != ''"> conaddr , </if>-->
<!-- <if test="correspondunit != null and correspondunit != ''"> correspondunit , </if>-->
<!-- <if test="createtime != null and createtime != ''"> createtime , </if>-->
<!-- <if test="creator != null and creator != ''"> creator , </if>-->
<!-- <if test="creditmny != null and creditmny != ''"> creditmny , </if>-->
<!-- <if test="custcode != null and custcode != ''"> custcode , </if>-->
<!-- <if test="custname != null and custname != ''"> custname , </if>-->
<!-- <if test="custprop != null"> custprop , </if>-->
<!-- <if test="custshortname != null and custshortname != ''"> custshortname , </if>-->
<!-- <if test="def1 != null and def1 != ''"> def1 , </if>-->
<!-- <if test="def10 != null and def10 != ''"> def10 , </if>-->
<!-- <if test="def11 != null and def11 != ''"> def11 , </if>-->
<!-- <if test="def12 != null and def12 != ''"> def12 , </if>-->
<!-- <if test="def13 != null and def13 != ''"> def13 , </if>-->
<!-- <if test="def14 != null and def14 != ''"> def14 , </if>-->
<!-- <if test="def15 != null and def15 != ''"> def15 , </if>-->
<!-- <if test="def16 != null and def16 != ''"> def16 , </if>-->
<!-- <if test="def17 != null and def17 != ''"> def17 , </if>-->
<!-- <if test="def18 != null and def18 != ''"> def18 , </if>-->
<!-- <if test="def19 != null and def19 != ''"> def19 , </if>-->
<!-- <if test="def2 != null and def2 != ''"> def2 , </if>-->
<!-- <if test="def20 != null and def20 != ''"> def20 , </if>-->
<!-- <if test="def3 != null and def3 != ''"> def3 , </if>-->
<!-- <if test="def4 != null and def4 != ''"> def4 , </if>-->
<!-- <if test="def5 != null and def5 != ''"> def5 , </if>-->
<!-- <if test="def6 != null and def6 != ''"> def6 , </if>-->
<!-- <if test="def7 != null and def7 != ''"> def7 , </if>-->
<!-- <if test="def8 != null and def8 != ''"> def8 , </if>-->
<!-- <if test="def9 != null and def9 != ''"> def9 , </if>-->
<!-- <if test="dr != null"> dr , </if>-->
<!-- <if test="drpnodeflag != null and drpnodeflag != ''"> drpnodeflag , </if>-->
<!-- <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> ecotypesincevfive , </if>-->
<!-- <if test="email != null and email != ''"> email , </if>-->
<!-- <if test="engname != null and engname != ''"> engname , </if>-->
<!-- <if test="fax1 != null and fax1 != ''"> fax1 , </if>-->
<!-- <if test="fax2 != null and fax2 != ''"> fax2 , </if>-->
<!-- <if test="freecustflag != null and freecustflag != ''"> freecustflag , </if>-->
<!-- <if test="isconnflag != null and isconnflag != ''"> isconnflag , </if>-->
<!-- <if test="legalbody != null and legalbody != ''"> legalbody , </if>-->
<!-- <if test="linkman1 != null and linkman1 != ''"> linkman1 , </if>-->
<!-- <if test="linkman2 != null and linkman2 != ''"> linkman2 , </if>-->
<!-- <if test="linkman3 != null and linkman3 != ''"> linkman3 , </if>-->
<!-- <if test="memo != null and memo != ''"> memo , </if>-->
<!-- <if test="mnecode != null and mnecode != ''"> mnecode , </if>-->
<!-- <if test="mobilephone1 != null and mobilephone1 != ''"> mobilephone1 , </if>-->
<!-- <if test="mobilephone2 != null and mobilephone2 != ''"> mobilephone2 , </if>-->
<!-- <if test="mobilephone3 != null and mobilephone3 != ''"> mobilephone3 , </if>-->
<!-- <if test="modifier != null and modifier != ''"> modifier , </if>-->
<!-- <if test="modifytime != null and modifytime != ''"> modifytime , </if>-->
<!-- <if test="phone1 != null and phone1 != ''"> phone1 , </if>-->
<!-- <if test="phone2 != null and phone2 != ''"> phone2 , </if>-->
<!-- <if test="phone3 != null and phone3 != ''"> phone3 , </if>-->
<!-- <if test="pkAreacl != null and pkAreacl != ''"> pk_areacl , </if>-->
<!-- <if test="pkCorp != null and pkCorp != ''"> pk_corp , </if>-->
<!-- <if test="pkCorp1 != null and pkCorp1 != ''"> pk_corp1 , </if>-->
<!-- <if test="pkCubasdoc != null and pkCubasdoc != ''"> pk_cubasdoc , </if>-->
<!-- <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> pk_cubasdoc1 , </if>-->
<!-- <if test="pkPricegroup != null and pkPricegroup != ''"> pk_pricegroup , </if>-->
<!-- <if test="registerfund != null and registerfund != ''"> registerfund , </if>-->
<!-- <if test="saleaddr != null and saleaddr != ''"> saleaddr , </if>-->
<!-- <if test="sealflag != null and sealflag != ''"> sealflag , </if>-->
<!-- <if test="taxpayerid != null and taxpayerid != ''"> taxpayerid , </if>-->
<!-- <if test="trade != null and trade != ''"> trade , </if>-->
<!-- <if test="ts != null and ts != ''"> ts , </if>-->
<!-- <if test="url != null and url != ''"> url , </if>-->
<!-- <if test="zipcode != null and zipcode != ''"> zipcode , </if>-->
<!-- <if test="sorts == null ">sorts,</if>-->
<!-- <if test="sts == null ">sts,</if>-->
<!-- </trim>-->
<!-- )values(-->
<!-- <trim suffix="" suffixOverrides=",">-->
<!-- <if test="accdefault != null and accdefault != ''"> #{accdefault} ,</if>-->
<!-- <if test="billtemplet != null and billtemplet != ''"> #{billtemplet} ,</if>-->
<!-- <if test="bp1 != null and bp1 != ''"> #{bp1} ,</if>-->
<!-- <if test="bp2 != null and bp2 != ''"> #{bp2} ,</if>-->
<!-- <if test="bp3 != null and bp3 != ''"> #{bp3} ,</if>-->
<!-- <if test="conaddr != null and conaddr != ''"> #{conaddr} ,</if>-->
<!-- <if test="correspondunit != null and correspondunit != ''"> #{correspondunit} ,</if>-->
<!-- <if test="createtime != null and createtime != ''"> #{createtime} ,</if>-->
<!-- <if test="creator != null and creator != ''"> #{creator} ,</if>-->
<!-- <if test="creditmny != null and creditmny != ''"> #{creditmny} ,</if>-->
<!-- <if test="custcode != null and custcode != ''"> #{custcode} ,</if>-->
<!-- <if test="custname != null and custname != ''"> #{custname} ,</if>-->
<!-- <if test="custprop != null"> #{custprop} ,</if>-->
<!-- <if test="custshortname != null and custshortname != ''"> #{custshortname} ,</if>-->
<!-- <if test="def1 != null and def1 != ''"> #{def1} ,</if>-->
<!-- <if test="def10 != null and def10 != ''"> #{def10} ,</if>-->
<!-- <if test="def11 != null and def11 != ''"> #{def11} ,</if>-->
<!-- <if test="def12 != null and def12 != ''"> #{def12} ,</if>-->
<!-- <if test="def13 != null and def13 != ''"> #{def13} ,</if>-->
<!-- <if test="def14 != null and def14 != ''"> #{def14} ,</if>-->
<!-- <if test="def15 != null and def15 != ''"> #{def15} ,</if>-->
<!-- <if test="def16 != null and def16 != ''"> #{def16} ,</if>-->
<!-- <if test="def17 != null and def17 != ''"> #{def17} ,</if>-->
<!-- <if test="def18 != null and def18 != ''"> #{def18} ,</if>-->
<!-- <if test="def19 != null and def19 != ''"> #{def19} ,</if>-->
<!-- <if test="def2 != null and def2 != ''"> #{def2} ,</if>-->
<!-- <if test="def20 != null and def20 != ''"> #{def20} ,</if>-->
<!-- <if test="def3 != null and def3 != ''"> #{def3} ,</if>-->
<!-- <if test="def4 != null and def4 != ''"> #{def4} ,</if>-->
<!-- <if test="def5 != null and def5 != ''"> #{def5} ,</if>-->
<!-- <if test="def6 != null and def6 != ''"> #{def6} ,</if>-->
<!-- <if test="def7 != null and def7 != ''"> #{def7} ,</if>-->
<!-- <if test="def8 != null and def8 != ''"> #{def8} ,</if>-->
<!-- <if test="def9 != null and def9 != ''"> #{def9} ,</if>-->
<!-- <if test="dr != null"> #{dr} ,</if>-->
<!-- <if test="drpnodeflag != null and drpnodeflag != ''"> #{drpnodeflag} ,</if>-->
<!-- <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> #{ecotypesincevfive} ,</if>-->
<!-- <if test="email != null and email != ''"> #{email} ,</if>-->
<!-- <if test="engname != null and engname != ''"> #{engname} ,</if>-->
<!-- <if test="fax1 != null and fax1 != ''"> #{fax1} ,</if>-->
<!-- <if test="fax2 != null and fax2 != ''"> #{fax2} ,</if>-->
<!-- <if test="freecustflag != null and freecustflag != ''"> #{freecustflag} ,</if>-->
<!-- <if test="isconnflag != null and isconnflag != ''"> #{isconnflag} ,</if>-->
<!-- <if test="legalbody != null and legalbody != ''"> #{legalbody} ,</if>-->
<!-- <if test="linkman1 != null and linkman1 != ''"> #{linkman1} ,</if>-->
<!-- <if test="linkman2 != null and linkman2 != ''"> #{linkman2} ,</if>-->
<!-- <if test="linkman3 != null and linkman3 != ''"> #{linkman3} ,</if>-->
<!-- <if test="memo != null and memo != ''"> #{memo} ,</if>-->
<!-- <if test="mnecode != null and mnecode != ''"> #{mnecode} ,</if>-->
<!-- <if test="mobilephone1 != null and mobilephone1 != ''"> #{mobilephone1} ,</if>-->
<!-- <if test="mobilephone2 != null and mobilephone2 != ''"> #{mobilephone2} ,</if>-->
<!-- <if test="mobilephone3 != null and mobilephone3 != ''"> #{mobilephone3} ,</if>-->
<!-- <if test="modifier != null and modifier != ''"> #{modifier} ,</if>-->
<!-- <if test="modifytime != null and modifytime != ''"> #{modifytime} ,</if>-->
<!-- <if test="phone1 != null and phone1 != ''"> #{phone1} ,</if>-->
<!-- <if test="phone2 != null and phone2 != ''"> #{phone2} ,</if>-->
<!-- <if test="phone3 != null and phone3 != ''"> #{phone3} ,</if>-->
<!-- <if test="pkAreacl != null and pkAreacl != ''"> #{pkAreacl} ,</if>-->
<!-- <if test="pkCorp != null and pkCorp != ''"> #{pkCorp} ,</if>-->
<!-- <if test="pkCorp1 != null and pkCorp1 != ''"> #{pkCorp1} ,</if>-->
<!-- <if test="pkCubasdoc != null and pkCubasdoc != ''"> #{pkCubasdoc} ,</if>-->
<!-- <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> #{pkCubasdoc1} ,</if>-->
<!-- <if test="pkPricegroup != null and pkPricegroup != ''"> #{pkPricegroup} ,</if>-->
<!-- <if test="registerfund != null and registerfund != ''"> #{registerfund} ,</if>-->
<!-- <if test="saleaddr != null and saleaddr != ''"> #{saleaddr} ,</if>-->
<!-- <if test="sealflag != null and sealflag != ''"> #{sealflag} ,</if>-->
<!-- <if test="taxpayerid != null and taxpayerid != ''"> #{taxpayerid} ,</if>-->
<!-- <if test="trade != null and trade != ''"> #{trade} ,</if>-->
<!-- <if test="ts != null and ts != ''"> #{ts} ,</if>-->
<!-- <if test="url != null and url != ''"> #{url} ,</if>-->
<!-- <if test="zipcode != null and zipcode != ''"> #{zipcode} ,</if>-->
<!-- <if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_cubasdoc a WHERE a.sts = 'Y' ),</if>-->
<!-- <if test="sts == null ">'Y',</if>-->
<!-- </trim>-->
<!-- ) -->
<!--</insert>-->
<!-- 批量新增 -->
<!--<insert id="entityInsertBatch" keyProperty="pkCubasdoc" useGeneratedKeys="true">-->
<!-- insert into bd_cubasdoc(accdefault, billtemplet, bp1, bp2, bp3, conaddr, correspondunit, createtime, creator, creditmny, custcode, custname, custprop, custshortname, def1, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def2, def20, def3, def4, def5, def6, def7, def8, def9, dr, drpnodeflag, ecotypesincevfive, email, engname, fax1, fax2, freecustflag, isconnflag, legalbody, linkman1, linkman2, linkman3, memo, mnecode, mobilephone1, mobilephone2, mobilephone3, modifier, modifytime, phone1, phone2, phone3, pk_areacl, pk_corp, pk_corp1, pk_cubasdoc1, pk_pricegroup, registerfund, saleaddr, sealflag, taxpayerid, trade, ts, url, zipcode, sts) -->
<!-- values-->
<!-- <foreach collection="entities" item="entity" separator=",">-->
<!-- (#{entity.accdefault},#{entity.billtemplet},#{entity.bp1},#{entity.bp2},#{entity.bp3},#{entity.conaddr},#{entity.correspondunit},#{entity.createtime},#{entity.creator},#{entity.creditmny},#{entity.custcode},#{entity.custname},#{entity.custprop},#{entity.custshortname},#{entity.def1},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def2},#{entity.def20},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.dr},#{entity.drpnodeflag},#{entity.ecotypesincevfive},#{entity.email},#{entity.engname},#{entity.fax1},#{entity.fax2},#{entity.freecustflag},#{entity.isconnflag},#{entity.legalbody},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.memo},#{entity.mnecode},#{entity.mobilephone1},#{entity.mobilephone2},#{entity.mobilephone3},#{entity.modifier},#{entity.modifytime},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkAreacl},#{entity.pkCorp},#{entity.pkCorp1},#{entity.pkCubasdoc1},#{entity.pkPricegroup},#{entity.registerfund},#{entity.saleaddr},#{entity.sealflag},#{entity.taxpayerid},#{entity.trade},#{entity.ts},#{entity.url},#{entity.zipcode}, 'Y')-->
<!-- </foreach>-->
<!--</insert>-->
<!-- 批量新增或者修改-->
<!--<insert id="entityInsertOrUpdateBatch" keyProperty="pkCubasdoc" useGeneratedKeys="true">-->
<!-- insert into bd_cubasdoc(accdefault, billtemplet, bp1, bp2, bp3, conaddr, correspondunit, createtime, creator, creditmny, custcode, custname, custprop, custshortname, def1, def10, def11, def12, def13, def14, def15, def16, def17, def18, def19, def2, def20, def3, def4, def5, def6, def7, def8, def9, dr, drpnodeflag, ecotypesincevfive, email, engname, fax1, fax2, freecustflag, isconnflag, legalbody, linkman1, linkman2, linkman3, memo, mnecode, mobilephone1, mobilephone2, mobilephone3, modifier, modifytime, phone1, phone2, phone3, pk_areacl, pk_corp, pk_corp1, pk_cubasdoc1, pk_pricegroup, registerfund, saleaddr, sealflag, taxpayerid, trade, ts, url, zipcode)-->
<!-- values-->
<!-- <foreach collection="entities" item="entity" separator=",">-->
<!-- (#{entity.accdefault},#{entity.billtemplet},#{entity.bp1},#{entity.bp2},#{entity.bp3},#{entity.conaddr},#{entity.correspondunit},#{entity.createtime},#{entity.creator},#{entity.creditmny},#{entity.custcode},#{entity.custname},#{entity.custprop},#{entity.custshortname},#{entity.def1},#{entity.def10},#{entity.def11},#{entity.def12},#{entity.def13},#{entity.def14},#{entity.def15},#{entity.def16},#{entity.def17},#{entity.def18},#{entity.def19},#{entity.def2},#{entity.def20},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.dr},#{entity.drpnodeflag},#{entity.ecotypesincevfive},#{entity.email},#{entity.engname},#{entity.fax1},#{entity.fax2},#{entity.freecustflag},#{entity.isconnflag},#{entity.legalbody},#{entity.linkman1},#{entity.linkman2},#{entity.linkman3},#{entity.memo},#{entity.mnecode},#{entity.mobilephone1},#{entity.mobilephone2},#{entity.mobilephone3},#{entity.modifier},#{entity.modifytime},#{entity.phone1},#{entity.phone2},#{entity.phone3},#{entity.pkAreacl},#{entity.pkCorp},#{entity.pkCorp1},#{entity.pkCubasdoc1},#{entity.pkPricegroup},#{entity.registerfund},#{entity.saleaddr},#{entity.sealflag},#{entity.taxpayerid},#{entity.trade},#{entity.ts},#{entity.url},#{entity.zipcode})-->
<!-- </foreach>-->
<!-- on duplicate key update-->
<!-- accdefault = values(accdefault),-->
<!-- billtemplet = values(billtemplet),-->
<!-- bp1 = values(bp1),-->
<!-- bp2 = values(bp2),-->
<!-- bp3 = values(bp3),-->
<!-- conaddr = values(conaddr),-->
<!-- correspondunit = values(correspondunit),-->
<!-- createtime = values(createtime),-->
<!-- creator = values(creator),-->
<!-- creditmny = values(creditmny),-->
<!-- custcode = values(custcode),-->
<!-- custname = values(custname),-->
<!-- custprop = values(custprop),-->
<!-- custshortname = values(custshortname),-->
<!-- def1 = values(def1),-->
<!-- def10 = values(def10),-->
<!-- def11 = values(def11),-->
<!-- def12 = values(def12),-->
<!-- def13 = values(def13),-->
<!-- def14 = values(def14),-->
<!-- def15 = values(def15),-->
<!-- def16 = values(def16),-->
<!-- def17 = values(def17),-->
<!-- def18 = values(def18),-->
<!-- def19 = values(def19),-->
<!-- def2 = values(def2),-->
<!-- def20 = values(def20),-->
<!-- def3 = values(def3),-->
<!-- def4 = values(def4),-->
<!-- def5 = values(def5),-->
<!-- def6 = values(def6),-->
<!-- def7 = values(def7),-->
<!-- def8 = values(def8),-->
<!-- def9 = values(def9),-->
<!-- dr = values(dr),-->
<!-- drpnodeflag = values(drpnodeflag),-->
<!-- ecotypesincevfive = values(ecotypesincevfive),-->
<!-- email = values(email),-->
<!-- engname = values(engname),-->
<!-- fax1 = values(fax1),-->
<!-- fax2 = values(fax2),-->
<!-- freecustflag = values(freecustflag),-->
<!-- isconnflag = values(isconnflag),-->
<!-- legalbody = values(legalbody),-->
<!-- linkman1 = values(linkman1),-->
<!-- linkman2 = values(linkman2),-->
<!-- linkman3 = values(linkman3),-->
<!-- memo = values(memo),-->
<!-- mnecode = values(mnecode),-->
<!-- mobilephone1 = values(mobilephone1),-->
<!-- mobilephone2 = values(mobilephone2),-->
<!-- mobilephone3 = values(mobilephone3),-->
<!-- modifier = values(modifier),-->
<!-- modifytime = values(modifytime),-->
<!-- phone1 = values(phone1),-->
<!-- phone2 = values(phone2),-->
<!-- phone3 = values(phone3),-->
<!-- pk_areacl = values(pk_areacl),-->
<!-- pk_corp = values(pk_corp),-->
<!-- pk_corp1 = values(pk_corp1),-->
<!-- pk_cubasdoc1 = values(pk_cubasdoc1),-->
<!-- pk_pricegroup = values(pk_pricegroup),-->
<!-- registerfund = values(registerfund),-->
<!-- saleaddr = values(saleaddr),-->
<!-- sealflag = values(sealflag),-->
<!-- taxpayerid = values(taxpayerid),-->
<!-- trade = values(trade),-->
<!-- ts = values(ts),-->
<!-- url = values(url),-->
<!-- zipcode = values(zipcode)</insert>-->
<!--通过主键修改方法-->
<!--<update id="entity_update" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" >-->
<!--update bd_cubasdoc set-->
<!--<trim suffix="" suffixOverrides=",">-->
<!-- <if test="accdefault != null and accdefault != ''"> accdefault = #{accdefault},</if>-->
<!-- <if test="billtemplet != null and billtemplet != ''"> billtemplet = #{billtemplet},</if>-->
<!-- <if test="bp1 != null and bp1 != ''"> bp1 = #{bp1},</if>-->
<!-- <if test="bp2 != null and bp2 != ''"> bp2 = #{bp2},</if>-->
<!-- <if test="bp3 != null and bp3 != ''"> bp3 = #{bp3},</if>-->
<!-- <if test="conaddr != null and conaddr != ''"> conaddr = #{conaddr},</if>-->
<!-- <if test="correspondunit != null and correspondunit != ''"> correspondunit = #{correspondunit},</if>-->
<!-- <if test="createtime != null and createtime != ''"> createtime = #{createtime},</if>-->
<!-- <if test="creator != null and creator != ''"> creator = #{creator},</if>-->
<!-- <if test="creditmny != null and creditmny != ''"> creditmny = #{creditmny},</if>-->
<!-- <if test="custcode != null and custcode != ''"> custcode = #{custcode},</if>-->
<!-- <if test="custname != null and custname != ''"> custname = #{custname},</if>-->
<!-- <if test="custprop != null"> custprop = #{custprop},</if>-->
<!-- <if test="custshortname != null and custshortname != ''"> custshortname = #{custshortname},</if>-->
<!-- <if test="def1 != null and def1 != ''"> def1 = #{def1},</if>-->
<!-- <if test="def10 != null and def10 != ''"> def10 = #{def10},</if>-->
<!-- <if test="def11 != null and def11 != ''"> def11 = #{def11},</if>-->
<!-- <if test="def12 != null and def12 != ''"> def12 = #{def12},</if>-->
<!-- <if test="def13 != null and def13 != ''"> def13 = #{def13},</if>-->
<!-- <if test="def14 != null and def14 != ''"> def14 = #{def14},</if>-->
<!-- <if test="def15 != null and def15 != ''"> def15 = #{def15},</if>-->
<!-- <if test="def16 != null and def16 != ''"> def16 = #{def16},</if>-->
<!-- <if test="def17 != null and def17 != ''"> def17 = #{def17},</if>-->
<!-- <if test="def18 != null and def18 != ''"> def18 = #{def18},</if>-->
<!-- <if test="def19 != null and def19 != ''"> def19 = #{def19},</if>-->
<!-- <if test="def2 != null and def2 != ''"> def2 = #{def2},</if>-->
<!-- <if test="def20 != null and def20 != ''"> def20 = #{def20},</if>-->
<!-- <if test="def3 != null and def3 != ''"> def3 = #{def3},</if>-->
<!-- <if test="def4 != null and def4 != ''"> def4 = #{def4},</if>-->
<!-- <if test="def5 != null and def5 != ''"> def5 = #{def5},</if>-->
<!-- <if test="def6 != null and def6 != ''"> def6 = #{def6},</if>-->
<!-- <if test="def7 != null and def7 != ''"> def7 = #{def7},</if>-->
<!-- <if test="def8 != null and def8 != ''"> def8 = #{def8},</if>-->
<!-- <if test="def9 != null and def9 != ''"> def9 = #{def9},</if>-->
<!-- <if test="dr != null"> dr = #{dr},</if>-->
<!-- <if test="drpnodeflag != null and drpnodeflag != ''"> drpnodeflag = #{drpnodeflag},</if>-->
<!-- <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> ecotypesincevfive = #{ecotypesincevfive},</if>-->
<!-- <if test="email != null and email != ''"> email = #{email},</if>-->
<!-- <if test="engname != null and engname != ''"> engname = #{engname},</if>-->
<!-- <if test="fax1 != null and fax1 != ''"> fax1 = #{fax1},</if>-->
<!-- <if test="fax2 != null and fax2 != ''"> fax2 = #{fax2},</if>-->
<!-- <if test="freecustflag != null and freecustflag != ''"> freecustflag = #{freecustflag},</if>-->
<!-- <if test="isconnflag != null and isconnflag != ''"> isconnflag = #{isconnflag},</if>-->
<!-- <if test="legalbody != null and legalbody != ''"> legalbody = #{legalbody},</if>-->
<!-- <if test="linkman1 != null and linkman1 != ''"> linkman1 = #{linkman1},</if>-->
<!-- <if test="linkman2 != null and linkman2 != ''"> linkman2 = #{linkman2},</if>-->
<!-- <if test="linkman3 != null and linkman3 != ''"> linkman3 = #{linkman3},</if>-->
<!-- <if test="memo != null and memo != ''"> memo = #{memo},</if>-->
<!-- <if test="mnecode != null and mnecode != ''"> mnecode = #{mnecode},</if>-->
<!-- <if test="mobilephone1 != null and mobilephone1 != ''"> mobilephone1 = #{mobilephone1},</if>-->
<!-- <if test="mobilephone2 != null and mobilephone2 != ''"> mobilephone2 = #{mobilephone2},</if>-->
<!-- <if test="mobilephone3 != null and mobilephone3 != ''"> mobilephone3 = #{mobilephone3},</if>-->
<!-- <if test="modifier != null and modifier != ''"> modifier = #{modifier},</if>-->
<!-- <if test="modifytime != null and modifytime != ''"> modifytime = #{modifytime},</if>-->
<!-- <if test="phone1 != null and phone1 != ''"> phone1 = #{phone1},</if>-->
<!-- <if test="phone2 != null and phone2 != ''"> phone2 = #{phone2},</if>-->
<!-- <if test="phone3 != null and phone3 != ''"> phone3 = #{phone3},</if>-->
<!-- <if test="pkAreacl != null and pkAreacl != ''"> pk_areacl = #{pkAreacl},</if>-->
<!-- <if test="pkCorp != null and pkCorp != ''"> pk_corp = #{pkCorp},</if>-->
<!-- <if test="pkCorp1 != null and pkCorp1 != ''"> pk_corp1 = #{pkCorp1},</if>-->
<!-- <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> pk_cubasdoc1 = #{pkCubasdoc1},</if>-->
<!-- <if test="pkPricegroup != null and pkPricegroup != ''"> pk_pricegroup = #{pkPricegroup},</if>-->
<!-- <if test="registerfund != null and registerfund != ''"> registerfund = #{registerfund},</if>-->
<!-- <if test="saleaddr != null and saleaddr != ''"> saleaddr = #{saleaddr},</if>-->
<!-- <if test="sealflag != null and sealflag != ''"> sealflag = #{sealflag},</if>-->
<!-- <if test="taxpayerid != null and taxpayerid != ''"> taxpayerid = #{taxpayerid},</if>-->
<!-- <if test="trade != null and trade != ''"> trade = #{trade},</if>-->
<!-- <if test="ts != null and ts != ''"> ts = #{ts},</if>-->
<!-- <if test="url != null and url != ''"> url = #{url},</if>-->
<!-- <if test="zipcode != null and zipcode != ''"> zipcode = #{zipcode},</if>-->
<!--</trim>-->
<!--where pk_cubasdoc = #{pkCubasdoc}-->
<!--</update>-->
<!-- 逻辑删除 -->
<!--<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" >-->
<!--update bd_cubasdoc set sts= 'N'-->
<!--where pk_cubasdoc = #{pkCubasdoc}-->
<!--</update>-->
<!-- 多条件逻辑删除 -->
<!--<update id="entity_logicDelete_Multi_Condition" parameterType = "com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" >-->
<!--update bd_cubasdoc set sts= 'N' -->
<!-- <trim prefix="where" prefixOverrides="and"> -->
<!-- <if test="accdefault != null and accdefault != ''"> and accdefault = #{accdefault} </if>-->
<!-- <if test="billtemplet != null and billtemplet != ''"> and billtemplet = #{billtemplet} </if>-->
<!-- <if test="bp1 != null and bp1 != ''"> and bp1 = #{bp1} </if>-->
<!-- <if test="bp2 != null and bp2 != ''"> and bp2 = #{bp2} </if>-->
<!-- <if test="bp3 != null and bp3 != ''"> and bp3 = #{bp3} </if>-->
<!-- <if test="conaddr != null and conaddr != ''"> and conaddr = #{conaddr} </if>-->
<!-- <if test="correspondunit != null and correspondunit != ''"> and correspondunit = #{correspondunit} </if>-->
<!-- <if test="createtime != null and createtime != ''"> and createtime = #{createtime} </if>-->
<!-- <if test="creator != null and creator != ''"> and creator = #{creator} </if>-->
<!-- <if test="creditmny != null and creditmny != ''"> and creditmny = #{creditmny} </if>-->
<!-- <if test="custcode != null and custcode != ''"> and custcode = #{custcode} </if>-->
<!-- <if test="custname != null and custname != ''"> and custname = #{custname} </if>-->
<!-- <if test="custprop != null"> and custprop = #{custprop} </if>-->
<!-- <if test="custshortname != null and custshortname != ''"> and custshortname = #{custshortname} </if>-->
<!-- <if test="def1 != null and def1 != ''"> and def1 = #{def1} </if>-->
<!-- <if test="def10 != null and def10 != ''"> and def10 = #{def10} </if>-->
<!-- <if test="def11 != null and def11 != ''"> and def11 = #{def11} </if>-->
<!-- <if test="def12 != null and def12 != ''"> and def12 = #{def12} </if>-->
<!-- <if test="def13 != null and def13 != ''"> and def13 = #{def13} </if>-->
<!-- <if test="def14 != null and def14 != ''"> and def14 = #{def14} </if>-->
<!-- <if test="def15 != null and def15 != ''"> and def15 = #{def15} </if>-->
<!-- <if test="def16 != null and def16 != ''"> and def16 = #{def16} </if>-->
<!-- <if test="def17 != null and def17 != ''"> and def17 = #{def17} </if>-->
<!-- <if test="def18 != null and def18 != ''"> and def18 = #{def18} </if>-->
<!-- <if test="def19 != null and def19 != ''"> and def19 = #{def19} </if>-->
<!-- <if test="def2 != null and def2 != ''"> and def2 = #{def2} </if>-->
<!-- <if test="def20 != null and def20 != ''"> and def20 = #{def20} </if>-->
<!-- <if test="def3 != null and def3 != ''"> and def3 = #{def3} </if>-->
<!-- <if test="def4 != null and def4 != ''"> and def4 = #{def4} </if>-->
<!-- <if test="def5 != null and def5 != ''"> and def5 = #{def5} </if>-->
<!-- <if test="def6 != null and def6 != ''"> and def6 = #{def6} </if>-->
<!-- <if test="def7 != null and def7 != ''"> and def7 = #{def7} </if>-->
<!-- <if test="def8 != null and def8 != ''"> and def8 = #{def8} </if>-->
<!-- <if test="def9 != null and def9 != ''"> and def9 = #{def9} </if>-->
<!-- <if test="dr != null"> and dr = #{dr} </if>-->
<!-- <if test="drpnodeflag != null and drpnodeflag != ''"> and drpnodeflag = #{drpnodeflag} </if>-->
<!-- <if test="ecotypesincevfive != null and ecotypesincevfive != ''"> and ecotypesincevfive = #{ecotypesincevfive} </if>-->
<!-- <if test="email != null and email != ''"> and email = #{email} </if>-->
<!-- <if test="engname != null and engname != ''"> and engname = #{engname} </if>-->
<!-- <if test="fax1 != null and fax1 != ''"> and fax1 = #{fax1} </if>-->
<!-- <if test="fax2 != null and fax2 != ''"> and fax2 = #{fax2} </if>-->
<!-- <if test="freecustflag != null and freecustflag != ''"> and freecustflag = #{freecustflag} </if>-->
<!-- <if test="isconnflag != null and isconnflag != ''"> and isconnflag = #{isconnflag} </if>-->
<!-- <if test="legalbody != null and legalbody != ''"> and legalbody = #{legalbody} </if>-->
<!-- <if test="linkman1 != null and linkman1 != ''"> and linkman1 = #{linkman1} </if>-->
<!-- <if test="linkman2 != null and linkman2 != ''"> and linkman2 = #{linkman2} </if>-->
<!-- <if test="linkman3 != null and linkman3 != ''"> and linkman3 = #{linkman3} </if>-->
<!-- <if test="memo != null and memo != ''"> and memo = #{memo} </if>-->
<!-- <if test="mnecode != null and mnecode != ''"> and mnecode = #{mnecode} </if>-->
<!-- <if test="mobilephone1 != null and mobilephone1 != ''"> and mobilephone1 = #{mobilephone1} </if>-->
<!-- <if test="mobilephone2 != null and mobilephone2 != ''"> and mobilephone2 = #{mobilephone2} </if>-->
<!-- <if test="mobilephone3 != null and mobilephone3 != ''"> and mobilephone3 = #{mobilephone3} </if>-->
<!-- <if test="modifier != null and modifier != ''"> and modifier = #{modifier} </if>-->
<!-- <if test="modifytime != null and modifytime != ''"> and modifytime = #{modifytime} </if>-->
<!-- <if test="phone1 != null and phone1 != ''"> and phone1 = #{phone1} </if>-->
<!-- <if test="phone2 != null and phone2 != ''"> and phone2 = #{phone2} </if>-->
<!-- <if test="phone3 != null and phone3 != ''"> and phone3 = #{phone3} </if>-->
<!-- <if test="pkAreacl != null and pkAreacl != ''"> and pk_areacl = #{pkAreacl} </if>-->
<!-- <if test="pkCorp != null and pkCorp != ''"> and pk_corp = #{pkCorp} </if>-->
<!-- <if test="pkCorp1 != null and pkCorp1 != ''"> and pk_corp1 = #{pkCorp1} </if>-->
<!-- <if test="pkCubasdoc != null and pkCubasdoc != ''"> and pk_cubasdoc = #{pkCubasdoc} </if>-->
<!-- <if test="pkCubasdoc1 != null and pkCubasdoc1 != ''"> and pk_cubasdoc1 = #{pkCubasdoc1} </if>-->
<!-- <if test="pkPricegroup != null and pkPricegroup != ''"> and pk_pricegroup = #{pkPricegroup} </if>-->
<!-- <if test="registerfund != null and registerfund != ''"> and registerfund = #{registerfund} </if>-->
<!-- <if test="saleaddr != null and saleaddr != ''"> and saleaddr = #{saleaddr} </if>-->
<!-- <if test="sealflag != null and sealflag != ''"> and sealflag = #{sealflag} </if>-->
<!-- <if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>-->
<!-- <if test="trade != null and trade != ''"> and trade = #{trade} </if>-->
<!-- <if test="ts != null and ts != ''"> and ts = #{ts} </if>-->
<!-- <if test="url != null and url != ''"> and url = #{url} </if>-->
<!-- <if test="zipcode != null and zipcode != ''"> and zipcode = #{zipcode} </if>-->
<!-- and sts='Y'-->
<!-- </trim>-->
<!--</update>-->
<!--通过主键删除-->
<!--<delete id="entity_delete">-->
<!-- delete from bd_cubasdoc where pk_cubasdoc = #{pkCubasdoc}-->
<!--</delete>-->
<!-- 根据客商管理档案的基础档案主键,查询客商管理档案信息-->
<select id="queryBdCumandocByPkCumandoc" parameterType="com.hzya.frame.plugin.lets.entity.BdCubasdocEntity" resultMap="get-BdCubasdocEntity-result">
select bc.* from bd_cumandoc bca
left join bd_cubasdoc bc
on bca.pk_cubasdoc = bc.pk_cubasdoc
where
bca.dr = 0
and bc.dr = 0
and bca.pk_cumandoc = #{pk_cumandoc}
and bca.pk_corp = #{pkCorp}
</select>
<!--sm_user根据pk查username-->
<select id="selectUserNameByPk" parameterType="String" resultType="String">
select user_name from sm_user where cuserid = #{cuserid} and dr=0
</select>
<!--and bca.custflag = #{custflag}-->
</mapper>

View File

@ -0,0 +1,865 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdCumandoc)实体类-客商管理档案
*
* @author makejava
* @since 2023-08-25 09:42:24
*/
public class BdCumandocEntity extends BaseEntity {
private String accawmny;
private String acclimit;
private String acclimitcontrol;
private String acclmtbegindate;
private String balancemny;
private String bp;
private String busawmny;
private String cmnecode;
private String cooperateflag;
private String cooperatingdayfrom;
private String cooperatingdayto;
private String correspsettleunit;
private String createtime;
private String creator;
private String creditcontrol;
private String creditlevel;
private String creditlimitnum;
private String creditmny;
private String creditmoney;
private Long credlimitflag;
private String custflag;
private Long custstate;
private String def1;
private String def10;
private String def11;
private String def12;
private String def13;
private String def14;
private String def15;
private String def16;
private String def17;
private String def18;
private String def19;
private String def2;
private String def20;
private String def21;
private String def22;
private String def23;
private String def24;
private String def25;
private String def26;
private String def27;
private String def28;
private String def29;
private String def3;
private String def30;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String developdate;
private String diffcurrflag;
private String discountrate;
private Long dr;
private String freeofacclmtcheck;
private String freeofcremnycheck;
private String frozendate;
private String frozenflag;
private Long grade;
private Long innerctldays;
private String iounit;
private String isagent;
private String ispromtesettlement;
private String linkman;
private String memo;
private String mobilephone;
private String modifier;
private String modifytime;
private String ordawmny;
private String pkCalbody;
private String pkCorp;
private String pkCubasdoc;
private String pkCumandoc;
private String pkCurrtype1;
private String pkCusmandoc2;
private String pkCusmandoc3;
private String pkDefbusitype;
private String pkPayterm;
private String pkPricegroupcorp;
private String pkRespdept1;
private String pkResppsn1;
private String pkSalestru;
private String pkSendtype;
private String pkSettleunit;
private String pkStordoc2;
private Long prepaidratio;
private String ratifydate;
private String sealflag;
private Long stockpriceratio;
private String testsalemoney;
private String ts;
/**
* 多个custflag值查询
*/
private String custflags;
public String getCustflags() {
return custflags;
}
public void setCustflags(String custflags) {
this.custflags = custflags;
}
public String getAccawmny() {
return accawmny;
}
public void setAccawmny(String accawmny) {
this.accawmny = accawmny;
}
public String getAcclimit() {
return acclimit;
}
public void setAcclimit(String acclimit) {
this.acclimit = acclimit;
}
public String getAcclimitcontrol() {
return acclimitcontrol;
}
public void setAcclimitcontrol(String acclimitcontrol) {
this.acclimitcontrol = acclimitcontrol;
}
public String getAcclmtbegindate() {
return acclmtbegindate;
}
public void setAcclmtbegindate(String acclmtbegindate) {
this.acclmtbegindate = acclmtbegindate;
}
public String getBalancemny() {
return balancemny;
}
public void setBalancemny(String balancemny) {
this.balancemny = balancemny;
}
public String getBp() {
return bp;
}
public void setBp(String bp) {
this.bp = bp;
}
public String getBusawmny() {
return busawmny;
}
public void setBusawmny(String busawmny) {
this.busawmny = busawmny;
}
public String getCmnecode() {
return cmnecode;
}
public void setCmnecode(String cmnecode) {
this.cmnecode = cmnecode;
}
public String getCooperateflag() {
return cooperateflag;
}
public void setCooperateflag(String cooperateflag) {
this.cooperateflag = cooperateflag;
}
public String getCooperatingdayfrom() {
return cooperatingdayfrom;
}
public void setCooperatingdayfrom(String cooperatingdayfrom) {
this.cooperatingdayfrom = cooperatingdayfrom;
}
public String getCooperatingdayto() {
return cooperatingdayto;
}
public void setCooperatingdayto(String cooperatingdayto) {
this.cooperatingdayto = cooperatingdayto;
}
public String getCorrespsettleunit() {
return correspsettleunit;
}
public void setCorrespsettleunit(String correspsettleunit) {
this.correspsettleunit = correspsettleunit;
}
public String getCreatetime() {
return createtime;
}
public void setCreatetime(String createtime) {
this.createtime = createtime;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public String getCreditcontrol() {
return creditcontrol;
}
public void setCreditcontrol(String creditcontrol) {
this.creditcontrol = creditcontrol;
}
public String getCreditlevel() {
return creditlevel;
}
public void setCreditlevel(String creditlevel) {
this.creditlevel = creditlevel;
}
public String getCreditlimitnum() {
return creditlimitnum;
}
public void setCreditlimitnum(String creditlimitnum) {
this.creditlimitnum = creditlimitnum;
}
public String getCreditmny() {
return creditmny;
}
public void setCreditmny(String creditmny) {
this.creditmny = creditmny;
}
public String getCreditmoney() {
return creditmoney;
}
public void setCreditmoney(String creditmoney) {
this.creditmoney = creditmoney;
}
public Long getCredlimitflag() {
return credlimitflag;
}
public void setCredlimitflag(Long credlimitflag) {
this.credlimitflag = credlimitflag;
}
public String getCustflag() {
return custflag;
}
public void setCustflag(String custflag) {
this.custflag = custflag;
}
public Long getCuststate() {
return custstate;
}
public void setCuststate(Long custstate) {
this.custstate = custstate;
}
public String getDef1() {
return def1;
}
public void setDef1(String def1) {
this.def1 = def1;
}
public String getDef10() {
return def10;
}
public void setDef10(String def10) {
this.def10 = def10;
}
public String getDef11() {
return def11;
}
public void setDef11(String def11) {
this.def11 = def11;
}
public String getDef12() {
return def12;
}
public void setDef12(String def12) {
this.def12 = def12;
}
public String getDef13() {
return def13;
}
public void setDef13(String def13) {
this.def13 = def13;
}
public String getDef14() {
return def14;
}
public void setDef14(String def14) {
this.def14 = def14;
}
public String getDef15() {
return def15;
}
public void setDef15(String def15) {
this.def15 = def15;
}
public String getDef16() {
return def16;
}
public void setDef16(String def16) {
this.def16 = def16;
}
public String getDef17() {
return def17;
}
public void setDef17(String def17) {
this.def17 = def17;
}
public String getDef18() {
return def18;
}
public void setDef18(String def18) {
this.def18 = def18;
}
public String getDef19() {
return def19;
}
public void setDef19(String def19) {
this.def19 = def19;
}
public String getDef2() {
return def2;
}
public void setDef2(String def2) {
this.def2 = def2;
}
public String getDef20() {
return def20;
}
public void setDef20(String def20) {
this.def20 = def20;
}
public String getDef21() {
return def21;
}
public void setDef21(String def21) {
this.def21 = def21;
}
public String getDef22() {
return def22;
}
public void setDef22(String def22) {
this.def22 = def22;
}
public String getDef23() {
return def23;
}
public void setDef23(String def23) {
this.def23 = def23;
}
public String getDef24() {
return def24;
}
public void setDef24(String def24) {
this.def24 = def24;
}
public String getDef25() {
return def25;
}
public void setDef25(String def25) {
this.def25 = def25;
}
public String getDef26() {
return def26;
}
public void setDef26(String def26) {
this.def26 = def26;
}
public String getDef27() {
return def27;
}
public void setDef27(String def27) {
this.def27 = def27;
}
public String getDef28() {
return def28;
}
public void setDef28(String def28) {
this.def28 = def28;
}
public String getDef29() {
return def29;
}
public void setDef29(String def29) {
this.def29 = def29;
}
public String getDef3() {
return def3;
}
public void setDef3(String def3) {
this.def3 = def3;
}
public String getDef30() {
return def30;
}
public void setDef30(String def30) {
this.def30 = def30;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public String getDef6() {
return def6;
}
public void setDef6(String def6) {
this.def6 = def6;
}
public String getDef7() {
return def7;
}
public void setDef7(String def7) {
this.def7 = def7;
}
public String getDef8() {
return def8;
}
public void setDef8(String def8) {
this.def8 = def8;
}
public String getDef9() {
return def9;
}
public void setDef9(String def9) {
this.def9 = def9;
}
public String getDevelopdate() {
return developdate;
}
public void setDevelopdate(String developdate) {
this.developdate = developdate;
}
public String getDiffcurrflag() {
return diffcurrflag;
}
public void setDiffcurrflag(String diffcurrflag) {
this.diffcurrflag = diffcurrflag;
}
public String getDiscountrate() {
return discountrate;
}
public void setDiscountrate(String discountrate) {
this.discountrate = discountrate;
}
public Long getDr() {
return dr;
}
public void setDr(Long dr) {
this.dr = dr;
}
public String getFreeofacclmtcheck() {
return freeofacclmtcheck;
}
public void setFreeofacclmtcheck(String freeofacclmtcheck) {
this.freeofacclmtcheck = freeofacclmtcheck;
}
public String getFreeofcremnycheck() {
return freeofcremnycheck;
}
public void setFreeofcremnycheck(String freeofcremnycheck) {
this.freeofcremnycheck = freeofcremnycheck;
}
public String getFrozendate() {
return frozendate;
}
public void setFrozendate(String frozendate) {
this.frozendate = frozendate;
}
public String getFrozenflag() {
return frozenflag;
}
public void setFrozenflag(String frozenflag) {
this.frozenflag = frozenflag;
}
public Long getGrade() {
return grade;
}
public void setGrade(Long grade) {
this.grade = grade;
}
public Long getInnerctldays() {
return innerctldays;
}
public void setInnerctldays(Long innerctldays) {
this.innerctldays = innerctldays;
}
public String getIounit() {
return iounit;
}
public void setIounit(String iounit) {
this.iounit = iounit;
}
public String getIsagent() {
return isagent;
}
public void setIsagent(String isagent) {
this.isagent = isagent;
}
public String getIspromtesettlement() {
return ispromtesettlement;
}
public void setIspromtesettlement(String ispromtesettlement) {
this.ispromtesettlement = ispromtesettlement;
}
public String getLinkman() {
return linkman;
}
public void setLinkman(String linkman) {
this.linkman = linkman;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public String getMobilephone() {
return mobilephone;
}
public void setMobilephone(String mobilephone) {
this.mobilephone = mobilephone;
}
public String getModifier() {
return modifier;
}
public void setModifier(String modifier) {
this.modifier = modifier;
}
public String getModifytime() {
return modifytime;
}
public void setModifytime(String modifytime) {
this.modifytime = modifytime;
}
public String getOrdawmny() {
return ordawmny;
}
public void setOrdawmny(String ordawmny) {
this.ordawmny = ordawmny;
}
public String getPkCalbody() {
return pkCalbody;
}
public void setPkCalbody(String pkCalbody) {
this.pkCalbody = pkCalbody;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getPkCubasdoc() {
return pkCubasdoc;
}
public void setPkCubasdoc(String pkCubasdoc) {
this.pkCubasdoc = pkCubasdoc;
}
public String getPkCumandoc() {
return pkCumandoc;
}
public void setPkCumandoc(String pkCumandoc) {
this.pkCumandoc = pkCumandoc;
}
public String getPkCurrtype1() {
return pkCurrtype1;
}
public void setPkCurrtype1(String pkCurrtype1) {
this.pkCurrtype1 = pkCurrtype1;
}
public String getPkCusmandoc2() {
return pkCusmandoc2;
}
public void setPkCusmandoc2(String pkCusmandoc2) {
this.pkCusmandoc2 = pkCusmandoc2;
}
public String getPkCusmandoc3() {
return pkCusmandoc3;
}
public void setPkCusmandoc3(String pkCusmandoc3) {
this.pkCusmandoc3 = pkCusmandoc3;
}
public String getPkDefbusitype() {
return pkDefbusitype;
}
public void setPkDefbusitype(String pkDefbusitype) {
this.pkDefbusitype = pkDefbusitype;
}
public String getPkPayterm() {
return pkPayterm;
}
public void setPkPayterm(String pkPayterm) {
this.pkPayterm = pkPayterm;
}
public String getPkPricegroupcorp() {
return pkPricegroupcorp;
}
public void setPkPricegroupcorp(String pkPricegroupcorp) {
this.pkPricegroupcorp = pkPricegroupcorp;
}
public String getPkRespdept1() {
return pkRespdept1;
}
public void setPkRespdept1(String pkRespdept1) {
this.pkRespdept1 = pkRespdept1;
}
public String getPkResppsn1() {
return pkResppsn1;
}
public void setPkResppsn1(String pkResppsn1) {
this.pkResppsn1 = pkResppsn1;
}
public String getPkSalestru() {
return pkSalestru;
}
public void setPkSalestru(String pkSalestru) {
this.pkSalestru = pkSalestru;
}
public String getPkSendtype() {
return pkSendtype;
}
public void setPkSendtype(String pkSendtype) {
this.pkSendtype = pkSendtype;
}
public String getPkSettleunit() {
return pkSettleunit;
}
public void setPkSettleunit(String pkSettleunit) {
this.pkSettleunit = pkSettleunit;
}
public String getPkStordoc2() {
return pkStordoc2;
}
public void setPkStordoc2(String pkStordoc2) {
this.pkStordoc2 = pkStordoc2;
}
public Long getPrepaidratio() {
return prepaidratio;
}
public void setPrepaidratio(Long prepaidratio) {
this.prepaidratio = prepaidratio;
}
public String getRatifydate() {
return ratifydate;
}
public void setRatifydate(String ratifydate) {
this.ratifydate = ratifydate;
}
public String getSealflag() {
return sealflag;
}
public void setSealflag(String sealflag) {
this.sealflag = sealflag;
}
public Long getStockpriceratio() {
return stockpriceratio;
}
public void setStockpriceratio(Long stockpriceratio) {
this.stockpriceratio = stockpriceratio;
}
public String getTestsalemoney() {
return testsalemoney;
}
public void setTestsalemoney(String testsalemoney) {
this.testsalemoney = testsalemoney;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,124 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdCustbank)实体类
*
* @author makejava
* @since 2023-12-30 09:37:43
*/
public class BdCustbankEntity extends BaseEntity {
private String accaddr;
private String accname;
private String account;
private String defflag;
private Integer dr;
private String memo;
private String pkAccbank;
private String pkCorp;
private String pkCubasdoc;
private String pkCurrtype;
private String pkCustbank;
private String ts;
public String getAccaddr() {
return accaddr;
}
public void setAccaddr(String accaddr) {
this.accaddr = accaddr;
}
public String getAccname() {
return accname;
}
public void setAccname(String accname) {
this.accname = accname;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getDefflag() {
return defflag;
}
public void setDefflag(String defflag) {
this.defflag = defflag;
}
public Integer getDr() {
return dr;
}
public void setDr(Integer dr) {
this.dr = dr;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public String getPkAccbank() {
return pkAccbank;
}
public void setPkAccbank(String pkAccbank) {
this.pkAccbank = pkAccbank;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getPkCubasdoc() {
return pkCubasdoc;
}
public void setPkCubasdoc(String pkCubasdoc) {
this.pkCubasdoc = pkCubasdoc;
}
public String getPkCurrtype() {
return pkCurrtype;
}
public void setPkCurrtype(String pkCurrtype) {
this.pkCurrtype = pkCurrtype;
}
public String getPkCustbank() {
return pkCustbank;
}
public void setPkCustbank(String pkCustbank) {
this.pkCustbank = pkCustbank;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
}

View File

@ -0,0 +1,256 @@
<?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.lets.dao.impl.BdCustbankDaoImpl">
<resultMap id="get-BdCustbankEntity-result" type="com.hzya.frame.plugin.lets.entity.BdCustbankEntity">
<result property="accaddr" column="accaddr" jdbcType="VARCHAR"/>
<result property="accname" column="accname" jdbcType="VARCHAR"/>
<result property="account" column="account" jdbcType="VARCHAR"/>
<result property="defflag" column="defflag" jdbcType="VARCHAR"/>
<result property="dr" column="dr" jdbcType="INTEGER"/>
<result property="memo" column="memo" jdbcType="VARCHAR"/>
<result property="pkAccbank" column="pk_accbank" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
<result property="pkCubasdoc" column="pk_cubasdoc" jdbcType="VARCHAR"/>
<result property="pkCurrtype" column="pk_currtype" jdbcType="VARCHAR"/>
<result property="pkCustbank" column="pk_custbank" jdbcType="VARCHAR"/>
<result property="ts" column="ts" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id="BdCustbankEntity_Base_Column_List">
accaddr
,accname
,account
,defflag
,dr
,memo
,pk_accbank
,pk_corp
,pk_cubasdoc
,pk_currtype
,pk_custbank
,ts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-BdCustbankEntity-result"
parameterType="com.hzya.frame.plugin.lets.entity.BdCustbankEntity">
select
<include refid="BdCustbankEntity_Base_Column_List"/>
from bd_custbank
<trim prefix="where" prefixOverrides="and">
<if test="accaddr != null and accaddr != ''">and accaddr = #{accaddr}</if>
<if test="accname != null and accname != ''">and accname = #{accname}</if>
<if test="account != null and account != ''">and account = #{account}</if>
<if test="defflag != null and defflag != ''">and defflag = #{defflag}</if>
<if test="dr != null">and dr = #{dr}</if>
<if test="memo != null and memo != ''">and memo = #{memo}</if>
<if test="pkAccbank != null and pkAccbank != ''">and pk_accbank = #{pkAccbank}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="pkCubasdoc != null and pkCubasdoc != ''">and pk_cubasdoc = #{pkCubasdoc}</if>
<if test="pkCurrtype != null and pkCurrtype != ''">and pk_currtype = #{pkCurrtype}</if>
<if test="pkCustbank != null and pkCustbank != ''">and pk_custbank = #{pkCustbank}</if>
<if test="ts != null and ts != ''">and ts = #{ts}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer" parameterType="com.hzya.frame.plugin.lets.entity.BdCustbankEntity">
select count(1) from bd_custbank
<trim prefix="where" prefixOverrides="and">
<if test="accaddr != null and accaddr != ''">and accaddr = #{accaddr}</if>
<if test="accname != null and accname != ''">and accname = #{accname}</if>
<if test="account != null and account != ''">and account = #{account}</if>
<if test="defflag != null and defflag != ''">and defflag = #{defflag}</if>
<if test="dr != null">and dr = #{dr}</if>
<if test="memo != null and memo != ''">and memo = #{memo}</if>
<if test="pkAccbank != null and pkAccbank != ''">and pk_accbank = #{pkAccbank}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="pkCubasdoc != null and pkCubasdoc != ''">and pk_cubasdoc = #{pkCubasdoc}</if>
<if test="pkCurrtype != null and pkCurrtype != ''">and pk_currtype = #{pkCurrtype}</if>
<if test="pkCustbank != null and pkCustbank != ''">and pk_custbank = #{pkCustbank}</if>
<if test="ts != null and ts != ''">and ts = #{ts}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-BdCustbankEntity-result"
parameterType="com.hzya.frame.plugin.lets.entity.BdCustbankEntity">
select
<include refid="BdCustbankEntity_Base_Column_List"/>
from bd_custbank
<trim prefix="where" prefixOverrides="and">
<if test="accaddr != null and accaddr != ''">and accaddr like concat('%',#{accaddr},'%')</if>
<if test="accname != null and accname != ''">and accname like concat('%',#{accname},'%')</if>
<if test="account != null and account != ''">and account like concat('%',#{account},'%')</if>
<if test="defflag != null and defflag != ''">and defflag like concat('%',#{defflag},'%')</if>
<if test="dr != null">and dr like concat('%',#{dr},'%')</if>
<if test="memo != null and memo != ''">and memo like concat('%',#{memo},'%')</if>
<if test="pkAccbank != null and pkAccbank != ''">and pk_accbank like concat('%',#{pkAccbank},'%')</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp like concat('%',#{pkCorp},'%')</if>
<if test="pkCubasdoc != null and pkCubasdoc != ''">and pk_cubasdoc like concat('%',#{pkCubasdoc},'%')</if>
<if test="pkCurrtype != null and pkCurrtype != ''">and pk_currtype like concat('%',#{pkCurrtype},'%')</if>
<if test="pkCustbank != null and pkCustbank != ''">and pk_custbank like concat('%',#{pkCustbank},'%')</if>
<if test="ts != null and ts != ''">and ts like concat('%',#{ts},'%')</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="BdCustbankentity_list_or" resultMap="get-BdCustbankEntity-result"
parameterType="com.hzya.frame.plugin.lets.entity.BdCustbankEntity">
select
<include refid="BdCustbankEntity_Base_Column_List"/>
from bd_custbank
<trim prefix="where" prefixOverrides="and">
<if test="accaddr != null and accaddr != ''">or accaddr = #{accaddr}</if>
<if test="accname != null and accname != ''">or accname = #{accname}</if>
<if test="account != null and account != ''">or account = #{account}</if>
<if test="defflag != null and defflag != ''">or defflag = #{defflag}</if>
<if test="dr != null">or dr = #{dr}</if>
<if test="memo != null and memo != ''">or memo = #{memo}</if>
<if test="pkAccbank != null and pkAccbank != ''">or pk_accbank = #{pkAccbank}</if>
<if test="pkCorp != null and pkCorp != ''">or pk_corp = #{pkCorp}</if>
<if test="pkCubasdoc != null and pkCubasdoc != ''">or pk_cubasdoc = #{pkCubasdoc}</if>
<if test="pkCurrtype != null and pkCurrtype != ''">or pk_currtype = #{pkCurrtype}</if>
<if test="pkCustbank != null and pkCustbank != ''">or pk_custbank = #{pkCustbank}</if>
<if test="ts != null and ts != ''">or ts = #{ts}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType="com.hzya.frame.plugin.lets.entity.BdCustbankEntity"
keyProperty="pkCustbank" useGeneratedKeys="true">
insert into bd_custbank(
<trim suffix="" suffixOverrides=",">
<if test="accaddr != null and accaddr != ''">accaddr ,</if>
<if test="accname != null and accname != ''">accname ,</if>
<if test="account != null and account != ''">account ,</if>
<if test="defflag != null and defflag != ''">defflag ,</if>
<if test="dr != null">dr ,</if>
<if test="memo != null and memo != ''">memo ,</if>
<if test="pkAccbank != null and pkAccbank != ''">pk_accbank ,</if>
<if test="pkCorp != null and pkCorp != ''">pk_corp ,</if>
<if test="pkCubasdoc != null and pkCubasdoc != ''">pk_cubasdoc ,</if>
<if test="pkCurrtype != null and pkCurrtype != ''">pk_currtype ,</if>
<if test="pkCustbank != null and pkCustbank != ''">pk_custbank ,</if>
<if test="ts != null and ts != ''">ts ,</if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="accaddr != null and accaddr != ''">#{accaddr} ,</if>
<if test="accname != null and accname != ''">#{accname} ,</if>
<if test="account != null and account != ''">#{account} ,</if>
<if test="defflag != null and defflag != ''">#{defflag} ,</if>
<if test="dr != null">#{dr} ,</if>
<if test="memo != null and memo != ''">#{memo} ,</if>
<if test="pkAccbank != null and pkAccbank != ''">#{pkAccbank} ,</if>
<if test="pkCorp != null and pkCorp != ''">#{pkCorp} ,</if>
<if test="pkCubasdoc != null and pkCubasdoc != ''">#{pkCubasdoc} ,</if>
<if test="pkCurrtype != null and pkCurrtype != ''">#{pkCurrtype} ,</if>
<if test="pkCustbank != null and pkCustbank != ''">#{pkCustbank} ,</if>
<if test="ts != null and ts != ''">#{ts} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from bd_custbank a WHERE a.sts =
'Y' ),
</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="pkCustbank" useGeneratedKeys="true">
insert into bd_custbank(accaddr, accname, account, defflag, dr, memo, pk_accbank, pk_corp, pk_cubasdoc,
pk_currtype, ts, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.accaddr},#{entity.accname},#{entity.account},#{entity.defflag},#{entity.dr},#{entity.memo},#{entity.pkAccbank},#{entity.pkCorp},#{entity.pkCubasdoc},#{entity.pkCurrtype},#{entity.ts},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="pkCustbank" useGeneratedKeys="true">
insert into bd_custbank(accaddr, accname, account, defflag, dr, memo, pk_accbank, pk_corp, pk_cubasdoc,
pk_currtype, ts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.accaddr},#{entity.accname},#{entity.account},#{entity.defflag},#{entity.dr},#{entity.memo},#{entity.pkAccbank},#{entity.pkCorp},#{entity.pkCubasdoc},#{entity.pkCurrtype},#{entity.ts})
</foreach>
on duplicate key update
accaddr = values(accaddr),
accname = values(accname),
account = values(account),
defflag = values(defflag),
dr = values(dr),
memo = values(memo),
pk_accbank = values(pk_accbank),
pk_corp = values(pk_corp),
pk_cubasdoc = values(pk_cubasdoc),
pk_currtype = values(pk_currtype),
ts = values(ts)
</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType="com.hzya.frame.plugin.lets.entity.BdCustbankEntity">
update bd_custbank set
<trim suffix="" suffixOverrides=",">
<if test="accaddr != null and accaddr != ''">accaddr = #{accaddr},</if>
<if test="accname != null and accname != ''">accname = #{accname},</if>
<if test="account != null and account != ''">account = #{account},</if>
<if test="defflag != null and defflag != ''">defflag = #{defflag},</if>
<if test="dr != null">dr = #{dr},</if>
<if test="memo != null and memo != ''">memo = #{memo},</if>
<if test="pkAccbank != null and pkAccbank != ''">pk_accbank = #{pkAccbank},</if>
<if test="pkCorp != null and pkCorp != ''">pk_corp = #{pkCorp},</if>
<if test="pkCubasdoc != null and pkCubasdoc != ''">pk_cubasdoc = #{pkCubasdoc},</if>
<if test="pkCurrtype != null and pkCurrtype != ''">pk_currtype = #{pkCurrtype},</if>
<if test="ts != null and ts != ''">ts = #{ts},</if>
</trim>
where pk_custbank = #{pkCustbank}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType="com.hzya.frame.plugin.lets.entity.BdCustbankEntity">
update bd_custbank
set sts= 'N',
modify_time = #{modify_time},
modify_user_id = #{modify_user_id}
where pk_custbank = #{pkCustbank}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition" parameterType="com.hzya.frame.plugin.lets.entity.BdCustbankEntity">
update bd_custbank set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="accaddr != null and accaddr != ''">and accaddr = #{accaddr}</if>
<if test="accname != null and accname != ''">and accname = #{accname}</if>
<if test="account != null and account != ''">and account = #{account}</if>
<if test="defflag != null and defflag != ''">and defflag = #{defflag}</if>
<if test="dr != null">and dr = #{dr}</if>
<if test="memo != null and memo != ''">and memo = #{memo}</if>
<if test="pkAccbank != null and pkAccbank != ''">and pk_accbank = #{pkAccbank}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="pkCubasdoc != null and pkCubasdoc != ''">and pk_cubasdoc = #{pkCubasdoc}</if>
<if test="pkCurrtype != null and pkCurrtype != ''">and pk_currtype = #{pkCurrtype}</if>
<if test="pkCustbank != null and pkCustbank != ''">and pk_custbank = #{pkCustbank}</if>
<if test="ts != null and ts != ''">and ts = #{ts}</if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete
from bd_custbank
where pk_custbank = #{pkCustbank}
</delete>
</mapper>

View File

@ -0,0 +1,124 @@
package com.hzya.frame.plugin.lets.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* (BdDefdoc)实体类
*
* @author makejava
* @since 2023-09-04 13:46:54
*/
public class BdDefdocEntity extends BaseEntity {
private String doccode;
private String docname;
private Integer docsystype;
private Integer dr;
private String memo;
private String pkCorp;
private String pkDefdoc;
private String pkDefdoc1;
private String pkDefdoclist;
private String sealflag;
private String shortname;
private String ts;
public String getDoccode() {
return doccode;
}
public void setDoccode(String doccode) {
this.doccode = doccode;
}
public String getDocname() {
return docname;
}
public void setDocname(String docname) {
this.docname = docname;
}
public Integer getDocsystype() {
return docsystype;
}
public void setDocsystype(Integer docsystype) {
this.docsystype = docsystype;
}
public Integer getDr() {
return dr;
}
public void setDr(Integer dr) {
this.dr = dr;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getPkDefdoc() {
return pkDefdoc;
}
public void setPkDefdoc(String pkDefdoc) {
this.pkDefdoc = pkDefdoc;
}
public String getPkDefdoc1() {
return pkDefdoc1;
}
public void setPkDefdoc1(String pkDefdoc1) {
this.pkDefdoc1 = pkDefdoc1;
}
public String getPkDefdoclist() {
return pkDefdoclist;
}
public void setPkDefdoclist(String pkDefdoclist) {
this.pkDefdoclist = pkDefdoclist;
}
public String getSealflag() {
return sealflag;
}
public void setSealflag(String sealflag) {
this.sealflag = sealflag;
}
public String getShortname() {
return shortname;
}
public void setShortname(String shortname) {
this.shortname = shortname;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
}

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