广脉:1、新增基础档案表,公司账簿查询等
This commit is contained in:
parent
27c69cc33f
commit
07b3d8cdcb
|
@ -0,0 +1,57 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.controller;
|
||||
|
||||
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.AeConfBdBdinfoEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.OrgBookVO;
|
||||
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-06-04 15:04
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ae/conf/bd")
|
||||
public class BdController extends DefaultController {
|
||||
|
||||
@Autowired
|
||||
private IAeConfBdOrgBookVODao aeConfBdOrgBookVODao;
|
||||
@Autowired
|
||||
private IAeConfBdBdinfoDao aeConfBdBdinfoDao;
|
||||
|
||||
/**
|
||||
* 查询所有公司账簿信息
|
||||
*/
|
||||
@RequestMapping(value = "/queryOrgBookVO", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryOrgBookVO(@RequestBody OrgBookVO vo) {
|
||||
try {
|
||||
List<OrgBookVO> all = aeConfBdOrgBookVODao.queryOrgBookVO(vo);
|
||||
return getSuccessMessageEntity("请求成功", all);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity("请求失败", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询基础数据资源表
|
||||
*/
|
||||
@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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.dao;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-数据配置-基础数据资源表(ae_conf_bd_bdinfo: table)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-05 10:33:48
|
||||
*/
|
||||
public interface IAeConfBdBdinfoDao extends IBaseDao<AeConfBdBdinfoEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.OrgBookVO;
|
||||
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-业务模块(ae_conf_business_module: table)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-05-22 14:48:27
|
||||
*/
|
||||
public interface IAeConfBdOrgBookVODao extends IBaseDao<OrgBookVO, String> {
|
||||
|
||||
public List<OrgBookVO> queryOrgBookVO(OrgBookVO vo);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.dao.impl;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.bd.dao.IAeConfBdBdinfoDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-数据配置-基础数据资源表(AeConfBdBdinfo)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-05 10:33:48
|
||||
*/
|
||||
@Repository
|
||||
public class AeConfBdBdinfoDaoImpl extends MybatisGenericDao<AeConfBdBdinfoEntity, String> implements IAeConfBdBdinfoDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.dao.impl;
|
||||
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
import com.hzya.frame.voucher.ae.comf.bd.dao.IAeConfBdOrgBookVODao;
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.OrgBookVO;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by zydd on 2025-06-04 15:10
|
||||
*/
|
||||
@Repository
|
||||
public class AeConfBdOrgBookVODaoImpl extends MybatisGenericDao<OrgBookVO, String> implements IAeConfBdOrgBookVODao {
|
||||
@Override
|
||||
public List<OrgBookVO> queryOrgBookVO(OrgBookVO vo) {
|
||||
List<OrgBookVO> orgBookVOList = (List<OrgBookVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.AeConfBdOrgBookVODaoImpl.queryOrgBookVO", vo);
|
||||
return orgBookVOList;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,306 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-数据配置-基础数据资源表(AeConfBdBdinfo)实体类
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-05 10:33:48
|
||||
*/
|
||||
public class AeConfBdBdinfoEntity extends BaseEntity {
|
||||
|
||||
private String accessclass;
|
||||
private String basedoctablename;
|
||||
private String basedoctablepkname;
|
||||
private String bdcode;
|
||||
private String bdname;
|
||||
private Long bdtype;
|
||||
private String budgetconst;
|
||||
private String classcheme;
|
||||
private String codefieldname;
|
||||
private String coderulegetter;
|
||||
private String corpfieldname;
|
||||
private Long dr;
|
||||
private String fatherfieldname;
|
||||
private String funccode;
|
||||
private String isdef;
|
||||
private String isincludegroupdata;
|
||||
private String isparaLevscheme;
|
||||
private String isselfref;
|
||||
private String namefieldname;
|
||||
private String orgbookfieldname;
|
||||
private String orgtypecode;
|
||||
private String pkBdinfo;
|
||||
private String pkCorp;
|
||||
private String pkDefdef;
|
||||
private String refnodename;
|
||||
private String refsystem;
|
||||
private String reserved1;
|
||||
private String reserved2;
|
||||
private String selfrefclass;
|
||||
private String tablename;
|
||||
private String tablepkname;
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,288 @@
|
|||
<?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.AeConfBdBdinfoDaoImpl">
|
||||
|
||||
<resultMap id="get-AeConfBdBdinfoEntity-result"
|
||||
type="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
<result property="accessclass" column="ACCESSCLASS" jdbcType="VARCHAR"/>
|
||||
<result property="basedoctablename" column="BASEDOCTABLENAME" jdbcType="VARCHAR"/>
|
||||
<result property="basedoctablepkname" column="BASEDOCTABLEPKNAME" jdbcType="VARCHAR"/>
|
||||
<result property="bdcode" column="BDCODE" jdbcType="VARCHAR"/>
|
||||
<result property="bdname" column="BDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="bdtype" column="BDTYPE" jdbcType="INTEGER"/>
|
||||
<result property="budgetconst" column="BUDGETCONST" jdbcType="VARCHAR"/>
|
||||
<result property="classcheme" column="CLASSCHEME" jdbcType="VARCHAR"/>
|
||||
<result property="codefieldname" column="CODEFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="coderulegetter" column="CODERULEGETTER" jdbcType="VARCHAR"/>
|
||||
<result property="corpfieldname" column="CORPFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="dr" column="DR" jdbcType="INTEGER"/>
|
||||
<result property="fatherfieldname" column="FATHERFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="funccode" column="FUNCCODE" jdbcType="VARCHAR"/>
|
||||
<result property="isdef" column="ISDEF" jdbcType="VARCHAR"/>
|
||||
<result property="isincludegroupdata" column="ISINCLUDEGROUPDATA" jdbcType="VARCHAR"/>
|
||||
<result property="isparaLevscheme" column="ISPARA_LEVSCHEME" jdbcType="VARCHAR"/>
|
||||
<result property="isselfref" column="ISSELFREF" jdbcType="VARCHAR"/>
|
||||
<result property="namefieldname" column="NAMEFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="orgbookfieldname" column="ORGBOOKFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="orgtypecode" column="ORGTYPECODE" jdbcType="VARCHAR"/>
|
||||
<result property="pkBdinfo" column="PK_BDINFO" jdbcType="VARCHAR"/>
|
||||
<result property="pkCorp" column="PK_CORP" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdef" column="PK_DEFDEF" jdbcType="VARCHAR"/>
|
||||
<result property="refnodename" column="REFNODENAME" jdbcType="VARCHAR"/>
|
||||
<result property="refsystem" column="REFSYSTEM" jdbcType="VARCHAR"/>
|
||||
<result property="reserved1" column="RESERVED1" jdbcType="VARCHAR"/>
|
||||
<result property="reserved2" column="RESERVED2" jdbcType="VARCHAR"/>
|
||||
<result property="selfrefclass" column="SELFREFCLASS" jdbcType="VARCHAR"/>
|
||||
<result property="tablename" column="TABLENAME" jdbcType="VARCHAR"/>
|
||||
<result property="tablepkname" column="TABLEPKNAME" jdbcType="VARCHAR"/>
|
||||
<result property="ts" column="TS" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id="AeConfBdBdinfoEntity_Base_Column_List">
|
||||
ACCESSCLASS
|
||||
,BASEDOCTABLENAME
|
||||
,BASEDOCTABLEPKNAME
|
||||
,BDCODE
|
||||
,BDNAME
|
||||
,BDTYPE
|
||||
,BUDGETCONST
|
||||
,CLASSCHEME
|
||||
,CODEFIELDNAME
|
||||
,CODERULEGETTER
|
||||
,CORPFIELDNAME
|
||||
,DR
|
||||
,FATHERFIELDNAME
|
||||
,FUNCCODE
|
||||
,ISDEF
|
||||
,ISINCLUDEGROUPDATA
|
||||
,ISPARA_LEVSCHEME
|
||||
,ISSELFREF
|
||||
,NAMEFIELDNAME
|
||||
,ORGBOOKFIELDNAME
|
||||
,ORGTYPECODE
|
||||
,PK_BDINFO
|
||||
,PK_CORP
|
||||
,PK_DEFDEF
|
||||
,REFNODENAME
|
||||
,REFSYSTEM
|
||||
,RESERVED1
|
||||
,RESERVED2
|
||||
,SELFREFCLASS
|
||||
,TABLENAME
|
||||
,TABLEPKNAME
|
||||
,TS
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-AeConfBdBdinfoEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
select
|
||||
<include refid="AeConfBdBdinfoEntity_Base_Column_List"/>
|
||||
from ae_conf_bd_bdinfo
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="accessclass != null and accessclass != ''">and ACCESSCLASS = #{accessclass}</if>
|
||||
<if test="basedoctablename != null and basedoctablename != ''">and BASEDOCTABLENAME = #{basedoctablename}
|
||||
</if>
|
||||
<if test="basedoctablepkname != null and basedoctablepkname != ''">and BASEDOCTABLEPKNAME =
|
||||
#{basedoctablepkname}
|
||||
</if>
|
||||
<if test="bdcode != null and bdcode != ''">and BDCODE = #{bdcode}</if>
|
||||
<if test="bdname != null and bdname != ''">and BDNAME = #{bdname}</if>
|
||||
<if test="bdtype != null">and BDTYPE = #{bdtype}</if>
|
||||
<if test="budgetconst != null and budgetconst != ''">and BUDGETCONST = #{budgetconst}</if>
|
||||
<if test="classcheme != null and classcheme != ''">and CLASSCHEME = #{classcheme}</if>
|
||||
<if test="codefieldname != null and codefieldname != ''">and CODEFIELDNAME = #{codefieldname}</if>
|
||||
<if test="coderulegetter != null and coderulegetter != ''">and CODERULEGETTER = #{coderulegetter}</if>
|
||||
<if test="corpfieldname != null and corpfieldname != ''">and CORPFIELDNAME = #{corpfieldname}</if>
|
||||
<if test="dr != null">and DR = #{dr}</if>
|
||||
<if test="fatherfieldname != null and fatherfieldname != ''">and FATHERFIELDNAME = #{fatherfieldname}</if>
|
||||
<if test="funccode != null and funccode != ''">and FUNCCODE = #{funccode}</if>
|
||||
<if test="isdef != null and isdef != ''">and ISDEF = #{isdef}</if>
|
||||
<if test="isincludegroupdata != null and isincludegroupdata != ''">and ISINCLUDEGROUPDATA =
|
||||
#{isincludegroupdata}
|
||||
</if>
|
||||
<if test="isparaLevscheme != null and isparaLevscheme != ''">and ISPARA_LEVSCHEME = #{isparaLevscheme}</if>
|
||||
<if test="isselfref != null and isselfref != ''">and ISSELFREF = #{isselfref}</if>
|
||||
<if test="namefieldname != null and namefieldname != ''">and NAMEFIELDNAME = #{namefieldname}</if>
|
||||
<if test="orgbookfieldname != null and orgbookfieldname != ''">and ORGBOOKFIELDNAME = #{orgbookfieldname}
|
||||
</if>
|
||||
<if test="orgtypecode != null and orgtypecode != ''">and ORGTYPECODE = #{orgtypecode}</if>
|
||||
<if test="pkBdinfo != null and pkBdinfo != ''">and PK_BDINFO = #{pkBdinfo}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and PK_CORP = #{pkCorp}</if>
|
||||
<if test="pkDefdef != null and pkDefdef != ''">and PK_DEFDEF = #{pkDefdef}</if>
|
||||
<if test="refnodename != null and refnodename != ''">and REFNODENAME = #{refnodename}</if>
|
||||
<if test="refsystem != null and refsystem != ''">and REFSYSTEM = #{refsystem}</if>
|
||||
<if test="reserved1 != null and reserved1 != ''">and RESERVED1 = #{reserved1}</if>
|
||||
<if test="reserved2 != null and reserved2 != ''">and RESERVED2 = #{reserved2}</if>
|
||||
<if test="selfrefclass != null and selfrefclass != ''">and SELFREFCLASS = #{selfrefclass}</if>
|
||||
<if test="tablename != null and tablename != ''">and TABLENAME = #{tablename}</if>
|
||||
<if test="tablepkname != null and tablepkname != ''">and TABLEPKNAME = #{tablepkname}</if>
|
||||
<if test="ts != null">and TS = #{ts}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
select count(1) from ae_conf_bd_bdinfo
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="accessclass != null and accessclass != ''">and ACCESSCLASS = #{accessclass}</if>
|
||||
<if test="basedoctablename != null and basedoctablename != ''">and BASEDOCTABLENAME = #{basedoctablename}
|
||||
</if>
|
||||
<if test="basedoctablepkname != null and basedoctablepkname != ''">and BASEDOCTABLEPKNAME =
|
||||
#{basedoctablepkname}
|
||||
</if>
|
||||
<if test="bdcode != null and bdcode != ''">and BDCODE = #{bdcode}</if>
|
||||
<if test="bdname != null and bdname != ''">and BDNAME = #{bdname}</if>
|
||||
<if test="bdtype != null">and BDTYPE = #{bdtype}</if>
|
||||
<if test="budgetconst != null and budgetconst != ''">and BUDGETCONST = #{budgetconst}</if>
|
||||
<if test="classcheme != null and classcheme != ''">and CLASSCHEME = #{classcheme}</if>
|
||||
<if test="codefieldname != null and codefieldname != ''">and CODEFIELDNAME = #{codefieldname}</if>
|
||||
<if test="coderulegetter != null and coderulegetter != ''">and CODERULEGETTER = #{coderulegetter}</if>
|
||||
<if test="corpfieldname != null and corpfieldname != ''">and CORPFIELDNAME = #{corpfieldname}</if>
|
||||
<if test="dr != null">and DR = #{dr}</if>
|
||||
<if test="fatherfieldname != null and fatherfieldname != ''">and FATHERFIELDNAME = #{fatherfieldname}</if>
|
||||
<if test="funccode != null and funccode != ''">and FUNCCODE = #{funccode}</if>
|
||||
<if test="isdef != null and isdef != ''">and ISDEF = #{isdef}</if>
|
||||
<if test="isincludegroupdata != null and isincludegroupdata != ''">and ISINCLUDEGROUPDATA =
|
||||
#{isincludegroupdata}
|
||||
</if>
|
||||
<if test="isparaLevscheme != null and isparaLevscheme != ''">and ISPARA_LEVSCHEME = #{isparaLevscheme}</if>
|
||||
<if test="isselfref != null and isselfref != ''">and ISSELFREF = #{isselfref}</if>
|
||||
<if test="namefieldname != null and namefieldname != ''">and NAMEFIELDNAME = #{namefieldname}</if>
|
||||
<if test="orgbookfieldname != null and orgbookfieldname != ''">and ORGBOOKFIELDNAME = #{orgbookfieldname}
|
||||
</if>
|
||||
<if test="orgtypecode != null and orgtypecode != ''">and ORGTYPECODE = #{orgtypecode}</if>
|
||||
<if test="pkBdinfo != null and pkBdinfo != ''">and PK_BDINFO = #{pkBdinfo}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and PK_CORP = #{pkCorp}</if>
|
||||
<if test="pkDefdef != null and pkDefdef != ''">and PK_DEFDEF = #{pkDefdef}</if>
|
||||
<if test="refnodename != null and refnodename != ''">and REFNODENAME = #{refnodename}</if>
|
||||
<if test="refsystem != null and refsystem != ''">and REFSYSTEM = #{refsystem}</if>
|
||||
<if test="reserved1 != null and reserved1 != ''">and RESERVED1 = #{reserved1}</if>
|
||||
<if test="reserved2 != null and reserved2 != ''">and RESERVED2 = #{reserved2}</if>
|
||||
<if test="selfrefclass != null and selfrefclass != ''">and SELFREFCLASS = #{selfrefclass}</if>
|
||||
<if test="tablename != null and tablename != ''">and TABLENAME = #{tablename}</if>
|
||||
<if test="tablepkname != null and tablepkname != ''">and TABLEPKNAME = #{tablepkname}</if>
|
||||
<if test="ts != null">and TS = #{ts}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-AeConfBdBdinfoEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
select
|
||||
<include refid="AeConfBdBdinfoEntity_Base_Column_List"/>
|
||||
from ae_conf_bd_bdinfo
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="accessclass != null and accessclass != ''">and ACCESSCLASS like concat('%',#{accessclass},'%')
|
||||
</if>
|
||||
<if test="basedoctablename != null and basedoctablename != ''">and BASEDOCTABLENAME like
|
||||
concat('%',#{basedoctablename},'%')
|
||||
</if>
|
||||
<if test="basedoctablepkname != null and basedoctablepkname != ''">and BASEDOCTABLEPKNAME like
|
||||
concat('%',#{basedoctablepkname},'%')
|
||||
</if>
|
||||
<if test="bdcode != null and bdcode != ''">and BDCODE like concat('%',#{bdcode},'%')</if>
|
||||
<if test="bdname != null and bdname != ''">and BDNAME like concat('%',#{bdname},'%')</if>
|
||||
<if test="bdtype != null">and BDTYPE like concat('%',#{bdtype},'%')</if>
|
||||
<if test="budgetconst != null and budgetconst != ''">and BUDGETCONST like concat('%',#{budgetconst},'%')
|
||||
</if>
|
||||
<if test="classcheme != null and classcheme != ''">and CLASSCHEME like concat('%',#{classcheme},'%')</if>
|
||||
<if test="codefieldname != null and codefieldname != ''">and CODEFIELDNAME like
|
||||
concat('%',#{codefieldname},'%')
|
||||
</if>
|
||||
<if test="coderulegetter != null and coderulegetter != ''">and CODERULEGETTER like
|
||||
concat('%',#{coderulegetter},'%')
|
||||
</if>
|
||||
<if test="corpfieldname != null and corpfieldname != ''">and CORPFIELDNAME like
|
||||
concat('%',#{corpfieldname},'%')
|
||||
</if>
|
||||
<if test="dr != null">and DR like concat('%',#{dr},'%')</if>
|
||||
<if test="fatherfieldname != null and fatherfieldname != ''">and FATHERFIELDNAME like
|
||||
concat('%',#{fatherfieldname},'%')
|
||||
</if>
|
||||
<if test="funccode != null and funccode != ''">and FUNCCODE like concat('%',#{funccode},'%')</if>
|
||||
<if test="isdef != null and isdef != ''">and ISDEF like concat('%',#{isdef},'%')</if>
|
||||
<if test="isincludegroupdata != null and isincludegroupdata != ''">and ISINCLUDEGROUPDATA like
|
||||
concat('%',#{isincludegroupdata},'%')
|
||||
</if>
|
||||
<if test="isparaLevscheme != null and isparaLevscheme != ''">and ISPARA_LEVSCHEME like
|
||||
concat('%',#{isparaLevscheme},'%')
|
||||
</if>
|
||||
<if test="isselfref != null and isselfref != ''">and ISSELFREF like concat('%',#{isselfref},'%')</if>
|
||||
<if test="namefieldname != null and namefieldname != ''">and NAMEFIELDNAME like
|
||||
concat('%',#{namefieldname},'%')
|
||||
</if>
|
||||
<if test="orgbookfieldname != null and orgbookfieldname != ''">and ORGBOOKFIELDNAME like
|
||||
concat('%',#{orgbookfieldname},'%')
|
||||
</if>
|
||||
<if test="orgtypecode != null and orgtypecode != ''">and ORGTYPECODE like concat('%',#{orgtypecode},'%')
|
||||
</if>
|
||||
<if test="pkBdinfo != null and pkBdinfo != ''">and PK_BDINFO like concat('%',#{pkBdinfo},'%')</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and PK_CORP like concat('%',#{pkCorp},'%')</if>
|
||||
<if test="pkDefdef != null and pkDefdef != ''">and PK_DEFDEF like concat('%',#{pkDefdef},'%')</if>
|
||||
<if test="refnodename != null and refnodename != ''">and REFNODENAME like concat('%',#{refnodename},'%')
|
||||
</if>
|
||||
<if test="refsystem != null and refsystem != ''">and REFSYSTEM like concat('%',#{refsystem},'%')</if>
|
||||
<if test="reserved1 != null and reserved1 != ''">and RESERVED1 like concat('%',#{reserved1},'%')</if>
|
||||
<if test="reserved2 != null and reserved2 != ''">and RESERVED2 like concat('%',#{reserved2},'%')</if>
|
||||
<if test="selfrefclass != null and selfrefclass != ''">and SELFREFCLASS like
|
||||
concat('%',#{selfrefclass},'%')
|
||||
</if>
|
||||
<if test="tablename != null and tablename != ''">and TABLENAME like concat('%',#{tablename},'%')</if>
|
||||
<if test="tablepkname != null and tablepkname != ''">and TABLEPKNAME like concat('%',#{tablepkname},'%')
|
||||
</if>
|
||||
<if test="ts != null">and TS like concat('%',#{ts},'%')</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="AeConfBdBdinfoentity_list_or" resultMap="get-AeConfBdBdinfoEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
select
|
||||
<include refid="AeConfBdBdinfoEntity_Base_Column_List"/>
|
||||
from ae_conf_bd_bdinfo
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="accessclass != null and accessclass != ''">or ACCESSCLASS = #{accessclass}</if>
|
||||
<if test="basedoctablename != null and basedoctablename != ''">or BASEDOCTABLENAME = #{basedoctablename}
|
||||
</if>
|
||||
<if test="basedoctablepkname != null and basedoctablepkname != ''">or BASEDOCTABLEPKNAME =
|
||||
#{basedoctablepkname}
|
||||
</if>
|
||||
<if test="bdcode != null and bdcode != ''">or BDCODE = #{bdcode}</if>
|
||||
<if test="bdname != null and bdname != ''">or BDNAME = #{bdname}</if>
|
||||
<if test="bdtype != null">or BDTYPE = #{bdtype}</if>
|
||||
<if test="budgetconst != null and budgetconst != ''">or BUDGETCONST = #{budgetconst}</if>
|
||||
<if test="classcheme != null and classcheme != ''">or CLASSCHEME = #{classcheme}</if>
|
||||
<if test="codefieldname != null and codefieldname != ''">or CODEFIELDNAME = #{codefieldname}</if>
|
||||
<if test="coderulegetter != null and coderulegetter != ''">or CODERULEGETTER = #{coderulegetter}</if>
|
||||
<if test="corpfieldname != null and corpfieldname != ''">or CORPFIELDNAME = #{corpfieldname}</if>
|
||||
<if test="dr != null">or DR = #{dr}</if>
|
||||
<if test="fatherfieldname != null and fatherfieldname != ''">or FATHERFIELDNAME = #{fatherfieldname}</if>
|
||||
<if test="funccode != null and funccode != ''">or FUNCCODE = #{funccode}</if>
|
||||
<if test="isdef != null and isdef != ''">or ISDEF = #{isdef}</if>
|
||||
<if test="isincludegroupdata != null and isincludegroupdata != ''">or ISINCLUDEGROUPDATA =
|
||||
#{isincludegroupdata}
|
||||
</if>
|
||||
<if test="isparaLevscheme != null and isparaLevscheme != ''">or ISPARA_LEVSCHEME = #{isparaLevscheme}</if>
|
||||
<if test="isselfref != null and isselfref != ''">or ISSELFREF = #{isselfref}</if>
|
||||
<if test="namefieldname != null and namefieldname != ''">or NAMEFIELDNAME = #{namefieldname}</if>
|
||||
<if test="orgbookfieldname != null and orgbookfieldname != ''">or ORGBOOKFIELDNAME = #{orgbookfieldname}
|
||||
</if>
|
||||
<if test="orgtypecode != null and orgtypecode != ''">or ORGTYPECODE = #{orgtypecode}</if>
|
||||
<if test="pkBdinfo != null and pkBdinfo != ''">or PK_BDINFO = #{pkBdinfo}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">or PK_CORP = #{pkCorp}</if>
|
||||
<if test="pkDefdef != null and pkDefdef != ''">or PK_DEFDEF = #{pkDefdef}</if>
|
||||
<if test="refnodename != null and refnodename != ''">or REFNODENAME = #{refnodename}</if>
|
||||
<if test="refsystem != null and refsystem != ''">or REFSYSTEM = #{refsystem}</if>
|
||||
<if test="reserved1 != null and reserved1 != ''">or RESERVED1 = #{reserved1}</if>
|
||||
<if test="reserved2 != null and reserved2 != ''">or RESERVED2 = #{reserved2}</if>
|
||||
<if test="selfrefclass != null and selfrefclass != ''">or SELFREFCLASS = #{selfrefclass}</if>
|
||||
<if test="tablename != null and tablename != ''">or TABLENAME = #{tablename}</if>
|
||||
<if test="tablepkname != null and tablepkname != ''">or TABLEPKNAME = #{tablepkname}</if>
|
||||
<if test="ts != null">or TS = #{ts}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.entity;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* Created by zydd on 2025-06-04 14:57
|
||||
* 公司,账簿主体集合VO
|
||||
*/
|
||||
@Data
|
||||
public class OrgBookVO extends BaseEntity {
|
||||
/** 公司主键 */
|
||||
private String pkentityorg;
|
||||
/** 公司编码 */
|
||||
private String glorgcode;
|
||||
/** 公司名称 */
|
||||
private String glorgname;
|
||||
/** 账簿类型主键 */
|
||||
private String pkglbook;
|
||||
/** 账簿类型编码 */
|
||||
private String glbookcode;
|
||||
/** 账簿类型名称 */
|
||||
private String glbookname;
|
||||
/** 账簿主键 */
|
||||
private String pkglorgbook;
|
||||
/** 账簿编码 */
|
||||
private String glorgbookcode;
|
||||
/** 账簿名称 */
|
||||
private String glorgbookname;
|
||||
/** 时间戳 */
|
||||
private Date ts;
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
<?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.AeConfBdOrgBookVODaoImpl">
|
||||
|
||||
<resultMap id="get-OrgBookVO-result" type="com.hzya.frame.voucher.ae.comf.bd.entity.OrgBookVO">
|
||||
<result property="pkentityorg" column="pkentityorg" jdbcType="INTEGER"/>
|
||||
<result property="glorgcode" column="glorgcode" jdbcType="VARCHAR"/>
|
||||
<result property="glorgname" column="glorgname" jdbcType="VARCHAR"/>
|
||||
<result property="pkglbook" column="pkglbook" jdbcType="VARCHAR"/>
|
||||
<result property="glbookcode" column="glbookcode" jdbcType="VARCHAR"/>
|
||||
<result property="glbookname" column="glbookname" jdbcType="VARCHAR"/>
|
||||
<result property="pkglorgbook" column="pkglorgbook" jdbcType="VARCHAR"/>
|
||||
<result property="glorgbookcode" column="glorgbookcode" jdbcType="VARCHAR"/>
|
||||
<result property="glorgbookname" column="glorgbookname" jdbcType="VARCHAR"/>
|
||||
<result property="ts" column="ts"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id="OrgBookVO_Base_Column_List">
|
||||
pkentityorg,
|
||||
glorgcode,
|
||||
glorgname,
|
||||
pkglbook,
|
||||
glbookcode,
|
||||
glbookname,
|
||||
pkglorgbook,
|
||||
glorgbookcode,
|
||||
glorgbookname,
|
||||
ts
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<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
|
||||
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
|
||||
<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
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -35,8 +35,8 @@ public class ContrastController extends DefaultController {
|
|||
@RequestMapping(value = "/queryById", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryById(@RequestBody AeConfSubjectContrastEntity entity){
|
||||
try {
|
||||
List<AeConfSubjectContrastEntity> all = aeConfSubjectContrastService.queryById(entity);
|
||||
return getSuccessMessageEntity("请求成功",all);
|
||||
AeConfSubjectContrastEntity queryById = aeConfSubjectContrastService.queryById(entity);
|
||||
return getSuccessMessageEntity("请求成功",queryById);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity("请求失败",e.getMessage());
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.voucher.ae.comf.subject.dao;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-科目对照_子表(ae_conf_subject_contrast_b: table)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-04 10:30:42
|
||||
*/
|
||||
public interface IAeConfSubjectContrastBDao extends IBaseDao<AeConfSubjectContrastBEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.voucher.ae.comf.subject.dao.impl;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.dao.IAeConfSubjectContrastBDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-科目对照_子表(AeConfSubjectContrastB)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-04 10:30:42
|
||||
*/
|
||||
@Repository
|
||||
public class AeConfSubjectContrastBDaoImpl extends MybatisGenericDao<AeConfSubjectContrastBEntity, String> implements IAeConfSubjectContrastBDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
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-04 10:30:42
|
||||
*/
|
||||
@Data
|
||||
public class AeConfSubjectContrastBEntity extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 对照表id
|
||||
*/
|
||||
private Long contrastId;
|
||||
/**
|
||||
* 公司pk
|
||||
*/
|
||||
private String pkCorp;
|
||||
/**
|
||||
* 目标档案值(会计科目)
|
||||
*/
|
||||
private String desdocvalue;
|
||||
/**
|
||||
* 来源档案值1
|
||||
*/
|
||||
private String factorvalue1;
|
||||
/**
|
||||
* 来源档案值2
|
||||
*/
|
||||
private String factorvalue2;
|
||||
/**
|
||||
* 来源档案值3
|
||||
*/
|
||||
private String factorvalue3;
|
||||
/**
|
||||
* 来源档案值4
|
||||
*/
|
||||
private String factorvalue4;
|
||||
/**
|
||||
* 来源档案值5
|
||||
*/
|
||||
private String factorvalue5;
|
||||
/**
|
||||
* 来源档案值6
|
||||
*/
|
||||
private String factorvalue6;
|
||||
/**
|
||||
* 来源档案值7
|
||||
*/
|
||||
private String factorvalue7;
|
||||
/**
|
||||
* 来源档案值8
|
||||
*/
|
||||
private String factorvalue8;
|
||||
/**
|
||||
* 来源档案值9
|
||||
*/
|
||||
private String factorvalue9;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
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;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,461 @@
|
|||
<?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.subject.dao.impl.AeConfSubjectContrastBDaoImpl">
|
||||
|
||||
<resultMap id="get-AeConfSubjectContrastBEntity-result"
|
||||
type="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="contrastId" column="contrast_id" jdbcType="INTEGER"/>
|
||||
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
|
||||
<result property="desdocvalue" column="desdocvalue" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue1" column="factorvalue1" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue2" column="factorvalue2" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue3" column="factorvalue3" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue4" column="factorvalue4" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue5" column="factorvalue5" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue6" column="factorvalue6" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue7" column="factorvalue7" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue8" column="factorvalue8" jdbcType="VARCHAR"/>
|
||||
<result property="factorvalue9" column="factorvalue9" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="def1" column="def1" jdbcType="VARCHAR"/>
|
||||
<result property="def2" column="def2" jdbcType="VARCHAR"/>
|
||||
<result property="def3" column="def3" jdbcType="VARCHAR"/>
|
||||
<result property="def4" column="def4" jdbcType="VARCHAR"/>
|
||||
<result property="def5" column="def5" jdbcType="VARCHAR"/>
|
||||
<result property="def6" column="def6" jdbcType="VARCHAR"/>
|
||||
<result property="def7" column="def7" jdbcType="VARCHAR"/>
|
||||
<result property="def8" column="def8" jdbcType="VARCHAR"/>
|
||||
<result property="def9" column="def9" jdbcType="VARCHAR"/>
|
||||
<result property="def10" column="def10" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createUser" column="create_user" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modifyUser" column="modify_user" jdbcType="VARCHAR"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id="AeConfSubjectContrastBEntity_Base_Column_List">
|
||||
id
|
||||
,contrast_id
|
||||
,pk_corp
|
||||
,desdocvalue
|
||||
,factorvalue1
|
||||
,factorvalue2
|
||||
,factorvalue3
|
||||
,factorvalue4
|
||||
,factorvalue5
|
||||
,factorvalue6
|
||||
,factorvalue7
|
||||
,factorvalue8
|
||||
,factorvalue9
|
||||
,remark
|
||||
,def1
|
||||
,def2
|
||||
,def3
|
||||
,def4
|
||||
,def5
|
||||
,def6
|
||||
,def7
|
||||
,def8
|
||||
,def9
|
||||
,def10
|
||||
,create_time
|
||||
,create_user
|
||||
,modify_time
|
||||
,modify_user
|
||||
,sts
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-AeConfSubjectContrastBEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity">
|
||||
select
|
||||
<include refid="AeConfSubjectContrastBEntity_Base_Column_List"/>
|
||||
from ae_conf_subject_contrast_b
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id = #{id}</if>
|
||||
<if test="contrastId != null">and contrast_id = #{contrastId}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
|
||||
<if test="desdocvalue != null and desdocvalue != ''">and desdocvalue = #{desdocvalue}</if>
|
||||
<if test="factorvalue1 != null and factorvalue1 != ''">and factorvalue1 = #{factorvalue1}</if>
|
||||
<if test="factorvalue2 != null and factorvalue2 != ''">and factorvalue2 = #{factorvalue2}</if>
|
||||
<if test="factorvalue3 != null and factorvalue3 != ''">and factorvalue3 = #{factorvalue3}</if>
|
||||
<if test="factorvalue4 != null and factorvalue4 != ''">and factorvalue4 = #{factorvalue4}</if>
|
||||
<if test="factorvalue5 != null and factorvalue5 != ''">and factorvalue5 = #{factorvalue5}</if>
|
||||
<if test="factorvalue6 != null and factorvalue6 != ''">and factorvalue6 = #{factorvalue6}</if>
|
||||
<if test="factorvalue7 != null and factorvalue7 != ''">and factorvalue7 = #{factorvalue7}</if>
|
||||
<if test="factorvalue8 != null and factorvalue8 != ''">and factorvalue8 = #{factorvalue8}</if>
|
||||
<if test="factorvalue9 != null and factorvalue9 != ''">and factorvalue9 = #{factorvalue9}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
|
||||
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
|
||||
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
|
||||
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
|
||||
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
|
||||
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
|
||||
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
|
||||
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
|
||||
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
|
||||
<if test="def10 != null and def10 != ''">and def10 = #{def10}</if>
|
||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||
<if test="createUser != null and createUser != ''">and create_user = #{createUser}</if>
|
||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">and modify_user = #{modifyUser}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity">
|
||||
select count(1) from ae_conf_subject_contrast_b
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id = #{id}</if>
|
||||
<if test="contrastId != null">and contrast_id = #{contrastId}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
|
||||
<if test="desdocvalue != null and desdocvalue != ''">and desdocvalue = #{desdocvalue}</if>
|
||||
<if test="factorvalue1 != null and factorvalue1 != ''">and factorvalue1 = #{factorvalue1}</if>
|
||||
<if test="factorvalue2 != null and factorvalue2 != ''">and factorvalue2 = #{factorvalue2}</if>
|
||||
<if test="factorvalue3 != null and factorvalue3 != ''">and factorvalue3 = #{factorvalue3}</if>
|
||||
<if test="factorvalue4 != null and factorvalue4 != ''">and factorvalue4 = #{factorvalue4}</if>
|
||||
<if test="factorvalue5 != null and factorvalue5 != ''">and factorvalue5 = #{factorvalue5}</if>
|
||||
<if test="factorvalue6 != null and factorvalue6 != ''">and factorvalue6 = #{factorvalue6}</if>
|
||||
<if test="factorvalue7 != null and factorvalue7 != ''">and factorvalue7 = #{factorvalue7}</if>
|
||||
<if test="factorvalue8 != null and factorvalue8 != ''">and factorvalue8 = #{factorvalue8}</if>
|
||||
<if test="factorvalue9 != null and factorvalue9 != ''">and factorvalue9 = #{factorvalue9}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
|
||||
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
|
||||
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
|
||||
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
|
||||
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
|
||||
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
|
||||
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
|
||||
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
|
||||
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
|
||||
<if test="def10 != null and def10 != ''">and def10 = #{def10}</if>
|
||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||
<if test="createUser != null and createUser != ''">and create_user = #{createUser}</if>
|
||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">and modify_user = #{modifyUser}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-AeConfSubjectContrastBEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity">
|
||||
select
|
||||
<include refid="AeConfSubjectContrastBEntity_Base_Column_List"/>
|
||||
from ae_conf_subject_contrast_b
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id like concat('%',#{id},'%')</if>
|
||||
<if test="contrastId != null">and contrast_id like concat('%',#{contrastId},'%')</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and pk_corp like concat('%',#{pkCorp},'%')</if>
|
||||
<if test="desdocvalue != null and desdocvalue != ''">and desdocvalue like concat('%',#{desdocvalue},'%')
|
||||
</if>
|
||||
<if test="factorvalue1 != null and factorvalue1 != ''">and factorvalue1 like
|
||||
concat('%',#{factorvalue1},'%')
|
||||
</if>
|
||||
<if test="factorvalue2 != null and factorvalue2 != ''">and factorvalue2 like
|
||||
concat('%',#{factorvalue2},'%')
|
||||
</if>
|
||||
<if test="factorvalue3 != null and factorvalue3 != ''">and factorvalue3 like
|
||||
concat('%',#{factorvalue3},'%')
|
||||
</if>
|
||||
<if test="factorvalue4 != null and factorvalue4 != ''">and factorvalue4 like
|
||||
concat('%',#{factorvalue4},'%')
|
||||
</if>
|
||||
<if test="factorvalue5 != null and factorvalue5 != ''">and factorvalue5 like
|
||||
concat('%',#{factorvalue5},'%')
|
||||
</if>
|
||||
<if test="factorvalue6 != null and factorvalue6 != ''">and factorvalue6 like
|
||||
concat('%',#{factorvalue6},'%')
|
||||
</if>
|
||||
<if test="factorvalue7 != null and factorvalue7 != ''">and factorvalue7 like
|
||||
concat('%',#{factorvalue7},'%')
|
||||
</if>
|
||||
<if test="factorvalue8 != null and factorvalue8 != ''">and factorvalue8 like
|
||||
concat('%',#{factorvalue8},'%')
|
||||
</if>
|
||||
<if test="factorvalue9 != null and factorvalue9 != ''">and factorvalue9 like
|
||||
concat('%',#{factorvalue9},'%')
|
||||
</if>
|
||||
<if test="remark != null and remark != ''">and remark like concat('%',#{remark},'%')</if>
|
||||
<if test="def1 != null and def1 != ''">and def1 like concat('%',#{def1},'%')</if>
|
||||
<if test="def2 != null and def2 != ''">and def2 like concat('%',#{def2},'%')</if>
|
||||
<if test="def3 != null and def3 != ''">and def3 like concat('%',#{def3},'%')</if>
|
||||
<if test="def4 != null and def4 != ''">and def4 like concat('%',#{def4},'%')</if>
|
||||
<if test="def5 != null and def5 != ''">and def5 like concat('%',#{def5},'%')</if>
|
||||
<if test="def6 != null and def6 != ''">and def6 like concat('%',#{def6},'%')</if>
|
||||
<if test="def7 != null and def7 != ''">and def7 like concat('%',#{def7},'%')</if>
|
||||
<if test="def8 != null and def8 != ''">and def8 like concat('%',#{def8},'%')</if>
|
||||
<if test="def9 != null and def9 != ''">and def9 like concat('%',#{def9},'%')</if>
|
||||
<if test="def10 != null and def10 != ''">and def10 like concat('%',#{def10},'%')</if>
|
||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
||||
<if test="createUser != null and createUser != ''">and create_user like concat('%',#{createUser},'%')</if>
|
||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">and modify_user like concat('%',#{modifyUser},'%')</if>
|
||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="AeConfSubjectContrastBentity_list_or" resultMap="get-AeConfSubjectContrastBEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity">
|
||||
select
|
||||
<include refid="AeConfSubjectContrastBEntity_Base_Column_List"/>
|
||||
from ae_conf_subject_contrast_b
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">or id = #{id}</if>
|
||||
<if test="contrastId != null">or contrast_id = #{contrastId}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">or pk_corp = #{pkCorp}</if>
|
||||
<if test="desdocvalue != null and desdocvalue != ''">or desdocvalue = #{desdocvalue}</if>
|
||||
<if test="factorvalue1 != null and factorvalue1 != ''">or factorvalue1 = #{factorvalue1}</if>
|
||||
<if test="factorvalue2 != null and factorvalue2 != ''">or factorvalue2 = #{factorvalue2}</if>
|
||||
<if test="factorvalue3 != null and factorvalue3 != ''">or factorvalue3 = #{factorvalue3}</if>
|
||||
<if test="factorvalue4 != null and factorvalue4 != ''">or factorvalue4 = #{factorvalue4}</if>
|
||||
<if test="factorvalue5 != null and factorvalue5 != ''">or factorvalue5 = #{factorvalue5}</if>
|
||||
<if test="factorvalue6 != null and factorvalue6 != ''">or factorvalue6 = #{factorvalue6}</if>
|
||||
<if test="factorvalue7 != null and factorvalue7 != ''">or factorvalue7 = #{factorvalue7}</if>
|
||||
<if test="factorvalue8 != null and factorvalue8 != ''">or factorvalue8 = #{factorvalue8}</if>
|
||||
<if test="factorvalue9 != null and factorvalue9 != ''">or factorvalue9 = #{factorvalue9}</if>
|
||||
<if test="remark != null and remark != ''">or remark = #{remark}</if>
|
||||
<if test="def1 != null and def1 != ''">or def1 = #{def1}</if>
|
||||
<if test="def2 != null and def2 != ''">or def2 = #{def2}</if>
|
||||
<if test="def3 != null and def3 != ''">or def3 = #{def3}</if>
|
||||
<if test="def4 != null and def4 != ''">or def4 = #{def4}</if>
|
||||
<if test="def5 != null and def5 != ''">or def5 = #{def5}</if>
|
||||
<if test="def6 != null and def6 != ''">or def6 = #{def6}</if>
|
||||
<if test="def7 != null and def7 != ''">or def7 = #{def7}</if>
|
||||
<if test="def8 != null and def8 != ''">or def8 = #{def8}</if>
|
||||
<if test="def9 != null and def9 != ''">or def9 = #{def9}</if>
|
||||
<if test="def10 != null and def10 != ''">or def10 = #{def10}</if>
|
||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
||||
<if test="createUser != null and createUser != ''">or create_user = #{createUser}</if>
|
||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">or modify_user = #{modifyUser}</if>
|
||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity" keyProperty="id"
|
||||
useGeneratedKeys="true">
|
||||
insert into ae_conf_subject_contrast_b(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null">id ,</if>
|
||||
<if test="contrastId != null">contrast_id ,</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">pk_corp ,</if>
|
||||
<if test="desdocvalue != null and desdocvalue != ''">desdocvalue ,</if>
|
||||
<if test="factorvalue1 != null and factorvalue1 != ''">factorvalue1 ,</if>
|
||||
<if test="factorvalue2 != null and factorvalue2 != ''">factorvalue2 ,</if>
|
||||
<if test="factorvalue3 != null and factorvalue3 != ''">factorvalue3 ,</if>
|
||||
<if test="factorvalue4 != null and factorvalue4 != ''">factorvalue4 ,</if>
|
||||
<if test="factorvalue5 != null and factorvalue5 != ''">factorvalue5 ,</if>
|
||||
<if test="factorvalue6 != null and factorvalue6 != ''">factorvalue6 ,</if>
|
||||
<if test="factorvalue7 != null and factorvalue7 != ''">factorvalue7 ,</if>
|
||||
<if test="factorvalue8 != null and factorvalue8 != ''">factorvalue8 ,</if>
|
||||
<if test="factorvalue9 != null and factorvalue9 != ''">factorvalue9 ,</if>
|
||||
<if test="remark != null and remark != ''">remark ,</if>
|
||||
<if test="def1 != null and def1 != ''">def1 ,</if>
|
||||
<if test="def2 != null and def2 != ''">def2 ,</if>
|
||||
<if test="def3 != null and def3 != ''">def3 ,</if>
|
||||
<if test="def4 != null and def4 != ''">def4 ,</if>
|
||||
<if test="def5 != null and def5 != ''">def5 ,</if>
|
||||
<if test="def6 != null and def6 != ''">def6 ,</if>
|
||||
<if test="def7 != null and def7 != ''">def7 ,</if>
|
||||
<if test="def8 != null and def8 != ''">def8 ,</if>
|
||||
<if test="def9 != null and def9 != ''">def9 ,</if>
|
||||
<if test="def10 != null and def10 != ''">def10 ,</if>
|
||||
<if test="create_time != null">create_time ,</if>
|
||||
<if test="create_time == null">create_time ,</if>
|
||||
<if test="createUser != null and createUser != ''">create_user ,</if>
|
||||
<if test="modify_time != null">modify_time ,</if>
|
||||
<if test="modify_time == null">modify_time ,</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">modify_user ,</if>
|
||||
<if test="sts != null and sts != ''">sts ,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null">#{id} ,</if>
|
||||
<if test="contrastId != null">#{contrastId} ,</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">#{pkCorp} ,</if>
|
||||
<if test="desdocvalue != null and desdocvalue != ''">#{desdocvalue} ,</if>
|
||||
<if test="factorvalue1 != null and factorvalue1 != ''">#{factorvalue1} ,</if>
|
||||
<if test="factorvalue2 != null and factorvalue2 != ''">#{factorvalue2} ,</if>
|
||||
<if test="factorvalue3 != null and factorvalue3 != ''">#{factorvalue3} ,</if>
|
||||
<if test="factorvalue4 != null and factorvalue4 != ''">#{factorvalue4} ,</if>
|
||||
<if test="factorvalue5 != null and factorvalue5 != ''">#{factorvalue5} ,</if>
|
||||
<if test="factorvalue6 != null and factorvalue6 != ''">#{factorvalue6} ,</if>
|
||||
<if test="factorvalue7 != null and factorvalue7 != ''">#{factorvalue7} ,</if>
|
||||
<if test="factorvalue8 != null and factorvalue8 != ''">#{factorvalue8} ,</if>
|
||||
<if test="factorvalue9 != null and factorvalue9 != ''">#{factorvalue9} ,</if>
|
||||
<if test="remark != null and remark != ''">#{remark} ,</if>
|
||||
<if test="def1 != null and def1 != ''">#{def1} ,</if>
|
||||
<if test="def2 != null and def2 != ''">#{def2} ,</if>
|
||||
<if test="def3 != null and def3 != ''">#{def3} ,</if>
|
||||
<if test="def4 != null and def4 != ''">#{def4} ,</if>
|
||||
<if test="def5 != null and def5 != ''">#{def5} ,</if>
|
||||
<if test="def6 != null and def6 != ''">#{def6} ,</if>
|
||||
<if test="def7 != null and def7 != ''">#{def7} ,</if>
|
||||
<if test="def8 != null and def8 != ''">#{def8} ,</if>
|
||||
<if test="def9 != null and def9 != ''">#{def9} ,</if>
|
||||
<if test="def10 != null and def10 != ''">#{def10} ,</if>
|
||||
<if test="create_time != null">#{create_time} ,</if>
|
||||
<if test="create_time == null">now() ,</if>
|
||||
<if test="createUser != null and createUser != ''">#{createUser} ,</if>
|
||||
<if test="modify_time != null">#{modify_time} ,</if>
|
||||
<if test="modify_time == null">now() ,</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">#{modifyUser} ,</if>
|
||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into ae_conf_subject_contrast_b(contrast_id, pk_corp, desdocvalue, factorvalue1, factorvalue2,
|
||||
factorvalue3, factorvalue4, factorvalue5, factorvalue6, factorvalue7, factorvalue8, factorvalue9, remark, def1,
|
||||
def2, def3, def4, def5, def6, def7, def8, def9, def10, create_time, create_user, modify_time, modify_user, sts,
|
||||
sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.contrastId},#{entity.pkCorp},#{entity.desdocvalue},#{entity.factorvalue1},#{entity.factorvalue2},#{entity.factorvalue3},#{entity.factorvalue4},#{entity.factorvalue5},#{entity.factorvalue6},#{entity.factorvalue7},#{entity.factorvalue8},#{entity.factorvalue9},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts},
|
||||
'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into ae_conf_subject_contrast_b(contrast_id, pk_corp, desdocvalue, factorvalue1, factorvalue2,
|
||||
factorvalue3, factorvalue4, factorvalue5, factorvalue6, factorvalue7, factorvalue8, factorvalue9, remark, def1,
|
||||
def2, def3, def4, def5, def6, def7, def8, def9, def10, create_time, create_user, modify_time, modify_user, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.contrastId},#{entity.pkCorp},#{entity.desdocvalue},#{entity.factorvalue1},#{entity.factorvalue2},#{entity.factorvalue3},#{entity.factorvalue4},#{entity.factorvalue5},#{entity.factorvalue6},#{entity.factorvalue7},#{entity.factorvalue8},#{entity.factorvalue9},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
contrast_id = values(contrast_id),
|
||||
pk_corp = values(pk_corp),
|
||||
desdocvalue = values(desdocvalue),
|
||||
factorvalue1 = values(factorvalue1),
|
||||
factorvalue2 = values(factorvalue2),
|
||||
factorvalue3 = values(factorvalue3),
|
||||
factorvalue4 = values(factorvalue4),
|
||||
factorvalue5 = values(factorvalue5),
|
||||
factorvalue6 = values(factorvalue6),
|
||||
factorvalue7 = values(factorvalue7),
|
||||
factorvalue8 = values(factorvalue8),
|
||||
factorvalue9 = values(factorvalue9),
|
||||
remark = values(remark),
|
||||
def1 = values(def1),
|
||||
def2 = values(def2),
|
||||
def3 = values(def3),
|
||||
def4 = values(def4),
|
||||
def5 = values(def5),
|
||||
def6 = values(def6),
|
||||
def7 = values(def7),
|
||||
def8 = values(def8),
|
||||
def9 = values(def9),
|
||||
def10 = values(def10),
|
||||
create_time = values(create_time),
|
||||
create_user = values(create_user),
|
||||
modify_time = values(modify_time),
|
||||
modify_user = values(modify_user),
|
||||
sts = values(sts)
|
||||
</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity">
|
||||
update ae_conf_subject_contrast_b set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="contrastId != null">contrast_id = #{contrastId},</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">pk_corp = #{pkCorp},</if>
|
||||
<if test="desdocvalue != null and desdocvalue != ''">desdocvalue = #{desdocvalue},</if>
|
||||
<if test="factorvalue1 != null and factorvalue1 != ''">factorvalue1 = #{factorvalue1},</if>
|
||||
<if test="factorvalue2 != null and factorvalue2 != ''">factorvalue2 = #{factorvalue2},</if>
|
||||
<if test="factorvalue3 != null and factorvalue3 != ''">factorvalue3 = #{factorvalue3},</if>
|
||||
<if test="factorvalue4 != null and factorvalue4 != ''">factorvalue4 = #{factorvalue4},</if>
|
||||
<if test="factorvalue5 != null and factorvalue5 != ''">factorvalue5 = #{factorvalue5},</if>
|
||||
<if test="factorvalue6 != null and factorvalue6 != ''">factorvalue6 = #{factorvalue6},</if>
|
||||
<if test="factorvalue7 != null and factorvalue7 != ''">factorvalue7 = #{factorvalue7},</if>
|
||||
<if test="factorvalue8 != null and factorvalue8 != ''">factorvalue8 = #{factorvalue8},</if>
|
||||
<if test="factorvalue9 != null and factorvalue9 != ''">factorvalue9 = #{factorvalue9},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="def1 != null and def1 != ''">def1 = #{def1},</if>
|
||||
<if test="def2 != null and def2 != ''">def2 = #{def2},</if>
|
||||
<if test="def3 != null and def3 != ''">def3 = #{def3},</if>
|
||||
<if test="def4 != null and def4 != ''">def4 = #{def4},</if>
|
||||
<if test="def5 != null and def5 != ''">def5 = #{def5},</if>
|
||||
<if test="def6 != null and def6 != ''">def6 = #{def6},</if>
|
||||
<if test="def7 != null and def7 != ''">def7 = #{def7},</if>
|
||||
<if test="def8 != null and def8 != ''">def8 = #{def8},</if>
|
||||
<if test="def9 != null and def9 != ''">def9 = #{def9},</if>
|
||||
<if test="def10 != null and def10 != ''">def10 = #{def10},</if>
|
||||
<if test="create_time != null">create_time = #{create_time},</if>
|
||||
<if test="createUser != null and createUser != ''">create_user = #{createUser},</if>
|
||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
||||
<if test="modify_time == null">modify_time = now(),</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">modify_user = #{modifyUser},</if>
|
||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity">
|
||||
update ae_conf_subject_contrast_b
|
||||
set sts= 'N',
|
||||
modify_time = now()
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity">
|
||||
update ae_conf_subject_contrast_b set sts= 'N' ,modify_time = now()
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id = #{id}</if>
|
||||
<if test="contrastId != null">and contrast_id = #{contrastId}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
|
||||
<if test="desdocvalue != null and desdocvalue != ''">and desdocvalue = #{desdocvalue}</if>
|
||||
<if test="factorvalue1 != null and factorvalue1 != ''">and factorvalue1 = #{factorvalue1}</if>
|
||||
<if test="factorvalue2 != null and factorvalue2 != ''">and factorvalue2 = #{factorvalue2}</if>
|
||||
<if test="factorvalue3 != null and factorvalue3 != ''">and factorvalue3 = #{factorvalue3}</if>
|
||||
<if test="factorvalue4 != null and factorvalue4 != ''">and factorvalue4 = #{factorvalue4}</if>
|
||||
<if test="factorvalue5 != null and factorvalue5 != ''">and factorvalue5 = #{factorvalue5}</if>
|
||||
<if test="factorvalue6 != null and factorvalue6 != ''">and factorvalue6 = #{factorvalue6}</if>
|
||||
<if test="factorvalue7 != null and factorvalue7 != ''">and factorvalue7 = #{factorvalue7}</if>
|
||||
<if test="factorvalue8 != null and factorvalue8 != ''">and factorvalue8 = #{factorvalue8}</if>
|
||||
<if test="factorvalue9 != null and factorvalue9 != ''">and factorvalue9 = #{factorvalue9}</if>
|
||||
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
||||
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
|
||||
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
|
||||
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
|
||||
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
|
||||
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
|
||||
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
|
||||
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
|
||||
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
|
||||
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
|
||||
<if test="def10 != null and def10 != ''">and def10 = #{def10}</if>
|
||||
<if test="createUser != null and createUser != ''">and create_user = #{createUser}</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">and modify_user = #{modifyUser}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete
|
||||
from ae_conf_subject_contrast_b
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,226 +1,102 @@
|
|||
package com.hzya.frame.voucher.ae.comf.subject.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-科目对照(AeConfSubjectContrast)实体类
|
||||
*
|
||||
* ncc:fip_docview
|
||||
* @author zydd
|
||||
* @since 2025-05-30 15:04:47
|
||||
*/
|
||||
@Data
|
||||
public class AeConfSubjectContrastEntity extends BaseEntity {
|
||||
|
||||
/** 对照表code */
|
||||
private String code;
|
||||
/** 对照便name */
|
||||
private String name;
|
||||
/** 账簿id */
|
||||
private String accountBookId;
|
||||
/** 账簿code */
|
||||
private String accountBookCode;
|
||||
/** 账簿名称 */
|
||||
private String accountBookName;
|
||||
/** 公司pk */
|
||||
private String pkCorp;
|
||||
/** 公司类型 */
|
||||
private String corpType;
|
||||
/** 目标档案类型 */
|
||||
private String desdocid;
|
||||
/** 关联公司 */
|
||||
private String pkSetcorp1;
|
||||
/** 备注 */
|
||||
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;
|
||||
/**
|
||||
* 对照表code
|
||||
*/
|
||||
private String code;
|
||||
/**
|
||||
* 对照便name
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 账簿id
|
||||
*/
|
||||
private String accountBookId;
|
||||
/**
|
||||
* 账簿code
|
||||
*/
|
||||
private String accountBookCode;
|
||||
/**
|
||||
* 账簿名称
|
||||
*/
|
||||
private String accountBookName;
|
||||
|
||||
/**
|
||||
* 账簿类型id
|
||||
*/
|
||||
private String accountBookTypeId;
|
||||
private String accountBookTypeCode;
|
||||
private String accountBookTypeName;
|
||||
|
||||
/**
|
||||
* 公司pk
|
||||
*/
|
||||
private String pkCorp;
|
||||
/**
|
||||
* 公司类型
|
||||
*/
|
||||
private String corpType;
|
||||
/**
|
||||
* 目标档案类型
|
||||
*/
|
||||
private String desdocId;
|
||||
private String desdocCode;
|
||||
private String desdocName;
|
||||
/**
|
||||
* 关联公司
|
||||
*/
|
||||
private String pkSetcorp1;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
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;
|
||||
/**
|
||||
* 来源ids ,隔开
|
||||
*/
|
||||
private String sourceIds;
|
||||
/**
|
||||
* 来源names ,隔开
|
||||
*/
|
||||
private String sourceNames;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createUser;
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
private String modifyUser;
|
||||
|
||||
private List<AeConfSubjectContrastBEntity> contrastBEntityList;
|
||||
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
/** 多选来源档案时接收参数使用,在逐一保存自白哦 */
|
||||
private List<MappingFileVO> mappingFileVOS;
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAccountBookId() {
|
||||
return accountBookId;
|
||||
}
|
||||
|
||||
public void setAccountBookId(String accountBookId) {
|
||||
this.accountBookId = accountBookId;
|
||||
}
|
||||
|
||||
public String getAccountBookCode() {
|
||||
return accountBookCode;
|
||||
}
|
||||
|
||||
public void setAccountBookCode(String accountBookCode) {
|
||||
this.accountBookCode = accountBookCode;
|
||||
}
|
||||
|
||||
public String getAccountBookName() {
|
||||
return accountBookName;
|
||||
}
|
||||
|
||||
public void setAccountBookName(String accountBookName) {
|
||||
this.accountBookName = accountBookName;
|
||||
}
|
||||
|
||||
public String getPkCorp() {
|
||||
return pkCorp;
|
||||
}
|
||||
|
||||
public void setPkCorp(String pkCorp) {
|
||||
this.pkCorp = pkCorp;
|
||||
}
|
||||
|
||||
public String getCorpType() {
|
||||
return corpType;
|
||||
}
|
||||
|
||||
public void setCorpType(String corpType) {
|
||||
this.corpType = corpType;
|
||||
}
|
||||
|
||||
public String getDesdocid() {
|
||||
return desdocid;
|
||||
}
|
||||
|
||||
public void setDesdocid(String desdocid) {
|
||||
this.desdocid = desdocid;
|
||||
}
|
||||
|
||||
public String getPkSetcorp1() {
|
||||
return pkSetcorp1;
|
||||
}
|
||||
|
||||
public void setPkSetcorp1(String pkSetcorp1) {
|
||||
this.pkSetcorp1 = pkSetcorp1;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -10,9 +10,12 @@
|
|||
<result property="accountBookId" column="account_book_id" jdbcType="VARCHAR"/>
|
||||
<result property="accountBookCode" column="account_book_code" jdbcType="VARCHAR"/>
|
||||
<result property="accountBookName" column="account_book_name" jdbcType="VARCHAR"/>
|
||||
<result property="accountBookTypeId" column="account_book_type_id" jdbcType="VARCHAR"/>
|
||||
<result property="accountBookTypeCode" column="account_book_type_code" jdbcType="VARCHAR"/>
|
||||
<result property="accountBookTypeName" column="account_book_type_name" jdbcType="VARCHAR"/>
|
||||
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
|
||||
<result property="corpType" column="corp_type" jdbcType="VARCHAR"/>
|
||||
<result property="desdocid" column="desdocid" jdbcType="VARCHAR"/>
|
||||
<result property="desdocId" column="desdocid" jdbcType="VARCHAR"/>
|
||||
<result property="pkSetcorp1" column="pk_setcorp1" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="def1" column="def1" jdbcType="VARCHAR"/>
|
||||
|
@ -29,6 +32,8 @@
|
|||
<result property="createUser" column="create_user" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modifyUser" column="modify_user" jdbcType="VARCHAR"/>
|
||||
<result property="sourceIds" column="sourceIds" jdbcType="VARCHAR"/>
|
||||
<result property="sourceNames" column="sourceNames" jdbcType="VARCHAR"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
|
@ -39,7 +44,10 @@
|
|||
,account_book_id
|
||||
,account_book_code
|
||||
,account_book_name
|
||||
,pk_corp
|
||||
,account_book_type_id
|
||||
,account_book_type_code
|
||||
,account_book_type_name
|
||||
,pk_corp
|
||||
,corp_type
|
||||
,desdocid
|
||||
,pk_setcorp1
|
||||
|
@ -58,6 +66,8 @@
|
|||
,create_user
|
||||
,modify_time
|
||||
,modify_user
|
||||
,sourceIds
|
||||
,sourceNames
|
||||
,sts
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
|
@ -73,6 +83,11 @@
|
|||
<if test="accountBookId != null and accountBookId != ''">and account_book_id = #{accountBookId}</if>
|
||||
<if test="accountBookCode != null and accountBookCode != ''">and account_book_code = #{accountBookCode}</if>
|
||||
<if test="accountBookName != null and accountBookName != ''">and account_book_name = #{accountBookName}</if>
|
||||
<if test="accountBookTypeId != null and accountBookTypeId != ''">and account_book_type_id = #{accountBookTypeId}</if>
|
||||
<if test="accountBookTypeCode != null and accountBookTypeCode != ''">and account_book_type_code = #{accountBookTypeCode}</if>
|
||||
<if test="accountBookTypeName != null and accountBookTypeName != ''">and account_book_type_name = #{accountBookTypeName}</if>
|
||||
<if test="sourceIds != null and sourceIds != ''">and sourceIds = #{sourceIds}</if>
|
||||
<if test="sourceNames != null and sourceNames != ''">and sourceNames = #{sourceNames}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
|
||||
<if test="corpType != null and corpType != ''">and corp_type = #{corpType}</if>
|
||||
<if test="desdocid != null and desdocid != ''">and desdocid = #{desdocid}</if>
|
||||
|
@ -108,6 +123,11 @@
|
|||
<if test="accountBookId != null and accountBookId != ''">and account_book_id = #{accountBookId}</if>
|
||||
<if test="accountBookCode != null and accountBookCode != ''">and account_book_code = #{accountBookCode}</if>
|
||||
<if test="accountBookName != null and accountBookName != ''">and account_book_name = #{accountBookName}</if>
|
||||
<if test="accountBookTypeId != null and accountBookTypeId != ''">and account_book_type_id = #{accountBookTypeId}</if>
|
||||
<if test="accountBookTypeCode != null and accountBookTypeCode != ''">and account_book_type_code = #{accountBookTypeCode}</if>
|
||||
<if test="accountBookTypeName != null and accountBookTypeName != ''">and account_book_type_name = #{accountBookTypeName}</if>
|
||||
<if test="sourceIds != null and sourceIds != ''">and sourceIds = #{sourceIds}</if>
|
||||
<if test="sourceNames != null and sourceNames != ''">and sourceNames = #{sourceNames}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
|
||||
<if test="corpType != null and corpType != ''">and corp_type = #{corpType}</if>
|
||||
<if test="desdocid != null and desdocid != ''">and desdocid = #{desdocid}</if>
|
||||
|
@ -222,6 +242,11 @@
|
|||
<if test="accountBookId != null and accountBookId != ''">account_book_id ,</if>
|
||||
<if test="accountBookCode != null and accountBookCode != ''">account_book_code ,</if>
|
||||
<if test="accountBookName != null and accountBookName != ''">account_book_name ,</if>
|
||||
<if test="accountBookTypeId != null and accountBookTypeId != ''">account_book_type_id ,</if>
|
||||
<if test="accountBookTypeCode != null and accountBookTypeCode != ''">account_book_type_code ,</if>
|
||||
<if test="accountBookTypeName != null and accountBookTypeName != ''">account_book_type_name ,</if>
|
||||
<if test="sourceIds != null and sourceIds != ''">sourceIds ,</if>
|
||||
<if test="sourceNames != null and sourceNames != ''">sourceNames ,</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">pk_corp ,</if>
|
||||
<if test="corpType != null and corpType != ''">corp_type ,</if>
|
||||
<if test="desdocid != null and desdocid != ''">desdocid ,</if>
|
||||
|
@ -253,6 +278,11 @@
|
|||
<if test="accountBookId != null and accountBookId != ''">#{accountBookId} ,</if>
|
||||
<if test="accountBookCode != null and accountBookCode != ''">#{accountBookCode} ,</if>
|
||||
<if test="accountBookName != null and accountBookName != ''">#{accountBookName} ,</if>
|
||||
<if test="accountBookTypeId != null and accountBookTypeId != ''">#{accountBookTypeId} ,</if>
|
||||
<if test="accountBookTypeCode != null and accountBookTypeCode != ''">#{accountBookTypeCode} ,</if>
|
||||
<if test="accountBookTypeName != null and accountBookTypeName != ''">#{accountBookTypeName} ,</if>
|
||||
<if test="sourceIds != null and sourceIds != ''">#{sourceIds} ,</if>
|
||||
<if test="sourceNames != null and sourceNames != ''">#{sourceNames} ,</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">#{pkCorp} ,</if>
|
||||
<if test="corpType != null and corpType != ''">#{corpType} ,</if>
|
||||
<if test="desdocid != null and desdocid != ''">#{desdocid} ,</if>
|
||||
|
@ -370,7 +400,7 @@
|
|||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity">
|
||||
update ae_conf_subject_contrast set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
update ae_conf_subject_contrast set sts= 'N' ,modify_time = #{modify_time}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id = #{id}</if>
|
||||
<if test="code != null and code != ''">and code = #{code}</if>
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
package com.hzya.frame.voucher.ae.comf.subject.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Created by zydd on 2025-06-04 11:24
|
||||
* 科目对照来源档案使用
|
||||
*/
|
||||
@Data
|
||||
public class MappingFileVO {
|
||||
private String id;
|
||||
private String code;
|
||||
private String name;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.hzya.frame.voucher.ae.comf.subject.service;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-科目对照_子表(AeConfSubjectContrastB)表服务接口
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-04 10:30:42
|
||||
*/
|
||||
public interface IAeConfSubjectContrastBService extends IBaseService<AeConfSubjectContrastBEntity, String>{
|
||||
}
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
public interface IAeConfSubjectContrastService extends IBaseService<AeConfSubjectContrastEntity, String>{
|
||||
List<AeConfSubjectContrastEntity> queryAll(AeConfSubjectContrastEntity entity);
|
||||
|
||||
List<AeConfSubjectContrastEntity> queryById(AeConfSubjectContrastEntity entity);
|
||||
AeConfSubjectContrastEntity queryById(AeConfSubjectContrastEntity entity);
|
||||
|
||||
AeConfSubjectContrastEntity saveEntity(AeConfSubjectContrastEntity entity);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
package com.hzya.frame.voucher.ae.comf.subject.service.impl;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.dao.IAeConfSubjectContrastBDao;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.service.IAeConfSubjectContrastBService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import javax.annotation.Resource;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-科目对照_子表(AeConfSubjectContrastB)表服务实现类
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-04 10:30:42
|
||||
*/
|
||||
@Service
|
||||
public class AeConfSubjectContrastBServiceImpl extends BaseService<AeConfSubjectContrastBEntity, String> implements IAeConfSubjectContrastBService {
|
||||
|
||||
private IAeConfSubjectContrastBDao aeConfSubjectContrastBDao;
|
||||
|
||||
@Autowired
|
||||
public void setAeConfSubjectContrastBDao(IAeConfSubjectContrastBDao dao) {
|
||||
this.aeConfSubjectContrastBDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
}
|
|
@ -1,14 +1,20 @@
|
|||
package com.hzya.frame.voucher.ae.comf.subject.service.impl;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.dao.IAeConfSubjectContrastBDao;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.dao.IAeConfSubjectContrastDao;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.entity.MappingFileVO;
|
||||
import com.hzya.frame.voucher.ae.comf.subject.service.IAeConfSubjectContrastService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
@ -19,36 +25,88 @@ import java.util.List;
|
|||
*/
|
||||
@Service
|
||||
public class AeConfSubjectContrastServiceImpl extends BaseService<AeConfSubjectContrastEntity, String> implements IAeConfSubjectContrastService {
|
||||
|
||||
|
||||
private IAeConfSubjectContrastDao aeConfSubjectContrastDao;
|
||||
|
||||
|
||||
@Autowired
|
||||
public void setAeConfSubjectContrastDao(IAeConfSubjectContrastDao dao) {
|
||||
this.aeConfSubjectContrastDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
public void setAeConfSubjectContrastDao(IAeConfSubjectContrastDao dao) {
|
||||
this.aeConfSubjectContrastDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private IAeConfSubjectContrastBDao aeConfSubjectContrastBDao;
|
||||
|
||||
@Override
|
||||
public List<AeConfSubjectContrastEntity> queryAll(AeConfSubjectContrastEntity entity) {
|
||||
|
||||
return null;
|
||||
Assert.notNull(entity.getPkCorp(), "查询全部对照表时,公司id不能为空!");
|
||||
List<AeConfSubjectContrastEntity> aeConfSubjectContrastEntityList = aeConfSubjectContrastDao.query(entity);
|
||||
//查询子表
|
||||
for (AeConfSubjectContrastEntity confSubjectContrastEntity : aeConfSubjectContrastEntityList) {
|
||||
AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity = new AeConfSubjectContrastBEntity();
|
||||
aeConfSubjectContrastBEntity.setContrastId(Long.valueOf(confSubjectContrastEntity.getId()));
|
||||
List<AeConfSubjectContrastBEntity> aeConfSubjectContrastBEntityList = aeConfSubjectContrastBDao.query(aeConfSubjectContrastBEntity);
|
||||
confSubjectContrastEntity.setContrastBEntityList(aeConfSubjectContrastBEntityList);
|
||||
}
|
||||
return aeConfSubjectContrastEntityList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AeConfSubjectContrastEntity> queryById(AeConfSubjectContrastEntity entity) {
|
||||
Assert.notNull(entity.getId(),"根据id查询科目对照时,科目对照表id不能为空");
|
||||
return null;
|
||||
public AeConfSubjectContrastEntity queryById(AeConfSubjectContrastEntity entity) {
|
||||
Assert.notNull(entity.getPkCorp(), "根据id查询科目对照时,公司id不能为空!");
|
||||
Assert.notNull(entity.getId(), "根据id查询科目对照时,科目对照表id不能为空");
|
||||
List<AeConfSubjectContrastEntity> aeConfSubjectContrastEntityList = aeConfSubjectContrastDao.query(entity);
|
||||
if (aeConfSubjectContrastEntityList.size() == 0) {
|
||||
Assert.state(false, "根据科目对照表id:{},未查询到科目对照!", entity.getId());
|
||||
}
|
||||
if (aeConfSubjectContrastEntityList.size() > 1) {
|
||||
Assert.state(false, "根据科目对照表id:{},查询到科目对照不唯一!", entity.getId());
|
||||
}
|
||||
AeConfSubjectContrastEntity contrastEntity = aeConfSubjectContrastEntityList.get(0);
|
||||
//查询子表
|
||||
AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity = new AeConfSubjectContrastBEntity();
|
||||
aeConfSubjectContrastBEntity.setContrastId(Long.valueOf(contrastEntity.getId()));
|
||||
List<AeConfSubjectContrastBEntity> aeConfSubjectContrastBEntityList = aeConfSubjectContrastBDao.query(aeConfSubjectContrastBEntity);
|
||||
contrastEntity.setContrastBEntityList(aeConfSubjectContrastBEntityList);
|
||||
|
||||
return contrastEntity;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增科目对照表
|
||||
* TODO..账簿未同步
|
||||
* 新增科目对照表。现保存主表,再将来源档案分割为子表进行存储
|
||||
*/
|
||||
@Override
|
||||
public AeConfSubjectContrastEntity saveEntity(AeConfSubjectContrastEntity entity) {
|
||||
Assert.notNull(entity.getAccountBookId(),"科目对照表新增时,账簿id不能为空!");
|
||||
Assert.notNull(entity.getAccountBookCode(),"科目对照表新增时,账簿code不能为空!");
|
||||
Assert.notNull(entity.getAccountBookName(),"科目对照表新增时,账簿name不能为空!");
|
||||
return null;
|
||||
Assert.notNull(entity.getPkCorp(), "科目对照表新增时,公司id不能为空!");
|
||||
Assert.notNull(entity.getCode(), "科目对照表新增时,code不能为空!");
|
||||
Assert.notNull(entity.getName(), "科目对照表新增时,name不能为空!");
|
||||
Assert.notNull(entity.getAccountBookTypeId(), "科目对照表新增时,账簿类型id不能为空!");
|
||||
Assert.notNull(entity.getAccountBookTypeCode(), "科目对照表新增时,账簿类型code不能为空!");
|
||||
Assert.notNull(entity.getAccountBookTypeName(), "科目对照表新增时,账簿类型name不能为空!");
|
||||
Assert.notNull(entity.getSourceIds(), "科目对照表新增时,来源档案ids不能为空!");
|
||||
Assert.notNull(entity.getSourceNames(), "科目对照表新增时,来源档案names不能为空!");
|
||||
|
||||
|
||||
List<AeConfSubjectContrastBEntity> contrastBList = entity.getContrastBEntityList();
|
||||
Assert.notNull(contrastBList, "科目对照表新增时,来源档案不能为空!");
|
||||
if (contrastBList == null || contrastBList.size() == 0) {
|
||||
Assert.state(false, "科目对照表新增时,来源档案VOS不能为空!");
|
||||
}
|
||||
if (contrastBList.size() > 9) {
|
||||
Assert.state(false, "科目对照表新增时,来源档案VOS最多为9个!");
|
||||
}
|
||||
|
||||
//保存主表
|
||||
AeConfSubjectContrastEntity saveH = aeConfSubjectContrastDao.save(entity);
|
||||
String Hid = saveH.getId();
|
||||
String HpkCorp = saveH.getPkCorp();
|
||||
|
||||
//保存子表
|
||||
for (AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity : contrastBList) {
|
||||
aeConfSubjectContrastBEntity.setContrastId(Long.valueOf(Hid));
|
||||
aeConfSubjectContrastBEntity.setPkCorp(HpkCorp);
|
||||
AeConfSubjectContrastBEntity saveB = aeConfSubjectContrastBDao.save(aeConfSubjectContrastBEntity);
|
||||
}
|
||||
return saveH;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue