Compare commits

..

26 Commits

Author SHA1 Message Date
zhengyf 67ab11cddc 1、单据查询字段时,新增嵌套 2025-06-25 10:39:39 +08:00
zhengyf dea87559c8 1、会计辅助核算项目改为一张表 2025-06-25 10:39:12 +08:00
zhengyf 926c2f0bda 1、新增现金流量项目、科目对应表查询接口 2025-06-17 10:42:56 +08:00
zhengyf 202db9a448 1、新增公司查询接口。
2、优化分类定义接口,方法等。
2025-06-16 10:14:56 +08:00
zhengyf 082a6a1e6e 1、修改接口报错返回。 2025-06-12 16:25:47 +08:00
zhengyf 29b9d70eb5 1、优化查询档案,科目表,档案类主数据查询的优化等。 2025-06-12 14:39:53 +08:00
zhengyf 43b44223b3 1、修改科目表,公司,账簿,账簿类型表的数据源为中台,部分表为中台创建。 2025-06-11 18:03:04 +08:00
zhengyf 981f12d480 1、主数据新增字段时:系统主键、系统编码、系统名称的新增方法,修改方法优化。 2025-06-10 10:28:07 +08:00
zhengyf 8f20dc7668 1、科目对照新增补充字段:系统主键、系统编码、系统名称 2025-06-10 08:47:41 +08:00
zhengyf 4d8905f445 广脉:1、科目对照新增补充字段 2025-06-09 08:46:09 +08:00
zhengyf 89a76ef43e 广脉:1、优化科目对照相关接口。。
2、科目对照子表新增公司名称字段
2025-06-06 19:55:13 +08:00
zhengyf 4e46ee0e8c 广脉:1、优化查询外部数据,分页方法。 2025-06-06 16:42:09 +08:00
zhengyf b93aa1f7af 广脉:1、新增科目对照子表相关接口 2025-06-06 16:29:35 +08:00
zhengyf 10c49cb967 广脉:1、新增动态查询u8c数据 2025-06-06 11:34:56 +08:00
zhengyf 500bf1e322 广脉:1、新增科目表,查询科目接口,科目树形结构等 2025-06-05 18:42:19 +08:00
zhengyf c4ba9bd0ac 广脉:1、重构科目对照表子表 2025-06-05 15:16:28 +08:00
zhengyf 07b3d8cdcb 广脉:1、新增基础档案表,公司账簿查询等 2025-06-05 15:11:03 +08:00
zhengyf 27c69cc33f 广脉:1、优化业务模块-主数据一对一的问题。
2、优化业务模块-主数据删除时影响因素关联问题。
2025-06-03 11:20:01 +08:00
zhengyf fd6dcba206 广脉:1、新增是过滤id。2、影响因素删除时,需要考虑影响因素关联是否有引用,引用则不可删除。 2025-05-30 15:01:33 +08:00
zhengyf 150ce57bfb 广脉:1、新增影响因素关联相关接口 2025-05-28 10:50:43 +08:00
zhengyf a3a8cc3143 广脉:1、新增影响因素关联相关接口 2025-05-28 09:09:25 +08:00
zhengyf 93d141640f 广脉:1、新增业务模块-主数据相关接口 2025-05-27 08:37:17 +08:00
zhengyf 128ea0c5c3 广脉:1、新增业务模块,影响因素设置模块,基础接口 2025-05-23 14:50:06 +08:00
zhengyf ade8b2c5cb 修改配置文件 2025-04-17 17:54:44 +08:00
zhengyf 0243ae99eb 删除多余配置文件 2025-04-17 16:37:21 +08:00
zhengyf bf64f70a1a update 2025-04-17 16:29:37 +08:00
185 changed files with 8677 additions and 7414 deletions

View File

@ -38,12 +38,6 @@
<profile.active>llg</profile.active>
</properties>
</profile>
<profile>
<id>xel</id> <!--xel-->
<properties>
<profile.active>xel</profile.active>
</properties>
</profile>
<profile>
<id>zqtlocal</id> <!--曾庆拓-->
<properties>

View File

@ -0,0 +1,10 @@
package com.hzya.frame.voucher;
/**
* Created by zydd on 2025-04-17 16:26
*/
public class Test {
public static void main(String[] args) {
System.out.println(1);
}
}

View File

@ -0,0 +1,305 @@
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.dao.IMdmModuleDao;
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.*;
import com.hzya.frame.voucher.ae.comf.bd.entity.*;
import com.hzya.frame.voucher.ae.comf.bd.entity.vo.*;
import com.hzya.frame.voucher.ae.comf.bd.utils.AccsubjTreeBuilder;
import com.hzya.frame.web.action.DefaultController;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
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.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 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;
@Autowired
private IAeConfBdAccsubjDao aeConfBdAccsubjDao;
@Autowired
private IMdmDBQueryVODAO mdmDBQueryVODAO;
@Autowired
private IMdmModuleService mdmModuleService;
@Autowired
private IMdmModuleDao mdmModuleDao;
@Autowired
private IMdmDbFiledVODAO mdmDbFiledVODAO;
/**
* 查询所有公司
*/
@RequestMapping(value = "/queryOrgVO", method = RequestMethod.POST)
public JsonResultEntity queryOrgVO(@RequestBody OrgBookVO vo) {
try {
List<OrgBookVO> all = aeConfBdOrgBookVODao.queryOrgVO(vo);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 查询所有公司账簿信息
*/
@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());
// }
// }
/**
* 查询基础数据资源表
*/
@RequestMapping(value = "/queryBdinfoList", method = RequestMethod.POST)
public JsonResultEntity queryBdinfoList(@RequestBody MdmDbFiledVO entity) {
try {
MdmDbFiledVO mdmDbFiledVO = new MdmDbFiledVO();
mdmDbFiledVO.setMdmType("1");//1档案 2单据
mdmDbFiledVO.setMdmId(entity.getPkBdinfo());
List<MdmDbFiledVO> all = new ArrayList<>();
List<MdmDbFiledVO> mdmDbFiledVOList = mdmDbFiledVODAO.queryMdmDbFiledVO(mdmDbFiledVO);
for (MdmDbFiledVO dbFiledVO : mdmDbFiledVOList) {
dbFiledVO.setPkBdinfo(dbFiledVO.getMdmId());
dbFiledVO.setBdcode(dbFiledVO.getMdmCode());
dbFiledVO.setBdname(dbFiledVO.getMdmName());
dbFiledVO.setTablepkname("id");
}
if (entity.getMdmName() != null) {
for (MdmDbFiledVO mdmDbFiled : mdmDbFiledVOList) {
if (mdmDbFiled.getMdmName().contains(entity.getMdmName())) {
all.add(mdmDbFiled);
}
}
} else {
all = mdmDbFiledVOList;
}
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 查询科目表根据账簿id
*/
@RequestMapping(value = "/queryAccSubjByOrgBookId", method = RequestMethod.POST)
public JsonResultEntity queryAccSubjByOrgBookId(@RequestBody AeConfBdAccsubjEntity entity) {
try {
Assert.notNull(entity.getPkGlorgbook(), "查询科目表时账簿id不允许为空");
List<AeConfBdAccsubjEntity> all = aeConfBdAccsubjDao.query(entity);
List<AccsubjTreeNode> tree = AccsubjTreeBuilder.buildTree(all);
return getSuccessMessageEntity("请求成功", tree);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
// /**
// * 查询基础数据数据表直连U8C数据库
// */
// @RequestMapping(value = "/queryDataByMap", method = RequestMethod.POST)
// public JsonResultEntity queryDataByMap(@RequestBody HashMap<String, String> map) {
// try {
// if (map.get("tablename") == null || "".equals(map.get("tablename"))) {
// return getSuccessMessageEntity("请求成功", null);
// }
// //查询u8c数据库
// U8CQueryVO u8CQueryVO = new U8CQueryVO();
// u8CQueryVO.setDataSourceCode(ProfilesActiveConstant.LETS_PROD_DATE_SOURCE);
// u8CQueryVO.setTablename(map.get("tablename"));
// List<Map<String, Object>> objectList = u8CQueryVODAO.queryU8CBD(u8CQueryVO);
//
// return getSuccessMessageEntity("请求成功", objectList);
// } catch (Exception e) {
// e.printStackTrace();
// return getFailureMessageEntity(e.getMessage());
// }
// }
/**
* 查询基础数据数据表查询本地库
*/
@RequestMapping(value = "/queryDataByMap", method = RequestMethod.POST)
public JsonResultEntity queryDataByMap(@RequestBody MdmDBQueryVO mdmDBQueryVO) {
try {
if (mdmDBQueryVO.getTablename() == null || "".equals(mdmDBQueryVO.getTablename())) {
return getSuccessMessageEntity("请求成功", null);
}
List<Map<String, Object>> objectList = mdmDBQueryVODAO.queryMdmDb(mdmDBQueryVO);
return getSuccessMessageEntity("请求成功", objectList);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 查询基础数据数据表
*/
@RequestMapping(value = "/queryDataPagedByMap", method = RequestMethod.POST)
public JsonResultEntity queryDataPagedByMap(@RequestBody MdmDBQueryVO mdmDBQueryVO) {
try {
if (mdmDBQueryVO.getTablename() == null || "".equals(mdmDBQueryVO.getTablename())) {
return getSuccessMessageEntity("请求成功", null);
}
PageHelper.startPage(mdmDBQueryVO.getPageNum(), mdmDBQueryVO.getPageSize());
List<Map<String, Object>> objectList = mdmDBQueryVODAO.queryMdmDb(mdmDBQueryVO);
PageInfo pageInfo = new PageInfo(objectList);
return getSuccessMessageEntity("请求成功", pageInfo);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 查询现金流映射表
*/
@RequestMapping(value = "/queryCashFlowMap", method = RequestMethod.POST)
public JsonResultEntity queryCashFlowMap(@RequestBody CashFlowVO entity) {
try {
List<CashFlowVO> cashFlowVOS = mdmDBQueryVODAO.queryCashflowVO(entity);
return getSuccessMessageEntity("请求成功", cashFlowVOS);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 查询科目对应表
*/
@RequestMapping(value = "/queryGlsubrelation", method = RequestMethod.POST)
public JsonResultEntity queryGlsubrelation(@RequestBody GlSubrelationVO entity) {
try {
List<GlSubrelationVO> glSubrelationVOS = mdmDBQueryVODAO.queryGlsubrelationVO(entity);
return getSuccessMessageEntity("请求成功", glSubrelationVOS);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 查询基础档案表bd_bdinfo
*/
@RequestMapping(value = "/queryBdInfo", method = RequestMethod.POST)
public JsonResultEntity queryBdInfo(@RequestBody BdBdinfoEntity entity) {
try {
List<BdBdinfoEntity> list = mdmDBQueryVODAO.queryBdBdinfoList(entity);
return getSuccessMessageEntity("请求成功", list);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 查询辅助核算关联的档案
*/
@RequestMapping(value = "/queryBdInfoBySubjass", method = RequestMethod.POST)
public JsonResultEntity queryBdInfoBySubjass(@RequestBody BdAccassitemVO entity) {
try {
List<BdAccassitemVO> list = mdmDBQueryVODAO.queryBdInfoBySubjass(entity);
return getSuccessMessageEntity("请求成功", list);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 查询辅助核算关联的档案-事项分录可选
*/
@RequestMapping(value = "/queryBdInfoBySubjassFilter", method = RequestMethod.POST)
public JsonResultEntity queryBdInfoBySubjassFilter(@RequestBody BdAccassitemVO entity) {
try {
List<BdAccassitemVO> all = new ArrayList<>();
//查询所有关联
List<BdAccassitemVO> list = mdmDBQueryVODAO.queryBdInfoBySubjass(entity);
//查询现有的档案
List<MdmModuleEntity> query = mdmModuleDao.queryMdm(null);
System.out.println(query);
for (BdAccassitemVO bdBdinfoEntity : list) {
for (MdmModuleEntity mdmModuleEntity : query) {
if (bdBdinfoEntity.getPkAccassitem().equals(mdmModuleEntity.getU8cDbPk())
|| bdBdinfoEntity.getPkAccassitem().equals(mdmModuleEntity.getNccDbPk())
|| bdBdinfoEntity.getPkAccassitem().equals(mdmModuleEntity.getYsDbPk())) {
all.add(bdBdinfoEntity);
break;
}
}
}
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
// /**
// *
// */
// @RequestMapping(value = "/", method = RequestMethod.POST)
// public JsonResultEntity (@RequestBody entity) {
// try {
// List<> list = mdmDBQueryVODAO.(entity);
// return getSuccessMessageEntity("请求成功", list);
// } catch (Exception e) {
// e.printStackTrace();
// return getFailureMessageEntity(e.getMessage());
// }
// }
}

View File

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

View File

@ -0,0 +1,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> {
}

View File

@ -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.vo.OrgBookVO;
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);
public List<OrgBookVO> queryOrgVO(OrgBookVO vo);
}

View File

@ -0,0 +1,18 @@
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.vo.*;
import java.util.List;
import java.util.Map;
/**
* Created by zydd on 2025-06-06 10:03
*/
public interface IMdmDBQueryVODAO extends IBaseDao<MdmDBQueryVO, String> {
List<Map<String, Object>> queryMdmDb(MdmDBQueryVO u8CQueryVO);
List<CashFlowVO> queryCashflowVO(CashFlowVO cashFlowVO);
List<GlSubrelationVO> queryGlsubrelationVO(GlSubrelationVO glSubrelationVO);
List<BdBdinfoEntity> queryBdBdinfoList(BdBdinfoEntity entity);
List<BdAccassitemVO> queryBdInfoBySubjass(BdAccassitemVO entity);
}

View File

@ -0,0 +1,14 @@
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.vo.MdmDbFiledVO;
import java.util.List;
import java.util.Map;
/**
* Created by zydd on 2025-06-06 10:03
*/
public interface IMdmDbFiledVODAO extends IBaseDao<MdmDbFiledVO, String> {
public List<MdmDbFiledVO> queryMdmDbFiledVO(MdmDbFiledVO vo);
}

View File

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

View File

@ -0,0 +1,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{
}

View File

@ -0,0 +1,26 @@
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.vo.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;
}
@Override
public List<OrgBookVO> queryOrgVO(OrgBookVO vo) {
List<OrgBookVO> orgBookVOList = (List<OrgBookVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.AeConfBdOrgBookVODaoImpl.queryOrgVO", vo);
return orgBookVOList;
}
}

View File

@ -0,0 +1,50 @@
package com.hzya.frame.voucher.ae.comf.bd.dao.impl;
import cn.hutool.core.lang.Assert;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.voucher.ae.comf.bd.dao.IMdmDBQueryVODAO;
import com.hzya.frame.voucher.ae.comf.bd.entity.vo.*;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* Created by zydd on 2025-06-06 10:05
*/
@Repository
public class MdmDBQueryVODAOImpl extends MybatisGenericDao<MdmDBQueryVO, String> implements IMdmDBQueryVODAO {
@Override
public List<Map<String, Object>> queryMdmDb(MdmDBQueryVO u8CQueryVO) {
List<Map<String, Object>> maps = (List<Map<String, Object>>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryMdmDb", u8CQueryVO);
return maps;
}
@Override
public List<CashFlowVO> queryCashflowVO(CashFlowVO cashFlowVO) {
List<CashFlowVO> cashFlowVOS =(List<CashFlowVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryCashflowVO", cashFlowVO);
return cashFlowVOS;
}
@Override
public List<GlSubrelationVO> queryGlsubrelationVO(GlSubrelationVO glSubrelationVO) {
Assert.notNull(glSubrelationVO.getPkGlorgbook(),"查询科目对应表时,账簿主键不能为空");
Assert.notNull(glSubrelationVO.getPkCashflow(),"查询科目对应表时,现金流项目主键不能为空");
List<GlSubrelationVO> glSubrelationVOS =(List<GlSubrelationVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryGlsubrelationVO", glSubrelationVO);
return glSubrelationVOS;
}
@Override
public List<BdBdinfoEntity> queryBdBdinfoList(BdBdinfoEntity entity) {
List<BdBdinfoEntity> list =(List<BdBdinfoEntity>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryBdBdinfoList", entity);
return list;
}
@Override
public List<BdAccassitemVO> queryBdInfoBySubjass(BdAccassitemVO entity) {
List<BdAccassitemVO> list =(List<BdAccassitemVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryBdInfoBySubjass", entity);
return list;
}
}

View File

@ -0,0 +1,21 @@
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.IMdmDbFiledVODAO;
import com.hzya.frame.voucher.ae.comf.bd.entity.vo.MdmDbFiledVO;
import com.hzya.frame.voucher.ae.comf.bd.entity.vo.OrgBookVO;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by zydd on 2025-06-12 10:26
*/
@Service
public class MdmDbFiledVODAOImpl extends MybatisGenericDao<MdmDbFiledVO, String> implements IMdmDbFiledVODAO {
@Override
public List<MdmDbFiledVO> queryMdmDbFiledVO(MdmDbFiledVO vo) {
List<MdmDbFiledVO> mdmDbFiledVOList = (List<MdmDbFiledVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDbFiledVODAOImpl.queryMdmDbFiledVO", vo);
return mdmDbFiledVOList;
}
}

View File

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

View File

@ -0,0 +1,30 @@
package com.hzya.frame.voucher.ae.comf.bd.entity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-数据配置-科目表(AeConfBdAccsubj)实体类
*
* @author zydd
* @since 2025-06-05 17:20:09
*/
@Data
public class AeConfBdAccsubjEntity extends BaseEntity {
private String dispname;
private Long dr;
private String endflag;
private String pkAccsubj;
private String pkCorp;
private String pkGlorgbook;
private String sealflag;
private String stoped;
private String subjcode;
private Long subjlev;
private String subjname;
private Date ts;
}

View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hzya.frame.voucher.ae.comf.bd.dao.impl.AeConfBdAccsubjDaoImpl">
<resultMap id="get-AeConfBdAccsubjEntity-result" type="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
<result property="id" column="id"/>
<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">
id
,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"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
select
<include refid="AeConfBdAccsubjEntity_Base_Column_List"/>
from mdm_bd_accsubj
<trim prefix="where" prefixOverrides="and">
<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 mdm_bd_accsubj.subjcode ASC
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
select count(1) from mdm_bd_accsubj
<trim prefix="where" prefixOverrides="and">
<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>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-AeConfBdAccsubjEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
select
<include refid="AeConfBdAccsubjEntity_Base_Column_List"/>
from mdm_bd_accsubj
<trim prefix="where" prefixOverrides="and">
<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>
<!-- 查询列表 字段采用or格式 -->
<select id="AeConfBdAccsubjentity_list_or" resultMap="get-AeConfBdAccsubjEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
select
<include refid="AeConfBdAccsubjEntity_Base_Column_List"/>
from mdm_bd_accsubj
<trim prefix="where" prefixOverrides="and">
<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>
</mapper>

View File

@ -0,0 +1,85 @@
package com.hzya.frame.voucher.ae.comf.bd.entity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-数据配置-基础数据资源表(AeConfBdBdinfo)实体类
*
* @author zydd
* @since 2025-06-05 10:33:48
*/
@Data
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;
}

View File

@ -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>

View File

@ -0,0 +1,20 @@
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
import lombok.Data;
/**
* Created by zydd on 2025-06-25 10:20
* 会计辅助核算项目
*/
@Data
public class BdAccassitemVO {
private String pkAccassitem;
private String code;
private String name;
private String pkDefdef;
private String classid;
private String tablename;
private String tablepkname;
private String dr;
private String ts;
}

View File

@ -0,0 +1,38 @@
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* Created by zydd on 2025-06-20 08:49
* 基础数据基础数据资源表 mdm_bd_bdinfo
*/
@Data
public class BdBdinfoEntity extends BaseEntity {
/** 基础数据主键 */
private String pkDdinfo;
/** 基础数据编码 */
private String bdcode;
/** 基础数据名称 */
private String bdname;
/** 公司主键 */
private String pkCorp;
/** 基本档案表名 */
private String basedoctablename;
/** 基本表主键 */
private String basedoctablepkname;
/** 是否自定义档案 */
private String isdef;
/** 自定义档案主键 */
private String pkDefdef;
/** 参照节点名 */
private String refnodename;
/** 对应表名 */
private String tablename;
/** 对应主键名 */
private String tablepkname;
/** */
private String dr;
/** */
private String ts;
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* Created by zydd on 2025-06-20 09:45
* 辅助核算关联的基础档案表
*/
@Data
public class BdSubjassBdInfoVO extends BaseEntity {
private String pk_subjass;
private String pk_corp;
private String pk_glorgbook;
private String pk_bdinfo;
/** 基础数据编码 */
private String bdcode;
/** 基础数据名称 */
private String bdname;
private String pk_accsubj;
private String isnonleafused;
private String isempty;
private String dr;
private String ts;
}

View File

@ -0,0 +1,23 @@
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
import java.util.Date;
/**
* Created by zydd on 2025-06-16 14:32
* 现金流映射表
*/
@Data
public class CashFlowVO extends BaseEntity {
private String pkCashflow;//现金流量项目主键
private String pkCorp;//
private String cfitemcode;//现金流量项目编码
private String cfitemname;//现金流量项目名称
private String fathernode;//上级项目
private String cftype;//现金流量项目类型
private String itemflag;//是否主表项目
}

View File

@ -0,0 +1,57 @@
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
import lombok.Data;
import java.util.Date;
/**
* Created by zydd on 2025-06-16 16:45
* 现金流映射明细表-科目对应表
*/
@Data
public class GlSubrelationVO {
/** 账簿主键 */
private String pkGlorgbook;
/** 现金流量表项主键 */
private String pk_cashflow;
/** 现金流主键 */
private String pkCashflow;
/** 现金流编码 */
private String cfitemcode;
/** 现金流名称 */
private String cfitemname;
/** 科目对应表主键 */
private String pkSubrelation;
/** 借方科目主键 */
private String pkDebitsubject;
/** 借方科目编码 */
private String jsubjcode;
/** 借方科目名称 */
private String jdispname;
/** 借方辅助核算 */
private String dfreevalueid;
private String dfreevaluename;
/** 借方默认 */
private String isdd;
/** 贷方科目主键 */
private String pkCreditsubject;
/** 贷方科目编码 */
private String dsubjcode;
/** 贷方科目名称 */
private String ddispname;
/** 贷方辅助核算 */
private String cfreevalueid;
private String cfreevaluename;
/** 贷方默认*/
private String iscd;
private String dr;
private String memo;
private Date ts;
}

View File

@ -0,0 +1,33 @@
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* Created by zydd on 2025-06-06 09:59
*/
@Data
public class MdmDBQueryVO extends BaseEntity {
private String tablename;
private String prop1;
private String prop2;
private String prop3;
private String prop4;
private String prop5;
private String prop6;
private String prop7;
private String prop8;
private String prop9;
private String prop10;
private String propValue1;
private String propValue2;
private String propValue3;
private String propValue4;
private String propValue5;
private String propValue6;
private String propValue7;
private String propValue8;
private String propValue9;
private String propValue10;
}

View File

@ -0,0 +1,140 @@
<?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.MdmDBQueryVODAOImpl">
<resultMap id="get-U8CQueryVO-result" type="com.hzya.frame.voucher.ae.comf.bd.entity.vo.MdmDBQueryVO">
<result property="tablename" column="tablename" />
</resultMap>
<select id="queryMdmDb" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.MdmDBQueryVO" resultType="map">
select
*
from
${tablename}
<trim prefix="where" prefixOverrides="and">
<if test="prop1 !=null and propValue1 != null">${prop1} like concat('%', #{propValue1},'%')</if>
<if test="prop2 !=null and propValue2 != null">${prop2}like concat('%', #{propValue2},'%')</if>
<if test="prop3 !=null and propValue3 != null">${prop3}like concat('%', #{propValue3},'%')</if>
<if test="prop4 !=null and propValue4 != null">${prop4}like concat('%', #{propValue4},'%')</if>
<if test="prop5 !=null and propValue5 != null">${prop5}like concat('%', #{propValue5},'%')</if>
<if test="prop6 !=null and propValue6 != null">${prop6}like concat('%', #{propValue6},'%')</if>
<if test="prop7 !=null and propValue7 != null">${prop7}like concat('%', #{propValue7},'%')</if>
<if test="prop8 !=null and propValue8 != null">${prop8}like concat('%', #{propValue8},'%')</if>
<if test="prop9 !=null and propValue9 != null">${prop9}like concat('%', #{propValue9},'%')</if>
<if test="prop10 !=null and propValue10 != null">${prop10}like concat('%', #{propValue10},'%')</if>
</trim>
</select>
<select id="queryCashflowVO" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.CashFlowVO" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.CashFlowVO">
SELECT
pk_cashflow AS pkCashflow,
pk_corp AS pkCorp,
cfitemcode AS cfitemcode,
cfitemname AS cfitemname,
fathernode AS fathernode,
cftype AS cftype,
itemflag AS itemflag
FROM
mdm_bd_cashflow
WHERE
1 = 1
AND mdm_bd_cashflow.pk_cashflow NOT IN ( SELECT DISTINCT fathernode FROM mdm_bd_cashflow WHERE fathernode IS NOT NULL )
ORDER BY
cfitemcode
</select>
<select id="queryGlsubrelationVO" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.GlSubrelationVO" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.GlSubrelationVO">
SELECT
cashflow.pk_cashflow AS pkCashflow,
subrelation.pk_glorgbook AS pkGlorgbook,
cashflow.cfitemcode AS cfitemcode,
cashflow.cfitemname AS cfitemname,
subrelation.pk_subrelation AS pkSubrelation,
subrelation.pk_debitsubject AS pkCebitsubject,
accsubjj.subjcode AS jsubjcode,
accsubjj.dispname AS jdispname,
subrelation.dfreevalueid AS dfreevalueid,
subrelation.isdd AS isdd,
subrelation.pk_creditsubject AS pkCreditsubject,
accsubjd.subjcode AS dsubjcode,
accsubjd.dispname AS ddispname,
subrelation.cfreevalueid AS cfreevalueid,
subrelation.iscd AS iscd,
subrelation.dr AS dr,
subrelation.ts AS ts,
subrelation.memo AS memo
FROM
mdm_bd_cashflow cashflow
LEFT JOIN mdm_bd_gl_subrelation subrelation ON subrelation.pk_cashflow=cashflow.pk_cashflow
LEFT JOIN mdm_bd_accsubj accsubjj ON subrelation.pk_debitsubject=accsubjj.pk_accsubj
LEFT JOIN mdm_bd_accsubj accsubjd ON subrelation.pk_creditsubject=accsubjd.pk_accsubj
WHERE
1=1
and subrelation.dr != 1
<if test="pkCashflow != null and pkCashflow != ''">AND subrelation.pk_cashflow = #{pkCashflow}</if>
<if test="pkGlorgbook != null and pkGlorgbook != ''">AND subrelation.pk_glorgbook = #{pkGlorgbook}</if>
ORDER BY
cashflow.cfitemcode ASC
</select>
<select id="queryBdBdinfoList" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdBdinfoEntity" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdBdinfoEntity">
SELECT
pk_bdinfo as pkDdinfo,
pk_corp as pkCorp,
basedoctablename as basedoctablename,
basedoctablepkname as basedoctablepkname,
bdcode as bdcode,
bdname as bdname,
isdef as isdef,
pk_defdef as pkDefdef,
refnodename as refnodename,
tablename as tablename,
tablepkname as tablepkname,
dr as dr,
ts as ts
FROM
mdm_bd_bdinfo
where
dr != 1
</select>
<!-- <select id="queryBdInfoBySubjass" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdBdinfoEntity" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdBdinfoEntity">-->
<!-- SELECT-->
<!-- pk_bdinfo as pkDdinfo,-->
<!-- pk_corp as pkCorp,-->
<!-- basedoctablename as basedoctablename,-->
<!-- basedoctablepkname as basedoctablepkname,-->
<!-- bdcode as bdcode,-->
<!-- bdname as bdname,-->
<!-- isdef as isdef,-->
<!-- pk_defdef as pkDefdef,-->
<!-- refnodename as refnodename,-->
<!-- tablename as tablename,-->
<!-- tablepkname as tablepkname,-->
<!-- dr as dr,-->
<!-- ts as ts-->
<!-- FROM-->
<!-- mdm_bd_bdinfo-->
<!-- WHERE-->
<!-- dr != 1-->
<!-- AND pk_bdinfo IN (-->
<!-- SELECT-->
<!-- DISTINCT pk_bdinfo-->
<!-- FROM-->
<!-- mdm_bd_subjass)-->
<!-- </select>-->
<select id="queryBdInfoBySubjass" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdAccassitemVO" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdAccassitemVO">
SELECT pk_accassitem,code,name,pk_defdef,classid,tablename,tablepkname,dr,ts FROM mdm_bd_accassitem
</select>
</mapper>

View File

@ -0,0 +1,37 @@
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 主数据模版(MdmModule)实体类
*
* @author makejava
* @since 2024-06-03 08:46:29
*/
@Data
public class MdmDbFiledVO extends BaseEntity {
private String mdmType;
/** 档案id */
private String mdmId;
private String pkBdinfo;
/** 档案编码 */
private String mdmCode;
private String bdcode;
/** 档案名称 */
private String mdmName;
private String bdname;
/** 表id */
private String dbId;
/** 对应表名 */
private String tablename;
/** 表中文名称 */
private String dbName;
/** 对应主键名 */
private String tablepkname;
/** 名称字段 */
private String namefieldname;
/** 编码字段名称 */
private String codefieldname;
}

View File

@ -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.MdmDbFiledVODAOImpl">
<resultMap id="get-MdmDbFiledVO-result" type="com.hzya.frame.voucher.ae.comf.bd.entity.vo.MdmDbFiledVO">
<result property="mdmId" column="mdmId"/>
<result property="mdmCode" column="mdmCode"/>
<result property="mdmName" column="mdmName"/>
<result property="dbId" column="dbId"/>
<result property="tablename" column="tablename"/>
<result property="dbName" column="dbName"/>
<result property="tablepkname" column="tablepkname"/>
<result property="namefieldname" column="namefieldname"/>
<result property="codefieldname" column="codefieldname"/>
</resultMap>
<!-- 查询的字段-->
<sql id="OrgBookVO_Base_Column_List">
mdmId,
mdmCode,
mdmName,
dbId,
tablename,
dbName,
tablepkname,
namefieldname,
codefieldname,
</sql>
<!-- 查询 采用==查询 -->
<select id="queryMdmDbFiledVO" resultMap="get-MdmDbFiledVO-result"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.MdmDbFiledVO">
SELECT
mdm.id as mdmId,
mdm.mdm_code as mdmCode,
mdm.mdm_name as mdmName,
db.id as dbId,
db.db_name as tablename,
db.remark as dbName,
fileds.sys_pk as tablepkname,
fileds.sys_code AS codefieldname,
fileds.sys_name AS namefieldname
FROM
mdm_module mdm
LEFT JOIN mdm_module_db db ON db.mdm_id = mdm.id
LEFT JOIN (SELECT db_id,
MAX(CASE WHEN sys_pk = 'Y' THEN en_name ELSE NULL END) AS sys_pk,
MAX(CASE WHEN sys_code = 'Y' THEN en_name ELSE NULL END) AS sys_code,
MAX(CASE WHEN sys_name = 'Y' THEN en_name ELSE NULL END) AS sys_name
FROM mdm_module_db_fileds
GROUP BY db_id) fileds ON fileds.db_id = db.id
WHERE
1=1
<if test="mdmId != null and mdmId != ''">and mdm.id = #{mdmId}</if>
AND mdm.sts = 'Y'
AND db.db_type = '1'
</select>
</mapper>

View File

@ -0,0 +1,34 @@
package com.hzya.frame.voucher.ae.comf.bd.entity.vo;
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;
}

View File

@ -0,0 +1,80 @@
<?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.vo.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.vo.OrgBookVO">
SELECT
glorgbook.pk_glorgbook AS pkglorgbook,
glorgbook.gl_orgbook_code AS glorgbookcode,
glorgbook.gl_orgbook_name AS glorgbookname,
glorg.pk_entityorg AS pkentityorg,
glorg.gl_orgcode AS glorgcode,
glorg.gl_orgname AS glorgname,
glorgbook.pk_glbook AS pkglbook,
glbook.code AS glbookcode,
glbook.name AS glbookname,
glorgbook.ts AS ts
FROM
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 like concat('%',#{pkentityorg},'%')</if>
<if test="glorgcode != null and glorgcode != ''">and glorg.gl_orgcode like concat('%',#{glorgcode},'%')</if>
<if test="glorgname != null and glorgname != ''">and glorg.gl_orgname like concat('%',#{glorgname},'%')</if>
and glorgbook.dr=0
</trim>
order by glorgbook.pk_glorg asc
</select>
<!-- 查询 采用==查询 -->
<select id="queryOrgVO" resultMap="get-OrgBookVO-result"
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.OrgBookVO">
SELECT
DISTINCT
glorg.pk_entityorg AS pkentityorg,
glorg.gl_orgcode AS glorgcode,
glorg.gl_orgname AS glorgname
FROM
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="glorgcode != null and glorgcode != ''">and glorg.gl_orgcode like concat('%',#{glorgcode},'%')</if>
<if test="glorgname != null and glorgname != ''">and glorg.gl_orgname like concat('%',#{glorgname},'%')</if>
and glorgbook.dr=0
</trim>
order by glorgbook.pk_glorg asc
</select>
</mapper>

View File

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

View File

@ -0,0 +1,105 @@
package com.hzya.frame.voucher.ae.comf.factor.controller;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity;
import com.hzya.frame.voucher.ae.comf.factor.service.IAeConfInfluenceFactorService;
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-23 09:53
* 会计事项(accounting_event)-配置-影响因素设置存在关联ncc的自定义档案
*/
@RestController
@RequestMapping("/ae/conf/influenceFactor")
public class InfluenceFactorController extends DefaultController {
@Autowired
private IAeConfInfluenceFactorService iAeConfInfluenceFactorService;
@RequestMapping(value = "/queryPaged", method = RequestMethod.POST)
public JsonResultEntity queryPaged(@RequestBody AeConfInfluenceFactorEntity entity) {
try {
PageInfo pageInfo = iAeConfInfluenceFactorService.queryEntityPaged(entity);
return getSuccessMessageEntity("请求成功", pageInfo);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
public JsonResultEntity queryAll(@RequestBody AeConfInfluenceFactorEntity entity) {
try {
List<AeConfInfluenceFactorEntity> all = iAeConfInfluenceFactorService.queryAll(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryById", method = RequestMethod.POST)
public JsonResultEntity queryById(@RequestBody AeConfInfluenceFactorEntity entity) {
try {
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity = iAeConfInfluenceFactorService.queryById(entity);
return getSuccessMessageEntity("请求成功", aeConfInfluenceFactorEntity);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/save", method = RequestMethod.POST)
public JsonResultEntity save(@RequestBody AeConfInfluenceFactorEntity entity) {
try {
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity = iAeConfInfluenceFactorService.save(entity);
return getSuccessMessageEntity("请求成功", aeConfInfluenceFactorEntity);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/update", method = RequestMethod.POST)
public JsonResultEntity update(@RequestBody AeConfInfluenceFactorEntity entity) {
try {
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity = iAeConfInfluenceFactorService.updateById(entity);
return getSuccessMessageEntity("请求成功", aeConfInfluenceFactorEntity);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/delete", method = RequestMethod.POST)
public JsonResultEntity delete(@RequestBody AeConfInfluenceFactorEntity entity) {
try {
iAeConfInfluenceFactorService.logicRemove(entity);
return getSuccessMessageEntity("请求成功", null);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
//根据业务模块id查询相关影响因素列表
@RequestMapping(value = "/queryFluenceFactorsByModuleId", method = RequestMethod.POST)
public JsonResultEntity queryFluenceFactorsByModuleId(@RequestBody AeConfInfluenceFactorEntity entity) {
try {
List<AeConfInfluenceFactorEntity> all = iAeConfInfluenceFactorService.queryFluenceFactorsByModuleId(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -0,0 +1,93 @@
package com.hzya.frame.voucher.ae.comf.factor.controller;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity;
import com.hzya.frame.voucher.ae.comf.factor.service.IAeConfInfluenceFactorCorrelationService;
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;
import java.util.Map;
/**
* Created by zydd on 2025-05-23 09:53
* 会计事项(accounting_event)-配置-影响因素设置存在关联ncc的自定义档案
*/
@RestController
@RequestMapping("/ae/conf/influenceFactorCorrelation")
public class InfluenceFactorCorrelationController extends DefaultController {
@Autowired
private IAeConfInfluenceFactorCorrelationService aeConfInfluenceFactorCorrelationService;
// @RequestMapping(value = "/queryPaged", method = RequestMethod.POST)
// public JsonResultEntity queryPaged(@RequestBody AeConfInfluenceFactorEntity entity) {
// try {
// PageInfo pageInfo = aeConfInfluenceFactorCorrelationService.queryEntityPaged(entity);
// return getSuccessMessageEntity("请求成功",pageInfo);
// } catch (Exception e) {
// e.printStackTrace();
// return getFailureMessageEntity(e.getMessage());
// }
// }
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
public JsonResultEntity queryAll(@RequestBody AeConfInfluenceFactorCorrelationEntity entity) {
try {
List<AeConfInfluenceFactorCorrelationEntity> all = aeConfInfluenceFactorCorrelationService.queryAll(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryByMdmId", method = RequestMethod.POST)
public JsonResultEntity queryByMdmId(@RequestBody AeConfInfluenceFactorCorrelationEntity entity) {
try {
List<AeConfInfluenceFactorCorrelationEntity> all = aeConfInfluenceFactorCorrelationService.queryByMdmId(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/saveList", method = RequestMethod.POST)
public JsonResultEntity saveList(@RequestBody List<AeConfInfluenceFactorCorrelationEntity> list) {
try {
List<AeConfInfluenceFactorCorrelationEntity> all = aeConfInfluenceFactorCorrelationService.saveList(list);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/updateList", method = RequestMethod.POST)
public JsonResultEntity updateList(@RequestBody List<AeConfInfluenceFactorCorrelationEntity> list) {
try {
List<AeConfInfluenceFactorCorrelationEntity> all = aeConfInfluenceFactorCorrelationService.updateList(list);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/deleteList", method = RequestMethod.POST)
public JsonResultEntity deleteList(@RequestBody List<AeConfInfluenceFactorCorrelationEntity> list) {
try {
Map<String, Integer> map = aeConfInfluenceFactorCorrelationService.deleteList(list);
return getSuccessMessageEntity("请求成功", map);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.voucher.ae.comf.factor.dao;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 会计事项(accounting_event)-配置-影响因素关联设置(ae_conf_influence_factor_correlation: table)表数据库访问层
*
* @author zydd
* @since 2025-05-27 09:07:42
*/
public interface IAeConfInfluenceFactorCorrelationDao extends IBaseDao<AeConfInfluenceFactorCorrelationEntity, String> {
}

View File

@ -0,0 +1,20 @@
package com.hzya.frame.voucher.ae.comf.factor.dao;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-影响因素设置(ae_conf_influence_factor: table)表数据库访问层
*
* @author zydd
* @since 2025-05-23 09:44:40
*/
public interface IAeConfInfluenceFactorDao extends IBaseDao<AeConfInfluenceFactorEntity, String> {
public List<AeConfInfluenceFactorEntity> queryAll(AeConfInfluenceFactorEntity entity);
AeConfInfluenceFactorEntity queryById(AeConfInfluenceFactorEntity entity);
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.voucher.ae.comf.factor.dao.impl;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity;
import com.hzya.frame.voucher.ae.comf.factor.dao.IAeConfInfluenceFactorCorrelationDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 会计事项(accounting_event)-配置-影响因素关联设置(AeConfInfluenceFactorCorrelation)表数据库访问层
*
* @author zydd
* @since 2025-05-27 09:07:42
*/
@Repository
public class AeConfInfluenceFactorCorrelationDaoImpl extends MybatisGenericDao<AeConfInfluenceFactorCorrelationEntity, String> implements IAeConfInfluenceFactorCorrelationDao{
}

View File

@ -0,0 +1,34 @@
package com.hzya.frame.voucher.ae.comf.factor.dao.impl;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity;
import com.hzya.frame.voucher.ae.comf.factor.dao.IAeConfInfluenceFactorDao;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-影响因素设置(AeConfInfluenceFactor)表数据库访问层
*
* @author zydd
* @since 2025-05-23 09:44:40
*/
@Repository
public class AeConfInfluenceFactorDaoImpl extends MybatisGenericDao<AeConfInfluenceFactorEntity, String> implements IAeConfInfluenceFactorDao{
@Override
public AeConfInfluenceFactorEntity queryById(AeConfInfluenceFactorEntity entity) {
List<AeConfInfluenceFactorEntity> aeConfInfluenceFactorEntities = this.queryList(entity, "com.hzya.frame.voucher.ae.comf.factor.dao.impl.AeConfInfluenceFactorDaoImpl.queryById");
if(aeConfInfluenceFactorEntities.size()!=0){
return aeConfInfluenceFactorEntities.get(0);
}
return null;
}
@Override
public List<AeConfInfluenceFactorEntity> queryAll(AeConfInfluenceFactorEntity entity) {
List<AeConfInfluenceFactorEntity> aeConfInfluenceFactorEntities = this.queryList(entity, "com.hzya.frame.voucher.ae.comf.factor.dao.impl.AeConfInfluenceFactorDaoImpl.queryAll");
return aeConfInfluenceFactorEntities;
}
}

View File

@ -0,0 +1,78 @@
package com.hzya.frame.voucher.ae.comf.factor.entity;
import java.util.List;
import com.hzya.frame.voucher.ae.comf.factor.entity.vo.MappingFieldVO;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-影响因素关联设置(AeConfInfluenceFactorCorrelation)实体类
*
* @author zydd
* @since 2025-05-27 09:07:42
*/
@Data
public class AeConfInfluenceFactorCorrelationEntity extends BaseEntity {
/**
* 影响因素id
*/
private Long factorId;
/**
* 影响因素name
*/
private String factorName;
/**
* 主数据id
*/
private String mdmId;
/**
* 主数据code对应en_code
*/
private String mdmCode;
private String enCode;
/**
* 主数据name对应ch_code
*/
private String mdmName;
private String chCode;
/**
* 映射字段id
*/
private String mappingFieldId;
/**
* 映射字段code
*/
private String mappingFieldCode;
/**
* 映射字段name
*/
private String mappingFieldName;
/**
* 备注
*/
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;
List<MappingFieldVO> mappingFieldList;
}

View File

@ -0,0 +1,417 @@
<?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.factor.dao.impl.AeConfInfluenceFactorCorrelationDaoImpl">
<resultMap id="get-AeConfInfluenceFactorCorrelationEntity-result"
type="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="factorId" column="factor_id" jdbcType="INTEGER"/>
<result property="factorName" column="factor_name" jdbcType="VARCHAR"/>
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
<result property="mdmCode" column="mdm_code" jdbcType="VARCHAR"/>
<result property="mdmName" column="mdm_name" jdbcType="VARCHAR"/>
<result property="mappingFieldId" column="mapping_field_id" jdbcType="VARCHAR"/>
<result property="mappingFieldCode" column="mapping_field_code" jdbcType="VARCHAR"/>
<result property="mappingFieldName" column="mapping_field_name" 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="AeConfInfluenceFactorCorrelationEntity_Base_Column_List">
id
,factor_id
,factor_name
,mdm_id
,mdm_code
,mdm_name
,mapping_field_id
,mapping_field_code
,mapping_field_name
,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-AeConfInfluenceFactorCorrelationEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity">
select
<include refid="AeConfInfluenceFactorCorrelationEntity_Base_Column_List"/>
from ae_conf_influence_factor_correlation
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="factorId != null">and factor_id = #{factorId}</if>
<if test="factorName != null and factorName != ''">and factor_name = #{factorName}</if>
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
<if test="mdmCode != null and mdmCode != ''">and mdm_code = #{mdmCode}</if>
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
<if test="mappingFieldId != null and mappingFieldId != ''">and mapping_field_id = #{mappingFieldId}</if>
<if test="mappingFieldCode != null and mappingFieldCode != ''">and mapping_field_code =
#{mappingFieldCode}
</if>
<if test="mappingFieldName != null and mappingFieldName != ''">and mapping_field_name =
#{mappingFieldName}
</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.factor.entity.AeConfInfluenceFactorCorrelationEntity">
select count(1) from ae_conf_influence_factor_correlation
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="factorId != null">and factor_id = #{factorId}</if>
<if test="factorName != null and factorName != ''">and factor_name = #{factorName}</if>
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
<if test="mdmCode != null and mdmCode != ''">and mdm_code = #{mdmCode}</if>
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
<if test="mappingFieldId != null and mappingFieldId != ''">and mapping_field_id = #{mappingFieldId}</if>
<if test="mappingFieldCode != null and mappingFieldCode != ''">and mapping_field_code =
#{mappingFieldCode}
</if>
<if test="mappingFieldName != null and mappingFieldName != ''">and mapping_field_name =
#{mappingFieldName}
</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-AeConfInfluenceFactorCorrelationEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity">
select
<include refid="AeConfInfluenceFactorCorrelationEntity_Base_Column_List"/>
from ae_conf_influence_factor_correlation
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id like concat('%',#{id},'%')</if>
<if test="factorId != null">and factor_id like concat('%',#{factorId},'%')</if>
<if test="factorName != null and factorName != ''">and factor_name like concat('%',#{factorName},'%')</if>
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
<if test="mdmCode != null and mdmCode != ''">and mdm_code like concat('%',#{mdmCode},'%')</if>
<if test="mdmName != null and mdmName != ''">and mdm_name like concat('%',#{mdmName},'%')</if>
<if test="mappingFieldId != null and mappingFieldId != ''">and mapping_field_id like
concat('%',#{mappingFieldId},'%')
</if>
<if test="mappingFieldCode != null and mappingFieldCode != ''">and mapping_field_code like
concat('%',#{mappingFieldCode},'%')
</if>
<if test="mappingFieldName != null and mappingFieldName != ''">and mapping_field_name like
concat('%',#{mappingFieldName},'%')
</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="AeConfInfluenceFactorCorrelationentity_list_or"
resultMap="get-AeConfInfluenceFactorCorrelationEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity">
select
<include refid="AeConfInfluenceFactorCorrelationEntity_Base_Column_List"/>
from ae_conf_influence_factor_correlation
<trim prefix="where" prefixOverrides="and">
<if test="id != null">or id = #{id}</if>
<if test="factorId != null">or factor_id = #{factorId}</if>
<if test="factorName != null and factorName != ''">or factor_name = #{factorName}</if>
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
<if test="mdmCode != null and mdmCode != ''">or mdm_code = #{mdmCode}</if>
<if test="mdmName != null and mdmName != ''">or mdm_name = #{mdmName}</if>
<if test="mappingFieldId != null and mappingFieldId != ''">or mapping_field_id = #{mappingFieldId}</if>
<if test="mappingFieldCode != null and mappingFieldCode != ''">or mapping_field_code = #{mappingFieldCode}
</if>
<if test="mappingFieldName != null and mappingFieldName != ''">or mapping_field_name = #{mappingFieldName}
</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.factor.entity.AeConfInfluenceFactorCorrelationEntity"
keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_influence_factor_correlation(
<trim suffix="" suffixOverrides=",">
<if test="factorId != null">factor_id ,</if>
<if test="factorName != null and factorName != ''">factor_name ,</if>
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
<if test="mdmCode != null and mdmCode != ''">mdm_code ,</if>
<if test="mdmName != null and mdmName != ''">mdm_name ,</if>
<if test="mappingFieldId != null and mappingFieldId != ''">mapping_field_id ,</if>
<if test="mappingFieldCode != null and mappingFieldCode != ''">mapping_field_code ,</if>
<if test="mappingFieldName != null and mappingFieldName != ''">mapping_field_name ,</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="factorId != null">#{factorId} ,</if>
<if test="factorName != null and factorName != ''">#{factorName} ,</if>
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
<if test="mdmCode != null and mdmCode != ''">#{mdmCode} ,</if>
<if test="mdmName != null and mdmName != ''">#{mdmName} ,</if>
<if test="mappingFieldId != null and mappingFieldId != ''">#{mappingFieldId} ,</if>
<if test="mappingFieldCode != null and mappingFieldCode != ''">#{mappingFieldCode} ,</if>
<if test="mappingFieldName != null and mappingFieldName != ''">#{mappingFieldName} ,</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_influence_factor_correlation(factor_id, factor_name, mdm_id, mdm_code, mdm_name,
mapping_field_id, mapping_field_code, mapping_field_name, 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.factorId},#{entity.factorName},#{entity.mdmId},#{entity.mdmCode},#{entity.mdmName},#{entity.mappingFieldId},#{entity.mappingFieldCode},#{entity.mappingFieldName},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},now(),#{entity.createUser},now(),#{entity.modifyUser},#{entity.sts},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_influence_factor_correlation(factor_id, factor_name, mdm_id, mdm_code, mdm_name,
mapping_field_id, mapping_field_code, mapping_field_name, 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.factorId},#{entity.factorName},#{entity.mdmId},#{entity.mdmCode},#{entity.mdmName},#{entity.mappingFieldId},#{entity.mappingFieldCode},#{entity.mappingFieldName},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},now(),#{entity.createUser},now(),#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
factor_id = values(factor_id),
factor_name = values(factor_name),
mdm_id = values(mdm_id),
mdm_code = values(mdm_code),
mdm_name = values(mdm_name),
mapping_field_id = values(mapping_field_id),
mapping_field_code = values(mapping_field_code),
mapping_field_name = values(mapping_field_name),
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.factor.entity.AeConfInfluenceFactorCorrelationEntity">
update ae_conf_influence_factor_correlation set
<trim suffix="" suffixOverrides=",">
<if test="factorId != null">factor_id = #{factorId},</if>
<if test="factorName != null and factorName != ''">factor_name = #{factorName},</if>
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
<if test="mdmCode != null and mdmCode != ''">mdm_code = #{mdmCode},</if>
<if test="mdmName != null and mdmName != ''">mdm_name = #{mdmName},</if>
<if test="mappingFieldId != null and mappingFieldId != ''">mapping_field_id = #{mappingFieldId},</if>
<if test="mappingFieldCode != null and mappingFieldCode != ''">mapping_field_code = #{mappingFieldCode},
</if>
<if test="mappingFieldName != null and mappingFieldName != ''">mapping_field_name = #{mappingFieldName},
</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="modify_time == null">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.factor.entity.AeConfInfluenceFactorCorrelationEntity">
update ae_conf_influence_factor_correlation
set sts= 'N',
modify_time = now()
<if test="modifyUser != null and modifyUser != ''">,modify_user = #{modifyUser}</if>
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity">
update ae_conf_influence_factor_correlation set sts= 'N' ,modify_time = #{modify_time},modify_user_id =
#{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="factorId != null">and factor_id = #{factorId}</if>
<if test="factorName != null and factorName != ''">and factor_name = #{factorName}</if>
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
<if test="mdmCode != null and mdmCode != ''">and mdm_code = #{mdmCode}</if>
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</if>
<if test="mappingFieldId != null and mappingFieldId != ''">and mapping_field_id = #{mappingFieldId}</if>
<if test="mappingFieldCode != null and mappingFieldCode != ''">and mapping_field_code =
#{mappingFieldCode}
</if>
<if test="mappingFieldName != null and mappingFieldName != ''">and mapping_field_name =
#{mappingFieldName}
</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_influence_factor_correlation
where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,66 @@
package com.hzya.frame.voucher.ae.comf.factor.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-影响因素设置(AeConfInfluenceFactor)实体类
*
* @author zydd
* @since 2025-05-23 09:44:40
*/
@Data
public class AeConfInfluenceFactorEntity extends BaseEntity {
/**
* 业务模块id
*/
private Long aeConfModuleId;
/**
* 业务模块name
*/
private String aeConfModuleName;
/**
* 影响因素名称
*/
private String factorName;
/**
* 映射档案id bd_bdinfo的pkBdinfo
*/
private String mappingFileId;
/**
* 映射档案code bd_bdinfo的tablename
*/
private String mappingFileCode;
/**
* 映射档案名称 bd_bdinfo的bdname
*/
private String mappingFileName;
/**
* 备注
*/
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;
}

View File

@ -0,0 +1,464 @@
<?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.factor.dao.impl.AeConfInfluenceFactorDaoImpl">
<resultMap id="get-AeConfInfluenceFactorEntity-result"
type="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="aeConfModuleId" column="ae_conf_module_id" jdbcType="INTEGER"/>
<result property="aeConfModuleName" column="ae_conf_module_name" jdbcType="VARCHAR"/>
<result property="factorName" column="factor_name" jdbcType="VARCHAR"/>
<result property="mappingFileId" column="mapping_file_id" jdbcType="VARCHAR"/>
<result property="mappingFileCode" column="mapping_file_code" jdbcType="VARCHAR"/>
<result property="mappingFileName" column="mapping_file_name" 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="AeConfInfluenceFactorEntity_Base_Column_List">
id
,ae_conf_module_id
,ae_conf_module_name
,factor_name
,mapping_file_id
,mapping_file_code
,mapping_file_name
,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-AeConfInfluenceFactorEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity">
select
<include refid="AeConfInfluenceFactorEntity_Base_Column_List"/>
from ae_conf_influence_factor
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="aeConfModuleId != null">and ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_module_name = #{aeConfModuleName}</if>
<if test="factorName != null and factorName != ''">and factor_name = #{factorName}</if>
<if test="mappingFileId != null and mappingFileId != ''">and mapping_file_id = #{mappingFileId}</if>
<if test="mappingFileCode != null and mappingFileCode != ''">and mapping_file_code = #{mappingFileCode}</if>
<if test="mappingFileName != null and mappingFileName != ''">and mapping_file_name = #{mappingFileName}</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.factor.entity.AeConfInfluenceFactorEntity">
select count(1) from ae_conf_influence_factor
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="aeConfModuleId != null">and ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_module_name =
#{aeConfModuleName}
</if>
<if test="factorName != null and factorName != ''">and factor_name = #{factorName}</if>
<if test="mappingFileId != null and mappingFileId != ''">and mapping_file_id = #{mappingFileId}</if>
<if test="mappingFileCode != null and mappingFileCode != ''">and mapping_file_code = #{mappingFileCode}</if>
<if test="mappingFileName != null and mappingFileName != ''">and mapping_file_name = #{mappingFileName}</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-AeConfInfluenceFactorEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity">
select
<include refid="AeConfInfluenceFactorEntity_Base_Column_List"/>
from ae_conf_influence_factor
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id like concat('%',#{id},'%')</if>
<if test="aeConfModuleId != null">and ae_conf_module_id like concat('%',#{aeConfModuleId},'%')</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_module_name like
concat('%',#{aeConfModuleName},'%')
</if>
<if test="factorName != null and factorName != ''">and factor_name like concat('%',#{factorName},'%')</if>
<if test="mappingFileId != null and mappingFileId != ''">and mapping_file_id like
concat('%',#{mappingFileId},'%')
</if>
<if test="mappingFileCode != null and mappingFileCode != ''">and mapping_file_code like
concat('%',#{mappingFileCode},'%')
</if>
<if test="mappingFileName != null and mappingFileName != ''">and mapping_file_name like
concat('%',#{mappingFileName},'%')
</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="AeConfInfluenceFactorentity_list_or" resultMap="get-AeConfInfluenceFactorEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity">
select
<include refid="AeConfInfluenceFactorEntity_Base_Column_List"/>
from ae_conf_influence_factor
<trim prefix="where" prefixOverrides="and">
<if test="id != null">or id = #{id}</if>
<if test="aeConfModuleId != null">or ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">or ae_conf_module_name =
#{aeConfModuleName}
</if>
<if test="factorName != null and factorName != ''">or factor_name = #{factorName}</if>
<if test="mappingFileId != null and mappingFileId != ''">or mapping_file_id = #{mappingFileId}</if>
<if test="mappingFileCode != null and mappingFileCode != ''">or mapping_file_code = #{mappingFileCode}</if>
<if test="mappingFileName != null and mappingFileName != ''">or mapping_file_name = #{mappingFileName}</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.factor.entity.AeConfInfluenceFactorEntity"
keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_influence_factor(
<trim suffix="" suffixOverrides=",">
<if test="aeConfModuleId != null">ae_conf_module_id ,</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">ae_conf_module_name ,</if>
<if test="factorName != null and factorName != ''">factor_name ,</if>
<if test="mappingFileId != null and mappingFileId != ''">mapping_file_id ,</if>
<if test="mappingFileCode != null and mappingFileCode != ''">mapping_file_code ,</if>
<if test="mappingFileName != null and mappingFileName != ''">mapping_file_name ,</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>
create_time ,
<if test="createUser != null and createUser != ''">create_user ,</if>
modify_time ,
<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="aeConfModuleId != null">#{aeConfModuleId} ,</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">#{aeConfModuleName} ,</if>
<if test="factorName != null and factorName != ''">#{factorName} ,</if>
<if test="mappingFileId != null and mappingFileId != ''">#{mappingFileId} ,</if>
<if test="mappingFileCode != null and mappingFileCode != ''">#{mappingFileCode} ,</if>
<if test="mappingFileName != null and mappingFileName != ''">#{mappingFileName} ,</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>
now(),
<if test="createUser != null and createUser != ''">#{createUser} ,</if>
now(),
<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_influence_factor(ae_conf_module_id, ae_conf_module_name, factor_name, mapping_file_id,
mapping_file_code, mapping_file_name, 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.aeConfModuleId},#{entity.aeConfModuleName},#{entity.factorName},#{entity.mappingFileId},#{entity.mappingFileCode},#{entity.mappingFileName},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},now(),#{entity.createUser},now(),#{entity.modifyUser},#{entity.sts},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_influence_factor(ae_conf_module_id, ae_conf_module_name, factor_name, mapping_file_id,
mapping_file_code, mapping_file_name, 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.aeConfModuleId},#{entity.aeConfModuleName},#{entity.factorName},#{entity.mappingFileId},#{entity.mappingFileCode},#{entity.mappingFileName},#{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},now(),#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
ae_conf_module_id = values(ae_conf_module_id),
ae_conf_module_name = values(ae_conf_module_name),
factor_name = values(factor_name),
mapping_file_id = values(mapping_file_id),
mapping_file_code = values(mapping_file_code),
mapping_file_name = values(mapping_file_name),
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.factor.entity.AeConfInfluenceFactorEntity">
update ae_conf_influence_factor set
<trim suffix="" suffixOverrides=",">
<if test="aeConfModuleId != null">ae_conf_module_id = #{aeConfModuleId},</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">ae_conf_module_name = #{aeConfModuleName},
</if>
<if test="factorName != null and factorName != ''">factor_name = #{factorName},</if>
<if test="mappingFileId != null and mappingFileId != ''">mapping_file_id = #{mappingFileId},</if>
<if test="mappingFileCode != null and mappingFileCode != ''">mapping_file_code = #{mappingFileCode},</if>
<if test="mappingFileName != null and mappingFileName != ''">mapping_file_name = #{mappingFileName},</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>
modify_time = now(),
<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.factor.entity.AeConfInfluenceFactorEntity">
update ae_conf_influence_factor
set sts= 'N',
modify_time = now()
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity">
update ae_conf_influence_factor set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="aeConfModuleId != null">and ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_module_name =
#{aeConfModuleName}
</if>
<if test="factorName != null and factorName != ''">and factor_name = #{factorName}</if>
<if test="mappingFileId != null and mappingFileId != ''">and mapping_file_id = #{mappingFileId}</if>
<if test="mappingFileCode != null and mappingFileCode != ''">and mapping_file_code = #{mappingFileCode}</if>
<if test="mappingFileName != null and mappingFileName != ''">and mapping_file_name = #{mappingFileName}</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_influence_factor
where id = #{id}
</delete>
<select id="queryById" resultMap="get-AeConfInfluenceFactorEntity-result">
SELECT
ae_conf_influence_factor.id as id,
ae_conf_influence_factor.ae_conf_module_id as ae_conf_module_id,
ae_conf_business_module.module_name as ae_conf_module_name,
ae_conf_influence_factor.factor_name as factor_name,
ae_conf_influence_factor.mapping_file_id as mapping_file_id,
ae_conf_influence_factor.mapping_file_code as mapping_file_code,
ae_conf_influence_factor.mapping_file_name as mapping_file_name,
ae_conf_influence_factor.remark as remark,
ae_conf_influence_factor.def1 as def1,
ae_conf_influence_factor.def2 as def2,
ae_conf_influence_factor.def3 as def3,
ae_conf_influence_factor.def4 as def4,
ae_conf_influence_factor.def5 as def5,
ae_conf_influence_factor.def6 as def6,
ae_conf_influence_factor.def7 as def7,
ae_conf_influence_factor.def8 as def8,
ae_conf_influence_factor.def9 as def9,
ae_conf_influence_factor.def10 as def10,
ae_conf_influence_factor.create_time as create_time,
ae_conf_influence_factor.create_user as create_user,
ae_conf_influence_factor.modify_time as modify_time,
ae_conf_influence_factor.modify_user as modify_user,
ae_conf_influence_factor.sts as sts
FROM
ae_conf_influence_factor
LEFT JOIN ae_conf_business_module ae_conf_business_module ON ae_conf_business_module.id=ae_conf_influence_factor.ae_conf_module_id
WHERE
ae_conf_influence_factor.sts='Y'
and ae_conf_influence_factor.id = #{id}
</select>
<select id="queryAll" resultMap="get-AeConfInfluenceFactorEntity-result">
SELECT
ae_conf_influence_factor.id as id,
ae_conf_influence_factor.ae_conf_module_id as ae_conf_module_id,
ae_conf_business_module.module_name as ae_conf_module_name,
ae_conf_influence_factor.factor_name as factor_name,
ae_conf_influence_factor.mapping_file_id as mapping_file_id,
ae_conf_influence_factor.mapping_file_code as mapping_file_code,
ae_conf_influence_factor.mapping_file_name as mapping_file_name,
ae_conf_influence_factor.remark as remark,
ae_conf_influence_factor.def1 as def1,
ae_conf_influence_factor.def2 as def2,
ae_conf_influence_factor.def3 as def3,
ae_conf_influence_factor.def4 as def4,
ae_conf_influence_factor.def5 as def5,
ae_conf_influence_factor.def6 as def6,
ae_conf_influence_factor.def7 as def7,
ae_conf_influence_factor.def8 as def8,
ae_conf_influence_factor.def9 as def9,
ae_conf_influence_factor.def10 as def10,
ae_conf_influence_factor.create_time as create_time,
ae_conf_influence_factor.create_user as create_user,
ae_conf_influence_factor.modify_time as modify_time,
ae_conf_influence_factor.modify_user as modify_user,
ae_conf_influence_factor.sts as sts
FROM
ae_conf_influence_factor
LEFT JOIN ae_conf_business_module ae_conf_business_module ON ae_conf_business_module.id=ae_conf_influence_factor.ae_conf_module_id
WHERE
ae_conf_influence_factor.sts='Y'
<if test="id != null">and ae_conf_influence_factor.id = #{id}</if>
<if test="aeConfModuleId != null">and ae_conf_influence_factor.ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_influence_factor.ae_conf_module_name = #{aeConfModuleName}</if>
<if test="factorName != null and factorName != ''">and ae_conf_influence_factor.factor_name = #{factorName}</if>
<if test="mappingFileId != null and mappingFileId != ''">and ae_conf_influence_factor.mapping_file_id = #{mappingFileId}</if>
<if test="mappingFileCode != null and mappingFileCode != ''">and ae_conf_influence_factor.mapping_file_code = #{mappingFileCode}</if>
<if test="mappingFileName != null and mappingFileName != ''">and ae_conf_influence_factor.mapping_file_name = #{mappingFileName}</if>
<if test="remark != null and remark != ''">and ae_conf_influence_factor.remark = #{remark}</if>
<if test="def1 != null and def1 != ''">and ae_conf_influence_factor.def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">and ae_conf_influence_factor.def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">and ae_conf_influence_factor.def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">and ae_conf_influence_factor.def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">and ae_conf_influence_factor.def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">and ae_conf_influence_factor.def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">and ae_conf_influence_factor.def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">and ae_conf_influence_factor.def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">and ae_conf_influence_factor.def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">and ae_conf_influence_factor.def10 = #{def10}</if>
</select>
</mapper>

View File

@ -0,0 +1,23 @@
package com.hzya.frame.voucher.ae.comf.factor.entity.vo;
import lombok.Data;
/**
* Created by zydd on 2025-05-27 09:59
*/
@Data
public class MappingFieldVO {
/**
* 映射字段id
*/
private String mappingFieldId;
/**
* 映射字段code
*/
private String mappingFieldCode;
/**
* 映射字段name
*/
private String mappingFieldName;
}

View File

@ -0,0 +1,25 @@
package com.hzya.frame.voucher.ae.comf.factor.service;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity;
import com.hzya.frame.basedao.service.IBaseService;
import java.util.List;
import java.util.Map;
/**
* 会计事项(accounting_event)-配置-影响因素关联设置(AeConfInfluenceFactorCorrelation)表服务接口
*
* @author zydd
* @since 2025-05-27 09:07:42
*/
public interface IAeConfInfluenceFactorCorrelationService extends IBaseService<AeConfInfluenceFactorCorrelationEntity, String> {
List<AeConfInfluenceFactorCorrelationEntity> queryByMdmId(AeConfInfluenceFactorCorrelationEntity entity);
List<AeConfInfluenceFactorCorrelationEntity> queryAll(AeConfInfluenceFactorCorrelationEntity entity);
List<AeConfInfluenceFactorCorrelationEntity> saveList(List<AeConfInfluenceFactorCorrelationEntity> list);
List<AeConfInfluenceFactorCorrelationEntity> updateList(List<AeConfInfluenceFactorCorrelationEntity> list);
Map<String, Integer> deleteList(List<AeConfInfluenceFactorCorrelationEntity> list);
}

View File

@ -0,0 +1,23 @@
package com.hzya.frame.voucher.ae.comf.factor.service;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity;
import com.hzya.frame.basedao.service.IBaseService;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-影响因素设置(AeConfInfluenceFactor)表服务接口
*
* @author zydd
* @since 2025-05-23 09:44:40
*/
public interface IAeConfInfluenceFactorService extends IBaseService<AeConfInfluenceFactorEntity, String> {
PageInfo queryEntityPaged(AeConfInfluenceFactorEntity entity);
List<AeConfInfluenceFactorEntity> queryAll(AeConfInfluenceFactorEntity entity);
AeConfInfluenceFactorEntity queryById(AeConfInfluenceFactorEntity entity);
AeConfInfluenceFactorEntity updateById(AeConfInfluenceFactorEntity entity);
List<AeConfInfluenceFactorEntity> queryFluenceFactorsByModuleId(AeConfInfluenceFactorEntity entity);
}

View File

@ -0,0 +1,111 @@
package com.hzya.frame.voucher.ae.comf.factor.service.impl;
import cn.hutool.core.lang.Assert;
import cn.hutool.json.JSONUtil;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity;
import com.hzya.frame.voucher.ae.comf.factor.dao.IAeConfInfluenceFactorCorrelationDao;
import com.hzya.frame.voucher.ae.comf.factor.service.IAeConfInfluenceFactorCorrelationService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.hzya.frame.basedao.service.impl.BaseService;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 会计事项(accounting_event)-配置-影响因素关联设置(AeConfInfluenceFactorCorrelation)表服务实现类
*
* @author zydd
* @since 2025-05-27 09:07:42
*/
@Service
public class AeConfInfluenceFactorCorrelationServiceImpl extends BaseService<AeConfInfluenceFactorCorrelationEntity, String> implements IAeConfInfluenceFactorCorrelationService {
private IAeConfInfluenceFactorCorrelationDao aeConfInfluenceFactorCorrelationDao;
@Autowired
public void setAeConfInfluenceFactorCorrelationDao(IAeConfInfluenceFactorCorrelationDao dao) {
this.aeConfInfluenceFactorCorrelationDao = dao;
this.dao = dao;
}
@Override
public List<AeConfInfluenceFactorCorrelationEntity> queryAll(AeConfInfluenceFactorCorrelationEntity entity) {
List<AeConfInfluenceFactorCorrelationEntity> query = aeConfInfluenceFactorCorrelationDao.query(entity);
return query;
}
@Override
public List<AeConfInfluenceFactorCorrelationEntity> queryByMdmId(AeConfInfluenceFactorCorrelationEntity entity) {
Assert.notNull(entity.getMdmId(), "查询影响因素关联时主数据id不能为空");
List<AeConfInfluenceFactorCorrelationEntity> query = aeConfInfluenceFactorCorrelationDao.query(entity);
return query;
}
@Override
public List<AeConfInfluenceFactorCorrelationEntity> saveList(List<AeConfInfluenceFactorCorrelationEntity> list) {
if (list.size() == 0) {
Assert.state(false, "影响因素关联时保存时,数据不能为空,请检查!");
}
for (AeConfInfluenceFactorCorrelationEntity factorCorrelation : list) {
Assert.notNull(factorCorrelation.getMdmId(), "影响因素关联保存时主数据id不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMdmCode(), "影响因素关联保存时主数据code不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMdmName(), "影响因素关联保存时主数据name不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getFactorId(), "影响因素关联保存时影响因素id不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getFactorName(), "影响因素关联保存时影响因素name不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMappingFieldId(), "影响因素关联保存时映射字段id不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMappingFieldCode(), "影响因素关联保存时映射字段code不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMappingFieldName(), "影响因素关联保存时映射字段name不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
}
List<AeConfInfluenceFactorCorrelationEntity> saveList = new ArrayList<>();
for (AeConfInfluenceFactorCorrelationEntity factorCorrelation : list) {
AeConfInfluenceFactorCorrelationEntity save = aeConfInfluenceFactorCorrelationDao.save(factorCorrelation);
saveList.add(save);
}
return saveList;
}
@Override
public List<AeConfInfluenceFactorCorrelationEntity> updateList(List<AeConfInfluenceFactorCorrelationEntity> list) {
if (list.size() == 0) {
Assert.state(false, "影响因素关联时更新时,数据不能为空,请检查!");
}
for (AeConfInfluenceFactorCorrelationEntity factorCorrelation : list) {
Assert.notNull(factorCorrelation.getId(), "影响因素关联保存时因素关联id不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMdmId(), "影响因素关联保存时主数据id不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMdmCode(), "影响因素关联保存时主数据code不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMdmName(), "影响因素关联保存时主数据name不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getFactorId(), "影响因素关联保存时影响因素id不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getFactorName(), "影响因素关联保存时影响因素name不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMappingFieldId(), "影响因素关联保存时映射字段id不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMappingFieldCode(), "影响因素关联保存时映射字段code不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
Assert.notNull(factorCorrelation.getMappingFieldName(), "影响因素关联保存时映射字段name不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
}
List<AeConfInfluenceFactorCorrelationEntity> updateList = new ArrayList<>();
for (AeConfInfluenceFactorCorrelationEntity factorCorrelation : list) {
AeConfInfluenceFactorCorrelationEntity save = aeConfInfluenceFactorCorrelationDao.update(factorCorrelation);
updateList.add(save);
}
return updateList;
}
@Override
public Map<String, Integer> deleteList(List<AeConfInfluenceFactorCorrelationEntity> list) {
if (list.size() == 0) {
Assert.state(false, "影响因素关联删除时,数据不能为空,请检查!");
}
for (AeConfInfluenceFactorCorrelationEntity factorCorrelation : list) {
Assert.notNull(factorCorrelation.getId(), "影响因素关联删除时因素关联id不能为空检验数据为{}", JSONUtil.toJsonStr(factorCorrelation));
}
Map<String, Integer> deleteMap = new HashMap<>();
for (AeConfInfluenceFactorCorrelationEntity factorCorrelation : list) {
int i = aeConfInfluenceFactorCorrelationDao.logicRemove(factorCorrelation);
deleteMap.put(factorCorrelation.getId(), i);
}
return deleteMap;
}
}

View File

@ -0,0 +1,134 @@
package com.hzya.frame.voucher.ae.comf.factor.service.impl;
import cn.hutool.core.lang.Assert;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.voucher.ae.comf.factor.dao.IAeConfInfluenceFactorCorrelationDao;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity;
import com.hzya.frame.voucher.ae.comf.factor.dao.IAeConfInfluenceFactorDao;
import com.hzya.frame.voucher.ae.comf.factor.service.IAeConfInfluenceFactorService;
import com.hzya.frame.voucher.ae.comf.module.dao.IAeConfBusinessModuleDao;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity;
import com.hzya.frame.voucher.ae.comf.module.service.IAeConfBusinessModuleService;
import org.springframework.beans.factory.annotation.Autowired;
import com.hzya.frame.basedao.service.impl.BaseService;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-影响因素设置(AeConfInfluenceFactor)表服务实现类
*
* @author zydd
* @since 2025-05-23 09:44:40
*/
@Service
public class AeConfInfluenceFactorServiceImpl extends BaseService<AeConfInfluenceFactorEntity, String> implements IAeConfInfluenceFactorService {
private IAeConfInfluenceFactorDao aeConfInfluenceFactorDao;
@Autowired
public void setAeConfInfluenceFactorDao(IAeConfInfluenceFactorDao dao) {
this.aeConfInfluenceFactorDao = dao;
this.dao = dao;
}
@Autowired
private IAeConfInfluenceFactorCorrelationDao aeConfInfluenceFactorCorrelationDao;
@Autowired
private IAeConfBusinessModuleDao aeConfBusinessModuleDao;
@Autowired
private IAeConfBusinessModuleService aeConfBusinessModuleService;
@Override
public PageInfo queryEntityPaged(AeConfInfluenceFactorEntity entity) {
PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
List<AeConfInfluenceFactorEntity> list = aeConfInfluenceFactorDao.queryAll(entity);
PageInfo pageInfo = new PageInfo(list);
return pageInfo;
}
@Override
public List<AeConfInfluenceFactorEntity> queryAll(AeConfInfluenceFactorEntity entity) {
List<AeConfInfluenceFactorEntity> all = new ArrayList<>();
all = aeConfInfluenceFactorDao.queryAll(entity);
return all;
}
@Override
public AeConfInfluenceFactorEntity queryById(AeConfInfluenceFactorEntity entity) {
Assert.notNull(entity.getId(), "根据id查询影响因素设置时id不能为空");
List<AeConfInfluenceFactorEntity> all = dao.query(entity);
if (all.size() == 0) {
return null;
}
return all.get(0);
}
@Override
public AeConfInfluenceFactorEntity save(AeConfInfluenceFactorEntity entity) throws Exception {
Assert.notNull(entity.getAeConfModuleId(), "保存影响因素设置时业务模块id不能为空");
Assert.notNull(entity.getFactorName(), "保存影响因素设置时,影响因素名称不能为空");
//关联档案
updateModuleName(entity);
return super.save(entity);
}
@Override
public AeConfInfluenceFactorEntity updateById(AeConfInfluenceFactorEntity entity) {
Assert.notNull(entity.getAeConfModuleId(), "修改影响因素设置时业务模块id不能为空");
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity = aeConfInfluenceFactorDao.queryById(entity);
if (aeConfInfluenceFactorEntity == null) {
Assert.state(false,"根据影响因素id{},未查询到影响因素,修改失败!",entity.getId());
}
//如有模块更改需要更新此表的ae_conf_module_name模块名称
updateModuleName(entity);
AeConfInfluenceFactorEntity update = this.dao.update(entity);
return update;
}
/**
* 删除时需要考虑影响因素关联是否有引用引用则不可删除
*/
@Override
public int logicRemove(AeConfInfluenceFactorEntity entity) throws Exception {
Assert.notNull(entity.getId(), "删除影响因素设置时影响因素id不能为空");
AeConfInfluenceFactorCorrelationEntity factorCorrelation = new AeConfInfluenceFactorCorrelationEntity();
factorCorrelation.setFactorId(Long.valueOf(entity.getId()));
List<AeConfInfluenceFactorCorrelationEntity> correlationList = aeConfInfluenceFactorCorrelationDao.query(factorCorrelation);
if(correlationList.size()!=0){
Assert.state(false,"删除失败。该影响因素已被关联,请检查影响因素关联配置。");
}
return aeConfInfluenceFactorDao.logicRemove(entity);
}
/**
* 根据AeConfInfluenceFactorEntity entity中的aeConfModuleId查询业务模块名称,并将名称赋值给aeConfModuleName
*
* @param entity
*/
public void updateModuleName(AeConfInfluenceFactorEntity entity) {
if (entity.getAeConfModuleId() != null || !"".equals(entity.getAeConfModuleId())) {
AeConfBusinessModuleEntity aeConfBusinessModuleEntity = new AeConfBusinessModuleEntity();
aeConfBusinessModuleEntity.setId(String.valueOf(entity.getAeConfModuleId()));
AeConfBusinessModuleEntity aeConfBusinessModule = aeConfBusinessModuleService.queryById(aeConfBusinessModuleEntity);
if (aeConfBusinessModule != null) {
entity.setAeConfModuleName(aeConfBusinessModule.getModuleName());
}
}
}
@Override
public List<AeConfInfluenceFactorEntity> queryFluenceFactorsByModuleId(AeConfInfluenceFactorEntity entity) {
Assert.notNull(entity.getAeConfModuleId(), "根据业务模块id查询影响因素设置时业务模块id不能为空");
List<AeConfInfluenceFactorEntity> list = aeConfInfluenceFactorDao.queryAll(entity);
return list;
}
}

View File

@ -0,0 +1,94 @@
package com.hzya.frame.voucher.ae.comf.module.controller;
import cn.hutool.core.lang.Assert;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.page.PageAttribute;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity;
import com.hzya.frame.voucher.ae.comf.module.service.IAeConfBusinessModuleService;
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.*;
import java.util.List;
/**
* Created by zydd on 2025-05-22 14:49
*/
@RestController
@RequestMapping("/ae/conf/businessModule")
public class BusinessModuleController extends DefaultController {
@Autowired
private IAeConfBusinessModuleService aeConfBusinessModuleService;
@RequestMapping(value = "/queryPaged", method = RequestMethod.POST)
public JsonResultEntity queryPaged(@RequestBody AeConfBusinessModuleEntity entity) {
try {
PageInfo pageInfo = aeConfBusinessModuleService.queryEntityPaged(entity);
return getSuccessMessageEntity("请求成功", pageInfo);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
public JsonResultEntity queryAll() {
try {
List<AeConfBusinessModuleEntity> all = aeConfBusinessModuleService.getAll();
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryById", method = RequestMethod.POST)
public JsonResultEntity queryById(@RequestBody AeConfBusinessModuleEntity entity) {
try {
AeConfBusinessModuleEntity aeConfBusinessModuleEntity = aeConfBusinessModuleService.queryById(entity);
return getSuccessMessageEntity("请求成功", aeConfBusinessModuleEntity);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/save", method = RequestMethod.POST)
public JsonResultEntity save(@RequestBody AeConfBusinessModuleEntity entity) {
try {
AeConfBusinessModuleEntity save = aeConfBusinessModuleService.save(entity);
return getSuccessMessageEntity("请求成功", save);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/update", method = RequestMethod.POST)
public JsonResultEntity update(@RequestBody AeConfBusinessModuleEntity entity) {
try {
Assert.notNull(entity.getId(), "更新时id不能为空");
AeConfBusinessModuleEntity save = aeConfBusinessModuleService.update(entity);
return getSuccessMessageEntity("请求成功", save);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/delete", method = RequestMethod.POST)
public JsonResultEntity delete(@RequestBody AeConfBusinessModuleEntity entity) {
try {
Assert.notNull(entity.getId(), "删除时id不能为空");
int i = aeConfBusinessModuleService.logicRemove(entity);
return getSuccessMessageEntity("请求成功", null);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -0,0 +1,120 @@
package com.hzya.frame.voucher.ae.comf.module.controller;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity;
import com.hzya.frame.voucher.ae.comf.module.service.IAeConfBusinessModuleMdmService;
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;
import java.util.Map;
/**
* Created by zydd on 2025-05-23 16:39
* 业务模块和单据类型绑定
*/
@RestController
@RequestMapping("/ae/conf/businessModuleMdm")
public class BusinessModuleMdmController extends DefaultController {
@Autowired
private IMdmModuleService mdmModuleService;
@Autowired
private IAeConfBusinessModuleMdmService aeConfBusinessModuleMdmService;
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
public JsonResultEntity queryAll(@RequestBody AeConfBusinessModuleMdmEntity entity) {
try {
List<AeConfBusinessModuleMdmEntity> all = aeConfBusinessModuleMdmService.queryAll(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryModuleIncludeMdmList", method = RequestMethod.POST)
public JsonResultEntity queryModuleIncludeMdmList(@RequestBody AeConfBusinessModuleMdmEntity entity) {
try {
List<AeConfBusinessModuleMdmEntity> all = aeConfBusinessModuleMdmService.queryModuleIncludeMdmList(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryMdmsByModuleId", method = RequestMethod.POST)
public JsonResultEntity queryMdmsByModuleId(@RequestBody AeConfBusinessModuleMdmEntity entity) {
try {
List<AeConfBusinessModuleMdmEntity> all = aeConfBusinessModuleMdmService.queryMdmsByModuleId(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
// @RequestMapping(value = "/queryPaged", method = RequestMethod.POST)
// public JsonResultEntity queryPaged(@RequestBody AeConfBusinessModuleMdmEntity entity) {
// try {
// PageInfo pageInfo = aeConfBusinessModuleMdmService.queryEntityPaged(entity);
// return getSuccessMessageEntity("请求成功",pageInfo);
// } catch (Exception e) {
// e.printStackTrace();
// return getFailureMessageEntity(e.getMessage());
// }
// }
/**
* 保存List集合
*/
@RequestMapping(value = "/saveList", method = RequestMethod.POST)
public JsonResultEntity save(@RequestBody List<AeConfBusinessModuleMdmEntity> list) {
try {
List<AeConfBusinessModuleMdmEntity> saveList = aeConfBusinessModuleMdmService.saveList(list);
return getSuccessMessageEntity("请求成功", saveList);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 更新List集合
*/
@RequestMapping(value = "/updateList", method = RequestMethod.POST)
public JsonResultEntity updateList(@RequestBody List<AeConfBusinessModuleMdmEntity> list) {
try {
List<AeConfBusinessModuleMdmEntity> saveList = aeConfBusinessModuleMdmService.updateList(list);
return getSuccessMessageEntity("请求成功", saveList);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
/**
* 删除List集合
*/
@RequestMapping(value = "/deleteList", method = RequestMethod.POST)
public JsonResultEntity deleteList(@RequestBody List<AeConfBusinessModuleMdmEntity> list) {
try {
Map<String, Integer> deleteMap = aeConfBusinessModuleMdmService.deleteList(list);
return getSuccessMessageEntity("请求成功", deleteMap);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -0,0 +1,72 @@
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.entity.AeConfBusinessModuleMdmEntity;
import com.hzya.frame.voucher.ae.comf.module.entity.MdmAndFiledsVO;
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/mdm")
public class MdmController 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("2");//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

@ -0,0 +1,80 @@
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());
}
}
@RequestMapping(value = "/queryMdmAndFiledssByMdmId", method = RequestMethod.POST)
public JsonResultEntity queryMdmAndFiledssByMdmId(@RequestBody MdmModuleDbEntity entity) {
try {
MdmModuleDbEntity all = mdmService.queryMdmAndFiledssByMdmId(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.voucher.ae.comf.module.dao;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 会计事项(accounting_event)-配置-业务模块(ae_conf_business_module: table)表数据库访问层
*
* @author zydd
* @since 2025-05-22 14:48:27
*/
public interface IAeConfBusinessModuleDao extends IBaseDao<AeConfBusinessModuleEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.voucher.ae.comf.module.dao;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 会计事项(accounting_event)-配置-业务模块-单据类型-关联(ae_conf_business_module_bill_type: table)表数据库访问层
*
* @author zydd
* @since 2025-05-23 16:31:42
*/
public interface IAeConfBusinessModuleMdmDao extends IBaseDao<AeConfBusinessModuleMdmEntity, String> {
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.voucher.ae.comf.module.dao.impl;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity;
import com.hzya.frame.voucher.ae.comf.module.dao.IAeConfBusinessModuleDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 会计事项(accounting_event)-配置-业务模块(AeConfBusinessModule)表数据库访问层
*
* @author zydd
* @since 2025-05-22 14:48:27
*/
@Repository
public class AeConfBusinessModuleDaoImpl extends MybatisGenericDao<AeConfBusinessModuleEntity, String> implements IAeConfBusinessModuleDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.voucher.ae.comf.module.dao.impl;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity;
import com.hzya.frame.voucher.ae.comf.module.dao.IAeConfBusinessModuleMdmDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 会计事项(accounting_event)-配置-业务模块-单据类型-关联(AeConfBusinessModuleBillType)表数据库访问层
*
* @author zydd
* @since 2025-05-23 16:31:42
*/
@Repository
public class AeConfBusinessModuleMdmDaoImpl extends MybatisGenericDao<AeConfBusinessModuleMdmEntity, String> implements IAeConfBusinessModuleMdmDao {
}

View File

@ -0,0 +1,41 @@
package com.hzya.frame.voucher.ae.comf.module.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-业务模块(AeConfBusinessModule)实体类
*
* @author zydd
* @since 2025-05-22 14:48:28
*/
@Data
public class AeConfBusinessModuleEntity extends BaseEntity {
/**
* 模块名称
*/
private String moduleName;
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;
}

View File

@ -0,0 +1,303 @@
<?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.module.dao.impl.AeConfBusinessModuleDaoImpl">
<resultMap id="get-AeConfBusinessModuleEntity-result"
type="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="moduleName" column="module_name" 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="AeConfBusinessModuleEntity_Base_Column_List">
id
,module_name
,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-AeConfBusinessModuleEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity">
select
<include refid="AeConfBusinessModuleEntity_Base_Column_List"/>
from ae_conf_business_module
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="moduleName != null and moduleName != ''">and module_name = #{moduleName}</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.module.entity.AeConfBusinessModuleEntity">
select count(1) from ae_conf_business_module
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="moduleName != null and moduleName != ''">and module_name = #{moduleName}</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-AeConfBusinessModuleEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity">
select
<include refid="AeConfBusinessModuleEntity_Base_Column_List"/>
from ae_conf_business_module
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id like concat('%',#{id},'%')</if>
<if test="moduleName != null and moduleName != ''">and module_name like concat('%',#{moduleName},'%')</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="AeConfBusinessModuleentity_list_or" resultMap="get-AeConfBusinessModuleEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity">
select
<include refid="AeConfBusinessModuleEntity_Base_Column_List"/>
from ae_conf_business_module
<trim prefix="where" prefixOverrides="and">
<if test="id != null">or id = #{id}</if>
<if test="moduleName != null and moduleName != ''">or module_name = #{moduleName}</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.module.entity.AeConfBusinessModuleEntity"
keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_business_module(
<trim suffix="" suffixOverrides=",">
<if test="moduleName != null and moduleName != ''">module_name ,</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="moduleName != null and moduleName != ''">#{moduleName} ,</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_business_module(module_name, 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.moduleName},#{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_business_module(module_name, 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.moduleName},#{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
module_name = values(module_name),
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.module.entity.AeConfBusinessModuleEntity">
update ae_conf_business_module set
<trim suffix="" suffixOverrides=",">
<if test="moduleName != null and moduleName != ''">module_name = #{moduleName},</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="create_time = null">create_time = now(),</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.module.entity.AeConfBusinessModuleEntity">
update ae_conf_business_module set sts= 'N' ,modify_time = now()
<if test="modify_user_id!=null and modify_user_id!=''">,modify_user_id = #{modify_user_id}</if>
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity">
update ae_conf_business_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="moduleName != null and moduleName != ''">and module_name = #{moduleName}</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_business_module
where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,65 @@
package com.hzya.frame.voucher.ae.comf.module.entity;
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-业务模块-单据类型-关联(AeConfBusinessModuleBillType)实体类
*
* @author zydd
* @since 2025-05-23 16:31:42
*/
@Data
public class AeConfBusinessModuleMdmEntity extends BaseEntity {
/**
* 业务模块id
*/
private Long aeConfModuleId;
/**
* 业务模块name
*/
private String aeConfModuleName;
/**
* 单据类型id
*/
private String mdmId;
/**
* 单据类型code
*/
private String mdmCode;
/**
* 单据类型name
*/
private String mdmName;
/**
* 备注
*/
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;
private List<MdmModuleEntity> mdmModuleEntity;
}

View File

@ -0,0 +1,377 @@
<?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.module.dao.impl.AeConfBusinessModuleMdmDaoImpl">
<resultMap id="get-AeConfBusinessModuleBillTypeEntity-result"
type="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="aeConfModuleId" column="ae_conf_module_id" jdbcType="INTEGER"/>
<result property="aeConfModuleName" column="ae_conf_module_name" jdbcType="VARCHAR"/>
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
<result property="mdmCode" column="mdm_code" jdbcType="VARCHAR"/>
<result property="mdmName" column="mdm_name" 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="AeConfBusinessModuleBillTypeEntity_Base_Column_List">
id
,ae_conf_module_id
,ae_conf_module_name
,mdm_id
,mdm_code
,mdm_name
,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-AeConfBusinessModuleBillTypeEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity">
select
<include refid="AeConfBusinessModuleBillTypeEntity_Base_Column_List"/>
from ae_conf_business_module_mdm
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="aeConfModuleId != null">and ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_module_name =
#{aeConfModuleName}
</if>
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
<if test="mdmCode != null and mdmCode != ''">and mdm_code = #{mdmCode}</if>
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</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.module.entity.AeConfBusinessModuleMdmEntity">
select count(1) from ae_conf_business_module_mdm
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="aeConfModuleId != null">and ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_module_name =
#{aeConfModuleName}
</if>
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
<if test="mdmCode != null and mdmCode != ''">and mdm_code = #{mdmCode}</if>
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</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-AeConfBusinessModuleBillTypeEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity">
select
<include refid="AeConfBusinessModuleBillTypeEntity_Base_Column_List"/>
from ae_conf_business_module_mdm
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id like concat('%',#{id},'%')</if>
<if test="aeConfModuleId != null">and ae_conf_module_id like concat('%',#{aeConfModuleId},'%')</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_module_name like
concat('%',#{aeConfModuleName},'%')
</if>
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
<if test="mdmCode != null and mdmCode != ''">and mdm_code like
concat('%',#{mdmCode},'%')
</if>
<if test="mdmName != null and mdmName != ''">and mdm_name like
concat('%',#{mdmName},'%')
</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="AeConfBusinessModuleBillTypeentity_list_or" resultMap="get-AeConfBusinessModuleBillTypeEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity">
select
<include refid="AeConfBusinessModuleBillTypeEntity_Base_Column_List"/>
from ae_conf_business_module_mdm
<trim prefix="where" prefixOverrides="and">
<if test="id != null">or id = #{id}</if>
<if test="aeConfModuleId != null">or ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">or ae_conf_module_name =
#{aeConfModuleName}
</if>
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
<if test="mdmCode != null and mdmCode != ''">or mdm_code = #{mdmCode}</if>
<if test="mdmName != null and mdmName != ''">or mdm_name = #{mdmName}</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.module.entity.AeConfBusinessModuleMdmEntity"
keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_business_module_mdm(
<trim suffix="" suffixOverrides=",">
<if test="aeConfModuleId != null">ae_conf_module_id ,</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">ae_conf_module_name ,</if>
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
<if test="mdmCode != null and mdmCode != ''">mdm_code ,</if>
<if test="mdmName != null and mdmName != ''">mdm_name ,</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>
sts
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="aeConfModuleId != null">#{aeConfModuleId} ,</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">#{aeConfModuleName} ,</if>
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
<if test="mdmCode != null and mdmCode != ''">#{mdmCode} ,</if>
<if test="mdmName != null and mdmName != ''">#{mdmName} ,</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>
'Y'
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_business_module_mdm(ae_conf_module_id, ae_conf_module_name, mdm_id,
mdm_code, mdm_name, 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.aeConfModuleId},#{entity.aeConfModuleName},#{entity.mdmId},#{entity.mdmCode},#{entity.mdmName},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},now(),#{entity.createUser},now(),#{entity.modifyUser},#{entity.sts},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_business_module_mdm(ae_conf_module_id, ae_conf_module_name, mdm_id,
mdm_code, mdm_name, 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.aeConfModuleId},#{entity.aeConfModuleName},#{entity.mdmId},#{entity.mdmCode},#{entity.mdmName},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},now(),#{entity.createUser},now(),#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
ae_conf_module_id = values(ae_conf_module_id),
ae_conf_module_name = values(ae_conf_module_name),
mdm_id = values(mdm_id),
mdm_code = values(mdm_code),
mdm_name = values(mdm_name),
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.module.entity.AeConfBusinessModuleMdmEntity">
update ae_conf_business_module_mdm set
<trim suffix="" suffixOverrides=",">
<if test="aeConfModuleId != null">ae_conf_module_id = #{aeConfModuleId},</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">ae_conf_module_name = #{aeConfModuleName},
</if>
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
<if test="mdmCode != null and mdmCode != ''">mdm_code = #{mdmCode},</if>
<if test="mdmName != null and mdmName != ''">mdm_name = #{mdmName},</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.module.entity.AeConfBusinessModuleMdmEntity">
update ae_conf_business_module_mdm
set sts= 'N',
modify_time = now()
<if test="modifyUser != null and modifyUser != ''">,modify_user = #{modifyUser}</if>
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity">
update ae_conf_business_module_mdm set sts= 'N' ,modify_time = now(),modify_user_id =
#{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="aeConfModuleId != null">and ae_conf_module_id = #{aeConfModuleId}</if>
<if test="aeConfModuleName != null and aeConfModuleName != ''">and ae_conf_module_name =
#{aeConfModuleName}
</if>
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
<if test="mdmCode != null and mdmCode != ''">and mdm_code = #{mdmCode}</if>
<if test="mdmName != null and mdmName != ''">and mdm_name = #{mdmName}</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_business_module_mdm
where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,11 @@
package com.hzya.frame.voucher.ae.comf.module.entity;
import lombok.Data;
/**
* Created by zydd on 2025-05-27 15:08
* 单据字段VO
*/
@Data
public class MdmAndFiledsVO {
}

View File

@ -0,0 +1,30 @@
package com.hzya.frame.voucher.ae.comf.module.service;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity;
import com.hzya.frame.basedao.service.IBaseService;
import java.util.List;
import java.util.Map;
/**
* 会计事项(accounting_event)-配置-业务模块-单据类型-关联(AeConfBusinessModuleBillType)表服务接口
*
* @author zydd
* @since 2025-05-23 16:31:42
*/
public interface IAeConfBusinessModuleMdmService extends IBaseService<AeConfBusinessModuleMdmEntity, String>{
List<AeConfBusinessModuleMdmEntity> queryAll(AeConfBusinessModuleMdmEntity entity);
List<AeConfBusinessModuleMdmEntity> queryModuleIncludeMdmList(AeConfBusinessModuleMdmEntity entity);
List<AeConfBusinessModuleMdmEntity> queryMdmsByModuleId(AeConfBusinessModuleMdmEntity entity);
List<AeConfBusinessModuleMdmEntity> saveList(List<AeConfBusinessModuleMdmEntity> list);
List<AeConfBusinessModuleMdmEntity> updateList(List<AeConfBusinessModuleMdmEntity> list);
Map<String,Integer> deleteList(List<AeConfBusinessModuleMdmEntity> list);
// PageInfo queryEntityPaged(AeConfBusinessModuleMdmEntity entity);
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.voucher.ae.comf.module.service;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity;
import com.hzya.frame.basedao.service.IBaseService;
import com.github.pagehelper.PageInfo;
/**
* 会计事项(accounting_event)-配置-业务模块(AeConfBusinessModule)表服务接口
*
* @author zydd
* @since 2025-05-22 14:48:28
*/
public interface IAeConfBusinessModuleService extends IBaseService<AeConfBusinessModuleEntity, String>{
PageInfo queryEntityPaged(AeConfBusinessModuleEntity entity);
public AeConfBusinessModuleEntity queryById(AeConfBusinessModuleEntity entity);
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.voucher.ae.comf.module.service;
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
import com.hzya.frame.voucher.ae.comf.module.entity.MdmAndFiledsVO;
import java.util.List;
/**
* Created by zydd on 2025-05-27 15:06
*/
public interface IMdmService {
List<MdmModuleDbEntity> queryMdmAndFiledsByMdmId(MdmModuleDbEntity entity);
MdmModuleDbEntity queryMdmAndFiledssByMdmId(MdmModuleDbEntity entity);
}

View File

@ -0,0 +1,221 @@
package com.hzya.frame.voucher.ae.comf.module.service.impl;
import cn.hutool.core.lang.Assert;
import cn.hutool.json.JSONUtil;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.mdm.mdmModule.dao.IMdmModuleDao;
import com.hzya.frame.mdm.mdmModule.entity.MdmModuleEntity;
import com.hzya.frame.voucher.ae.comf.factor.dao.IAeConfInfluenceFactorCorrelationDao;
import com.hzya.frame.voucher.ae.comf.factor.dao.IAeConfInfluenceFactorDao;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorCorrelationEntity;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity;
import com.hzya.frame.voucher.ae.comf.module.dao.IAeConfBusinessModuleDao;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity;
import com.hzya.frame.voucher.ae.comf.module.dao.IAeConfBusinessModuleMdmDao;
import com.hzya.frame.voucher.ae.comf.module.service.IAeConfBusinessModuleMdmService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.hzya.frame.basedao.service.impl.BaseService;
import java.util.*;
import java.util.stream.Collectors;
/**
* 会计事项(accounting_event)-配置-业务模块-单据类型-关联(AeConfBusinessModuleBillType)表服务实现类
*
* @author zydd
* @since 2025-05-23 16:31:42
*/
@Service
public class AeConfBusinessModuleMdmServiceImpl extends BaseService<AeConfBusinessModuleMdmEntity, String> implements IAeConfBusinessModuleMdmService {
private IAeConfBusinessModuleMdmDao aeConfBusinessModuleMdmDao;
@Autowired
public void setaeConfBusinessModuleMdmDao(IAeConfBusinessModuleMdmDao dao) {
this.aeConfBusinessModuleMdmDao = dao;
this.dao = dao;
}
@Autowired
private IMdmModuleDao mdmModuleDao;
@Autowired
private IAeConfBusinessModuleDao aeConfBusinessModuleDao;
@Autowired
private IAeConfInfluenceFactorCorrelationDao aeConfInfluenceFactorCorrelationDao;
@Autowired
private IAeConfInfluenceFactorDao aeConfInfluenceFactorDao;
@Override
public List<AeConfBusinessModuleMdmEntity> queryAll(AeConfBusinessModuleMdmEntity entity) {
List<AeConfBusinessModuleMdmEntity> all = aeConfBusinessModuleMdmDao.query(entity);
return all;
}
/**
* 查询全部业务业务模块里面包含主数据
*/
@Override
public List<AeConfBusinessModuleMdmEntity> queryModuleIncludeMdmList(AeConfBusinessModuleMdmEntity entity) {
List<AeConfBusinessModuleMdmEntity> all = new ArrayList<>();
List<AeConfBusinessModuleMdmEntity> aeConfBusinessModuleMdmEntityList = aeConfBusinessModuleMdmDao.query(entity);
Map<String, List<AeConfBusinessModuleMdmEntity>> collect =
aeConfBusinessModuleMdmEntityList.stream().collect(Collectors.groupingBy(index -> index.getAeConfModuleId() + "###" + index.getAeConfModuleName()));
Set<Map.Entry<String, List<AeConfBusinessModuleMdmEntity>>> entries = collect.entrySet();
for (Map.Entry<String, List<AeConfBusinessModuleMdmEntity>> entry : entries) {
String key = entry.getKey();//moduleId###moduleName
List<AeConfBusinessModuleMdmEntity> value = entry.getValue();
List<MdmModuleEntity> mdmList = new ArrayList<>();
for (AeConfBusinessModuleMdmEntity aeConfBusinessModuleMdmEntity : value) {
MdmModuleEntity mdmModuleEntity = new MdmModuleEntity();
mdmModuleEntity.setId(aeConfBusinessModuleMdmEntity.getMdmId());
mdmModuleEntity.setMdmCode(Long.valueOf(aeConfBusinessModuleMdmEntity.getMdmCode()));
mdmModuleEntity.setMdmName(aeConfBusinessModuleMdmEntity.getMdmName());
mdmList.add(mdmModuleEntity);
}
AeConfBusinessModuleMdmEntity aeConfBusinessModuleMdmEntity = new AeConfBusinessModuleMdmEntity();
String[] split = key.split("###");
aeConfBusinessModuleMdmEntity.setAeConfModuleId(Long.valueOf(split[0]));
aeConfBusinessModuleMdmEntity.setAeConfModuleName(split[1]);
aeConfBusinessModuleMdmEntity.setMdmModuleEntity(mdmList);
all.add(aeConfBusinessModuleMdmEntity);
}
return all;
}
/**
* 根据模块id查询主数据
*/
@Override
public List<AeConfBusinessModuleMdmEntity> queryMdmsByModuleId(AeConfBusinessModuleMdmEntity entity) {
Assert.notNull(entity.getAeConfModuleId(), "查询主数据列表时业务模块id不能为空");
List<AeConfBusinessModuleMdmEntity> all = aeConfBusinessModuleMdmDao.query(entity);
return all;
}
/**
* 保存业务模块-主数据关联关系一对一的关系需要校验
*/
@Override
public List<AeConfBusinessModuleMdmEntity> saveList(List<AeConfBusinessModuleMdmEntity> list) {
if (list.size() == 0) {
Assert.state(false, "业务模块-主数据保存时,数据不能为空,请检查!");
}
for (AeConfBusinessModuleMdmEntity moduleMdmEntity : list) {
Assert.notNull(moduleMdmEntity.getAeConfModuleId(), "业务模块-主数据保存时业务模块id不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getAeConfModuleName(), "业务模块-主数据保存时业务模块name不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getMdmId(), "业务模块-主数据保存时主数据id不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getMdmCode(), "业务模块-主数据保存时主数据code不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getMdmName(), "业务模块-主数据保存时主数据name不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
}
//校验是否存在重复
for (AeConfBusinessModuleMdmEntity aeConfBusinessModuleMdmEntity : list) {
AeConfBusinessModuleMdmEntity ae1 = new AeConfBusinessModuleMdmEntity();
// ae1.setAeConfModuleId(aeConfBusinessModuleMdmEntity.getAeConfModuleId());
ae1.setMdmId(aeConfBusinessModuleMdmEntity.getMdmId());
List<AeConfBusinessModuleMdmEntity> query1 = aeConfBusinessModuleMdmDao.query(ae1);
if (query1.size() > 0) {
Assert.state(false, "该主数据:{},已和模块:{},绑定,请检查。", aeConfBusinessModuleMdmEntity.getMdmName(), aeConfBusinessModuleMdmEntity.getAeConfModuleName());
}
}
List<AeConfBusinessModuleMdmEntity> saveList = new ArrayList<>();
for (AeConfBusinessModuleMdmEntity aeConfBusinessModuleMdmEntity : list) {
AeConfBusinessModuleMdmEntity save = aeConfBusinessModuleMdmDao.save(aeConfBusinessModuleMdmEntity);
saveList.add(save);
}
return saveList;
}
/**
* 更新时需要检查有没有配置影响因素有则不允许更新
*/
@Override
public List<AeConfBusinessModuleMdmEntity> updateList(List<AeConfBusinessModuleMdmEntity> list) {
if (list.size() == 0) {
Assert.state(false, "业务模块-主数据更新时,数据不能为空,请检查!");
}
for (AeConfBusinessModuleMdmEntity moduleMdmEntity : list) {
Assert.notNull(moduleMdmEntity.getId(), "业务模块-主数据保存时,业务模块-主数据id不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getAeConfModuleId(), "业务模块-主数据保存时业务模块id不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getAeConfModuleName(), "业务模块-主数据保存时业务模块name不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getMdmId(), "业务模块-主数据保存时主数据id不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getMdmCode(), "业务模块-主数据保存时主数据code不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
Assert.notNull(moduleMdmEntity.getMdmName(), "业务模块-主数据保存时主数据name不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
}
//查询影响因素,再根据影响因素查询业务模块
for (AeConfBusinessModuleMdmEntity moduleMdmEntity : list) {
AeConfInfluenceFactorCorrelationEntity factorCorrelation = new AeConfInfluenceFactorCorrelationEntity();
factorCorrelation.setMdmId(moduleMdmEntity.getMdmId());
List<AeConfInfluenceFactorCorrelationEntity> query = aeConfInfluenceFactorCorrelationDao.query(factorCorrelation);
//查询模块id
// List<Long> factorIds = query.stream()
// .map(AeConfInfluenceFactorCorrelationEntity::getFactorId)
// .collect(Collectors.toList());
List<Long> factorIds = Optional.ofNullable(query).orElse(Collections.emptyList()).stream()
.map(AeConfInfluenceFactorCorrelationEntity::getFactorId)
.collect(Collectors.toList());
for (Long factorId : factorIds) {
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity = new AeConfInfluenceFactorEntity();
aeConfInfluenceFactorEntity.setId(String.valueOf(factorId));
List<AeConfInfluenceFactorEntity> query1 = aeConfInfluenceFactorDao.query(aeConfInfluenceFactorEntity);
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity1 = query1.get(0);
if(!aeConfInfluenceFactorEntity1.getAeConfModuleId().equals(moduleMdmEntity.getAeConfModuleId())){
Assert.state(false,"该主数据已关联影响因素,请删除影响因素关联后进行修改");
}
}
}
List<AeConfBusinessModuleMdmEntity> updateList = new ArrayList<>();
for (AeConfBusinessModuleMdmEntity aeConfBusinessModuleMdmEntity : list) {
AeConfBusinessModuleMdmEntity update = aeConfBusinessModuleMdmDao.update(aeConfBusinessModuleMdmEntity);
updateList.add(update);
}
return updateList;
}
@Override
public Map<String, Integer> deleteList(List<AeConfBusinessModuleMdmEntity> list) {
if (list.size() == 0) {
Assert.state(false, "业务模块-主数据删除时,数据不能为空,请检查!");
}
for (AeConfBusinessModuleMdmEntity moduleMdmEntity : list) {
Assert.notNull(moduleMdmEntity.getId(), "业务模块-主数据删除时,业务模块-主数据id不能为空请检查检验数据为{}", JSONUtil.toJsonStr(moduleMdmEntity));
}
//查询影响因素,再根据影响因素查询业务模块
for (AeConfBusinessModuleMdmEntity moduleMdmEntity : list) {
AeConfInfluenceFactorCorrelationEntity factorCorrelation = new AeConfInfluenceFactorCorrelationEntity();
factorCorrelation.setMdmId(moduleMdmEntity.getMdmId());
List<AeConfInfluenceFactorCorrelationEntity> query = aeConfInfluenceFactorCorrelationDao.query(factorCorrelation);
//查询模块id
// List<Long> factorIds = query.stream()
// .map(AeConfInfluenceFactorCorrelationEntity::getFactorId)
// .collect(Collectors.toList());
List<Long> factorIds = Optional.ofNullable(query).orElse(Collections.emptyList()).stream()
.map(AeConfInfluenceFactorCorrelationEntity::getFactorId)
.collect(Collectors.toList());
for (Long factorId : factorIds) {
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity = new AeConfInfluenceFactorEntity();
aeConfInfluenceFactorEntity.setId(String.valueOf(factorId));
List<AeConfInfluenceFactorEntity> query1 = aeConfInfluenceFactorDao.query(aeConfInfluenceFactorEntity);
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity1 = query1.get(0);
if(!aeConfInfluenceFactorEntity1.getAeConfModuleId().equals(moduleMdmEntity.getAeConfModuleId())){
Assert.state(false,"该主数据已关联影响因素,请删除影响因素关联后进行删除");
}
}
}
Map<String, Integer> deleteMap = new HashMap<>();
for (AeConfBusinessModuleMdmEntity aeConfBusinessModuleMdmEntity : list) {
int i = aeConfBusinessModuleMdmDao.logicRemove(aeConfBusinessModuleMdmEntity);
deleteMap.put(aeConfBusinessModuleMdmEntity.getId(), i);
}
return deleteMap;
}
}

View File

@ -0,0 +1,54 @@
package com.hzya.frame.voucher.ae.comf.module.service.impl;
import cn.hutool.core.lang.Assert;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hzya.frame.page.PageAttribute;
import com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity;
import com.hzya.frame.voucher.ae.comf.module.dao.IAeConfBusinessModuleDao;
import com.hzya.frame.voucher.ae.comf.module.service.IAeConfBusinessModuleService;
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;
/**
* 会计事项(accounting_event)-配置-业务模块(AeConfBusinessModule)表服务实现类
*
* @author zydd
* @since 2025-05-22 14:48:28
*/
@Service("AeConfBusinessModuleServiceImpl")
public class AeConfBusinessModuleServiceImpl extends BaseService<AeConfBusinessModuleEntity, String> implements IAeConfBusinessModuleService {
private IAeConfBusinessModuleDao aeConfBusinessModuleDao;
@Autowired
public void setAeConfBusinessModuleDao(IAeConfBusinessModuleDao dao) {
this.aeConfBusinessModuleDao = dao;
this.dao = dao;
}
@Override
public PageInfo queryEntityPaged(AeConfBusinessModuleEntity entity) {
PageHelper.startPage(entity.getPageNum(), entity.getPageSize());
List<AeConfBusinessModuleEntity> list = aeConfBusinessModuleDao.query(entity);
PageInfo pageInfo = new PageInfo(list);
return pageInfo;
}
@Override
public AeConfBusinessModuleEntity queryById(AeConfBusinessModuleEntity entity) {
Assert.notNull(entity.getId(), "根据id查询业务模块时id不能为空");
List<AeConfBusinessModuleEntity> all = dao.query(entity);
if(all.size()==0) {
return null;
}
return all.get(0);
}
}

View File

@ -0,0 +1,151 @@
package com.hzya.frame.voucher.ae.comf.module.service.impl;
import cn.hutool.core.lang.Assert;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.mdm.mdmModule.service.IMdmModuleService;
import com.hzya.frame.mdm.mdmModuleDb.dao.IMdmModuleDbDao;
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
import com.hzya.frame.mdm.mdmModuleDbFileds.dao.IMdmModuleDbFiledsDao;
import com.hzya.frame.mdm.mdmModuleDbFileds.entity.MdmModuleDbFiledsEntity;
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.dao.IMdmModuleDbFiledsRuleDao;
import com.hzya.frame.mdm.mdmModuleDbFiledsRule.entity.MdmModuleDbFiledsRuleEntity;
import com.hzya.frame.voucher.ae.comf.module.service.IMdmService;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* Created by zydd on 2025-05-27 15:06
*/
@Service
public class MdmServiceImpl implements IMdmService {
private int i = 0;
@Autowired
private IMdmModuleDbDao mdmModuleDbDao;
@Autowired
private IMdmModuleDbFiledsDao mdmModuleDbFiledsDao;
@Autowired
private IMdmModuleDbFiledsRuleDao mdmModuleDbFiledsRuleDao;
@Autowired
private IMdmModuleService mdmModuleService;
//根据单据id查询表以及相关字段
@Override
public List<MdmModuleDbEntity> queryMdmAndFiledsByMdmId(MdmModuleDbEntity entity) {
Assert.notNull(entity.getMdmId(), "mdmId不能为空");
List<MdmModuleDbEntity> res = new ArrayList<>();
//查询单据
List<MdmModuleDbEntity> mdmModuleDbEntityList = mdmModuleDbDao.query(entity);
//查询字段,1主表 2明细 3操作日志 4下发日志
for (MdmModuleDbEntity mdmModuleDbEntity : mdmModuleDbEntityList) {
if ("3".equals(mdmModuleDbEntity.getDbType()) || "4".equals(mdmModuleDbEntity.getDbType())) {
continue;
}
MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity();
mdmModuleDbFiledsEntity.setDbId(mdmModuleDbEntity.getId());
List<MdmModuleDbFiledsEntity> filedList = mdmModuleDbFiledsDao.query(mdmModuleDbFiledsEntity);
mdmModuleDbEntity.setSublistMdmModuleDbFileds(filedList);
res.add(mdmModuleDbEntity);
}
return res;
}
/**
* 查询字段rules查询是否关联别的表
*
* @param entity
* @return
*/
@Override
public MdmModuleDbEntity queryMdmAndFiledssByMdmId(MdmModuleDbEntity entity) {
i = 0;
List<MdmModuleDbEntity> mdmModuleDbEntityList = queryMdmAndFiledsByMdmId(entity);
if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) {
return null;
}
MdmModuleDbEntity mdmModuleDbEntity = mdmModuleDbEntityList.get(0);
List<MdmModuleDbFiledsEntity> sublistMdmModuleDbFileds = mdmModuleDbEntity.getSublistMdmModuleDbFileds();
//查询每个字段的rule
List<MdmModuleDbFiledsEntity> dbEntities = new ArrayList<>();
if (sublistMdmModuleDbFileds != null && sublistMdmModuleDbFileds.size() > 0) {
for (int i = 0; i < sublistMdmModuleDbFileds.size(); i++) {
if ("1".equals(sublistMdmModuleDbFileds.get(i).getViewType())) {
dbEntities.add(sublistMdmModuleDbFileds.get(i));
MdmModuleDbFiledsRuleEntity ruleEntity = new MdmModuleDbFiledsRuleEntity();
ruleEntity.setMdmId(sublistMdmModuleDbFileds.get(i).getMdmId());
ruleEntity.setFiledId(sublistMdmModuleDbFileds.get(i).getId());
List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(ruleEntity);
sublistMdmModuleDbFileds.get(i).setMdmModuleDbFiledsRules(mdmModuleDbFiledsRuleEntities);
}
}
}
mdmModuleDbEntity.setSublistMdmModuleDbFileds(dbEntities);
//根据rule再查询关联的数据
for (MdmModuleDbFiledsEntity dbEntity : dbEntities) {
for (MdmModuleDbFiledsRuleEntity filedRule : dbEntity.getMdmModuleDbFiledsRules()) {
if ("typeOptionRuleForm".equals(filedRule.getFormName()) && "service".equals(filedRule.getRuleCode())) {
System.out.println(filedRule.getRuleValue());
//根据db_name查询字段
queryFiledsByDbname(dbEntity, filedRule);
}
}
}
return mdmModuleDbEntity;
}
/**
* 根据db_name查询字段注意循环嵌套
* 根据rule form_name='typeOptionRuleForm' rule_code='service'
*/
public void queryFiledsByDbname(MdmModuleDbFiledsEntity dbfiledEntity, MdmModuleDbFiledsRuleEntity filedRule) {
if (i >= 3) {
Assert.state(false, "字段:{}关联层数超过3层请查询是否存在死循环嵌套", dbfiledEntity.getChName());
}
i++;
//查询表再查询字段
MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity();
mdmModuleDbEntity.setDbName(filedRule.getRuleValue());
List<MdmModuleDbEntity> mdmModuleDbEntityList = mdmModuleDbDao.query(mdmModuleDbEntity);
if (mdmModuleDbEntityList.size() == 0) {
Assert.state(false, "查询表:{}。失败", filedRule.getRuleValue());
}
dbfiledEntity.setMdmModuleDbEntity(mdmModuleDbEntityList.get(0));
//查询字段
MdmModuleDbFiledsEntity mdmModuleDbFiledsEntity = new MdmModuleDbFiledsEntity();
mdmModuleDbFiledsEntity.setDbId(mdmModuleDbEntityList.get(0).getId());
List<MdmModuleDbFiledsEntity> filedList = mdmModuleDbFiledsDao.query(mdmModuleDbFiledsEntity);
//过滤viewType1
List<MdmModuleDbFiledsEntity> filedType1 = filedList.stream().filter(dbField -> "1".equals(dbField.getViewType())).collect(Collectors.toList());
mdmModuleDbEntityList.get(0).setSublistMdmModuleDbFileds(filedType1);
//查询rule
for (MdmModuleDbFiledsEntity dbFiledsEntity : filedType1) {
MdmModuleDbFiledsRuleEntity ruleEntity = new MdmModuleDbFiledsRuleEntity();
ruleEntity.setMdmId(dbFiledsEntity.getMdmId());
ruleEntity.setFiledId(dbFiledsEntity.getId());
List<MdmModuleDbFiledsRuleEntity> mdmModuleDbFiledsRuleEntities = mdmModuleDbFiledsRuleDao.queryBase(ruleEntity);
dbFiledsEntity.setMdmModuleDbFiledsRules(mdmModuleDbFiledsRuleEntities);
}
//在再判断filedType1中的rule是否有form_name='typeOptionRuleForm' rule_code='service'有则嵌套没有则返回
for (MdmModuleDbFiledsEntity dbFiledEntity : filedType1) {
for (MdmModuleDbFiledsRuleEntity mdmModuleDbFiledsRule : dbFiledEntity.getMdmModuleDbFiledsRules()) {
if ("typeOptionRuleForm".equals(mdmModuleDbFiledsRule.getFormName()) && "service".equals(mdmModuleDbFiledsRule.getRuleCode())) {
queryFiledsByDbname(dbFiledEntity, mdmModuleDbFiledsRule);
}
}
}
}
}

View File

@ -0,0 +1,82 @@
package com.hzya.frame.voucher.ae.comf.subject.controller;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity;
import com.hzya.frame.voucher.ae.comf.subject.service.IAeConfSubjectClassificationService;
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-30 15:13
* 分类定义
*/
@RestController
@RequestMapping("/ae/conf/subjectClassification")
public class ClassificationController extends DefaultController {
@Autowired
private IAeConfSubjectClassificationService aeConfSubjectClassificationService;
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
public JsonResultEntity queryAll(@RequestBody AeConfSubjectClassificationEntity entity) {
try {
List<AeConfSubjectClassificationEntity> all = aeConfSubjectClassificationService.queryAll(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryById", method = RequestMethod.POST)
public JsonResultEntity queryById(@RequestBody AeConfSubjectClassificationEntity entity) {
try {
AeConfSubjectClassificationEntity aeConfSubjectClassificationEntity = aeConfSubjectClassificationService.queryById(entity);
return getSuccessMessageEntity("请求成功", aeConfSubjectClassificationEntity);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/save", method = RequestMethod.POST)
public JsonResultEntity save(@RequestBody AeConfSubjectClassificationEntity entity) {
try {
AeConfSubjectClassificationEntity save = aeConfSubjectClassificationService.saveEntity(entity);
return getSuccessMessageEntity("请求成功", save);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/update", method = RequestMethod.POST)
public JsonResultEntity update(@RequestBody AeConfSubjectClassificationEntity entity) {
try {
AeConfSubjectClassificationEntity update = aeConfSubjectClassificationService.updateEntity(entity);
return getSuccessMessageEntity("请求成功", update);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/delete", method = RequestMethod.POST)
public JsonResultEntity delete(@RequestBody AeConfSubjectClassificationEntity entity) {
try {
aeConfSubjectClassificationService.deleteEntity(entity);
return getSuccessMessageEntity("请求成功", null);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -0,0 +1,71 @@
package com.hzya.frame.voucher.ae.comf.subject.controller;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastBEntity;
import com.hzya.frame.voucher.ae.comf.subject.service.IAeConfSubjectContrastBService;
import com.hzya.frame.voucher.ae.comf.subject.service.IAeConfSubjectContrastService;
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-30 15:13
*/
@RestController
@RequestMapping("/ae/conf/subjectContrastB")
public class ContrastBController extends DefaultController {
@Autowired
private IAeConfSubjectContrastService contrastService;
@Autowired
private IAeConfSubjectContrastBService contrastBService;
@RequestMapping(value = "/queryAllByContrastId", method = RequestMethod.POST)
public JsonResultEntity queryAllByContrastId(@RequestBody AeConfSubjectContrastBEntity entity) {
try {
List<AeConfSubjectContrastBEntity> all = contrastBService.queryAllByContrastId(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/saveList", method = RequestMethod.POST)
public JsonResultEntity saveList(@RequestBody List<AeConfSubjectContrastBEntity> list) {
try {
List<AeConfSubjectContrastBEntity> all = contrastBService.saveListEntity(list);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/updateList", method = RequestMethod.POST)
public JsonResultEntity updateList(@RequestBody List<AeConfSubjectContrastBEntity> list) {
try {
List<AeConfSubjectContrastBEntity> all = contrastBService.updateList(list);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/delete", method = RequestMethod.POST)
public JsonResultEntity delete(@RequestBody AeConfSubjectContrastBEntity entity) {
try {
contrastBService.deleteList(entity);
return getSuccessMessageEntity("请求成功", null);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -0,0 +1,93 @@
package com.hzya.frame.voucher.ae.comf.subject.controller;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity;
import com.hzya.frame.voucher.ae.comf.subject.service.IAeConfSubjectContrastService;
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-30 15:13
*/
@RestController
@RequestMapping("/ae/conf/subjectContrast")
public class ContrastController extends DefaultController {
@Autowired
private IAeConfSubjectContrastService aeConfSubjectContrastService;
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
public JsonResultEntity queryAll(@RequestBody AeConfSubjectContrastEntity entity) {
try {
List<AeConfSubjectContrastEntity> all = aeConfSubjectContrastService.queryAll(entity);
return getSuccessMessageEntity("请求成功", all);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/queryById", method = RequestMethod.POST)
public JsonResultEntity queryById(@RequestBody AeConfSubjectContrastEntity entity) {
try {
AeConfSubjectContrastEntity queryById = aeConfSubjectContrastService.queryById(entity);
return getSuccessMessageEntity("请求成功", queryById);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/save", method = RequestMethod.POST)
public JsonResultEntity save(@RequestBody AeConfSubjectContrastEntity entity) {
try {
AeConfSubjectContrastEntity save = aeConfSubjectContrastService.saveEntity(entity);
return getSuccessMessageEntity("请求成功", save);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/update", method = RequestMethod.POST)
public JsonResultEntity update(@RequestBody AeConfSubjectContrastEntity entity) {
try {
AeConfSubjectContrastEntity save = aeConfSubjectContrastService.updateEntity(entity);
return getSuccessMessageEntity("请求成功", save);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
@RequestMapping(value = "/delete", method = RequestMethod.POST)
public JsonResultEntity delete(@RequestBody AeConfSubjectContrastEntity entity) {
try {
AeConfSubjectContrastEntity save = aeConfSubjectContrastService.deleteEntity(entity);
return getSuccessMessageEntity("请求成功", save);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
//1根据入参影响因素ids分别查询影响因素设置的对应基础档案类型
//2再按顺序拼接写类型的ids再去科目对照表中查询这个ids对应的对照表
//3返回对照表对象
@RequestMapping(value = "/queryByInfluenceIds", method = RequestMethod.POST)
public JsonResultEntity queryByInfluenceIds(@RequestBody AeConfSubjectContrastEntity entity) {
try {
List<AeConfSubjectContrastEntity> list = aeConfSubjectContrastService.queryByInfluenceIds(entity);
return getSuccessMessageEntity("请求成功", list);
} catch (Exception e) {
e.printStackTrace();
return getFailureMessageEntity(e.getMessage());
}
}
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.voucher.ae.comf.subject.dao;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 会计事项(accounting_event)-配置-科目分类定义(ae_conf_subject_classification: table)表数据库访问层
*
* @author zydd
* @since 2025-06-06 17:00:57
*/
public interface IAeConfSubjectClassificationDao extends IBaseDao<AeConfSubjectClassificationEntity, String> {
}

View File

@ -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-05 15:13:29
*/
public interface IAeConfSubjectContrastBDao extends IBaseDao<AeConfSubjectContrastBEntity, String> {
}

View File

@ -0,0 +1,15 @@
package com.hzya.frame.voucher.ae.comf.subject.dao;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity;
import com.hzya.frame.basedao.dao.IBaseDao;
/**
* 会计事项(accounting_event)-配置-科目对照(ae_conf_subject_contrast: table)表数据库访问层
*
* @author zydd
* @since 2025-05-30 15:04:47
*/
public interface IAeConfSubjectContrastDao extends IBaseDao<AeConfSubjectContrastEntity, String> {
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.voucher.ae.comf.subject.dao.impl;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity;
import com.hzya.frame.voucher.ae.comf.subject.dao.IAeConfSubjectClassificationDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 会计事项(accounting_event)-配置-科目分类定义(AeConfSubjectClassification)表数据库访问层
*
* @author zydd
* @since 2025-06-06 17:00:57
*/
@Repository
public class AeConfSubjectClassificationDaoImpl extends MybatisGenericDao<AeConfSubjectClassificationEntity, String> implements IAeConfSubjectClassificationDao{
}

View File

@ -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-05 15:13:29
*/
@Repository
public class AeConfSubjectContrastBDaoImpl extends MybatisGenericDao<AeConfSubjectContrastBEntity, String> implements IAeConfSubjectContrastBDao{
}

View File

@ -0,0 +1,17 @@
package com.hzya.frame.voucher.ae.comf.subject.dao.impl;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity;
import com.hzya.frame.voucher.ae.comf.subject.dao.IAeConfSubjectContrastDao;
import org.springframework.stereotype.Repository;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
/**
* 会计事项(accounting_event)-配置-科目对照(AeConfSubjectContrast)表数据库访问层
*
* @author zydd
* @since 2025-05-30 15:04:47
*/
@Repository
public class AeConfSubjectContrastDaoImpl extends MybatisGenericDao<AeConfSubjectContrastEntity, String> implements IAeConfSubjectContrastDao{
}

View File

@ -0,0 +1,106 @@
package com.hzya.frame.voucher.ae.comf.subject.entity;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-科目分类定义(AeConfSubjectClassification)实体类
*
* @author zydd
* @since 2025-06-06 17:00:57
*/
@Data
public class AeConfSubjectClassificationEntity extends BaseEntity {
/**
* 科目分类编码
*/
private String code;
/**
* 科目分类名称
*/
private String name;
/**
* 模块id
*/
private String aeConfModuleId;
/**
* 公司pk
*/
private String pkCorp;
/**
* 账簿主键
*/
private String pkglorgbook;
/**
* 账簿编码
*/
private String glorgbookcode;
/**
* 账簿名称
*/
private String glorgbookname;
/**
* 影响因素定义ids
*/
private String factorids;
/**
* 影响因素定义names
*/
private String factornames;
/**
* 对照表id
*/
private String contrastId;
private String contrastCode;
private String contrastName;
/**
* 目标档案值会计科目)-默认值没有对照表时使用
*/
private String desdocvalueDefaultId;
private String desdocvalueDefaultName;
/**
* 备注
*/
private String remark;
@JsonIgnore
private String def1;
@JsonIgnore
private String def2;
@JsonIgnore
private String def3;
@JsonIgnore
private String def4;
@JsonIgnore
private String def5;
@JsonIgnore
private String def6;
@JsonIgnore
private String def7;
@JsonIgnore
private String def8;
@JsonIgnore
private String def9;
@JsonIgnore
private String def10;
/**
* 创建人
*/
private String createUser;
/**
* 修改人
*/
private String modifyUser;
/**
* 科目对照子表
*/
private List<AeConfSubjectContrastBEntity> contrastBEntityList;
}

View File

@ -0,0 +1,459 @@
<?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.AeConfSubjectClassificationDaoImpl">
<resultMap id="get-AeConfSubjectClassificationEntity-result"
type="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="code" column="code" jdbcType="VARCHAR"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="aeConfModuleId" column="aeConfModuleId" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" 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="factorids" column="factorIds" jdbcType="VARCHAR"/>
<result property="factornames" column="factorNames" jdbcType="VARCHAR"/>
<result property="contrastId" column="contrast_id" jdbcType="VARCHAR"/>
<result property="contrastCode" column="contrast_code" jdbcType="VARCHAR"/>
<result property="contrastName" column="contrast_name" jdbcType="VARCHAR"/>
<result property="desdocvalueDefaultId" column="desdocvalue_default_id" jdbcType="VARCHAR"/>
<result property="desdocvalueDefaultName" column="desdocvalue_default_name" 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="AeConfSubjectClassificationEntity_Base_Column_List">
id
,code
,name
,aeConfModuleId
,pk_corp
,pkglorgbook
,glorgbookcode
,glorgbookname
,factorIds
,factorNames
,contrast_id
,contrast_code
,contrast_name
,desdocvalue_default_id
,desdocvalue_default_name
,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-AeConfSubjectClassificationEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
select
<include refid="AeConfSubjectClassificationEntity_Base_Column_List"/>
from ae_conf_subject_classification
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="code != null and code != ''">and code = #{code}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="aeConfModuleId != null and aeConfModuleId != ''">and aeConfModuleId = #{aeConfModuleId}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="pkglorgbook != null and pkglorgbook != ''">and pkglorgbook = #{pkglorgbook}</if>
<if test="glorgbookcode != null and glorgbookcode != ''">and glorgbookcode = #{glorgbookcode}</if>
<if test="glorgbookname != null and glorgbookname != ''">and glorgbookname = #{glorgbookname}</if>
<if test="factorids != null and factorids != ''">and factorIds = #{factorids}</if>
<if test="factornames != null and factornames != ''">and factorNames = #{factornames}</if>
<if test="contrastId != null and contrastId != ''">and contrast_id = #{contrastId}</if>
<if test="contrastCode != null and contrastCode != ''">and contrast_code = #{contrastCode}</if>
<if test="contrastName != null and contrastName != ''">and contrast_name = #{contrastName}</if>
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">and desdocvalue_default_id = #{desdocvalueDefaultId} </if>
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">and desdocvalue_default_name = #{desdocvalueDefaultName} </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.AeConfSubjectClassificationEntity">
select count(1) from ae_conf_subject_classification
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="code != null and code != ''">and code = #{code}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="aeConfModuleId != null and aeConfModuleId != ''">and aeConfModuleId = #{aeConfModuleId}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="pkglorgbook != null and pkglorgbook != ''">and pkglorgbook = #{pkglorgbook}</if>
<if test="glorgbookcode != null and glorgbookcode != ''">and glorgbookcode = #{glorgbookcode}</if>
<if test="glorgbookname != null and glorgbookname != ''">and glorgbookname = #{glorgbookname}</if>
<if test="factorids != null and factorids != ''">and factorIds = #{factorids}</if>
<if test="factornames != null and factornames != ''">and factorNames = #{factornames}</if>
<if test="contrastId != null and contrastId != ''">and contrast_id = #{contrastId}</if>
<if test="contrastCode != null and contrastCode != ''">and contrast_code = #{contrastCode}</if>
<if test="contrastName != null and contrastName != ''">and contrast_name = #{contrastName}</if>
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">and desdocvalue_default_id = #{desdocvalueDefaultId} </if>
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">and desdocvalue_default_name = #{desdocvalueDefaultName} </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-AeConfSubjectClassificationEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
select
<include refid="AeConfSubjectClassificationEntity_Base_Column_List"/>
from ae_conf_subject_classification
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id like concat('%',#{id},'%')</if>
<if test="code != null and code != ''">and code like concat('%',#{code},'%')</if>
<if test="name != null and name != ''">and name like concat('%',#{name},'%')</if>
<if test="aeConfModuleId != null and aeConfModuleId != ''">and aeConfModuleId like concat('%',#{aeConfModuleId},'%')</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp like concat('%',#{pkCorp},'%')</if>
<if test="pkglorgbook != null and pkglorgbook != ''">and pkglorgbook like concat('%',#{pkglorgbook},'%')
</if>
<if test="glorgbookcode != null and glorgbookcode != ''">and glorgbookcode like
concat('%',#{glorgbookcode},'%')
</if>
<if test="glorgbookname != null and glorgbookname != ''">and glorgbookname like
concat('%',#{glorgbookname},'%')
</if>
<if test="factorids != null and factorids != ''">and factorIds like concat('%',#{factorids},'%')</if>
<if test="factornames != null and factornames != ''">and factorNames like concat('%',#{factornames},'%')
</if>
<if test="contrastId != null and contrastId != ''">and contrast_id like concat('%',#{contrastId},'%')</if>
<if test="contrastCode != null and contrastCode != ''">and contrast_code like concat('%',#{contrastCode},'%')</if>
<if test="contrastName != null and contrastName != ''">and contrast_name like concat('%',#{contrastName},'%')</if>
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">and desdocvalue_default_id like concat('%',#{desdocvalueDefaultId},'%') </if>
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">and desdocvalue_default_name like concat('%',#{desdocvalueDefaultName},'%') </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="AeConfSubjectClassificationentity_list_or" resultMap="get-AeConfSubjectClassificationEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
select
<include refid="AeConfSubjectClassificationEntity_Base_Column_List"/>
from ae_conf_subject_classification
<trim prefix="where" prefixOverrides="and">
<if test="id != null">or id = #{id}</if>
<if test="code != null and code != ''">or code = #{code}</if>
<if test="name != null and name != ''">or name = #{name}</if>
<if test="aeConfModuleId != null and aeConfModuleId != ''">or aeConfModuleId = #{aeConfModuleId}</if>
<if test="pkCorp != null and pkCorp != ''">or pk_corp = #{pkCorp}</if>
<if test="pkglorgbook != null and pkglorgbook != ''">or pkglorgbook = #{pkglorgbook}</if>
<if test="glorgbookcode != null and glorgbookcode != ''">or glorgbookcode = #{glorgbookcode}</if>
<if test="glorgbookname != null and glorgbookname != ''">or glorgbookname = #{glorgbookname}</if>
<if test="factorids != null and factorids != ''">or factorIds = #{factorids}</if>
<if test="factornames != null and factornames != ''">or factorNames = #{factornames}</if>
<if test="contrastId != null and contrastId != ''">or contrast_id = #{contrastId}</if>
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">or desdocvalue_default_id = #{desdocvalueDefaultId} </if>
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">or desdocvalue_default_name = #{desdocvalueDefaultName} </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.AeConfSubjectClassificationEntity"
keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_subject_classification(
<trim suffix="" suffixOverrides=",">
<if test="code != null and code != ''">code ,</if>
<if test="name != null and name != ''">name ,</if>
<if test="aeConfModuleId != null and aeConfModuleId != ''">aeConfModuleId ,</if>
<if test="pkCorp != null and pkCorp != ''">pk_corp ,</if>
<if test="pkglorgbook != null and pkglorgbook != ''">pkglorgbook ,</if>
<if test="glorgbookcode != null and glorgbookcode != ''">glorgbookcode ,</if>
<if test="glorgbookname != null and glorgbookname != ''">glorgbookname ,</if>
<if test="factorids != null and factorids != ''">factorIds ,</if>
<if test="factornames != null and factornames != ''">factorNames ,</if>
<if test="contrastId != null and contrastId != ''">contrast_id ,</if>
<if test="contrastCode != null and contrastCode != ''">contrast_code ,</if>
<if test="contrastName != null and contrastName != ''">contrast_name ,</if>
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">desdocvalue_default_id ,</if>
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">desdocvalue_default_name ,</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="code != null and code != ''">#{code} ,</if>
<if test="name != null and name != ''">#{name} ,</if>
<if test="aeConfModuleId != null and aeConfModuleId != ''">#{aeConfModuleId} ,</if>
<if test="pkCorp != null and pkCorp != ''">#{pkCorp} ,</if>
<if test="pkglorgbook != null and pkglorgbook != ''">#{pkglorgbook} ,</if>
<if test="glorgbookcode != null and glorgbookcode != ''">#{glorgbookcode} ,</if>
<if test="glorgbookname != null and glorgbookname != ''">#{glorgbookname} ,</if>
<if test="factorids != null and factorids != ''">#{factorids} ,</if>
<if test="factornames != null and factornames != ''">#{factornames} ,</if>
<if test="contrastId != null and contrastId != ''">#{contrastId} ,</if>
<if test="contrastCode != null and contrastCode != ''">#{contrastCode} ,</if>
<if test="contrastName != null and contrastName != ''">#{contrastName} ,</if>
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">#{desdocvalueDefaultId} ,</if>
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">#{desdocvalueDefaultName} ,</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_classification(code, name, pk_corp, pkglorgbook, glorgbookcode, glorgbookname,
factorIds, factorNames, contrast_id, desdocvalue_default_id, 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.code},#{entity.name},#{entity.pkCorp},#{entity.pkglorgbook},#{entity.glorgbookcode},#{entity.glorgbookname},#{entity.factorids},#{entity.factornames},#{entity.contrastId},#{entity.desdocvalueDefaultId},#{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_classification(code, name, pk_corp, pkglorgbook, glorgbookcode, glorgbookname,
factorIds, factorNames, contrast_id, desdocvalue_default_id, 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.code},#{entity.name},#{entity.pkCorp},#{entity.pkglorgbook},#{entity.glorgbookcode},#{entity.glorgbookname},#{entity.factorids},#{entity.factornames},#{entity.contrastId},#{entity.desdocvalueDefaultId},#{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
code = values(code),
name = values(name),
pk_corp = values(pk_corp),
pkglorgbook = values(pkglorgbook),
glorgbookcode = values(glorgbookcode),
glorgbookname = values(glorgbookname),
factorIds = values(factorIds),
factorNames = values(factorNames),
contrast_id = values(contrast_id),
desdocvalue_default_id = values(desdocvalue_default_id),
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.AeConfSubjectClassificationEntity">
update ae_conf_subject_classification set
<trim suffix="" suffixOverrides=",">
<if test="code != null and code != ''">code = #{code},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="aeConfModuleId != null and aeConfModuleId != ''">aeConfModuleId = #{aeConfModuleId},</if>
<if test="pkCorp != null and pkCorp != ''">pk_corp = #{pkCorp},</if>
<if test="pkglorgbook != null and pkglorgbook != ''">pkglorgbook = #{pkglorgbook},</if>
<if test="glorgbookcode != null and glorgbookcode != ''">glorgbookcode = #{glorgbookcode},</if>
<if test="glorgbookname != null and glorgbookname != ''">glorgbookname = #{glorgbookname},</if>
<if test="factorids != null and factorids != ''">factorIds = #{factorids},</if>
<if test="factornames != null and factornames != ''">factorNames = #{factornames},</if>
<if test="contrastId != null and contrastId != ''">contrast_id = #{contrastId},</if>
<if test="contrastCode != null and contrastCode != ''">contrast_code = #{contrastCode},</if>
<if test="contrastName != null and contrastName != ''">contrast_name = #{contrastName},</if>
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">desdocvalue_default_id = #{desdocvalueDefaultId}, </if>
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">desdocvalue_default_name = #{desdocvalueDefaultName}, </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.AeConfSubjectClassificationEntity">
update ae_conf_subject_classification
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.AeConfSubjectClassificationEntity">
update ae_conf_subject_classification set sts= 'N' ,modify_time = #{modify_time},modify_user_id =
#{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="code != null and code != ''">and code = #{code}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="pkglorgbook != null and pkglorgbook != ''">and pkglorgbook = #{pkglorgbook}</if>
<if test="glorgbookcode != null and glorgbookcode != ''">and glorgbookcode = #{glorgbookcode}</if>
<if test="glorgbookname != null and glorgbookname != ''">and glorgbookname = #{glorgbookname}</if>
<if test="factorids != null and factorids != ''">and factorIds = #{factorids}</if>
<if test="factornames != null and factornames != ''">and factorNames = #{factornames}</if>
<if test="contrastId != null and contrastId != ''">and contrast_id = #{contrastId}</if>
<if test="desdocvalueDefaultId != null and desdocvalueDefaultId != ''">and desdocvalue_default_id = #{desdocvalueDefaultId} </if>
<if test="desdocvalueDefaultName != null and desdocvalueDefaultName != ''">and desdocvalue_default_name = #{desdocvalueDefaultName} </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_classification
where id = #{id}
</delete>
</mapper>

View File

@ -0,0 +1,204 @@
package com.hzya.frame.voucher.ae.comf.subject.entity;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hzya.frame.web.entity.BaseEntity;
import lombok.Data;
/**
* 会计事项(accounting_event)-配置-科目对照_子表(AeConfSubjectContrastB)实体类
*
* @author zydd
* @since 2025-06-05 15:13:29
*/
@Data
public class AeConfSubjectContrastBEntity extends BaseEntity {
/**
* 对照表id
*/
private Long contrastId;
/**
* 公司pk
*/
private String pkCorp;
private String glorgname;
/**
* 目标档案id
*/
private String pkAccsubj;
/**
* 目标档案值会计科目)
*/
private String desdocvalue;
/**
* 来源档案表1
*/
private String factortable1;
/**
* 来源档案表2
*/
private String factortable2;
/**
* 来源档案表3
*/
private String factortable3;
/**
* 来源档案表4
*/
private String factortable4;
/**
* 来源档案表5
*/
private String factortable5;
/**
* 来源档案表6
*/
private String factortable6;
/**
* 来源档案表7
*/
private String factortable7;
/**
* 来源档案表8
*/
private String factortable8;
/**
* 来源档案表9
*/
private String factortable9;
/**
* 来源档案主键1
*/
private String factorpk1;
/**
* 来源档案主键2
*/
private String factorpk2;
/**
* 来源档案主键3
*/
private String factorpk3;
/**
* 来源档案主键4
*/
private String factorpk4;
/**
* 来源档案主键5
*/
private String factorpk5;
/**
* 来源档案主键6
*/
private String factorpk6;
/**
* 来源档案主键7
*/
private String factorpk7;
/**
* 来源档案主键8
*/
private String factorpk8;
/**
* 来源档案主键9
*/
private String factorpk9;
/**
* 来源档案值1
*/
private String factorid1;
/**
* 来源档案值2
*/
private String factorid2;
/**
* 来源档案值3
*/
private String factorid3;
/**
* 来源档案值4
*/
private String factorid4;
/**
* 来源档案值5
*/
private String factorid5;
/**
* 来源档案值6
*/
private String factorid6;
/**
* 来源档案值7
*/
private String factorid7;
/**
* 来源档案值8
*/
private String factorid8;
/**
* 来源档案值9
*/
private String factorid9;
/**
* 来源档案名称1
*/
private String factorname1;
/**
* 来源档案名称2
*/
private String factorname2;
/**
* 来源档案名称3
*/
private String factorname3;
/**
* 来源档案名称4
*/
private String factorname4;
/**
* 来源档案名称5
*/
private String factorname5;
/**
* 来源档案名称6
*/
private String factorname6;
/**
* 来源档案名称7
*/
private String factorname7;
/**
* 来源档案名称8
*/
private String factorname8;
/**
* 来源档案名称9
*/
private String factorname9;
/**
* 备注
*/
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;
}

View File

@ -0,0 +1,704 @@
<?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="glorgname" column="glorgname" jdbcType="VARCHAR"/>
<result property="desdocvalue" column="desdocvalue" jdbcType="VARCHAR"/>
<result property="pkAccsubj" column="pkAccsubj" jdbcType="VARCHAR"/>
<result property="factortable1" column="factortable1" jdbcType="VARCHAR"/>
<result property="factortable2" column="factortable2" jdbcType="VARCHAR"/>
<result property="factortable3" column="factortable3" jdbcType="VARCHAR"/>
<result property="factortable4" column="factortable4" jdbcType="VARCHAR"/>
<result property="factortable5" column="factortable5" jdbcType="VARCHAR"/>
<result property="factortable6" column="factortable6" jdbcType="VARCHAR"/>
<result property="factortable7" column="factortable7" jdbcType="VARCHAR"/>
<result property="factortable8" column="factortable8" jdbcType="VARCHAR"/>
<result property="factortable9" column="factortable9" jdbcType="VARCHAR"/>
<result property="factorpk1" column="factorpk1" jdbcType="VARCHAR"/>
<result property="factorpk2" column="factorpk2" jdbcType="VARCHAR"/>
<result property="factorpk3" column="factorpk3" jdbcType="VARCHAR"/>
<result property="factorpk4" column="factorpk4" jdbcType="VARCHAR"/>
<result property="factorpk5" column="factorpk5" jdbcType="VARCHAR"/>
<result property="factorpk6" column="factorpk6" jdbcType="VARCHAR"/>
<result property="factorpk7" column="factorpk7" jdbcType="VARCHAR"/>
<result property="factorpk8" column="factorpk8" jdbcType="VARCHAR"/>
<result property="factorpk9" column="factorpk9" jdbcType="VARCHAR"/>
<result property="factorid1" column="factorid1" jdbcType="VARCHAR"/>
<result property="factorid2" column="factorid2" jdbcType="VARCHAR"/>
<result property="factorid3" column="factorid3" jdbcType="VARCHAR"/>
<result property="factorid4" column="factorid4" jdbcType="VARCHAR"/>
<result property="factorid5" column="factorid5" jdbcType="VARCHAR"/>
<result property="factorid6" column="factorid6" jdbcType="VARCHAR"/>
<result property="factorid7" column="factorid7" jdbcType="VARCHAR"/>
<result property="factorid8" column="factorid8" jdbcType="VARCHAR"/>
<result property="factorid9" column="factorid9" jdbcType="VARCHAR"/>
<result property="factorname1" column="factorname1" jdbcType="VARCHAR"/>
<result property="factorname2" column="factorname2" jdbcType="VARCHAR"/>
<result property="factorname3" column="factorname3" jdbcType="VARCHAR"/>
<result property="factorname4" column="factorname4" jdbcType="VARCHAR"/>
<result property="factorname5" column="factorname5" jdbcType="VARCHAR"/>
<result property="factorname6" column="factorname6" jdbcType="VARCHAR"/>
<result property="factorname7" column="factorname7" jdbcType="VARCHAR"/>
<result property="factorname8" column="factorname8" jdbcType="VARCHAR"/>
<result property="factorname9" column="factorname9" 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
,glorgname
,pkAccsubj
,desdocvalue
,factortable1
,factortable2
,factortable3
,factortable4
,factortable5
,factortable6
,factortable7
,factortable8
,factortable9
,factorpk1
,factorpk2
,factorpk3
,factorpk4
,factorpk5
,factorpk6
,factorpk7
,factorpk8
,factorpk9
,factorid1
,factorid2
,factorid3
,factorid4
,factorid5
,factorid6
,factorid7
,factorid8
,factorid9
,factorname1
,factorname2
,factorname3
,factorname4
,factorname5
,factorname6
,factorname7
,factorname8
,factorname9
,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="factortable1 != null and factortable1 != ''">and factortable1 = #{factortable1}</if>
<if test="factortable2 != null and factortable2 != ''">and factortable2 = #{factortable2}</if>
<if test="factortable3 != null and factortable3 != ''">and factortable3 = #{factortable3}</if>
<if test="factortable4 != null and factortable4 != ''">and factortable4 = #{factortable4}</if>
<if test="factortable5 != null and factortable5 != ''">and factortable5 = #{factortable5}</if>
<if test="factortable6 != null and factortable6 != ''">and factortable6 = #{factortable6}</if>
<if test="factortable7 != null and factortable7 != ''">and factortable7 = #{factortable7}</if>
<if test="factortable8 != null and factortable8 != ''">and factortable8 = #{factortable8}</if>
<if test="factortable9 != null and factortable9 != ''">and factortable9 = #{factortable9}</if>
<if test="factorpk1 != null and factorpk1 != ''">and factorpk1 = #{factorpk1}</if>
<if test="factorpk2 != null and factorpk2 != ''">and factorpk2 = #{factorpk2}</if>
<if test="factorpk3 != null and factorpk3 != ''">and factorpk3 = #{factorpk3}</if>
<if test="factorpk4 != null and factorpk4 != ''">and factorpk4 = #{factorpk4}</if>
<if test="factorpk5 != null and factorpk5 != ''">and factorpk5 = #{factorpk5}</if>
<if test="factorpk6 != null and factorpk6 != ''">and factorpk6 = #{factorpk6}</if>
<if test="factorpk7 != null and factorpk7 != ''">and factorpk7 = #{factorpk7}</if>
<if test="factorpk8 != null and factorpk8 != ''">and factorpk8 = #{factorpk8}</if>
<if test="factorpk9 != null and factorpk9 != ''">and factorpk9 = #{factorpk9}</if>
<if test="factorid1 != null and factorid1 != ''">and factorid1 = #{factorid1}</if>
<if test="factorid2 != null and factorid2 != ''">and factorid2 = #{factorid2}</if>
<if test="factorid3 != null and factorid3 != ''">and factorid3 = #{factorid3}</if>
<if test="factorid4 != null and factorid4 != ''">and factorid4 = #{factorid4}</if>
<if test="factorid5 != null and factorid5 != ''">and factorid5 = #{factorid5}</if>
<if test="factorid6 != null and factorid6 != ''">and factorid6 = #{factorid6}</if>
<if test="factorid7 != null and factorid7 != ''">and factorid7 = #{factorid7}</if>
<if test="factorid8 != null and factorid8 != ''">and factorid8 = #{factorid8}</if>
<if test="factorid9 != null and factorid9 != ''">and factorid9 = #{factorid9}</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="factortable1 != null and factortable1 != ''">and factortable1 = #{factortable1}</if>
<if test="factortable2 != null and factortable2 != ''">and factortable2 = #{factortable2}</if>
<if test="factortable3 != null and factortable3 != ''">and factortable3 = #{factortable3}</if>
<if test="factortable4 != null and factortable4 != ''">and factortable4 = #{factortable4}</if>
<if test="factortable5 != null and factortable5 != ''">and factortable5 = #{factortable5}</if>
<if test="factortable6 != null and factortable6 != ''">and factortable6 = #{factortable6}</if>
<if test="factortable7 != null and factortable7 != ''">and factortable7 = #{factortable7}</if>
<if test="factortable8 != null and factortable8 != ''">and factortable8 = #{factortable8}</if>
<if test="factortable9 != null and factortable9 != ''">and factortable9 = #{factortable9}</if>
<if test="factorpk1 != null and factorpk1 != ''">and factorpk1 = #{factorpk1}</if>
<if test="factorpk2 != null and factorpk2 != ''">and factorpk2 = #{factorpk2}</if>
<if test="factorpk3 != null and factorpk3 != ''">and factorpk3 = #{factorpk3}</if>
<if test="factorpk4 != null and factorpk4 != ''">and factorpk4 = #{factorpk4}</if>
<if test="factorpk5 != null and factorpk5 != ''">and factorpk5 = #{factorpk5}</if>
<if test="factorpk6 != null and factorpk6 != ''">and factorpk6 = #{factorpk6}</if>
<if test="factorpk7 != null and factorpk7 != ''">and factorpk7 = #{factorpk7}</if>
<if test="factorpk8 != null and factorpk8 != ''">and factorpk8 = #{factorpk8}</if>
<if test="factorpk9 != null and factorpk9 != ''">and factorpk9 = #{factorpk9}</if>
<if test="factorid1 != null and factorid1 != ''">and factorid1 = #{factorid1}</if>
<if test="factorid2 != null and factorid2 != ''">and factorid2 = #{factorid2}</if>
<if test="factorid3 != null and factorid3 != ''">and factorid3 = #{factorid3}</if>
<if test="factorid4 != null and factorid4 != ''">and factorid4 = #{factorid4}</if>
<if test="factorid5 != null and factorid5 != ''">and factorid5 = #{factorid5}</if>
<if test="factorid6 != null and factorid6 != ''">and factorid6 = #{factorid6}</if>
<if test="factorid7 != null and factorid7 != ''">and factorid7 = #{factorid7}</if>
<if test="factorid8 != null and factorid8 != ''">and factorid8 = #{factorid8}</if>
<if test="factorid9 != null and factorid9 != ''">and factorid9 = #{factorid9}</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="factortable1 != null and factortable1 != ''">and factortable1 like
concat('%',#{factortable1},'%')
</if>
<if test="factortable2 != null and factortable2 != ''">and factortable2 like
concat('%',#{factortable2},'%')
</if>
<if test="factortable3 != null and factortable3 != ''">and factortable3 like
concat('%',#{factortable3},'%')
</if>
<if test="factortable4 != null and factortable4 != ''">and factortable4 like
concat('%',#{factortable4},'%')
</if>
<if test="factortable5 != null and factortable5 != ''">and factortable5 like
concat('%',#{factortable5},'%')
</if>
<if test="factortable6 != null and factortable6 != ''">and factortable6 like
concat('%',#{factortable6},'%')
</if>
<if test="factortable7 != null and factortable7 != ''">and factortable7 like
concat('%',#{factortable7},'%')
</if>
<if test="factortable8 != null and factortable8 != ''">and factortable8 like
concat('%',#{factortable8},'%')
</if>
<if test="factortable9 != null and factortable9 != ''">and factortable9 like
concat('%',#{factortable9},'%')
</if>
<if test="factorpk1 != null and factorpk1 != ''">and factorpk1 like concat('%',#{factorpk1},'%')</if>
<if test="factorpk2 != null and factorpk2 != ''">and factorpk2 like concat('%',#{factorpk2},'%')</if>
<if test="factorpk3 != null and factorpk3 != ''">and factorpk3 like concat('%',#{factorpk3},'%')</if>
<if test="factorpk4 != null and factorpk4 != ''">and factorpk4 like concat('%',#{factorpk4},'%')</if>
<if test="factorpk5 != null and factorpk5 != ''">and factorpk5 like concat('%',#{factorpk5},'%')</if>
<if test="factorpk6 != null and factorpk6 != ''">and factorpk6 like concat('%',#{factorpk6},'%')</if>
<if test="factorpk7 != null and factorpk7 != ''">and factorpk7 like concat('%',#{factorpk7},'%')</if>
<if test="factorpk8 != null and factorpk8 != ''">and factorpk8 like concat('%',#{factorpk8},'%')</if>
<if test="factorpk9 != null and factorpk9 != ''">and factorpk9 like concat('%',#{factorpk9},'%')</if>
<if test="factorid1 != null and factorid1 != ''">and factorid1 like concat('%',#{factorid1},'%')</if>
<if test="factorid2 != null and factorid2 != ''">and factorid2 like concat('%',#{factorid2},'%')</if>
<if test="factorid3 != null and factorid3 != ''">and factorid3 like concat('%',#{factorid3},'%')</if>
<if test="factorid4 != null and factorid4 != ''">and factorid4 like concat('%',#{factorid4},'%')</if>
<if test="factorid5 != null and factorid5 != ''">and factorid5 like concat('%',#{factorid5},'%')</if>
<if test="factorid6 != null and factorid6 != ''">and factorid6 like concat('%',#{factorid6},'%')</if>
<if test="factorid7 != null and factorid7 != ''">and factorid7 like concat('%',#{factorid7},'%')</if>
<if test="factorid8 != null and factorid8 != ''">and factorid8 like concat('%',#{factorid8},'%')</if>
<if test="factorid9 != null and factorid9 != ''">and factorid9 like concat('%',#{factorid9},'%')</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="factortable1 != null and factortable1 != ''">or factortable1 = #{factortable1}</if>
<if test="factortable2 != null and factortable2 != ''">or factortable2 = #{factortable2}</if>
<if test="factortable3 != null and factortable3 != ''">or factortable3 = #{factortable3}</if>
<if test="factortable4 != null and factortable4 != ''">or factortable4 = #{factortable4}</if>
<if test="factortable5 != null and factortable5 != ''">or factortable5 = #{factortable5}</if>
<if test="factortable6 != null and factortable6 != ''">or factortable6 = #{factortable6}</if>
<if test="factortable7 != null and factortable7 != ''">or factortable7 = #{factortable7}</if>
<if test="factortable8 != null and factortable8 != ''">or factortable8 = #{factortable8}</if>
<if test="factortable9 != null and factortable9 != ''">or factortable9 = #{factortable9}</if>
<if test="factorpk1 != null and factorpk1 != ''">or factorpk1 = #{factorpk1}</if>
<if test="factorpk2 != null and factorpk2 != ''">or factorpk2 = #{factorpk2}</if>
<if test="factorpk3 != null and factorpk3 != ''">or factorpk3 = #{factorpk3}</if>
<if test="factorpk4 != null and factorpk4 != ''">or factorpk4 = #{factorpk4}</if>
<if test="factorpk5 != null and factorpk5 != ''">or factorpk5 = #{factorpk5}</if>
<if test="factorpk6 != null and factorpk6 != ''">or factorpk6 = #{factorpk6}</if>
<if test="factorpk7 != null and factorpk7 != ''">or factorpk7 = #{factorpk7}</if>
<if test="factorpk8 != null and factorpk8 != ''">or factorpk8 = #{factorpk8}</if>
<if test="factorpk9 != null and factorpk9 != ''">or factorpk9 = #{factorpk9}</if>
<if test="factorid1 != null and factorid1 != ''">or factorid1 = #{factorid1}</if>
<if test="factorid2 != null and factorid2 != ''">or factorid2 = #{factorid2}</if>
<if test="factorid3 != null and factorid3 != ''">or factorid3 = #{factorid3}</if>
<if test="factorid4 != null and factorid4 != ''">or factorid4 = #{factorid4}</if>
<if test="factorid5 != null and factorid5 != ''">or factorid5 = #{factorid5}</if>
<if test="factorid6 != null and factorid6 != ''">or factorid6 = #{factorid6}</if>
<if test="factorid7 != null and factorid7 != ''">or factorid7 = #{factorid7}</if>
<if test="factorid8 != null and factorid8 != ''">or factorid8 = #{factorid8}</if>
<if test="factorid9 != null and factorid9 != ''">or factorid9 = #{factorid9}</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="contrastId != null">contrast_id ,</if>
<if test="pkCorp != null and pkCorp != ''">pk_corp ,</if>
<if test="glorgname != null and glorgname != ''">glorgname ,</if>
<if test="desdocvalue != null and desdocvalue != ''">desdocvalue ,</if>
<if test="pkAccsubj != null and pkAccsubj != ''">pkAccsubj ,</if>
<if test="factortable1 != null and factortable1 != ''">factortable1 ,</if>
<if test="factortable2 != null and factortable2 != ''">factortable2 ,</if>
<if test="factortable3 != null and factortable3 != ''">factortable3 ,</if>
<if test="factortable4 != null and factortable4 != ''">factortable4 ,</if>
<if test="factortable5 != null and factortable5 != ''">factortable5 ,</if>
<if test="factortable6 != null and factortable6 != ''">factortable6 ,</if>
<if test="factortable7 != null and factortable7 != ''">factortable7 ,</if>
<if test="factortable8 != null and factortable8 != ''">factortable8 ,</if>
<if test="factortable9 != null and factortable9 != ''">factortable9 ,</if>
<if test="factorpk1 != null and factorpk1 != ''">factorpk1 ,</if>
<if test="factorpk2 != null and factorpk2 != ''">factorpk2 ,</if>
<if test="factorpk3 != null and factorpk3 != ''">factorpk3 ,</if>
<if test="factorpk4 != null and factorpk4 != ''">factorpk4 ,</if>
<if test="factorpk5 != null and factorpk5 != ''">factorpk5 ,</if>
<if test="factorpk6 != null and factorpk6 != ''">factorpk6 ,</if>
<if test="factorpk7 != null and factorpk7 != ''">factorpk7 ,</if>
<if test="factorpk8 != null and factorpk8 != ''">factorpk8 ,</if>
<if test="factorpk9 != null and factorpk9 != ''">factorpk9 ,</if>
<if test="factorid1 != null and factorid1 != ''">factorid1 ,</if>
<if test="factorid2 != null and factorid2 != ''">factorid2 ,</if>
<if test="factorid3 != null and factorid3 != ''">factorid3 ,</if>
<if test="factorid4 != null and factorid4 != ''">factorid4 ,</if>
<if test="factorid5 != null and factorid5 != ''">factorid5 ,</if>
<if test="factorid6 != null and factorid6 != ''">factorid6 ,</if>
<if test="factorid7 != null and factorid7 != ''">factorid7 ,</if>
<if test="factorid8 != null and factorid8 != ''">factorid8 ,</if>
<if test="factorid9 != null and factorid9 != ''">factorid9 ,</if>
<if test="factorname1 != null and factorname1 != ''">factorname1 ,</if>
<if test="factorname2 != null and factorname2 != ''">factorname2 ,</if>
<if test="factorname3 != null and factorname3 != ''">factorname3 ,</if>
<if test="factorname4 != null and factorname4 != ''">factorname4 ,</if>
<if test="factorname5 != null and factorname5 != ''">factorname5 ,</if>
<if test="factorname6 != null and factorname6 != ''">factorname6 ,</if>
<if test="factorname7 != null and factorname7 != ''">factorname7 ,</if>
<if test="factorname8 != null and factorname8 != ''">factorname8 ,</if>
<if test="factorname9 != null and factorname9 != ''">factorname9 ,</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="contrastId != null">#{contrastId} ,</if>
<if test="pkCorp != null and pkCorp != ''">#{pkCorp} ,</if>
<if test="glorgname != null and glorgname != ''">#{glorgname} ,</if>
<if test="desdocvalue != null and desdocvalue != ''">#{desdocvalue} ,</if>
<if test="pkAccsubj != null and pkAccsubj != ''">#{pkAccsubj} ,</if>
<if test="factortable1 != null and factortable1 != ''">#{factortable1} ,</if>
<if test="factortable2 != null and factortable2 != ''">#{factortable2} ,</if>
<if test="factortable3 != null and factortable3 != ''">#{factortable3} ,</if>
<if test="factortable4 != null and factortable4 != ''">#{factortable4} ,</if>
<if test="factortable5 != null and factortable5 != ''">#{factortable5} ,</if>
<if test="factortable6 != null and factortable6 != ''">#{factortable6} ,</if>
<if test="factortable7 != null and factortable7 != ''">#{factortable7} ,</if>
<if test="factortable8 != null and factortable8 != ''">#{factortable8} ,</if>
<if test="factortable9 != null and factortable9 != ''">#{factortable9} ,</if>
<if test="factorpk1 != null and factorpk1 != ''">#{factorpk1} ,</if>
<if test="factorpk2 != null and factorpk2 != ''">#{factorpk2} ,</if>
<if test="factorpk3 != null and factorpk3 != ''">#{factorpk3} ,</if>
<if test="factorpk4 != null and factorpk4 != ''">#{factorpk4} ,</if>
<if test="factorpk5 != null and factorpk5 != ''">#{factorpk5} ,</if>
<if test="factorpk6 != null and factorpk6 != ''">#{factorpk6} ,</if>
<if test="factorpk7 != null and factorpk7 != ''">#{factorpk7} ,</if>
<if test="factorpk8 != null and factorpk8 != ''">#{factorpk8} ,</if>
<if test="factorpk9 != null and factorpk9 != ''">#{factorpk9} ,</if>
<if test="factorid1 != null and factorid1 != ''">#{factorid1} ,</if>
<if test="factorid2 != null and factorid2 != ''">#{factorid2} ,</if>
<if test="factorid3 != null and factorid3 != ''">#{factorid3} ,</if>
<if test="factorid4 != null and factorid4 != ''">#{factorid4} ,</if>
<if test="factorid5 != null and factorid5 != ''">#{factorid5} ,</if>
<if test="factorid6 != null and factorid6 != ''">#{factorid6} ,</if>
<if test="factorid7 != null and factorid7 != ''">#{factorid7} ,</if>
<if test="factorid8 != null and factorid8 != ''">#{factorid8} ,</if>
<if test="factorid9 != null and factorid9 != ''">#{factorid9} ,</if>
<if test="factorname1 != null and factorname1 != ''">#{factorname1} ,</if>
<if test="factorname2 != null and factorname2 != ''">#{factorname2} ,</if>
<if test="factorname3 != null and factorname3 != ''">#{factorname3} ,</if>
<if test="factorname4 != null and factorname4 != ''">#{factorname4} ,</if>
<if test="factorname5 != null and factorname5 != ''">#{factorname5} ,</if>
<if test="factorname6 != null and factorname6 != ''">#{factorname6} ,</if>
<if test="factorname7 != null and factorname7 != ''">#{factorname7} ,</if>
<if test="factorname8 != null and factorname8 != ''">#{factorname8} ,</if>
<if test="factorname9 != null and factorname9 != ''">#{factorname9} ,</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, factortable1, factortable2,
factortable3, factortable4, factortable5, factortable6, factortable7, factortable8, factortable9, factorpk1,
factorpk2, factorpk3, factorpk4, factorpk5, factorpk6, factorpk7, factorpk8, factorpk9, factorid1, factorid2,
factorid3, factorid4, factorid5, factorid6, factorid7, factorid8, factorid9, 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.factortable1},#{entity.factortable2},#{entity.factortable3},#{entity.factortable4},#{entity.factortable5},#{entity.factortable6},#{entity.factortable7},#{entity.factortable8},#{entity.factortable9},#{entity.factorpk1},#{entity.factorpk2},#{entity.factorpk3},#{entity.factorpk4},#{entity.factorpk5},#{entity.factorpk6},#{entity.factorpk7},#{entity.factorpk8},#{entity.factorpk9},#{entity.factorid1},#{entity.factorid2},#{entity.factorid3},#{entity.factorid4},#{entity.factorid5},#{entity.factorid6},#{entity.factorid7},#{entity.factorid8},#{entity.factorid9},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},now(),#{entity.createUser},now(),#{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, factortable1, factortable2,
factortable3, factortable4, factortable5, factortable6, factortable7, factortable8, factortable9, factorpk1,
factorpk2, factorpk3, factorpk4, factorpk5, factorpk6, factorpk7, factorpk8, factorpk9, factorid1, factorid2,
factorid3, factorid4, factorid5, factorid6, factorid7, factorid8, factorid9, 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.factortable1},#{entity.factortable2},#{entity.factortable3},#{entity.factortable4},#{entity.factortable5},#{entity.factortable6},#{entity.factortable7},#{entity.factortable8},#{entity.factortable9},#{entity.factorpk1},#{entity.factorpk2},#{entity.factorpk3},#{entity.factorpk4},#{entity.factorpk5},#{entity.factorpk6},#{entity.factorpk7},#{entity.factorpk8},#{entity.factorpk9},#{entity.factorid1},#{entity.factorid2},#{entity.factorid3},#{entity.factorid4},#{entity.factorid5},#{entity.factorid6},#{entity.factorid7},#{entity.factorid8},#{entity.factorid9},#{entity.remark},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},now(),#{entity.createUser},now(),#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
contrast_id = values(contrast_id),
pk_corp = values(pk_corp),
desdocvalue = values(desdocvalue),
factortable1 = values(factortable1),
factortable2 = values(factortable2),
factortable3 = values(factortable3),
factortable4 = values(factortable4),
factortable5 = values(factortable5),
factortable6 = values(factortable6),
factortable7 = values(factortable7),
factortable8 = values(factortable8),
factortable9 = values(factortable9),
factorpk1 = values(factorpk1),
factorpk2 = values(factorpk2),
factorpk3 = values(factorpk3),
factorpk4 = values(factorpk4),
factorpk5 = values(factorpk5),
factorpk6 = values(factorpk6),
factorpk7 = values(factorpk7),
factorpk8 = values(factorpk8),
factorpk9 = values(factorpk9),
factorid1 = values(factorid1),
factorid2 = values(factorid2),
factorid3 = values(factorid3),
factorid4 = values(factorid4),
factorid5 = values(factorid5),
factorid6 = values(factorid6),
factorid7 = values(factorid7),
factorid8 = values(factorid8),
factorid9 = values(factorid9),
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="factortable1 != null and factortable1 != ''">factortable1 = #{factortable1},</if>
<if test="factortable2 != null and factortable2 != ''">factortable2 = #{factortable2},</if>
<if test="factortable3 != null and factortable3 != ''">factortable3 = #{factortable3},</if>
<if test="factortable4 != null and factortable4 != ''">factortable4 = #{factortable4},</if>
<if test="factortable5 != null and factortable5 != ''">factortable5 = #{factortable5},</if>
<if test="factortable6 != null and factortable6 != ''">factortable6 = #{factortable6},</if>
<if test="factortable7 != null and factortable7 != ''">factortable7 = #{factortable7},</if>
<if test="factortable8 != null and factortable8 != ''">factortable8 = #{factortable8},</if>
<if test="factortable9 != null and factortable9 != ''">factortable9 = #{factortable9},</if>
<if test="factorpk1 != null and factorpk1 != ''">factorpk1 = #{factorpk1},</if>
<if test="factorpk2 != null and factorpk2 != ''">factorpk2 = #{factorpk2},</if>
<if test="factorpk3 != null and factorpk3 != ''">factorpk3 = #{factorpk3},</if>
<if test="factorpk4 != null and factorpk4 != ''">factorpk4 = #{factorpk4},</if>
<if test="factorpk5 != null and factorpk5 != ''">factorpk5 = #{factorpk5},</if>
<if test="factorpk6 != null and factorpk6 != ''">factorpk6 = #{factorpk6},</if>
<if test="factorpk7 != null and factorpk7 != ''">factorpk7 = #{factorpk7},</if>
<if test="factorpk8 != null and factorpk8 != ''">factorpk8 = #{factorpk8},</if>
<if test="factorpk9 != null and factorpk9 != ''">factorpk9 = #{factorpk9},</if>
<if test="factorid1 != null and factorid1 != ''">factorid1 = #{factorid1},</if>
<if test="factorid2 != null and factorid2 != ''">factorid2 = #{factorid2},</if>
<if test="factorid3 != null and factorid3 != ''">factorid3 = #{factorid3},</if>
<if test="factorid4 != null and factorid4 != ''">factorid4 = #{factorid4},</if>
<if test="factorid5 != null and factorid5 != ''">factorid5 = #{factorid5},</if>
<if test="factorid6 != null and factorid6 != ''">factorid6 = #{factorid6},</if>
<if test="factorid7 != null and factorid7 != ''">factorid7 = #{factorid7},</if>
<if test="factorid8 != null and factorid8 != ''">factorid8 = #{factorid8},</if>
<if test="factorid9 != null and factorid9 != ''">factorid9 = #{factorid9},</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 = #{modify_time},modify_user_id = #{modify_user_id}
<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="factortable1 != null and factortable1 != ''">and factortable1 = #{factortable1}</if>
<if test="factortable2 != null and factortable2 != ''">and factortable2 = #{factortable2}</if>
<if test="factortable3 != null and factortable3 != ''">and factortable3 = #{factortable3}</if>
<if test="factortable4 != null and factortable4 != ''">and factortable4 = #{factortable4}</if>
<if test="factortable5 != null and factortable5 != ''">and factortable5 = #{factortable5}</if>
<if test="factortable6 != null and factortable6 != ''">and factortable6 = #{factortable6}</if>
<if test="factortable7 != null and factortable7 != ''">and factortable7 = #{factortable7}</if>
<if test="factortable8 != null and factortable8 != ''">and factortable8 = #{factortable8}</if>
<if test="factortable9 != null and factortable9 != ''">and factortable9 = #{factortable9}</if>
<if test="factorpk1 != null and factorpk1 != ''">and factorpk1 = #{factorpk1}</if>
<if test="factorpk2 != null and factorpk2 != ''">and factorpk2 = #{factorpk2}</if>
<if test="factorpk3 != null and factorpk3 != ''">and factorpk3 = #{factorpk3}</if>
<if test="factorpk4 != null and factorpk4 != ''">and factorpk4 = #{factorpk4}</if>
<if test="factorpk5 != null and factorpk5 != ''">and factorpk5 = #{factorpk5}</if>
<if test="factorpk6 != null and factorpk6 != ''">and factorpk6 = #{factorpk6}</if>
<if test="factorpk7 != null and factorpk7 != ''">and factorpk7 = #{factorpk7}</if>
<if test="factorpk8 != null and factorpk8 != ''">and factorpk8 = #{factorpk8}</if>
<if test="factorpk9 != null and factorpk9 != ''">and factorpk9 = #{factorpk9}</if>
<if test="factorid1 != null and factorid1 != ''">and factorid1 = #{factorid1}</if>
<if test="factorid2 != null and factorid2 != ''">and factorid2 = #{factorid2}</if>
<if test="factorid3 != null and factorid3 != ''">and factorid3 = #{factorid3}</if>
<if test="factorid4 != null and factorid4 != ''">and factorid4 = #{factorid4}</if>
<if test="factorid5 != null and factorid5 != ''">and factorid5 = #{factorid5}</if>
<if test="factorid6 != null and factorid6 != ''">and factorid6 = #{factorid6}</if>
<if test="factorid7 != null and factorid7 != ''">and factorid7 = #{factorid7}</if>
<if test="factorid8 != null and factorid8 != ''">and factorid8 = #{factorid8}</if>
<if test="factorid9 != null and factorid9 != ''">and factorid9 = #{factorid9}</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>

View File

@ -0,0 +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;
/**
* 账簿类型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;
/** */
private List<MappingFileVO> mappingFileVOS;
private String aeConfModuleId;
}

View File

@ -0,0 +1,448 @@
<?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.AeConfSubjectContrastDaoImpl">
<resultMap id="get-AeConfSubjectContrastEntity-result"
type="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="code" column="code" jdbcType="VARCHAR"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<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="desdocCode" column="desdoccode" jdbcType="VARCHAR"/>
<result property="desdocName" column="desdocname" jdbcType="VARCHAR"/>
<result property="pkSetcorp1" column="pk_setcorp1" 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="sourceIds" column="sourceIds" jdbcType="VARCHAR"/>
<result property="sourceNames" column="sourceNames" jdbcType="VARCHAR"/>
<result property="sts" column="sts" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id="AeConfSubjectContrastEntity_Base_Column_List">
id
,code
,name
,account_book_id
,account_book_code
,account_book_name
,account_book_type_id
,account_book_type_code
,account_book_type_name
,pk_corp
,corp_type
,desdocid
,desdoccode
,desdocname
,pk_setcorp1
,remark
,def1
,def2
,def3
,def4
,def5
,def6
,def7
,def8
,def9
,def10
,create_time
,create_user
,modify_time
,modify_user
,sourceIds
,sourceNames
,sts
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-AeConfSubjectContrastEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity">
select
<include refid="AeConfSubjectContrastEntity_Base_Column_List"/>
from ae_conf_subject_contrast
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="code != null and code != ''">and code = #{code}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<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>
<if test="pkSetcorp1 != null and pkSetcorp1 != ''">and pk_setcorp1 = #{pkSetcorp1}</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.AeConfSubjectContrastEntity">
select count(1) from ae_conf_subject_contrast
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="code != null and code != ''">and code = #{code}</if>
<if test="name != null and name != ''">and name = #{name}</if>
<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>
<if test="pkSetcorp1 != null and pkSetcorp1 != ''">and pk_setcorp1 = #{pkSetcorp1}</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-AeConfSubjectContrastEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity">
select
<include refid="AeConfSubjectContrastEntity_Base_Column_List"/>
from ae_conf_subject_contrast
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id like concat('%',#{id},'%')</if>
<if test="code != null and code != ''">and code like concat('%',#{code},'%')</if>
<if test="name != null and name != ''">and name like concat('%',#{name},'%')</if>
<if test="accountBookId != null and accountBookId != ''">and account_book_id like
concat('%',#{accountBookId},'%')
</if>
<if test="accountBookCode != null and accountBookCode != ''">and account_book_code like
concat('%',#{accountBookCode},'%')
</if>
<if test="accountBookName != null and accountBookName != ''">and account_book_name like
concat('%',#{accountBookName},'%')
</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp like concat('%',#{pkCorp},'%')</if>
<if test="corpType != null and corpType != ''">and corp_type like concat('%',#{corpType},'%')</if>
<if test="desdocId != null and desdocId != ''">and desdocid like concat('%',#{desdocId},'%')</if>
<if test="pkSetcorp1 != null and pkSetcorp1 != ''">and pk_setcorp1 like concat('%',#{pkSetcorp1},'%')</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="AeConfSubjectContrastentity_list_or" resultMap="get-AeConfSubjectContrastEntity-result"
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity">
select
<include refid="AeConfSubjectContrastEntity_Base_Column_List"/>
from ae_conf_subject_contrast
<trim prefix="where" prefixOverrides="and">
<if test="id != null">or id = #{id}</if>
<if test="code != null and code != ''">or code = #{code}</if>
<if test="name != null and name != ''">or name = #{name}</if>
<if test="accountBookId != null and accountBookId != ''">or account_book_id = #{accountBookId}</if>
<if test="accountBookCode != null and accountBookCode != ''">or account_book_code = #{accountBookCode}</if>
<if test="accountBookName != null and accountBookName != ''">or account_book_name = #{accountBookName}</if>
<if test="pkCorp != null and pkCorp != ''">or pk_corp = #{pkCorp}</if>
<if test="corpType != null and corpType != ''">or corp_type = #{corpType}</if>
<if test="desdocId != null and desdocId != ''">or desdocid = #{desdocId}</if>
<if test="pkSetcorp1 != null and pkSetcorp1 != ''">or pk_setcorp1 = #{pkSetcorp1}</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.AeConfSubjectContrastEntity"
keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_subject_contrast(
<trim suffix="" suffixOverrides=",">
<if test="code != null and code != ''">code ,</if>
<if test="name != null and name != ''">name ,</if>
<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>
<if test="desdocCode != null and desdocCode != ''">desdoccode ,</if>
<if test="desdocName != null and desdocName != ''">desdocname ,</if>
<if test="pkSetcorp1 != null and pkSetcorp1 != ''">pk_setcorp1 ,</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="code != null and code != ''">#{code} ,</if>
<if test="name != null and name != ''">#{name} ,</if>
<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>
<if test="desdocCode != null and desdocCode != ''">#{desdocCode} ,</if>
<if test="desdocName != null and desdocName != ''">#{desdocName} ,</if>
<if test="pkSetcorp1 != null and pkSetcorp1 != ''">#{pkSetcorp1} ,</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(code, name, account_book_id, account_book_code, account_book_name, pk_corp,
corp_type, desdocid, pk_setcorp1, 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.code},#{entity.name},#{entity.accountBookId},#{entity.accountBookCode},#{entity.accountBookName},#{entity.pkCorp},#{entity.corpType},#{entity.desdocid},#{entity.pkSetcorp1},#{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(code, name, account_book_id, account_book_code, account_book_name, pk_corp,
corp_type, desdocid, pk_setcorp1, 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.code},#{entity.name},#{entity.accountBookId},#{entity.accountBookCode},#{entity.accountBookName},#{entity.pkCorp},#{entity.corpType},#{entity.desdocid},#{entity.pkSetcorp1},#{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
code = values(code),
name = values(name),
account_book_id = values(account_book_id),
account_book_code = values(account_book_code),
account_book_name = values(account_book_name),
pk_corp = values(pk_corp),
corp_type = values(corp_type),
desdocid = values(desdocid),
pk_setcorp1 = values(pk_setcorp1),
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.AeConfSubjectContrastEntity">
update ae_conf_subject_contrast set
<trim suffix="" suffixOverrides=",">
<if test="code != null and code != ''">code = #{code},</if>
<if test="name != null and name != ''">name = #{name},</if>
<if test="accountBookId != null and accountBookId != ''">account_book_id = #{accountBookId},</if>
<if test="accountBookCode != null and accountBookCode != ''">account_book_code = #{accountBookCode},</if>
<if test="accountBookName != null and accountBookName != ''">account_book_name = #{accountBookName},</if>
<if test="pkCorp != null and pkCorp != ''">pk_corp = #{pkCorp},</if>
<if test="corpType != null and corpType != ''">corp_type = #{corpType},</if>
<if test="desdocid != null and desdocid != ''">desdocid = #{desdocid},</if>
<if test="pkSetcorp1 != null and pkSetcorp1 != ''">pk_setcorp1 = #{pkSetcorp1},</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="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.AeConfSubjectContrastEntity">
update ae_conf_subject_contrast
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.AeConfSubjectContrastEntity">
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>
<if test="name != null and name != ''">and name = #{name}</if>
<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="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>
<if test="pkSetcorp1 != null and pkSetcorp1 != ''">and pk_setcorp1 = #{pkSetcorp1}</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
where id = #{id}
</delete>
</mapper>

View File

@ -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;
}

View File

@ -0,0 +1,24 @@
package com.hzya.frame.voucher.ae.comf.subject.service;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-科目分类定义(AeConfSubjectClassification)表服务接口
*
* @author zydd
* @since 2025-06-06 17:00:57
*/
public interface IAeConfSubjectClassificationService extends IBaseService<AeConfSubjectClassificationEntity, String>{
List<AeConfSubjectClassificationEntity> queryAll(AeConfSubjectClassificationEntity entity);
AeConfSubjectClassificationEntity queryById(AeConfSubjectClassificationEntity entity);
AeConfSubjectClassificationEntity saveEntity(AeConfSubjectClassificationEntity entity);
AeConfSubjectClassificationEntity updateEntity(AeConfSubjectClassificationEntity entity);
void deleteEntity(AeConfSubjectClassificationEntity entity);
}

View File

@ -0,0 +1,22 @@
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;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-科目对照_子表(AeConfSubjectContrastB)表服务接口
*
* @author zydd
* @since 2025-06-05 15:13:29
*/
public interface IAeConfSubjectContrastBService extends IBaseService<AeConfSubjectContrastBEntity, String>{
List<AeConfSubjectContrastBEntity> queryAllByContrastId(AeConfSubjectContrastBEntity entity);
List<AeConfSubjectContrastBEntity> saveListEntity(List<AeConfSubjectContrastBEntity> list);
List<AeConfSubjectContrastBEntity> updateList(List<AeConfSubjectContrastBEntity> list);
void deleteList(AeConfSubjectContrastBEntity entity);
}

View File

@ -0,0 +1,24 @@
package com.hzya.frame.voucher.ae.comf.subject.service;
import com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectContrastEntity;
import com.hzya.frame.basedao.service.IBaseService;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-科目对照(AeConfSubjectContrast)表服务接口
*
* @author zydd
* @since 2025-05-30 15:04:47
*/
public interface IAeConfSubjectContrastService extends IBaseService<AeConfSubjectContrastEntity, String>{
List<AeConfSubjectContrastEntity> queryAll(AeConfSubjectContrastEntity entity);
AeConfSubjectContrastEntity queryById(AeConfSubjectContrastEntity entity);
AeConfSubjectContrastEntity saveEntity(AeConfSubjectContrastEntity entity) throws NoSuchFieldException, IllegalAccessException;
AeConfSubjectContrastEntity updateEntity(AeConfSubjectContrastEntity entity) throws Exception;
AeConfSubjectContrastEntity deleteEntity(AeConfSubjectContrastEntity entity) throws Exception;
List<AeConfSubjectContrastEntity> queryByInfluenceIds(AeConfSubjectContrastEntity entity);
}

View File

@ -0,0 +1,121 @@
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.AeConfSubjectClassificationEntity;
import com.hzya.frame.voucher.ae.comf.subject.dao.IAeConfSubjectClassificationDao;
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.service.IAeConfSubjectClassificationService;
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;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-科目分类定义(AeConfSubjectClassification)表服务实现类
*
* @author zydd
* @since 2025-06-06 17:00:57
*/
@Service
public class AeConfSubjectClassificationServiceImpl extends BaseService<AeConfSubjectClassificationEntity, String> implements IAeConfSubjectClassificationService {
private IAeConfSubjectClassificationDao aeConfSubjectClassificationDao;
@Autowired
public void setAeConfSubjectClassificationDao(IAeConfSubjectClassificationDao dao) {
this.aeConfSubjectClassificationDao = dao;
this.dao = dao;
}
@Autowired
private IAeConfSubjectContrastBService contrastBService;
@Override
public List<AeConfSubjectClassificationEntity> queryAll(AeConfSubjectClassificationEntity entity) {
Assert.notNull(entity.getPkCorp(), "查询科目分类定义时,公司主键不允许为空。");
Assert.notNull(entity.getPkglorgbook(), "查询科目分类定义时,账簿主键不允许为空。");
Assert.notNull(entity.getAeConfModuleId(), "查询科目分类定义时业务模块id不允许为空。");
List<AeConfSubjectClassificationEntity> query = aeConfSubjectClassificationDao.query(entity);
for (AeConfSubjectClassificationEntity aeConfSubjectClassificationEntity : query) {
//查询科目对照子表
queryaeConfSubjectContrastBList(aeConfSubjectClassificationEntity);
}
return query;
}
@Override
public AeConfSubjectClassificationEntity queryById(AeConfSubjectClassificationEntity entity) {
Assert.notNull(entity.getId(), "查询科目分类定义时id不允许为空。");
Assert.notNull(entity.getPkCorp(), "查询科目分类定义时,公司主键不允许为空。");
Assert.notNull(entity.getPkglorgbook(), "查询科目分类定义时,账簿主键不允许为空。");
Assert.notNull(entity.getAeConfModuleId(), "查询科目分类定义时业务模块id不允许为空。");
List<AeConfSubjectClassificationEntity> query = aeConfSubjectClassificationDao.query(entity);
if (query.size() == 0 || query.size() > 1) {
return null;
}
AeConfSubjectClassificationEntity aeConfSubjectClassificationEntity = query.get(0);
//查询科目对照子表
queryaeConfSubjectContrastBList(aeConfSubjectClassificationEntity);
return aeConfSubjectClassificationEntity;
}
/**
* 科目分类定义
*/
@Override
public AeConfSubjectClassificationEntity saveEntity(AeConfSubjectClassificationEntity entity) {
Assert.notNull(entity.getPkCorp(), "科目分类定义新增时,公司主键不允许为空。");
Assert.notNull(entity.getPkglorgbook(), "科目分类定义新增时核算账簿id不允许为空。");
Assert.notNull(entity.getAeConfModuleId(), "科目分类定义新增时业务模块id不允许为空。");
Assert.notNull(entity.getGlorgbookcode(), "科目分类定义新增时,核算账簿编码不允许为空。");
Assert.notNull(entity.getGlorgbookname(), "科目分类定义新增时,核算账簿名称不允许为空。");
Assert.notNull(entity.getCode(), "科目分类定义新增时,编码不允许为空。");
Assert.notNull(entity.getName(), "科目分类定义新增时,名称不允许为空。");
AeConfSubjectClassificationEntity save = aeConfSubjectClassificationDao.save(entity);
//查询科目对照子表
queryaeConfSubjectContrastBList(save);
return save;
}
@Override
public AeConfSubjectClassificationEntity updateEntity(AeConfSubjectClassificationEntity entity) {
Assert.notNull(entity.getId(), "科目分类定义更新时id不允许为空。");
Assert.notNull(entity.getPkCorp(), "科目分类定义更新时,公司主键不允许为空。");
Assert.notNull(entity.getAeConfModuleId(), "科目分类定义更新时业务模块id不允许为空。");
Assert.notNull(entity.getPkglorgbook(), "科目分类定义更新时核算账簿id不允许为空。");
Assert.notNull(entity.getGlorgbookcode(), "科目分类定义更新时,核算账簿编码不允许为空。");
Assert.notNull(entity.getGlorgbookname(), "科目分类定义更新时,核算账簿名称不允许为空。");
Assert.notNull(entity.getCode(), "科目分类定义更新时,编码不允许为空。");
Assert.notNull(entity.getName(), "科目分类定义更新时,名称不允许为空。");
AeConfSubjectClassificationEntity update = aeConfSubjectClassificationDao.update(entity);
//查询科目对照子表
queryaeConfSubjectContrastBList(update);
return update;
}
@Override
public void deleteEntity(AeConfSubjectClassificationEntity entity) {
Assert.notNull(entity.getId(), "科目分类定义删除时id不允许为空。");
aeConfSubjectClassificationDao.logicRemove(entity);
}
public void queryaeConfSubjectContrastBList(AeConfSubjectClassificationEntity entity) {
if (entity.getContrastId() != null && !"".equals(entity.getContrastId())) {
//查询科目对照子表
AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity = new AeConfSubjectContrastBEntity();
aeConfSubjectContrastBEntity.setContrastId(Long.valueOf(entity.getContrastId()));
List<AeConfSubjectContrastBEntity> bEntities = contrastBService.queryAllByContrastId(aeConfSubjectContrastBEntity);
entity.setContrastBEntityList(bEntities);
}
}
}

View File

@ -0,0 +1,108 @@
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.IAeConfSubjectContrastDao;
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.entity.AeConfSubjectContrastEntity;
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;
import java.util.ArrayList;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-科目对照_子表(AeConfSubjectContrastB)表服务实现类
*
* @author zydd
* @since 2025-06-05 15:13:29
*/
@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;
}
@Autowired
private IAeConfSubjectContrastDao aeConfSubjectContrastDao;
/**
* 根据contrastId查询所有子表
*/
@Override
public List<AeConfSubjectContrastBEntity> queryAllByContrastId(AeConfSubjectContrastBEntity entity) {
Assert.notNull(entity.getContrastId(), "根据科目对照子表查询所属所有子表时contrastId不能为空");
AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity = new AeConfSubjectContrastBEntity();
aeConfSubjectContrastBEntity.setContrastId(entity.getContrastId());
List<AeConfSubjectContrastBEntity> query = aeConfSubjectContrastBDao.query(aeConfSubjectContrastBEntity);
return query;
}
/**
* 依次保存批量新增
*/
@Override
public List<AeConfSubjectContrastBEntity> saveListEntity(List<AeConfSubjectContrastBEntity> list) {
if (list == null || list.size() == 0) {
Assert.state(false, "批量新增科目对照子表时,子表不能为空。");
}
for (AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity : list) {
Assert.notNull(aeConfSubjectContrastBEntity.getContrastId(), "新增科目对照子表时contrastId不能为空");
Assert.notNull(aeConfSubjectContrastBEntity.getPkCorp(), "新增科目对照子表时,公司主键不能为空");
}
//检查主表是否存在
AeConfSubjectContrastEntity aeConfSubjectContrastEntity = new AeConfSubjectContrastEntity();
aeConfSubjectContrastEntity.setId(String.valueOf(list.get(0).getContrastId()));
List<AeConfSubjectContrastEntity> query = aeConfSubjectContrastDao.query(aeConfSubjectContrastEntity);
if (query == null || query.size() == 0) {
Assert.state(false, "新增科目对照子表时,主表不存在。");
}
List<AeConfSubjectContrastBEntity> all = new ArrayList<>();
for (AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity : list) {
AeConfSubjectContrastBEntity save = aeConfSubjectContrastBDao.save(aeConfSubjectContrastBEntity);
all.add(save);
}
return all;
}
@Override
public List<AeConfSubjectContrastBEntity> updateList(List<AeConfSubjectContrastBEntity> list) {
if (list == null || list.size() == 0) {
Assert.state(false, "批量修改科目对照子表时,子表不能为空。");
}
for (AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity : list) {
Assert.notNull(aeConfSubjectContrastBEntity.getId(), "修改科目对照子表时子表id不能为空");
Assert.notNull(aeConfSubjectContrastBEntity.getContrastId(), "修改科目对照子表时,主表不能为空");
Assert.notNull(aeConfSubjectContrastBEntity.getPkCorp(), "修改科目对照子表时,子表公司主键不能为空");
}
//检查主表是否存在
AeConfSubjectContrastEntity aeConfSubjectContrastEntity = new AeConfSubjectContrastEntity();
aeConfSubjectContrastEntity.setId(String.valueOf(list.get(0).getContrastId()));
List<AeConfSubjectContrastEntity> query = aeConfSubjectContrastDao.query(aeConfSubjectContrastEntity);
if (query == null || query.size() == 0) {
Assert.state(false, "修改科目对照子表时,主表不存在。");
}
for (AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity : list) {
aeConfSubjectContrastBDao.update(aeConfSubjectContrastBEntity);
}
return list;
}
@Override
public void deleteList(AeConfSubjectContrastBEntity entity) {
Assert.notNull(entity.getId(), "删除科目对照子表时子表id不能为空");
aeConfSubjectContrastBDao.logicRemove(entity);
}
}

View File

@ -0,0 +1,202 @@
package com.hzya.frame.voucher.ae.comf.subject.service.impl;
import cn.hutool.core.lang.Assert;
import com.hzya.frame.voucher.ae.comf.factor.entity.AeConfInfluenceFactorEntity;
import com.hzya.frame.voucher.ae.comf.factor.service.IAeConfInfluenceFactorService;
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.service.IAeConfSubjectContrastService;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.hzya.frame.basedao.service.impl.BaseService;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
/**
* 会计事项(accounting_event)-配置-科目对照(AeConfSubjectContrast)表服务实现类
*
* @author zydd
* @since 2025-05-30 15:04:47
*/
@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;
}
@Autowired
private IAeConfSubjectContrastBDao aeConfSubjectContrastBDao;
@Autowired
private IAeConfInfluenceFactorService iAeConfInfluenceFactorService;
@Override
public List<AeConfSubjectContrastEntity> queryAll(AeConfSubjectContrastEntity entity) {
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 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;
}
/**
* 新增科目对照表现保存主表再将来源档案分割为子表进行存储
*/
@Override
public AeConfSubjectContrastEntity saveEntity(AeConfSubjectContrastEntity entity) throws NoSuchFieldException, IllegalAccessException {
//校验主表
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个");
// }
// //校验子表
// for (int i = 1; i <= split.length; i++) {
// String fieldName = "factortable" + i;
// Field field = AeConfSubjectContrastBEntity.class.getDeclaredField(fieldName);
// field.setAccessible(true);
// String value = (String) field.get(entity);
//
// if (value == null || value.trim().isEmpty()) {
// Assert.state(false, "");
// }
// }
//保存主表
AeConfSubjectContrastEntity saveH = aeConfSubjectContrastDao.save(entity);
String Hid = saveH.getId();
String HpkCorp = saveH.getPkCorp();
if (contrastBList == null || contrastBList.size() == 0) {
return saveH;
}
//保存子表
for (AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity : contrastBList) {
aeConfSubjectContrastBEntity.setContrastId(Long.valueOf(Hid));
aeConfSubjectContrastBEntity.setPkCorp(HpkCorp);
aeConfSubjectContrastBDao.save(aeConfSubjectContrastBEntity);
}
return saveH;
}
/**
* 将原有的主子表全部删除再重新新增
*/
@Override
public AeConfSubjectContrastEntity updateEntity(AeConfSubjectContrastEntity entity) throws Exception {
Assert.notNull(entity.getId(), "科目对照表修改时科目对照表id不能为空");
AeConfSubjectContrastEntity aeConfSubjectContrastEntity = new AeConfSubjectContrastEntity();
aeConfSubjectContrastEntity.setId(entity.getId());
List<AeConfSubjectContrastEntity> query = aeConfSubjectContrastDao.query(aeConfSubjectContrastEntity);
if (query == null || query.size() == 0) {
Assert.state(false, "科目对照表修改时科目对照表id{},未查询到科目对照!", entity.getId());
}
deleteEntity(entity);
saveEntity(entity);
return null;
}
/**
* 将原有的主子表全部删除
*/
@Override
public AeConfSubjectContrastEntity deleteEntity(AeConfSubjectContrastEntity entity) throws Exception {
Assert.notNull(entity.getId(), "科目对照表删除时科目对照表id不能为空");
aeConfSubjectContrastDao.logicRemove(entity);
//查询子表
AeConfSubjectContrastBEntity ContrastBEntity = new AeConfSubjectContrastBEntity();
ContrastBEntity.setContrastId(Long.valueOf(entity.getId()));
List<AeConfSubjectContrastBEntity> query = aeConfSubjectContrastBDao.query(ContrastBEntity);
for (AeConfSubjectContrastBEntity aeConfSubjectContrastBEntity : query) {
aeConfSubjectContrastBDao.logicRemove(aeConfSubjectContrastBEntity);
}
return null;
}
/**
* 1根据入参影响因素ids分别查询影响因素设置的对应基础档案类型
* 2再按顺序拼接写类型的ids再去科目对照表中查询这个ids对应的对照表
* 3返回对照表对象
*/
@Override
public List<AeConfSubjectContrastEntity> queryByInfluenceIds(AeConfSubjectContrastEntity entity) {
Assert.notNull(entity.getSourceIds(), "根据影响因素ids查询时对照表时来源档案ids不能为空");
String sourceIds = entity.getSourceIds();
String moduleId = entity.getAeConfModuleId();
String[] sourceIdSplit = sourceIds.split(",");
List<String> sourceIdList = new ArrayList<>();
for (String sourceId : sourceIdSplit) {
AeConfInfluenceFactorEntity aeConfInfluenceFactorEntity = new AeConfInfluenceFactorEntity();
aeConfInfluenceFactorEntity.setAeConfModuleId(Long.valueOf(moduleId));
aeConfInfluenceFactorEntity.setId(sourceId);
List<AeConfInfluenceFactorEntity> query = iAeConfInfluenceFactorService.query(aeConfInfluenceFactorEntity);
if (query.size() == 0 || query.size() > 1) {
Assert.state(false, "根据模块id{}影响因素id{},未查询到或查到多个影响因素配置,请检查", moduleId, sourceId);
}
sourceIdList.add(query.get(0).getMappingFileId());
}
//将sourceIdList,拼接起来
String result = String.join(",", sourceIdList);
System.out.println(result);
AeConfSubjectContrastEntity aeConfSubjectContrastEntity = new AeConfSubjectContrastEntity();
aeConfSubjectContrastEntity.setSourceIds(result);
List<AeConfSubjectContrastEntity> query = aeConfSubjectContrastDao.query(aeConfSubjectContrastEntity);
if (query.size() == 0) {
return null;
}
return query;
}
}

View File

@ -0,0 +1,10 @@
package com.hzya.frame.voucher.constant;
/**
* Created by zydd on 2025-06-06 09:38
*/
public class ProfilesActiveConstant {
public static final String LETS_PROD_DATE_SOURCE = "lets-prod";
public static final String LETS_PROFILES_ACTIVE = "prod";
}

View File

@ -1,23 +0,0 @@
#######################澳星环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: GBK
file:
# 日志保存路径
path: E:\yongansystem\log
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: E:\yongansystem\file
zt:
url: http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -1,42 +0,0 @@
#######################dev环境#######################
logging:
#日志级别 指定目录级别
level:
root: warn
encodings: UTF-8
file:
# 日志保存路径
path: /home/webservice/zt/log
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /home/webservice/zt/file
# path: D:\webservice\file
# pluginpath: D:\webservice\plugin
pluginpath: /home/webservice/zt/plugin
# tomcatpath: D:\apache-tomcat-9.0.69\webapps\kangarooDataCenter\WEB-INF\classes\
tomcatpath: /home/webservice/zt/tomcatV3/webapps/kangarooDataCenterV3/WEB-INF/classes/
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
zt:
url: http://127.0.0.1:9082/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -0,0 +1,88 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: F:\01zjya\10Log\kangarooDataCenterV3\voucher-gm\log
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/bussinesscenter_voucher_gm?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=600000000&socketTimeout=600000000&autoReconnectForPools=true&keepAlive=true
username: root
password: 9b1b3fca9719736fe4210f4e0a6df338
driver-class-name: com.mysql.cj.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/liuyang/workspaces/hzya/kangarooDataCenterV3/file
pluginpath: xxx
tomcatpath: D:\server\apache-tomcat-9.0.91
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
#O测试
#letsofs:
# url: http://39.98.58.229/api/edi/u8c/ofs/in
# appKey: 1023142858
# secret: 382e4a2584027a36ac9431103
#O正式
letsofs:
url: http://39.98.168.188:30002/api/edi/u8c/ofs/in
appKey: 2097046829
secret: 35282f251476a3af4f00c7b36
#report
report:
templatesurl: /Users/liuyang/workspaces/hzya/kangarooDataCenterV3/service/src/main/resources/template/TOCTOB正向流程导出模版.xlsx
tempFile: /Users/liuyang/workspaces/hzya/tempfile
#钉钉
DING:
U8C_TEST_AGENTID: 3281181231
CorpId: dingc5b16c82b7f25e64acaaa37764f94726
APIToken: c5530fb4faed387593ee17f4e6bb748d
#钉钉回调
call_back_token: lets123456789lets
call_back_aes_key: MDlmYTY2ODUzMTliNDhmZjg3ZTViNzc3MzYyZWI4MWM
call_back_appkey: ding5qfifcktfqfjlem0
#Client ID (原 AppKey 和 SuiteKey)
APPKEY: ding5qfifcktfqfjlem0
#Client Secret (原 AppSecret 和 SuiteSecret)
AppSecret: BVuLOy_K0F8f5np69VuBeKdb1zfwqhuPsAV49lNbYVbx5TnfSTHjwEcad9Vwzfq1
#钉盘审批空间
SPACEID: 20852670637
#审批模板code
APPROVE_CODE:
#特殊业务处理(新)
SPECIAL_SERVICE_PROCESSING: PROC-AC33FC85-FB44-49FC-B926-1D966AE3BBD2
#采购付款申请(新)
PURCHASE_PAYMENT_REQUEST_NEW: PROC-EC6B5BD2-DE3C-456E-9591-6F7B377E39E4
#采购付款申请(店群专用)
PURCHASE_PAYMENT_REQUEST_SHOP: PROC-285CCF2B-524F-4055-BE62-FC31F490C654
#审批表单空间
APPROVE_FOLDER_SPACE:
#特殊业务处理(新)
SPECIAL_SERVICE_PROCESSING: 157791788097
#采购付款申请(新)
PURCHASE_PAYMENT_REQUEST_NEW: 157828688115
#采购付款申请(店群专用)
PURCHASE_PAYMENT_REQUEST_SHOP: 157828627012

View File

@ -0,0 +1,88 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: F:\01zjya\10Log\kangarooDataCenterV3\voucher-gm\log
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=600000000&socketTimeout=600000000&autoReconnectForPools=true&keepAlive=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/liuyang/workspaces/hzya/kangarooDataCenterV3/file
pluginpath: xxx
tomcatpath: D:\server\apache-tomcat-9.0.91
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
#O测试
#letsofs:
# url: http://39.98.58.229/api/edi/u8c/ofs/in
# appKey: 1023142858
# secret: 382e4a2584027a36ac9431103
#O正式
letsofs:
url: http://39.98.168.188:30002/api/edi/u8c/ofs/in
appKey: 2097046829
secret: 35282f251476a3af4f00c7b36
#report
report:
templatesurl: /Users/liuyang/workspaces/hzya/kangarooDataCenterV3/service/src/main/resources/template/TOCTOB正向流程导出模版.xlsx
tempFile: /Users/liuyang/workspaces/hzya/tempfile
#钉钉
DING:
U8C_TEST_AGENTID: 3281181231
CorpId: dingc5b16c82b7f25e64acaaa37764f94726
APIToken: c5530fb4faed387593ee17f4e6bb748d
#钉钉回调
call_back_token: lets123456789lets
call_back_aes_key: MDlmYTY2ODUzMTliNDhmZjg3ZTViNzc3MzYyZWI4MWM
call_back_appkey: ding5qfifcktfqfjlem0
#Client ID (原 AppKey 和 SuiteKey)
APPKEY: ding5qfifcktfqfjlem0
#Client Secret (原 AppSecret 和 SuiteSecret)
AppSecret: BVuLOy_K0F8f5np69VuBeKdb1zfwqhuPsAV49lNbYVbx5TnfSTHjwEcad9Vwzfq1
#钉盘审批空间
SPACEID: 20852670637
#审批模板code
APPROVE_CODE:
#特殊业务处理(新)
SPECIAL_SERVICE_PROCESSING: PROC-AC33FC85-FB44-49FC-B926-1D966AE3BBD2
#采购付款申请(新)
PURCHASE_PAYMENT_REQUEST_NEW: PROC-EC6B5BD2-DE3C-456E-9591-6F7B377E39E4
#采购付款申请(店群专用)
PURCHASE_PAYMENT_REQUEST_SHOP: PROC-285CCF2B-524F-4055-BE62-FC31F490C654
#审批表单空间
APPROVE_FOLDER_SPACE:
#特殊业务处理(新)
SPECIAL_SERVICE_PROCESSING: 157791788097
#采购付款申请(新)
PURCHASE_PAYMENT_REQUEST_NEW: 157828688115
#采购付款申请(店群专用)
PURCHASE_PAYMENT_REQUEST_SHOP: 157828627012

View File

@ -1,27 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: D:\yongansystem\kangarooDataCenter\v3\logs
spring:
datasource:
dynamic:
datasource:
master:
# url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
# username: root
# password: bd993088e8a7c3dc5f44441617f9b4bf
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: D:\yongansystem\kangarooDataCenter\v3\logs
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -1,82 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/apple/Desktop/log/local
spring:
data:
mongodb:
# host: 192.168.2.237
# port: 27017
# database: businesscenter
# auto-index-creation: true
# password: hzya1314
# username: hzya
flyway:
# 启动flyway migration, 默认为true
enabled: false
datasource:
dynamic:
druid:
filters: stat,log4j2
datasource:
master:
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
# type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
# url: jdbc:dm://hzya.ufyct.com:9040/businesscenter?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
savefile:
# 文件保存路径
path: /Users/apple/Desktop/log/local
tomcatpath: /Users/apple/Desktop/log/local
pluginpath: /Users/apple/Desktop/log/local
zt:
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
server:
port: 10086
# mysqldump -d mylm -hhzya.ufyct.com -p9096 -uroot -phzya1314 >%dirName%\table_view.sql
database:
databaseName: businesscenter
host: 192.168.2.237
port: 3306
username: root
password: hzya@1314
filePase: /Users/apple/Desktop/log
fileName: data.sql
#sftp:
# host: 192.168.2.237
# port: 9091
# username: cs237
# password: hzya@1314
# filePase: /databaseBack

View File

@ -1,23 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/apple/Desktop/log/local
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/apple/Desktop/log/local
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -1,23 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/xiangerlin/work/app/logs/dev
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/xiangerlin/work/app/file/dev
pluginpath: /Users/xiangerlin/work/app/file/dev
tomcatpath: /Users/xiangerlin/work/app/file/dev

View File

@ -1,90 +0,0 @@
#logging:
# #日志级别 指定目录级别
# level:
# root: info
# encodings: UTF-8
# file:
# # 日志保存路径
# path: /zt/log
#spring:
# flyway:
# # 启动flyway migration, 默认为true
# enabled: false
# datasource:
# dynamic:
# druid:
# filters: stat,log4j2
# datasource:
# master:
# url: jdbc:dm://10.75.51.82:5238?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: businesscenter
# password: 6842568689469adad597d144ee104063
# driver-class-name: dm.jdbc.driver.DmDriver
#savefile:
# # 文件保存路径
# path: /zt/file
#公司mysql
#ax:
# url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
#logging:
# #日志级别 指定目录级别warn
# level:
# root: info
# encodings: UTF-8
# file:
# # 日志保存路径
# path: /home/webservice/zt/log
#spring:
# datasource:
# dynamic:
# datasource:
# master:
# url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
# username: root
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
#savefile:
# # 文件保存路径
# path: /home/webservice/zt/file
#公司服务器达梦
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /zt/log
spring:
flyway:
# 启动flyway migration, 默认为true
enabled: false
datasource:
dynamic:
druid:
filters: stat,log4j2
datasource:
master:
url: jdbc:dm://ufidahz.com.cn:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
username: hzyazt
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: dm.jdbc.driver.DmDriver
savefile:
# 文件保存路径
path: /zt/file
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /zt/elecfile
OA:
data_source_code: yc_oa

View File

@ -1,21 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/xiangerlin/work/app/logs/ydc
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/xiangerlin/work/app/logs/ydc

View File

@ -1,31 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/xiangerlin/work/app/logs/yuecheng
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/xiangerlin/work/app/logs/yuecheng
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826F3067A6B93BC3839C836A06007869CD351FBBE388B51F742859388BBC1DE089923AAFBC69E448F15141DDF30EE6CE90185

View File

@ -1,23 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: E:\yongansystem\log
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: E:\yongansystem\log
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface

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