广脉:1、新增科目表,查询科目接口,科目树形结构等

This commit is contained in:
zhengyf 2025-06-05 18:42:19 +08:00
parent c4ba9bd0ac
commit 500bf1e322
9 changed files with 1030 additions and 676 deletions

View File

@ -1,9 +1,14 @@
package com.hzya.frame.voucher.ae.comf.bd.controller;
import cn.hutool.core.lang.Assert;
import com.hzya.frame.voucher.ae.comf.bd.dao.IAeConfBdAccsubjDao;
import com.hzya.frame.voucher.ae.comf.bd.dao.IAeConfBdBdinfoDao;
import com.hzya.frame.voucher.ae.comf.bd.dao.IAeConfBdOrgBookVODao;
import com.hzya.frame.voucher.ae.comf.bd.entity.AccsubjTreeNode;
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity;
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity;
import com.hzya.frame.voucher.ae.comf.bd.entity.OrgBookVO;
import com.hzya.frame.voucher.ae.comf.bd.utils.AccsubjTreeBuilder;
import com.hzya.frame.web.action.DefaultController;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
@ -25,6 +30,8 @@ public class BdController extends DefaultController {
private IAeConfBdOrgBookVODao aeConfBdOrgBookVODao;
@Autowired
private IAeConfBdBdinfoDao aeConfBdBdinfoDao;
@Autowired
private IAeConfBdAccsubjDao aeConfBdAccsubjDao;
/**
* 查询所有公司账簿信息
@ -54,4 +61,20 @@ public class BdController extends DefaultController {
}
}
/**
* 查询科目表根据账簿id
*/
@RequestMapping(value = "/queryAccSubjByOrgBookId", method = RequestMethod.POST)
public JsonResultEntity queryAccSubjByOrgBookId(@RequestBody AeConfBdAccsubjEntity entity) {
try {
Assert.notNull(entity.getPkGlorgbook(),"查询科目表时账簿id不允许为空");
List<AeConfBdAccsubjEntity> all = aeConfBdAccsubjDao.query(entity);
List<AccsubjTreeNode> tree = AccsubjTreeBuilder.buildTree(all);
return getSuccessMessageEntity("请求成功", tree);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity("请求失败", e.getMessage());
}
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.voucher.ae.comf.bd.dao;
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 会计事项(accounting_event)-配置-数据配置-科目表(ae_conf_bd_accsubj: table)表数据库访问层
*
* @author zydd
* @since 2025-06-05 17:20:09
*/
public interface IAeConfBdAccsubjDao extends IBaseDao<AeConfBdAccsubjEntity, String> {
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.voucher.ae.comf.bd.dao.impl;
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity;
import com.hzya.frame.voucher.ae.comf.bd.dao.IAeConfBdAccsubjDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 会计事项(accounting_event)-配置-数据配置-科目表(AeConfBdAccsubj)表数据库访问层
*
* @author zydd
* @since 2025-06-05 17:20:09
*/
@Repository
public class AeConfBdAccsubjDaoImpl extends MybatisGenericDao<AeConfBdAccsubjEntity, String> implements IAeConfBdAccsubjDao{
}

View File

@ -0,0 +1,16 @@
package com.hzya.frame.voucher.ae.comf.bd.entity;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* Created by zydd on 2025-06-05 17:51
* 科目表树形结构
*/
@Data
public class AccsubjTreeNode {
private AeConfBdAccsubjEntity data; // 当前节点的数据
private List<AccsubjTreeNode> children = new ArrayList<>(); // 子节点列表
}

View File

@ -0,0 +1,108 @@
package com.hzya.frame.voucher.ae.comf.bd.entity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-数据配置-科目表(AeConfBdAccsubj)实体类
*
* @author zydd
* @since 2025-06-05 17:20:09
*/
@Data
public class AeConfBdAccsubjEntity extends BaseEntity {
private String accremove;
private String balanflag;
private Long balanorient;
private String beginperiod;
private String beginyear;
private String bothorient;
private Long cashbankflag;
private Long checkdouble;
private Long checktype;
private String createcorp;
private String createperiod;
private String createyear;
private String ctlsystem;
private String currency;
private String dispname;
private Long dr;
private String endflag;
private String endperiod;
private String endyear;
private String engsubjname;
@JsonIgnore
private String free1;
@JsonIgnore
private String free10;
@JsonIgnore
private String free11;
@JsonIgnore
private String free12;
@JsonIgnore
private String free13;
@JsonIgnore
private String free14;
@JsonIgnore
private String free15;
@JsonIgnore
private String free16;
@JsonIgnore
private String free17;
@JsonIgnore
private String free18;
@JsonIgnore
private String free19;
@JsonIgnore
private String free2;
@JsonIgnore
private String free20;
@JsonIgnore
private String free3;
@JsonIgnore
private String free4;
@JsonIgnore
private String free5;
@JsonIgnore
private String free6;
@JsonIgnore
private String free7;
@JsonIgnore
private String free8;
@JsonIgnore
private String free9;
private String incurflag;
private String innerinfonull;
private String innersubj;
private String outflag;
private String pkAccsubj;
private String pkCorp;
private String pkCreateGlorgbook;
private String pkGlorgbook;
private String pkGrpaccsubj;
private String pkSubjscheme;
private String pkSubjtype;
@JsonIgnore
private String property1;
@JsonIgnore
private String property2;
@JsonIgnore
private String property3;
@JsonIgnore
private String property4;
@JsonIgnore
private String property5;
private String remcode;
private String sealflag;
private String stoped;
private String subjcode;
private Long subjlev;
private String subjname;
private Long sumprintLevel;
private Date ts;
private String unit;
}

View File

@ -0,0 +1,603 @@
<?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.voucher.ae.comf.bd.dao.impl.AeConfBdAccsubjDaoImpl">
<resultMap id="get-AeConfBdAccsubjEntity-result"
type="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
<result property="accremove" column="ACCREMOVE" jdbcType="VARCHAR"/>
<result property="balanflag" column="BALANFLAG" jdbcType="VARCHAR"/>
<result property="balanorient" column="BALANORIENT" jdbcType="INTEGER"/>
<result property="beginperiod" column="BEGINPERIOD" jdbcType="VARCHAR"/>
<result property="beginyear" column="BEGINYEAR" jdbcType="VARCHAR"/>
<result property="bothorient" column="BOTHORIENT" jdbcType="VARCHAR"/>
<result property="cashbankflag" column="CASHBANKFLAG" jdbcType="INTEGER"/>
<result property="checkdouble" column="CHECKDOUBLE" jdbcType="INTEGER"/>
<result property="checktype" column="CHECKTYPE" jdbcType="INTEGER"/>
<result property="createcorp" column="CREATECORP" jdbcType="VARCHAR"/>
<result property="createperiod" column="CREATEPERIOD" jdbcType="VARCHAR"/>
<result property="createyear" column="CREATEYEAR" jdbcType="VARCHAR"/>
<result property="ctlsystem" column="CTLSYSTEM" jdbcType="VARCHAR"/>
<result property="currency" column="CURRENCY" jdbcType="VARCHAR"/>
<result property="dispname" column="DISPNAME" jdbcType="VARCHAR"/>
<result property="dr" column="DR" jdbcType="INTEGER"/>
<result property="endflag" column="ENDFLAG" jdbcType="VARCHAR"/>
<result property="endperiod" column="ENDPERIOD" jdbcType="VARCHAR"/>
<result property="endyear" column="ENDYEAR" jdbcType="VARCHAR"/>
<result property="engsubjname" column="ENGSUBJNAME" jdbcType="VARCHAR"/>
<result property="free1" column="FREE1" jdbcType="VARCHAR"/>
<result property="free10" column="FREE10" jdbcType="VARCHAR"/>
<result property="free11" column="FREE11" jdbcType="VARCHAR"/>
<result property="free12" column="FREE12" jdbcType="VARCHAR"/>
<result property="free13" column="FREE13" jdbcType="VARCHAR"/>
<result property="free14" column="FREE14" jdbcType="VARCHAR"/>
<result property="free15" column="FREE15" jdbcType="VARCHAR"/>
<result property="free16" column="FREE16" jdbcType="VARCHAR"/>
<result property="free17" column="FREE17" jdbcType="VARCHAR"/>
<result property="free18" column="FREE18" jdbcType="VARCHAR"/>
<result property="free19" column="FREE19" jdbcType="VARCHAR"/>
<result property="free2" column="FREE2" jdbcType="VARCHAR"/>
<result property="free20" column="FREE20" jdbcType="VARCHAR"/>
<result property="free3" column="FREE3" jdbcType="VARCHAR"/>
<result property="free4" column="FREE4" jdbcType="VARCHAR"/>
<result property="free5" column="FREE5" jdbcType="VARCHAR"/>
<result property="free6" column="FREE6" jdbcType="VARCHAR"/>
<result property="free7" column="FREE7" jdbcType="VARCHAR"/>
<result property="free8" column="FREE8" jdbcType="VARCHAR"/>
<result property="free9" column="FREE9" jdbcType="VARCHAR"/>
<result property="incurflag" column="INCURFLAG" jdbcType="VARCHAR"/>
<result property="innerinfonull" column="INNERINFONULL" jdbcType="VARCHAR"/>
<result property="innersubj" column="INNERSUBJ" jdbcType="VARCHAR"/>
<result property="outflag" column="OUTFLAG" jdbcType="VARCHAR"/>
<result property="pkAccsubj" column="PK_ACCSUBJ" jdbcType="VARCHAR"/>
<result property="pkCorp" column="PK_CORP" jdbcType="VARCHAR"/>
<result property="pkCreateGlorgbook" column="PK_CREATE_GLORGBOOK" jdbcType="VARCHAR"/>
<result property="pkGlorgbook" column="PK_GLORGBOOK" jdbcType="VARCHAR"/>
<result property="pkGrpaccsubj" column="PK_GRPACCSUBJ" jdbcType="VARCHAR"/>
<result property="pkSubjscheme" column="PK_SUBJSCHEME" jdbcType="VARCHAR"/>
<result property="pkSubjtype" column="PK_SUBJTYPE" jdbcType="VARCHAR"/>
<result property="property1" column="PROPERTY1" jdbcType="VARCHAR"/>
<result property="property2" column="PROPERTY2" jdbcType="VARCHAR"/>
<result property="property3" column="PROPERTY3" jdbcType="VARCHAR"/>
<result property="property4" column="PROPERTY4" jdbcType="VARCHAR"/>
<result property="property5" column="PROPERTY5" jdbcType="VARCHAR"/>
<result property="remcode" column="REMCODE" jdbcType="VARCHAR"/>
<result property="sealflag" column="SEALFLAG" jdbcType="VARCHAR"/>
<result property="stoped" column="STOPED" jdbcType="VARCHAR"/>
<result property="subjcode" column="SUBJCODE" jdbcType="VARCHAR"/>
<result property="subjlev" column="SUBJLEV" jdbcType="INTEGER"/>
<result property="subjname" column="SUBJNAME" jdbcType="VARCHAR"/>
<result property="sumprintLevel" column="SUMPRINT_LEVEL" jdbcType="INTEGER"/>
<result property="ts" column="TS" jdbcType="TIMESTAMP"/>
<result property="unit" column="UNIT" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id="AeConfBdAccsubjEntity_Base_Column_List">
ACCREMOVE
,BALANFLAG
,BALANORIENT
,BEGINPERIOD
,BEGINYEAR
,BOTHORIENT
,CASHBANKFLAG
,CHECKDOUBLE
,CHECKTYPE
,CREATECORP
,CREATEPERIOD
,CREATEYEAR
,CTLSYSTEM
,CURRENCY
,DISPNAME
,DR
,ENDFLAG
,ENDPERIOD
,ENDYEAR
,ENGSUBJNAME
,FREE1
,FREE10
,FREE11
,FREE12
,FREE13
,FREE14
,FREE15
,FREE16
,FREE17
,FREE18
,FREE19
,FREE2
,FREE20
,FREE3
,FREE4
,FREE5
,FREE6
,FREE7
,FREE8
,FREE9
,INCURFLAG
,INNERINFONULL
,INNERSUBJ
,OUTFLAG
,PK_ACCSUBJ
,PK_CORP
,PK_CREATE_GLORGBOOK
,PK_GLORGBOOK
,PK_GRPACCSUBJ
,PK_SUBJSCHEME
,PK_SUBJTYPE
,PROPERTY1
,PROPERTY2
,PROPERTY3
,PROPERTY4
,PROPERTY5
,REMCODE
,SEALFLAG
,STOPED
,SUBJCODE
,SUBJLEV
,SUBJNAME
,SUMPRINT_LEVEL
,TS
,UNIT
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-AeConfBdAccsubjEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
select
<include refid="AeConfBdAccsubjEntity_Base_Column_List"/>
from ae_conf_bd_accsubj
<trim prefix="where" prefixOverrides="and">
<if test="accremove != null and accremove != ''">and ACCREMOVE = #{accremove}</if>
<if test="balanflag != null and balanflag != ''">and BALANFLAG = #{balanflag}</if>
<if test="balanorient != null">and BALANORIENT = #{balanorient}</if>
<if test="beginperiod != null and beginperiod != ''">and BEGINPERIOD = #{beginperiod}</if>
<if test="beginyear != null and beginyear != ''">and BEGINYEAR = #{beginyear}</if>
<if test="bothorient != null and bothorient != ''">and BOTHORIENT = #{bothorient}</if>
<if test="cashbankflag != null">and CASHBANKFLAG = #{cashbankflag}</if>
<if test="checkdouble != null">and CHECKDOUBLE = #{checkdouble}</if>
<if test="checktype != null">and CHECKTYPE = #{checktype}</if>
<if test="createcorp != null and createcorp != ''">and CREATECORP = #{createcorp}</if>
<if test="createperiod != null and createperiod != ''">and CREATEPERIOD = #{createperiod}</if>
<if test="createyear != null and createyear != ''">and CREATEYEAR = #{createyear}</if>
<if test="ctlsystem != null and ctlsystem != ''">and CTLSYSTEM = #{ctlsystem}</if>
<if test="currency != null and currency != ''">and CURRENCY = #{currency}</if>
<if test="dispname != null and dispname != ''">and DISPNAME = #{dispname}</if>
<if test="dr != null">and DR = #{dr}</if>
<if test="endflag != null and endflag != ''">and ENDFLAG = #{endflag}</if>
<if test="endperiod != null and endperiod != ''">and ENDPERIOD = #{endperiod}</if>
<if test="endyear != null and endyear != ''">and ENDYEAR = #{endyear}</if>
<if test="engsubjname != null and engsubjname != ''">and ENGSUBJNAME = #{engsubjname}</if>
<if test="free1 != null and free1 != ''">and FREE1 = #{free1}</if>
<if test="free10 != null and free10 != ''">and FREE10 = #{free10}</if>
<if test="free11 != null and free11 != ''">and FREE11 = #{free11}</if>
<if test="free12 != null and free12 != ''">and FREE12 = #{free12}</if>
<if test="free13 != null and free13 != ''">and FREE13 = #{free13}</if>
<if test="free14 != null and free14 != ''">and FREE14 = #{free14}</if>
<if test="free15 != null and free15 != ''">and FREE15 = #{free15}</if>
<if test="free16 != null and free16 != ''">and FREE16 = #{free16}</if>
<if test="free17 != null and free17 != ''">and FREE17 = #{free17}</if>
<if test="free18 != null and free18 != ''">and FREE18 = #{free18}</if>
<if test="free19 != null and free19 != ''">and FREE19 = #{free19}</if>
<if test="free2 != null and free2 != ''">and FREE2 = #{free2}</if>
<if test="free20 != null and free20 != ''">and FREE20 = #{free20}</if>
<if test="free3 != null and free3 != ''">and FREE3 = #{free3}</if>
<if test="free4 != null and free4 != ''">and FREE4 = #{free4}</if>
<if test="free5 != null and free5 != ''">and FREE5 = #{free5}</if>
<if test="free6 != null and free6 != ''">and FREE6 = #{free6}</if>
<if test="free7 != null and free7 != ''">and FREE7 = #{free7}</if>
<if test="free8 != null and free8 != ''">and FREE8 = #{free8}</if>
<if test="free9 != null and free9 != ''">and FREE9 = #{free9}</if>
<if test="incurflag != null and incurflag != ''">and INCURFLAG = #{incurflag}</if>
<if test="innerinfonull != null and innerinfonull != ''">and INNERINFONULL = #{innerinfonull}</if>
<if test="innersubj != null and innersubj != ''">and INNERSUBJ = #{innersubj}</if>
<if test="outflag != null and outflag != ''">and OUTFLAG = #{outflag}</if>
<if test="pkAccsubj != null and pkAccsubj != ''">and PK_ACCSUBJ = #{pkAccsubj}</if>
<if test="pkCorp != null and pkCorp != ''">and PK_CORP = #{pkCorp}</if>
<if test="pkCreateGlorgbook != null and pkCreateGlorgbook != ''">and PK_CREATE_GLORGBOOK =
#{pkCreateGlorgbook}
</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">and PK_GLORGBOOK = #{pkGlorgbook}</if>
<if test="pkGrpaccsubj != null and pkGrpaccsubj != ''">and PK_GRPACCSUBJ = #{pkGrpaccsubj}</if>
<if test="pkSubjscheme != null and pkSubjscheme != ''">and PK_SUBJSCHEME = #{pkSubjscheme}</if>
<if test="pkSubjtype != null and pkSubjtype != ''">and PK_SUBJTYPE = #{pkSubjtype}</if>
<if test="property1 != null and property1 != ''">and PROPERTY1 = #{property1}</if>
<if test="property2 != null and property2 != ''">and PROPERTY2 = #{property2}</if>
<if test="property3 != null and property3 != ''">and PROPERTY3 = #{property3}</if>
<if test="property4 != null and property4 != ''">and PROPERTY4 = #{property4}</if>
<if test="property5 != null and property5 != ''">and PROPERTY5 = #{property5}</if>
<if test="remcode != null and remcode != ''">and REMCODE = #{remcode}</if>
<if test="sealflag != null and sealflag != ''">and SEALFLAG = #{sealflag}</if>
<if test="stoped != null and stoped != ''">and STOPED = #{stoped}</if>
<if test="subjcode != null and subjcode != ''">and SUBJCODE = #{subjcode}</if>
<if test="subjlev != null">and SUBJLEV = #{subjlev}</if>
<if test="subjname != null and subjname != ''">and SUBJNAME = #{subjname}</if>
<if test="sumprintLevel != null">and SUMPRINT_LEVEL = #{sumprintLevel}</if>
<if test="ts != null">and TS = #{ts}</if>
<if test="unit != null and unit != ''">and UNIT = #{unit}</if>
</trim>
ORDER BY ae_conf_bd_accsubj.subjcode ASC
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
select count(1) from ae_conf_bd_accsubj
<trim prefix="where" prefixOverrides="and">
<if test="accremove != null and accremove != ''">and ACCREMOVE = #{accremove}</if>
<if test="balanflag != null and balanflag != ''">and BALANFLAG = #{balanflag}</if>
<if test="balanorient != null">and BALANORIENT = #{balanorient}</if>
<if test="beginperiod != null and beginperiod != ''">and BEGINPERIOD = #{beginperiod}</if>
<if test="beginyear != null and beginyear != ''">and BEGINYEAR = #{beginyear}</if>
<if test="bothorient != null and bothorient != ''">and BOTHORIENT = #{bothorient}</if>
<if test="cashbankflag != null">and CASHBANKFLAG = #{cashbankflag}</if>
<if test="checkdouble != null">and CHECKDOUBLE = #{checkdouble}</if>
<if test="checktype != null">and CHECKTYPE = #{checktype}</if>
<if test="createcorp != null and createcorp != ''">and CREATECORP = #{createcorp}</if>
<if test="createperiod != null and createperiod != ''">and CREATEPERIOD = #{createperiod}</if>
<if test="createyear != null and createyear != ''">and CREATEYEAR = #{createyear}</if>
<if test="ctlsystem != null and ctlsystem != ''">and CTLSYSTEM = #{ctlsystem}</if>
<if test="currency != null and currency != ''">and CURRENCY = #{currency}</if>
<if test="dispname != null and dispname != ''">and DISPNAME = #{dispname}</if>
<if test="dr != null">and DR = #{dr}</if>
<if test="endflag != null and endflag != ''">and ENDFLAG = #{endflag}</if>
<if test="endperiod != null and endperiod != ''">and ENDPERIOD = #{endperiod}</if>
<if test="endyear != null and endyear != ''">and ENDYEAR = #{endyear}</if>
<if test="engsubjname != null and engsubjname != ''">and ENGSUBJNAME = #{engsubjname}</if>
<if test="free1 != null and free1 != ''">and FREE1 = #{free1}</if>
<if test="free10 != null and free10 != ''">and FREE10 = #{free10}</if>
<if test="free11 != null and free11 != ''">and FREE11 = #{free11}</if>
<if test="free12 != null and free12 != ''">and FREE12 = #{free12}</if>
<if test="free13 != null and free13 != ''">and FREE13 = #{free13}</if>
<if test="free14 != null and free14 != ''">and FREE14 = #{free14}</if>
<if test="free15 != null and free15 != ''">and FREE15 = #{free15}</if>
<if test="free16 != null and free16 != ''">and FREE16 = #{free16}</if>
<if test="free17 != null and free17 != ''">and FREE17 = #{free17}</if>
<if test="free18 != null and free18 != ''">and FREE18 = #{free18}</if>
<if test="free19 != null and free19 != ''">and FREE19 = #{free19}</if>
<if test="free2 != null and free2 != ''">and FREE2 = #{free2}</if>
<if test="free20 != null and free20 != ''">and FREE20 = #{free20}</if>
<if test="free3 != null and free3 != ''">and FREE3 = #{free3}</if>
<if test="free4 != null and free4 != ''">and FREE4 = #{free4}</if>
<if test="free5 != null and free5 != ''">and FREE5 = #{free5}</if>
<if test="free6 != null and free6 != ''">and FREE6 = #{free6}</if>
<if test="free7 != null and free7 != ''">and FREE7 = #{free7}</if>
<if test="free8 != null and free8 != ''">and FREE8 = #{free8}</if>
<if test="free9 != null and free9 != ''">and FREE9 = #{free9}</if>
<if test="incurflag != null and incurflag != ''">and INCURFLAG = #{incurflag}</if>
<if test="innerinfonull != null and innerinfonull != ''">and INNERINFONULL = #{innerinfonull}</if>
<if test="innersubj != null and innersubj != ''">and INNERSUBJ = #{innersubj}</if>
<if test="outflag != null and outflag != ''">and OUTFLAG = #{outflag}</if>
<if test="pkAccsubj != null and pkAccsubj != ''">and PK_ACCSUBJ = #{pkAccsubj}</if>
<if test="pkCorp != null and pkCorp != ''">and PK_CORP = #{pkCorp}</if>
<if test="pkCreateGlorgbook != null and pkCreateGlorgbook != ''">and PK_CREATE_GLORGBOOK =
#{pkCreateGlorgbook}
</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">and PK_GLORGBOOK = #{pkGlorgbook}</if>
<if test="pkGrpaccsubj != null and pkGrpaccsubj != ''">and PK_GRPACCSUBJ = #{pkGrpaccsubj}</if>
<if test="pkSubjscheme != null and pkSubjscheme != ''">and PK_SUBJSCHEME = #{pkSubjscheme}</if>
<if test="pkSubjtype != null and pkSubjtype != ''">and PK_SUBJTYPE = #{pkSubjtype}</if>
<if test="property1 != null and property1 != ''">and PROPERTY1 = #{property1}</if>
<if test="property2 != null and property2 != ''">and PROPERTY2 = #{property2}</if>
<if test="property3 != null and property3 != ''">and PROPERTY3 = #{property3}</if>
<if test="property4 != null and property4 != ''">and PROPERTY4 = #{property4}</if>
<if test="property5 != null and property5 != ''">and PROPERTY5 = #{property5}</if>
<if test="remcode != null and remcode != ''">and REMCODE = #{remcode}</if>
<if test="sealflag != null and sealflag != ''">and SEALFLAG = #{sealflag}</if>
<if test="stoped != null and stoped != ''">and STOPED = #{stoped}</if>
<if test="subjcode != null and subjcode != ''">and SUBJCODE = #{subjcode}</if>
<if test="subjlev != null">and SUBJLEV = #{subjlev}</if>
<if test="subjname != null and subjname != ''">and SUBJNAME = #{subjname}</if>
<if test="sumprintLevel != null">and SUMPRINT_LEVEL = #{sumprintLevel}</if>
<if test="ts != null">and TS = #{ts}</if>
<if test="unit != null and unit != ''">and UNIT = #{unit}</if>
</trim>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-AeConfBdAccsubjEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
select
<include refid="AeConfBdAccsubjEntity_Base_Column_List"/>
from ae_conf_bd_accsubj
<trim prefix="where" prefixOverrides="and">
<if test="accremove != null and accremove != ''">and ACCREMOVE like concat('%',#{accremove},'%')</if>
<if test="balanflag != null and balanflag != ''">and BALANFLAG like concat('%',#{balanflag},'%')</if>
<if test="balanorient != null">and BALANORIENT like concat('%',#{balanorient},'%')</if>
<if test="beginperiod != null and beginperiod != ''">and BEGINPERIOD like concat('%',#{beginperiod},'%')
</if>
<if test="beginyear != null and beginyear != ''">and BEGINYEAR like concat('%',#{beginyear},'%')</if>
<if test="bothorient != null and bothorient != ''">and BOTHORIENT like concat('%',#{bothorient},'%')</if>
<if test="cashbankflag != null">and CASHBANKFLAG like concat('%',#{cashbankflag},'%')</if>
<if test="checkdouble != null">and CHECKDOUBLE like concat('%',#{checkdouble},'%')</if>
<if test="checktype != null">and CHECKTYPE like concat('%',#{checktype},'%')</if>
<if test="createcorp != null and createcorp != ''">and CREATECORP like concat('%',#{createcorp},'%')</if>
<if test="createperiod != null and createperiod != ''">and CREATEPERIOD like
concat('%',#{createperiod},'%')
</if>
<if test="createyear != null and createyear != ''">and CREATEYEAR like concat('%',#{createyear},'%')</if>
<if test="ctlsystem != null and ctlsystem != ''">and CTLSYSTEM like concat('%',#{ctlsystem},'%')</if>
<if test="currency != null and currency != ''">and CURRENCY like concat('%',#{currency},'%')</if>
<if test="dispname != null and dispname != ''">and DISPNAME like concat('%',#{dispname},'%')</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="endperiod != null and endperiod != ''">and ENDPERIOD like concat('%',#{endperiod},'%')</if>
<if test="endyear != null and endyear != ''">and ENDYEAR like concat('%',#{endyear},'%')</if>
<if test="engsubjname != null and engsubjname != ''">and ENGSUBJNAME like concat('%',#{engsubjname},'%')
</if>
<if test="free1 != null and free1 != ''">and FREE1 like concat('%',#{free1},'%')</if>
<if test="free10 != null and free10 != ''">and FREE10 like concat('%',#{free10},'%')</if>
<if test="free11 != null and free11 != ''">and FREE11 like concat('%',#{free11},'%')</if>
<if test="free12 != null and free12 != ''">and FREE12 like concat('%',#{free12},'%')</if>
<if test="free13 != null and free13 != ''">and FREE13 like concat('%',#{free13},'%')</if>
<if test="free14 != null and free14 != ''">and FREE14 like concat('%',#{free14},'%')</if>
<if test="free15 != null and free15 != ''">and FREE15 like concat('%',#{free15},'%')</if>
<if test="free16 != null and free16 != ''">and FREE16 like concat('%',#{free16},'%')</if>
<if test="free17 != null and free17 != ''">and FREE17 like concat('%',#{free17},'%')</if>
<if test="free18 != null and free18 != ''">and FREE18 like concat('%',#{free18},'%')</if>
<if test="free19 != null and free19 != ''">and FREE19 like concat('%',#{free19},'%')</if>
<if test="free2 != null and free2 != ''">and FREE2 like concat('%',#{free2},'%')</if>
<if test="free20 != null and free20 != ''">and FREE20 like concat('%',#{free20},'%')</if>
<if test="free3 != null and free3 != ''">and FREE3 like concat('%',#{free3},'%')</if>
<if test="free4 != null and free4 != ''">and FREE4 like concat('%',#{free4},'%')</if>
<if test="free5 != null and free5 != ''">and FREE5 like concat('%',#{free5},'%')</if>
<if test="free6 != null and free6 != ''">and FREE6 like concat('%',#{free6},'%')</if>
<if test="free7 != null and free7 != ''">and FREE7 like concat('%',#{free7},'%')</if>
<if test="free8 != null and free8 != ''">and FREE8 like concat('%',#{free8},'%')</if>
<if test="free9 != null and free9 != ''">and FREE9 like concat('%',#{free9},'%')</if>
<if test="incurflag != null and incurflag != ''">and INCURFLAG like concat('%',#{incurflag},'%')</if>
<if test="innerinfonull != null and innerinfonull != ''">and INNERINFONULL like
concat('%',#{innerinfonull},'%')
</if>
<if test="innersubj != null and innersubj != ''">and INNERSUBJ like concat('%',#{innersubj},'%')</if>
<if test="outflag != null and outflag != ''">and OUTFLAG like concat('%',#{outflag},'%')</if>
<if test="pkAccsubj != null and pkAccsubj != ''">and PK_ACCSUBJ like concat('%',#{pkAccsubj},'%')</if>
<if test="pkCorp != null and pkCorp != ''">and PK_CORP like concat('%',#{pkCorp},'%')</if>
<if test="pkCreateGlorgbook != null and pkCreateGlorgbook != ''">and PK_CREATE_GLORGBOOK like
concat('%',#{pkCreateGlorgbook},'%')
</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">and PK_GLORGBOOK like concat('%',#{pkGlorgbook},'%')
</if>
<if test="pkGrpaccsubj != null and pkGrpaccsubj != ''">and PK_GRPACCSUBJ like
concat('%',#{pkGrpaccsubj},'%')
</if>
<if test="pkSubjscheme != null and pkSubjscheme != ''">and PK_SUBJSCHEME like
concat('%',#{pkSubjscheme},'%')
</if>
<if test="pkSubjtype != null and pkSubjtype != ''">and PK_SUBJTYPE like concat('%',#{pkSubjtype},'%')</if>
<if test="property1 != null and property1 != ''">and PROPERTY1 like concat('%',#{property1},'%')</if>
<if test="property2 != null and property2 != ''">and PROPERTY2 like concat('%',#{property2},'%')</if>
<if test="property3 != null and property3 != ''">and PROPERTY3 like concat('%',#{property3},'%')</if>
<if test="property4 != null and property4 != ''">and PROPERTY4 like concat('%',#{property4},'%')</if>
<if test="property5 != null and property5 != ''">and PROPERTY5 like concat('%',#{property5},'%')</if>
<if test="remcode != null and remcode != ''">and REMCODE like concat('%',#{remcode},'%')</if>
<if test="sealflag != null and sealflag != ''">and SEALFLAG like concat('%',#{sealflag},'%')</if>
<if test="stoped != null and stoped != ''">and STOPED like concat('%',#{stoped},'%')</if>
<if test="subjcode != null and subjcode != ''">and SUBJCODE like concat('%',#{subjcode},'%')</if>
<if test="subjlev != null">and SUBJLEV like concat('%',#{subjlev},'%')</if>
<if test="subjname != null and subjname != ''">and SUBJNAME like concat('%',#{subjname},'%')</if>
<if test="sumprintLevel != null">and SUMPRINT_LEVEL like concat('%',#{sumprintLevel},'%')</if>
<if test="ts != null">and TS like concat('%',#{ts},'%')</if>
<if test="unit != null and unit != ''">and UNIT like concat('%',#{unit},'%')</if>
</trim>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="AeConfBdAccsubjentity_list_or" resultMap="get-AeConfBdAccsubjEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
select
<include refid="AeConfBdAccsubjEntity_Base_Column_List"/>
from ae_conf_bd_accsubj
<trim prefix="where" prefixOverrides="and">
<if test="accremove != null and accremove != ''">or ACCREMOVE = #{accremove}</if>
<if test="balanflag != null and balanflag != ''">or BALANFLAG = #{balanflag}</if>
<if test="balanorient != null">or BALANORIENT = #{balanorient}</if>
<if test="beginperiod != null and beginperiod != ''">or BEGINPERIOD = #{beginperiod}</if>
<if test="beginyear != null and beginyear != ''">or BEGINYEAR = #{beginyear}</if>
<if test="bothorient != null and bothorient != ''">or BOTHORIENT = #{bothorient}</if>
<if test="cashbankflag != null">or CASHBANKFLAG = #{cashbankflag}</if>
<if test="checkdouble != null">or CHECKDOUBLE = #{checkdouble}</if>
<if test="checktype != null">or CHECKTYPE = #{checktype}</if>
<if test="createcorp != null and createcorp != ''">or CREATECORP = #{createcorp}</if>
<if test="createperiod != null and createperiod != ''">or CREATEPERIOD = #{createperiod}</if>
<if test="createyear != null and createyear != ''">or CREATEYEAR = #{createyear}</if>
<if test="ctlsystem != null and ctlsystem != ''">or CTLSYSTEM = #{ctlsystem}</if>
<if test="currency != null and currency != ''">or CURRENCY = #{currency}</if>
<if test="dispname != null and dispname != ''">or DISPNAME = #{dispname}</if>
<if test="dr != null">or DR = #{dr}</if>
<if test="endflag != null and endflag != ''">or ENDFLAG = #{endflag}</if>
<if test="endperiod != null and endperiod != ''">or ENDPERIOD = #{endperiod}</if>
<if test="endyear != null and endyear != ''">or ENDYEAR = #{endyear}</if>
<if test="engsubjname != null and engsubjname != ''">or ENGSUBJNAME = #{engsubjname}</if>
<if test="free1 != null and free1 != ''">or FREE1 = #{free1}</if>
<if test="free10 != null and free10 != ''">or FREE10 = #{free10}</if>
<if test="free11 != null and free11 != ''">or FREE11 = #{free11}</if>
<if test="free12 != null and free12 != ''">or FREE12 = #{free12}</if>
<if test="free13 != null and free13 != ''">or FREE13 = #{free13}</if>
<if test="free14 != null and free14 != ''">or FREE14 = #{free14}</if>
<if test="free15 != null and free15 != ''">or FREE15 = #{free15}</if>
<if test="free16 != null and free16 != ''">or FREE16 = #{free16}</if>
<if test="free17 != null and free17 != ''">or FREE17 = #{free17}</if>
<if test="free18 != null and free18 != ''">or FREE18 = #{free18}</if>
<if test="free19 != null and free19 != ''">or FREE19 = #{free19}</if>
<if test="free2 != null and free2 != ''">or FREE2 = #{free2}</if>
<if test="free20 != null and free20 != ''">or FREE20 = #{free20}</if>
<if test="free3 != null and free3 != ''">or FREE3 = #{free3}</if>
<if test="free4 != null and free4 != ''">or FREE4 = #{free4}</if>
<if test="free5 != null and free5 != ''">or FREE5 = #{free5}</if>
<if test="free6 != null and free6 != ''">or FREE6 = #{free6}</if>
<if test="free7 != null and free7 != ''">or FREE7 = #{free7}</if>
<if test="free8 != null and free8 != ''">or FREE8 = #{free8}</if>
<if test="free9 != null and free9 != ''">or FREE9 = #{free9}</if>
<if test="incurflag != null and incurflag != ''">or INCURFLAG = #{incurflag}</if>
<if test="innerinfonull != null and innerinfonull != ''">or INNERINFONULL = #{innerinfonull}</if>
<if test="innersubj != null and innersubj != ''">or INNERSUBJ = #{innersubj}</if>
<if test="outflag != null and outflag != ''">or OUTFLAG = #{outflag}</if>
<if test="pkAccsubj != null and pkAccsubj != ''">or PK_ACCSUBJ = #{pkAccsubj}</if>
<if test="pkCorp != null and pkCorp != ''">or PK_CORP = #{pkCorp}</if>
<if test="pkCreateGlorgbook != null and pkCreateGlorgbook != ''">or PK_CREATE_GLORGBOOK =
#{pkCreateGlorgbook}
</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">or PK_GLORGBOOK = #{pkGlorgbook}</if>
<if test="pkGrpaccsubj != null and pkGrpaccsubj != ''">or PK_GRPACCSUBJ = #{pkGrpaccsubj}</if>
<if test="pkSubjscheme != null and pkSubjscheme != ''">or PK_SUBJSCHEME = #{pkSubjscheme}</if>
<if test="pkSubjtype != null and pkSubjtype != ''">or PK_SUBJTYPE = #{pkSubjtype}</if>
<if test="property1 != null and property1 != ''">or PROPERTY1 = #{property1}</if>
<if test="property2 != null and property2 != ''">or PROPERTY2 = #{property2}</if>
<if test="property3 != null and property3 != ''">or PROPERTY3 = #{property3}</if>
<if test="property4 != null and property4 != ''">or PROPERTY4 = #{property4}</if>
<if test="property5 != null and property5 != ''">or PROPERTY5 = #{property5}</if>
<if test="remcode != null and remcode != ''">or REMCODE = #{remcode}</if>
<if test="sealflag != null and sealflag != ''">or SEALFLAG = #{sealflag}</if>
<if test="stoped != null and stoped != ''">or STOPED = #{stoped}</if>
<if test="subjcode != null and subjcode != ''">or SUBJCODE = #{subjcode}</if>
<if test="subjlev != null">or SUBJLEV = #{subjlev}</if>
<if test="subjname != null and subjname != ''">or SUBJNAME = #{subjname}</if>
<if test="sumprintLevel != null">or SUMPRINT_LEVEL = #{sumprintLevel}</if>
<if test="ts != null">or TS = #{ts}</if>
<if test="unit != null and unit != ''">or UNIT = #{unit}</if>
and sts='Y'
</trim>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity"
keyProperty="" useGeneratedKeys="true">
insert into ae_conf_bd_accsubj(
<trim suffix="" suffixOverrides=",">
<if test="accremove != null and accremove != ''">ACCREMOVE ,</if>
<if test="balanflag != null and balanflag != ''">BALANFLAG ,</if>
<if test="balanorient != null">BALANORIENT ,</if>
<if test="beginperiod != null and beginperiod != ''">BEGINPERIOD ,</if>
<if test="beginyear != null and beginyear != ''">BEGINYEAR ,</if>
<if test="bothorient != null and bothorient != ''">BOTHORIENT ,</if>
<if test="cashbankflag != null">CASHBANKFLAG ,</if>
<if test="checkdouble != null">CHECKDOUBLE ,</if>
<if test="checktype != null">CHECKTYPE ,</if>
<if test="createcorp != null and createcorp != ''">CREATECORP ,</if>
<if test="createperiod != null and createperiod != ''">CREATEPERIOD ,</if>
<if test="createyear != null and createyear != ''">CREATEYEAR ,</if>
<if test="ctlsystem != null and ctlsystem != ''">CTLSYSTEM ,</if>
<if test="currency != null and currency != ''">CURRENCY ,</if>
<if test="dispname != null and dispname != ''">DISPNAME ,</if>
<if test="dr != null">DR ,</if>
<if test="endflag != null and endflag != ''">ENDFLAG ,</if>
<if test="endperiod != null and endperiod != ''">ENDPERIOD ,</if>
<if test="endyear != null and endyear != ''">ENDYEAR ,</if>
<if test="engsubjname != null and engsubjname != ''">ENGSUBJNAME ,</if>
<if test="free1 != null and free1 != ''">FREE1 ,</if>
<if test="free10 != null and free10 != ''">FREE10 ,</if>
<if test="free11 != null and free11 != ''">FREE11 ,</if>
<if test="free12 != null and free12 != ''">FREE12 ,</if>
<if test="free13 != null and free13 != ''">FREE13 ,</if>
<if test="free14 != null and free14 != ''">FREE14 ,</if>
<if test="free15 != null and free15 != ''">FREE15 ,</if>
<if test="free16 != null and free16 != ''">FREE16 ,</if>
<if test="free17 != null and free17 != ''">FREE17 ,</if>
<if test="free18 != null and free18 != ''">FREE18 ,</if>
<if test="free19 != null and free19 != ''">FREE19 ,</if>
<if test="free2 != null and free2 != ''">FREE2 ,</if>
<if test="free20 != null and free20 != ''">FREE20 ,</if>
<if test="free3 != null and free3 != ''">FREE3 ,</if>
<if test="free4 != null and free4 != ''">FREE4 ,</if>
<if test="free5 != null and free5 != ''">FREE5 ,</if>
<if test="free6 != null and free6 != ''">FREE6 ,</if>
<if test="free7 != null and free7 != ''">FREE7 ,</if>
<if test="free8 != null and free8 != ''">FREE8 ,</if>
<if test="free9 != null and free9 != ''">FREE9 ,</if>
<if test="incurflag != null and incurflag != ''">INCURFLAG ,</if>
<if test="innerinfonull != null and innerinfonull != ''">INNERINFONULL ,</if>
<if test="innersubj != null and innersubj != ''">INNERSUBJ ,</if>
<if test="outflag != null and outflag != ''">OUTFLAG ,</if>
<if test="pkAccsubj != null and pkAccsubj != ''">PK_ACCSUBJ ,</if>
<if test="pkCorp != null and pkCorp != ''">PK_CORP ,</if>
<if test="pkCreateGlorgbook != null and pkCreateGlorgbook != ''">PK_CREATE_GLORGBOOK ,</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">PK_GLORGBOOK ,</if>
<if test="pkGrpaccsubj != null and pkGrpaccsubj != ''">PK_GRPACCSUBJ ,</if>
<if test="pkSubjscheme != null and pkSubjscheme != ''">PK_SUBJSCHEME ,</if>
<if test="pkSubjtype != null and pkSubjtype != ''">PK_SUBJTYPE ,</if>
<if test="property1 != null and property1 != ''">PROPERTY1 ,</if>
<if test="property2 != null and property2 != ''">PROPERTY2 ,</if>
<if test="property3 != null and property3 != ''">PROPERTY3 ,</if>
<if test="property4 != null and property4 != ''">PROPERTY4 ,</if>
<if test="property5 != null and property5 != ''">PROPERTY5 ,</if>
<if test="remcode != null and remcode != ''">REMCODE ,</if>
<if test="sealflag != null and sealflag != ''">SEALFLAG ,</if>
<if test="stoped != null and stoped != ''">STOPED ,</if>
<if test="subjcode != null and subjcode != ''">SUBJCODE ,</if>
<if test="subjlev != null">SUBJLEV ,</if>
<if test="subjname != null and subjname != ''">SUBJNAME ,</if>
<if test="sumprintLevel != null">SUMPRINT_LEVEL ,</if>
<if test="ts != null">TS ,</if>
<if test="unit != null and unit != ''">UNIT ,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="accremove != null and accremove != ''">#{accremove} ,</if>
<if test="balanflag != null and balanflag != ''">#{balanflag} ,</if>
<if test="balanorient != null">#{balanorient} ,</if>
<if test="beginperiod != null and beginperiod != ''">#{beginperiod} ,</if>
<if test="beginyear != null and beginyear != ''">#{beginyear} ,</if>
<if test="bothorient != null and bothorient != ''">#{bothorient} ,</if>
<if test="cashbankflag != null">#{cashbankflag} ,</if>
<if test="checkdouble != null">#{checkdouble} ,</if>
<if test="checktype != null">#{checktype} ,</if>
<if test="createcorp != null and createcorp != ''">#{createcorp} ,</if>
<if test="createperiod != null and createperiod != ''">#{createperiod} ,</if>
<if test="createyear != null and createyear != ''">#{createyear} ,</if>
<if test="ctlsystem != null and ctlsystem != ''">#{ctlsystem} ,</if>
<if test="currency != null and currency != ''">#{currency} ,</if>
<if test="dispname != null and dispname != ''">#{dispname} ,</if>
<if test="dr != null">#{dr} ,</if>
<if test="endflag != null and endflag != ''">#{endflag} ,</if>
<if test="endperiod != null and endperiod != ''">#{endperiod} ,</if>
<if test="endyear != null and endyear != ''">#{endyear} ,</if>
<if test="engsubjname != null and engsubjname != ''">#{engsubjname} ,</if>
<if test="free1 != null and free1 != ''">#{free1} ,</if>
<if test="free10 != null and free10 != ''">#{free10} ,</if>
<if test="free11 != null and free11 != ''">#{free11} ,</if>
<if test="free12 != null and free12 != ''">#{free12} ,</if>
<if test="free13 != null and free13 != ''">#{free13} ,</if>
<if test="free14 != null and free14 != ''">#{free14} ,</if>
<if test="free15 != null and free15 != ''">#{free15} ,</if>
<if test="free16 != null and free16 != ''">#{free16} ,</if>
<if test="free17 != null and free17 != ''">#{free17} ,</if>
<if test="free18 != null and free18 != ''">#{free18} ,</if>
<if test="free19 != null and free19 != ''">#{free19} ,</if>
<if test="free2 != null and free2 != ''">#{free2} ,</if>
<if test="free20 != null and free20 != ''">#{free20} ,</if>
<if test="free3 != null and free3 != ''">#{free3} ,</if>
<if test="free4 != null and free4 != ''">#{free4} ,</if>
<if test="free5 != null and free5 != ''">#{free5} ,</if>
<if test="free6 != null and free6 != ''">#{free6} ,</if>
<if test="free7 != null and free7 != ''">#{free7} ,</if>
<if test="free8 != null and free8 != ''">#{free8} ,</if>
<if test="free9 != null and free9 != ''">#{free9} ,</if>
<if test="incurflag != null and incurflag != ''">#{incurflag} ,</if>
<if test="innerinfonull != null and innerinfonull != ''">#{innerinfonull} ,</if>
<if test="innersubj != null and innersubj != ''">#{innersubj} ,</if>
<if test="outflag != null and outflag != ''">#{outflag} ,</if>
<if test="pkAccsubj != null and pkAccsubj != ''">#{pkAccsubj} ,</if>
<if test="pkCorp != null and pkCorp != ''">#{pkCorp} ,</if>
<if test="pkCreateGlorgbook != null and pkCreateGlorgbook != ''">#{pkCreateGlorgbook} ,</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">#{pkGlorgbook} ,</if>
<if test="pkGrpaccsubj != null and pkGrpaccsubj != ''">#{pkGrpaccsubj} ,</if>
<if test="pkSubjscheme != null and pkSubjscheme != ''">#{pkSubjscheme} ,</if>
<if test="pkSubjtype != null and pkSubjtype != ''">#{pkSubjtype} ,</if>
<if test="property1 != null and property1 != ''">#{property1} ,</if>
<if test="property2 != null and property2 != ''">#{property2} ,</if>
<if test="property3 != null and property3 != ''">#{property3} ,</if>
<if test="property4 != null and property4 != ''">#{property4} ,</if>
<if test="property5 != null and property5 != ''">#{property5} ,</if>
<if test="remcode != null and remcode != ''">#{remcode} ,</if>
<if test="sealflag != null and sealflag != ''">#{sealflag} ,</if>
<if test="stoped != null and stoped != ''">#{stoped} ,</if>
<if test="subjcode != null and subjcode != ''">#{subjcode} ,</if>
<if test="subjlev != null">#{subjlev} ,</if>
<if test="subjname != null and subjname != ''">#{subjname} ,</if>
<if test="sumprintLevel != null">#{sumprintLevel} ,</if>
<if test="ts != null">#{ts} ,</if>
<if test="unit != null and unit != ''">#{unit} ,</if>
</trim>
)
</insert>
</mapper>

View File

@ -2,7 +2,9 @@ package com.hzya.frame.voucher.ae.comf.bd.entity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-数据配置-基础数据资源表(AeConfBdBdinfo)实体类
@ -10,297 +12,74 @@ import com.hzya.frame.web.entity.BaseEntity;
* @author zydd
* @since 2025-06-05 10:33:48
*/
@Data
public class AeConfBdBdinfoEntity extends BaseEntity {
@JsonIgnore
private String accessclass;
@JsonIgnore
private String basedoctablename;
@JsonIgnore
private String basedoctablepkname;
@JsonIgnore
private String bdcode;
@JsonIgnore
private String bdname;
@JsonIgnore
private Long bdtype;
@JsonIgnore
private String budgetconst;
@JsonIgnore
private String classcheme;
@JsonIgnore
private String codefieldname;
@JsonIgnore
private String coderulegetter;
@JsonIgnore
private String corpfieldname;
@JsonIgnore
private Long dr;
@JsonIgnore
private String fatherfieldname;
@JsonIgnore
private String funccode;
@JsonIgnore
private String isdef;
@JsonIgnore
private String isincludegroupdata;
@JsonIgnore
private String isparaLevscheme;
@JsonIgnore
private String isselfref;
@JsonIgnore
private String namefieldname;
@JsonIgnore
private String orgbookfieldname;
@JsonIgnore
private String orgtypecode;
@JsonIgnore
private String pkBdinfo;
@JsonIgnore
private String pkCorp;
@JsonIgnore
private String pkDefdef;
@JsonIgnore
private String refnodename;
@JsonIgnore
private String refsystem;
@JsonIgnore
private String reserved1;
@JsonIgnore
private String reserved2;
@JsonIgnore
private String selfrefclass;
@JsonIgnore
private String tablename;
@JsonIgnore
private String tablepkname;
@JsonIgnore
private Date ts;
public String getAccessclass() {
return accessclass;
}
public void setAccessclass(String accessclass) {
this.accessclass = accessclass;
}
public String getBasedoctablename() {
return basedoctablename;
}
public void setBasedoctablename(String basedoctablename) {
this.basedoctablename = basedoctablename;
}
public String getBasedoctablepkname() {
return basedoctablepkname;
}
public void setBasedoctablepkname(String basedoctablepkname) {
this.basedoctablepkname = basedoctablepkname;
}
public String getBdcode() {
return bdcode;
}
public void setBdcode(String bdcode) {
this.bdcode = bdcode;
}
public String getBdname() {
return bdname;
}
public void setBdname(String bdname) {
this.bdname = bdname;
}
public Long getBdtype() {
return bdtype;
}
public void setBdtype(Long bdtype) {
this.bdtype = bdtype;
}
public String getBudgetconst() {
return budgetconst;
}
public void setBudgetconst(String budgetconst) {
this.budgetconst = budgetconst;
}
public String getClasscheme() {
return classcheme;
}
public void setClasscheme(String classcheme) {
this.classcheme = classcheme;
}
public String getCodefieldname() {
return codefieldname;
}
public void setCodefieldname(String codefieldname) {
this.codefieldname = codefieldname;
}
public String getCoderulegetter() {
return coderulegetter;
}
public void setCoderulegetter(String coderulegetter) {
this.coderulegetter = coderulegetter;
}
public String getCorpfieldname() {
return corpfieldname;
}
public void setCorpfieldname(String corpfieldname) {
this.corpfieldname = corpfieldname;
}
public Long getDr() {
return dr;
}
public void setDr(Long dr) {
this.dr = dr;
}
public String getFatherfieldname() {
return fatherfieldname;
}
public void setFatherfieldname(String fatherfieldname) {
this.fatherfieldname = fatherfieldname;
}
public String getFunccode() {
return funccode;
}
public void setFunccode(String funccode) {
this.funccode = funccode;
}
public String getIsdef() {
return isdef;
}
public void setIsdef(String isdef) {
this.isdef = isdef;
}
public String getIsincludegroupdata() {
return isincludegroupdata;
}
public void setIsincludegroupdata(String isincludegroupdata) {
this.isincludegroupdata = isincludegroupdata;
}
public String getIsparaLevscheme() {
return isparaLevscheme;
}
public void setIsparaLevscheme(String isparaLevscheme) {
this.isparaLevscheme = isparaLevscheme;
}
public String getIsselfref() {
return isselfref;
}
public void setIsselfref(String isselfref) {
this.isselfref = isselfref;
}
public String getNamefieldname() {
return namefieldname;
}
public void setNamefieldname(String namefieldname) {
this.namefieldname = namefieldname;
}
public String getOrgbookfieldname() {
return orgbookfieldname;
}
public void setOrgbookfieldname(String orgbookfieldname) {
this.orgbookfieldname = orgbookfieldname;
}
public String getOrgtypecode() {
return orgtypecode;
}
public void setOrgtypecode(String orgtypecode) {
this.orgtypecode = orgtypecode;
}
public String getPkBdinfo() {
return pkBdinfo;
}
public void setPkBdinfo(String pkBdinfo) {
this.pkBdinfo = pkBdinfo;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getPkDefdef() {
return pkDefdef;
}
public void setPkDefdef(String pkDefdef) {
this.pkDefdef = pkDefdef;
}
public String getRefnodename() {
return refnodename;
}
public void setRefnodename(String refnodename) {
this.refnodename = refnodename;
}
public String getRefsystem() {
return refsystem;
}
public void setRefsystem(String refsystem) {
this.refsystem = refsystem;
}
public String getReserved1() {
return reserved1;
}
public void setReserved1(String reserved1) {
this.reserved1 = reserved1;
}
public String getReserved2() {
return reserved2;
}
public void setReserved2(String reserved2) {
this.reserved2 = reserved2;
}
public String getSelfrefclass() {
return selfrefclass;
}
public void setSelfrefclass(String selfrefclass) {
this.selfrefclass = selfrefclass;
}
public String getTablename() {
return tablename;
}
public void setTablename(String tablename) {
this.tablename = tablename;
}
public String getTablepkname() {
return tablepkname;
}
public void setTablepkname(String tablepkname) {
this.tablepkname = tablepkname;
}
public Date getTs() {
return ts;
}
public void setTs(Date ts) {
this.ts = ts;
}
}

View File

@ -0,0 +1,67 @@
package com.hzya.frame.voucher.ae.comf.bd.utils;
import com.hzya.frame.voucher.ae.comf.bd.entity.AccsubjTreeNode;
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity;
import java.util.ArrayList;
import java.util.List;
/**
* Created by zydd on 2025-06-05 17:52
*/
public class AccsubjTreeBuilder {
public static List<AccsubjTreeNode> buildTree(List<AeConfBdAccsubjEntity> list) {
List<AccsubjTreeNode> rootNodes = new ArrayList<>();
int index = 0;
while (index < list.size()) {
AeConfBdAccsubjEntity current = list.get(index);
if (current.getSubjlev() == 1) {
AccsubjTreeNode node = new AccsubjTreeNode();
node.setData(current);
index++;
// 构建该一级节点下的子树
node.setChildren(buildChildren(list, index, 1));
rootNodes.add(node);
} else {
// 如果第一个不是一级节点跳过
index++;
}
}
return rootNodes;
}
// 递归构建子节点
private static List<AccsubjTreeNode> buildChildren(List<AeConfBdAccsubjEntity> list, int startIndex, int parentLevel) {
List<AccsubjTreeNode> children = new ArrayList<>();
int index = startIndex;
while (index < list.size()) {
AeConfBdAccsubjEntity current = list.get(index);
int currentLevel = Math.toIntExact(current.getSubjlev());
if (currentLevel == parentLevel + 1) {
// 当前是父级的直接下级
AccsubjTreeNode node = new AccsubjTreeNode();
node.setData(current);
index++;
// 递归构建其子节点
node.setChildren(buildChildren(list, index, parentLevel + 1));
children.add(node);
} else if (currentLevel <= parentLevel) {
// 当前等级小于等于父级说明当前分支结束
break;
} else {
// 跳过非法层级如从1跳到3
index++;
}
}
return children;
}
}

View File

@ -1,436 +1,162 @@
package com.hzya.frame.voucher.ae.comf.subject.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-科目对照_子表(AeConfSubjectContrastB)实体类
*
* @author zydd
* @since 2025-06-05 15:13:29
*/
@Data
public class AeConfSubjectContrastBEntity extends BaseEntity {
/** 对照表id */
private Long contrastId;
/** 公司pk */
private String pkCorp;
/** 目标档案值(会计科目) */
private String desdocvalue;
/** 来源档案表1 */
private String factortable1;
/** 来源档案表2 */
private String factortable2;
/** 来源档案表3 */
private String factortable3;
/** 来源档案表4 */
private String factortable4;
/** 来源档案表5 */
private String factortable5;
/** 来源档案表6 */
private String factortable6;
/** 来源档案表7 */
private String factortable7;
/** 来源档案表8 */
private String factortable8;
/** 来源档案表9 */
private String factortable9;
/** 来源档案主键1 */
private String factorpk1;
/** 来源档案主键2 */
private String factorpk2;
/** 来源档案主键3 */
private String factorpk3;
/** 来源档案主键4 */
private String factorpk4;
/** 来源档案主键5 */
private String factorpk5;
/** 来源档案主键6 */
private String factorpk6;
/** 来源档案主键7 */
private String factorpk7;
/** 来源档案主键8 */
private String factorpk8;
/** 来源档案主键9 */
private String factorpk9;
/** 来源档案值1 */
private String factorid1;
/** 来源档案值2 */
private String factorid2;
/** 来源档案值3 */
private String factorid3;
/** 来源档案值4 */
private String factorid4;
/** 来源档案值5 */
private String factorid5;
/** 来源档案值6 */
private String factorid6;
/** 来源档案值7 */
private String factorid7;
/** 来源档案值8 */
private String factorid8;
/** 来源档案值9 */
private String factorid9;
/** 备注 */
private String remark;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String def10;
/** 创建人 */
private String createUser;
/** 修改人 */
private String modifyUser;
/**
* 对照表id
*/
private Long contrastId;
/**
* 公司pk
*/
private String pkCorp;
/**
* 目标档案值会计科目)
*/
private String desdocvalue;
/**
* 来源档案表1
*/
private String factortable1;
/**
* 来源档案表2
*/
private String factortable2;
/**
* 来源档案表3
*/
private String factortable3;
/**
* 来源档案表4
*/
private String factortable4;
/**
* 来源档案表5
*/
private String factortable5;
/**
* 来源档案表6
*/
private String factortable6;
/**
* 来源档案表7
*/
private String factortable7;
/**
* 来源档案表8
*/
private String factortable8;
/**
* 来源档案表9
*/
private String factortable9;
/**
* 来源档案主键1
*/
private String factorpk1;
/**
* 来源档案主键2
*/
private String factorpk2;
/**
* 来源档案主键3
*/
private String factorpk3;
/**
* 来源档案主键4
*/
private String factorpk4;
/**
* 来源档案主键5
*/
private String factorpk5;
/**
* 来源档案主键6
*/
private String factorpk6;
/**
* 来源档案主键7
*/
private String factorpk7;
/**
* 来源档案主键8
*/
private String factorpk8;
/**
* 来源档案主键9
*/
private String factorpk9;
/**
* 来源档案值1
*/
private String factorid1;
/**
* 来源档案值2
*/
private String factorid2;
/**
* 来源档案值3
*/
private String factorid3;
/**
* 来源档案值4
*/
private String factorid4;
/**
* 来源档案值5
*/
private String factorid5;
/**
* 来源档案值6
*/
private String factorid6;
/**
* 来源档案值7
*/
private String factorid7;
/**
* 来源档案值8
*/
private String factorid8;
/**
* 来源档案值9
*/
private String factorid9;
/**
* 备注
*/
private String remark;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String def10;
/**
* 创建人
*/
private String createUser;
/**
* 修改人
*/
private String modifyUser;
public Long getContrastId() {
return contrastId;
}
public void setContrastId(Long contrastId) {
this.contrastId = contrastId;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getDesdocvalue() {
return desdocvalue;
}
public void setDesdocvalue(String desdocvalue) {
this.desdocvalue = desdocvalue;
}
public String getFactortable1() {
return factortable1;
}
public void setFactortable1(String factortable1) {
this.factortable1 = factortable1;
}
public String getFactortable2() {
return factortable2;
}
public void setFactortable2(String factortable2) {
this.factortable2 = factortable2;
}
public String getFactortable3() {
return factortable3;
}
public void setFactortable3(String factortable3) {
this.factortable3 = factortable3;
}
public String getFactortable4() {
return factortable4;
}
public void setFactortable4(String factortable4) {
this.factortable4 = factortable4;
}
public String getFactortable5() {
return factortable5;
}
public void setFactortable5(String factortable5) {
this.factortable5 = factortable5;
}
public String getFactortable6() {
return factortable6;
}
public void setFactortable6(String factortable6) {
this.factortable6 = factortable6;
}
public String getFactortable7() {
return factortable7;
}
public void setFactortable7(String factortable7) {
this.factortable7 = factortable7;
}
public String getFactortable8() {
return factortable8;
}
public void setFactortable8(String factortable8) {
this.factortable8 = factortable8;
}
public String getFactortable9() {
return factortable9;
}
public void setFactortable9(String factortable9) {
this.factortable9 = factortable9;
}
public String getFactorpk1() {
return factorpk1;
}
public void setFactorpk1(String factorpk1) {
this.factorpk1 = factorpk1;
}
public String getFactorpk2() {
return factorpk2;
}
public void setFactorpk2(String factorpk2) {
this.factorpk2 = factorpk2;
}
public String getFactorpk3() {
return factorpk3;
}
public void setFactorpk3(String factorpk3) {
this.factorpk3 = factorpk3;
}
public String getFactorpk4() {
return factorpk4;
}
public void setFactorpk4(String factorpk4) {
this.factorpk4 = factorpk4;
}
public String getFactorpk5() {
return factorpk5;
}
public void setFactorpk5(String factorpk5) {
this.factorpk5 = factorpk5;
}
public String getFactorpk6() {
return factorpk6;
}
public void setFactorpk6(String factorpk6) {
this.factorpk6 = factorpk6;
}
public String getFactorpk7() {
return factorpk7;
}
public void setFactorpk7(String factorpk7) {
this.factorpk7 = factorpk7;
}
public String getFactorpk8() {
return factorpk8;
}
public void setFactorpk8(String factorpk8) {
this.factorpk8 = factorpk8;
}
public String getFactorpk9() {
return factorpk9;
}
public void setFactorpk9(String factorpk9) {
this.factorpk9 = factorpk9;
}
public String getFactorid1() {
return factorid1;
}
public void setFactorid1(String factorid1) {
this.factorid1 = factorid1;
}
public String getFactorid2() {
return factorid2;
}
public void setFactorid2(String factorid2) {
this.factorid2 = factorid2;
}
public String getFactorid3() {
return factorid3;
}
public void setFactorid3(String factorid3) {
this.factorid3 = factorid3;
}
public String getFactorid4() {
return factorid4;
}
public void setFactorid4(String factorid4) {
this.factorid4 = factorid4;
}
public String getFactorid5() {
return factorid5;
}
public void setFactorid5(String factorid5) {
this.factorid5 = factorid5;
}
public String getFactorid6() {
return factorid6;
}
public void setFactorid6(String factorid6) {
this.factorid6 = factorid6;
}
public String getFactorid7() {
return factorid7;
}
public void setFactorid7(String factorid7) {
this.factorid7 = factorid7;
}
public String getFactorid8() {
return factorid8;
}
public void setFactorid8(String factorid8) {
this.factorid8 = factorid8;
}
public String getFactorid9() {
return factorid9;
}
public void setFactorid9(String factorid9) {
this.factorid9 = factorid9;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
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 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 getDef10() {
return def10;
}
public void setDef10(String def10) {
this.def10 = def10;
}
public String getCreateUser() {
return createUser;
}
public void setCreateUser(String createUser) {
this.createUser = createUser;
}
public String getModifyUser() {
return modifyUser;
}
public void setModifyUser(String modifyUser) {
this.modifyUser = modifyUser;
}
}