1、修改科目表,公司,账簿,账簿类型表的数据源为中台,部分表为中台创建。

This commit is contained in:
zhengyf 2025-06-11 18:03:04 +08:00
parent 981f12d480
commit 43b44223b3
10 changed files with 219 additions and 649 deletions

View File

@ -3,6 +3,8 @@ package com.hzya.frame.voucher.ae.comf.bd.controller;
import cn.hutool.core.lang.Assert;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
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;
@ -19,6 +21,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -39,6 +42,9 @@ public class BdController extends DefaultController {
@Autowired
private IU8CQueryVODAO u8CQueryVODAO;
@Autowired
private IMdmModuleService mdmModuleService;
/**
* 查询所有公司账簿信息
*/
@ -53,13 +59,38 @@ public class BdController extends DefaultController {
}
}
// /**
// * 查询基础数据资源表
// */
// @RequestMapping(value = "/queryBdinfoList", method = RequestMethod.POST)
// public JsonResultEntity queryBdinfoList(@RequestBody AeConfBdBdinfoEntity entity) {
// try {
// List<AeConfBdBdinfoEntity> all = aeConfBdBdinfoDao.queryByLike(entity);
// return getSuccessMessageEntity("请求成功", all);
// } catch (Exception e) {
// e.printStackTrace();
// return getFailureMessageEntity("请求失败", e.getMessage());
// }
// }
/**
* 查询基础数据资源表
*/
@RequestMapping(value = "/queryBdinfoList", method = RequestMethod.POST)
public JsonResultEntity queryBdinfoList(@RequestBody AeConfBdBdinfoEntity entity) {
public JsonResultEntity queryMdmfileList(@RequestBody MdmModuleEntity entity) {
try {
List<AeConfBdBdinfoEntity> all = aeConfBdBdinfoDao.queryByLike(entity);
MdmModuleEntity mdmModuleEntity1 = new MdmModuleEntity();
mdmModuleEntity1.setMdmType("1");//1档案 2单据
List<MdmModuleEntity> all = new ArrayList<>();
List<MdmModuleEntity> mdmModuleEntityList = mdmModuleService.query(mdmModuleEntity1);
if(entity.getMdmName()!=null) {
for (MdmModuleEntity mdmModuleEntity : mdmModuleEntityList) {
if (mdmModuleEntity.getMdmName().contains(entity.getMdmName())) {
all.add(mdmModuleEntity);
}
}
}else {
all = mdmModuleEntityList;
}
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
@ -129,3 +160,5 @@ public class BdController extends DefaultController {
}
}
}

View File

@ -14,95 +14,17 @@ import lombok.Data;
*/
@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

@ -2,141 +2,33 @@
<!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 id="get-AeConfBdAccsubjEntity-result" type="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
<result property="dispname" column="dispname" jdbcType="VARCHAR"/>
<result property="dr" column="dr" jdbcType="VARCHAR"/>
<result property="endflag" column="endflag" jdbcType="VARCHAR"/>
<result property="pkAccsubj" column="pk_accsubj" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
<result property="pkGlorgbook" column="pk_glorgbook" jdbcType="VARCHAR"/>
<result property="stoped" column="stoped" jdbcType="VARCHAR"/>
<result property="subjcode" column="subjcode" jdbcType="VARCHAR"/>
<result property="subjlev" column="subjlev" jdbcType="VARCHAR"/>
<result property="subjname" column="subjname" jdbcType="VARCHAR"/>
<result property="ts" column="ts" jdbcType="TIMESTAMP"/>
</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
dispname
,dr
,endflag
,pk_accsubj
,pk_corp
,pk_glorgbook
,sealflag
,stoped
,subjcode
,subjlev
,subjname
,ts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-AeConfBdAccsubjEntity-result"
@ -145,73 +37,18 @@
<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>
<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="pkAccsubj != null and pkAccsubj != ''">and pk_accsubj = #{pkAccsubj}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</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="ts != null">and ts = #{ts}</if>
</trim>
ORDER BY ae_conf_bd_accsubj.subjcode ASC
</select>
@ -221,73 +58,18 @@
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>
<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="pkAccsubj != null and pkAccsubj != ''">and pk_accsubj = #{pkAccsubj}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</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="ts != null">and ts = #{ts}</if>
</trim>
</select>
@ -298,84 +80,18 @@
<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>
<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="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="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook like concat('%',#{pkGlorgbook},'%')</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="ts != null">and ts like concat('%',#{ts},'%')</if>
</trim>
</select>
@ -386,218 +102,23 @@
<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>
<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="pkAccsubj != null and pkAccsubj != ''">or pk_accsubj = #{pkAccsubj}</if>
<if test="pkCorp != null and pkCorp != ''">or pk_corp = #{pkCorp}</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">or pk_glorgbook = #{pkGlorgbook}</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="ts != null">or ts = #{ts}</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

@ -31,27 +31,27 @@
<select id="queryOrgBookVO" resultMap="get-OrgBookVO-result"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.OrgBookVO">
SELECT
glorg.pk_entityorg as pkentityorg,
glorg.glorgcode as glorgcode,
glorg.glorgname as glorgname,
glorgbook.pk_glbook as pkglbook,
glbook.code as glbookcode,
glbook.name as glbookname,
glorgbook.pk_glorgbook as pkglorgbook,
glorgbook.glorgbookcode as glorgbookcode,
glorgbook.glorgbookname as glorgbookname,
glorgbook.ts
glorgbook.pk_glorgbook AS pkglorgbook,
glorgbook.gl_orgbook_code AS glorgbookcode,
glorgbook.gl_orgbook_name AS glorgbookname,
glorgbook.pk_glorg AS pkentityorg,
glorg.gl_orgcode AS glorgcode,
glorg.gl_orgname AS gl_orgname,
glorgbook.pk_glbook AS pk_glbook,
glbook.code AS glbookcode,
glbook.name AS glbookname,
glorgbook.ts AS ts
FROM
ae_conf_bd_glorgbook glorgbook
LEFT JOIN ae_conf_bd_glorg glorg ON glorg.pk_glorg = glorgbook.pk_glorg
LEFT JOIN ae_conf_bd_glbook glbook ON glbook.pk_glbook = glorgbook.pk_glbook
mdm_bd_glorgbook glorgbook
LEFT JOIN mdm_bd_glorg glorg ON glorg.pk_glorg=glorgbook.pk_glorg
LEFT JOIN mdm_bd_glbook glbook ON glbook.pk_glbook=glorgbook.pk_glbook
<trim prefix="where" prefixOverrides="and">
<if test="pkentityorg != null and pkentityorg != ''">and glorg.pk_entityorg = #{pkentityorg}</if>
<if test="glorgcode != null and glorgcode != ''">and glorg.glorgcode = #{glorgcode}</if>
<if test="glorgname != null and glorgname != ''">and glorg.glorgname = #{glorgname}</if>
and glorgbook.dr=0
</trim>
order by glorg.pk_entityorg asc
order by glorgbook.pk_glorg asc
</select>
</mapper>

View File

@ -0,0 +1,70 @@
package com.hzya.frame.voucher.ae.comf.module.controller;
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
import com.hzya.frame.mdm.mdmModuleDbFileds.service.IMdmModuleDbFiledsService;
import com.hzya.frame.voucher.ae.comf.module.service.IMdmService;
import com.hzya.frame.web.action.DefaultController;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* Created by zydd on 2025-05-26 14:35
* 查询主数据等一系列操作
*/
@RestController
@RequestMapping("/ae/conf/mdmfile")
public class MdmFileMappingController extends DefaultController {
@Autowired
private IMdmModuleService mdmModuleService;
@Autowired
private IMdmModuleDbFiledsService mdmModuleDbFiledsService;
@Autowired
private IMdmService mdmService;
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
public JsonResultEntity queryAll(@RequestBody MdmModuleEntity entity){
try {
entity.setMdmType("1");//1档案 2单据
List<MdmModuleEntity> all = mdmModuleService.query(entity);
return getSuccessMessageEntity("请求成功",all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity("请求失败", e.getMessage());
}
}
@RequestMapping(value = "/queryFiledsByDbId", method = RequestMethod.POST)
public JsonResultEntity queryFiledsByDbId(@RequestBody MdmModuleDbFiledsEntity entity){
try {
List<MdmModuleDbFiledsEntity> all = mdmModuleDbFiledsService.query(entity);
return getSuccessMessageEntity("请求成功",all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity("请求失败", e.getMessage());
}
}
@RequestMapping(value = "/queryMdmAndFiledsByMdmId", method = RequestMethod.POST)
public JsonResultEntity queryMdmAndFiledsByMdmId(@RequestBody MdmModuleDbEntity entity){
try {
List<MdmModuleDbEntity> all = mdmService.queryMdmAndFiledsByMdmId(entity);
return getSuccessMessageEntity("请求成功",all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity("请求失败", e.getMessage());
}
}
}

View File

@ -26,7 +26,16 @@ public class MdmModuleEntity extends BaseEntity {
private String createUser;
//修改人
private String modifyUser;
/** 0预制 1手工 */
private String tag;
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public String getMdmName() {
return mdmName;

View File

@ -19,6 +19,7 @@
<result property="sts" column="sts" jdbcType="VARCHAR"/>
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
<result property="tag" column="tag" jdbcType="VARCHAR"/>
</resultMap>
@ -39,6 +40,7 @@
,sts
,org_id
,company_id
,tag
</sql>
<!--通过ID获取数据 -->
<select id="entity_get" resultMap="get-MdmModuleEntity-result">
@ -67,6 +69,7 @@
<if test="sts != null and sts != ''">and sts = #{sts}</if>
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
<if test="tag != null and tag != ''">and tag = #{tag}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
@ -91,6 +94,7 @@
<if test="sts != null and sts != ''">and sts = #{sts}</if>
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
<if test="tag != null and tag != ''">and tag = #{tag}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
@ -122,6 +126,7 @@
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
<if test="companyId != null and companyId != ''">and company_id like concat('%',#{companyId},'%')</if>
<if test="tag != null and tag != ''">and tag like concat('%',#{tag},'%')</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
@ -149,6 +154,7 @@
<if test="sts != null and sts != ''">or sts = #{sts}</if>
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
<if test="tag != null and tag != ''">or tag = #{tag}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
@ -175,6 +181,7 @@
<if test="org_id != null and org_id != ''">org_id ,</if>
<if test="companyId != null and companyId != ''">company_id ,</if>
<if test="sts == null ">sts,</if>
<if test="tag == null ">tag ,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
@ -194,6 +201,7 @@
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
<if test="sts == null ">'Y',</if>
<if test="tag == null ">'1',</if>
</trim>
)
</insert>

View File

@ -1519,7 +1519,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
throw new BaseSystemException("表字段类型,修改失败,请联系管理员");
}
//查询sysPk,sysCode,sysName段是否存在 add by zyd 2025-06-09
//更新时查询sysPk,sysCode,sysName段是否存在 add by zyd 2025-06-09
MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity();
mdmModuleDbFiledsEntity.setDbId(entity.getDbId());
mdmModuleDbFiledsEntity.setMdmId(entity.getMdmId());
@ -1617,6 +1617,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
return BaseResult.getFailureMessageEntity("系统错误");
}
MdmModuleDbFiledsRuleEntity queryCount = new MdmModuleDbFiledsRuleEntity();
queryCount.setMdmId(entity.getMdmId());
queryCount.setDbId(entity.getDbId());
queryCount.setRuleCode("label");
queryCount.setRuleValue(entity.getEnName());

View File

@ -3,7 +3,8 @@ package com.hzya.frame.mdm.mdmModuleDbFileds.service.impl;
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao;
import com.hzya.frame.mdm.mdmModuleDbFileds.service.IMdmModuleDbFiledsService;
import org.springframework.stereotype.Service;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;

View File

@ -310,7 +310,12 @@
parameterType="com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity">
select count(1) from mdm_module_db_fileds_rule
<trim prefix="where" prefixOverrides="and">
<if test="mdmId != null and mdmId != ''">and mdm_id != #{mdmId}</if>
<!-- <if test="mdmId != null and mdmId != ''">and mdm_id != #{mdmId}</if>-->
<!-- <if test="ruleCode != null and ruleCode != ''">and rule_code = #{ruleCode}</if>-->
<!-- <if test="ruleValue != null and ruleValue != ''">and rule_value = #{ruleValue}</if>-->
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
<if test="dbId != null and dbId != ''">and db_id = #{dbId}</if>
<if test="ruleCode != null and ruleCode != ''">and rule_code = #{ruleCode}</if>
<if test="ruleValue != null and ruleValue != ''">and rule_value = #{ruleValue}</if>
and sts='Y'