Compare commits
37 Commits
master
...
voucher-gm
Author | SHA1 | Date |
---|---|---|
|
bc62a800ca | |
|
50bdaf9e32 | |
|
8e3e84f1b0 | |
|
06edad895d | |
|
6bcf7c4589 | |
|
ce64c5c219 | |
|
c9fd7fd682 | |
|
ae6b9a2dd7 | |
|
647815da80 | |
|
82a16f8af6 | |
|
36f00eac70 | |
|
67ab11cddc | |
|
dea87559c8 | |
|
926c2f0bda | |
|
202db9a448 | |
|
082a6a1e6e | |
|
29b9d70eb5 | |
|
43b44223b3 | |
|
981f12d480 | |
|
8f20dc7668 | |
|
4d8905f445 | |
|
89a76ef43e | |
|
4e46ee0e8c | |
|
b93aa1f7af | |
|
10c49cb967 | |
|
500bf1e322 | |
|
c4ba9bd0ac | |
|
07b3d8cdcb | |
|
27c69cc33f | |
|
fd6dcba206 | |
|
150ce57bfb | |
|
a3a8cc3143 | |
|
93d141640f | |
|
128ea0c5c3 | |
|
ade8b2c5cb | |
|
0243ae99eb | |
|
bf64f70a1a |
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,370 @@
|
|||
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.mdm.mdmModuleDb.dao.IMdmModuleDbDao;
|
||||
import com.hzya.frame.mdm.mdmModuleDb.entity.MdmModuleDbEntity;
|
||||
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.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 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 IMdmModuleDbDao mdmModuleDbDao;
|
||||
|
||||
@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());
|
||||
mdmDbFiledVO.setDbName(entity.getDbName());
|
||||
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);
|
||||
//辅助核算
|
||||
for (AeConfBdAccsubjEntity aeConfBdAccsubjEntity : all) {
|
||||
List<AeConfBdAccsubjEntity> assists = aeConfBdAccsubjDao.queryAssist(aeConfBdAccsubjEntity);
|
||||
List<String> codes = Optional.ofNullable(assists).orElse(Collections.emptyList()).stream()
|
||||
.map(AeConfBdAccsubjEntity::getBdcode)
|
||||
.filter(s -> s != null && !s.isEmpty())
|
||||
.collect(Collectors.toList());
|
||||
|
||||
List<String> names = Optional.ofNullable(assists).orElse(Collections.emptyList()).stream()
|
||||
.map(AeConfBdAccsubjEntity::getBdname)
|
||||
.filter(s -> s != null && !s.isEmpty())
|
||||
.collect(Collectors.toList());
|
||||
aeConfBdAccsubjEntity.setAssistCodes(codes);
|
||||
aeConfBdAccsubjEntity.setAssistNames(names);
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
//查询表remark,是否包含管理
|
||||
MdmModuleDbEntity mdmModuleDbEntity = new MdmModuleDbEntity();
|
||||
mdmModuleDbEntity.setDbName(mdmDBQueryVO.getTablename());
|
||||
List<MdmModuleDbEntity> dbEntityList = mdmModuleDbDao.query(mdmModuleDbEntity);
|
||||
if (dbEntityList.size() == 0) {
|
||||
return getFailureMessageEntity("该表不存在");
|
||||
}
|
||||
String remark = dbEntityList.get(0).getRemark();
|
||||
if (remark != null && !"".equals(remark)) {
|
||||
if (!remark.contains("管理")) {
|
||||
mdmDBQueryVO.setPkentityorg(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 = "/queryVoucherType", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryVoucherType(@RequestBody BdVoucherTypeVO entity) {
|
||||
try {
|
||||
List<BdVoucherTypeVO> list = mdmDBQueryVODAO.queryVoucherType(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 币种查询
|
||||
*/
|
||||
@RequestMapping(value = "/queryBdCurrtype", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryBdCurrtype(@RequestBody BdCurrtypeVO entity) {
|
||||
try {
|
||||
List<BdCurrtypeVO> list = mdmDBQueryVODAO.queryBdCurrtype(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} 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());
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
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;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-数据配置-科目表(ae_conf_bd_accsubj: table)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-05 17:20:09
|
||||
*/
|
||||
public interface IAeConfBdAccsubjDao extends IBaseDao<AeConfBdAccsubjEntity, String> {
|
||||
|
||||
public List<AeConfBdAccsubjEntity> queryAssist(AeConfBdAccsubjEntity entity);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.dao;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-数据配置-基础数据资源表(ae_conf_bd_bdinfo: table)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-05 10:33:48
|
||||
*/
|
||||
public interface IAeConfBdBdinfoDao extends IBaseDao<AeConfBdBdinfoEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.dao;
|
||||
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.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);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
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);
|
||||
List<BdVoucherTypeVO> queryVoucherType(BdVoucherTypeVO entity);
|
||||
List<BdCurrtypeVO> queryBdCurrtype(BdCurrtypeVO entity);
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
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;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-数据配置-科目表(AeConfBdAccsubj)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-05 17:20:09
|
||||
*/
|
||||
@Repository
|
||||
public class AeConfBdAccsubjDaoImpl extends MybatisGenericDao<AeConfBdAccsubjEntity, String> implements IAeConfBdAccsubjDao {
|
||||
|
||||
@Override
|
||||
public List<AeConfBdAccsubjEntity> queryAssist(AeConfBdAccsubjEntity entity) {
|
||||
List<AeConfBdAccsubjEntity> objects = (List<AeConfBdAccsubjEntity>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.AeConfBdAccsubjDaoImpl.queryAssist", entity);
|
||||
return objects;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.dao.impl;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.bd.dao.IAeConfBdBdinfoDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 会计事项(accounting_event)-配置-数据配置-基础数据资源表(AeConfBdBdinfo)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-05 10:33:48
|
||||
*/
|
||||
@Repository
|
||||
public class AeConfBdBdinfoDaoImpl extends MybatisGenericDao<AeConfBdBdinfoEntity, String> implements IAeConfBdBdinfoDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
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;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BdVoucherTypeVO> queryVoucherType(BdVoucherTypeVO entity) {
|
||||
List<BdVoucherTypeVO> list =(List<BdVoucherTypeVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryVoucherType", entity);
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BdCurrtypeVO> queryBdCurrtype(BdCurrtypeVO entity) {
|
||||
List<BdCurrtypeVO> list =(List<BdCurrtypeVO>) selectList("com.hzya.frame.voucher.ae.comf.bd.dao.impl.MdmDBQueryVODAOImpl.queryBdCurrtype", entity);
|
||||
return list;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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<>(); // 子节点列表
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package com.hzya.frame.voucher.ae.comf.bd.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdBdinfoEntity;
|
||||
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 bdcode;
|
||||
private String bdname;
|
||||
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;
|
||||
private List<String> assistCodes;
|
||||
private List<String> assistNames;
|
||||
}
|
||||
|
|
@ -0,0 +1,153 @@
|
|||
<?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>
|
||||
|
||||
<select id="queryAssist" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdAccsubjEntity">
|
||||
SELECT
|
||||
acc.id as id,
|
||||
acc.pk_accsubj as pk_accsubj,
|
||||
acc.subjcode as subjcode,
|
||||
acc.subjname as subjname,
|
||||
acc.subjlev as subjlev,
|
||||
acc.dispname as dispname,
|
||||
info.bdcode as bdcode,
|
||||
info.bdname as bdname,
|
||||
acc.endflag as endflag,
|
||||
acc.pk_corp as pk_corp,
|
||||
acc.pk_glorgbook as pk_glorgbook,
|
||||
acc.sealflag as sealflag,
|
||||
acc.stoped as stoped,
|
||||
acc.dr as dr,
|
||||
acc.ts as ts
|
||||
from
|
||||
mdm_bd_accsubj acc
|
||||
LEFT OUTER JOIN mdm_bd_subjass ass ON acc.pk_accsubj=ass.pk_accsubj
|
||||
LEFT OUTER JOIN mdm_bd_bdinfo info ON ass.pk_bdinfo=info.pk_bdinfo
|
||||
where
|
||||
acc.pk_accsubj=#{pkAccsubj}
|
||||
and acc.pk_glorgbook=#{pkGlorgbook}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,288 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.voucher.ae.comf.bd.dao.impl.AeConfBdBdinfoDaoImpl">
|
||||
|
||||
<resultMap id="get-AeConfBdBdinfoEntity-result"
|
||||
type="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
<result property="accessclass" column="ACCESSCLASS" jdbcType="VARCHAR"/>
|
||||
<result property="basedoctablename" column="BASEDOCTABLENAME" jdbcType="VARCHAR"/>
|
||||
<result property="basedoctablepkname" column="BASEDOCTABLEPKNAME" jdbcType="VARCHAR"/>
|
||||
<result property="bdcode" column="BDCODE" jdbcType="VARCHAR"/>
|
||||
<result property="bdname" column="BDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="bdtype" column="BDTYPE" jdbcType="INTEGER"/>
|
||||
<result property="budgetconst" column="BUDGETCONST" jdbcType="VARCHAR"/>
|
||||
<result property="classcheme" column="CLASSCHEME" jdbcType="VARCHAR"/>
|
||||
<result property="codefieldname" column="CODEFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="coderulegetter" column="CODERULEGETTER" jdbcType="VARCHAR"/>
|
||||
<result property="corpfieldname" column="CORPFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="dr" column="DR" jdbcType="INTEGER"/>
|
||||
<result property="fatherfieldname" column="FATHERFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="funccode" column="FUNCCODE" jdbcType="VARCHAR"/>
|
||||
<result property="isdef" column="ISDEF" jdbcType="VARCHAR"/>
|
||||
<result property="isincludegroupdata" column="ISINCLUDEGROUPDATA" jdbcType="VARCHAR"/>
|
||||
<result property="isparaLevscheme" column="ISPARA_LEVSCHEME" jdbcType="VARCHAR"/>
|
||||
<result property="isselfref" column="ISSELFREF" jdbcType="VARCHAR"/>
|
||||
<result property="namefieldname" column="NAMEFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="orgbookfieldname" column="ORGBOOKFIELDNAME" jdbcType="VARCHAR"/>
|
||||
<result property="orgtypecode" column="ORGTYPECODE" jdbcType="VARCHAR"/>
|
||||
<result property="pkBdinfo" column="PK_BDINFO" jdbcType="VARCHAR"/>
|
||||
<result property="pkCorp" column="PK_CORP" jdbcType="VARCHAR"/>
|
||||
<result property="pkDefdef" column="PK_DEFDEF" jdbcType="VARCHAR"/>
|
||||
<result property="refnodename" column="REFNODENAME" jdbcType="VARCHAR"/>
|
||||
<result property="refsystem" column="REFSYSTEM" jdbcType="VARCHAR"/>
|
||||
<result property="reserved1" column="RESERVED1" jdbcType="VARCHAR"/>
|
||||
<result property="reserved2" column="RESERVED2" jdbcType="VARCHAR"/>
|
||||
<result property="selfrefclass" column="SELFREFCLASS" jdbcType="VARCHAR"/>
|
||||
<result property="tablename" column="TABLENAME" jdbcType="VARCHAR"/>
|
||||
<result property="tablepkname" column="TABLEPKNAME" jdbcType="VARCHAR"/>
|
||||
<result property="ts" column="TS" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id="AeConfBdBdinfoEntity_Base_Column_List">
|
||||
ACCESSCLASS
|
||||
,BASEDOCTABLENAME
|
||||
,BASEDOCTABLEPKNAME
|
||||
,BDCODE
|
||||
,BDNAME
|
||||
,BDTYPE
|
||||
,BUDGETCONST
|
||||
,CLASSCHEME
|
||||
,CODEFIELDNAME
|
||||
,CODERULEGETTER
|
||||
,CORPFIELDNAME
|
||||
,DR
|
||||
,FATHERFIELDNAME
|
||||
,FUNCCODE
|
||||
,ISDEF
|
||||
,ISINCLUDEGROUPDATA
|
||||
,ISPARA_LEVSCHEME
|
||||
,ISSELFREF
|
||||
,NAMEFIELDNAME
|
||||
,ORGBOOKFIELDNAME
|
||||
,ORGTYPECODE
|
||||
,PK_BDINFO
|
||||
,PK_CORP
|
||||
,PK_DEFDEF
|
||||
,REFNODENAME
|
||||
,REFSYSTEM
|
||||
,RESERVED1
|
||||
,RESERVED2
|
||||
,SELFREFCLASS
|
||||
,TABLENAME
|
||||
,TABLEPKNAME
|
||||
,TS
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-AeConfBdBdinfoEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
select
|
||||
<include refid="AeConfBdBdinfoEntity_Base_Column_List"/>
|
||||
from ae_conf_bd_bdinfo
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="accessclass != null and accessclass != ''">and ACCESSCLASS = #{accessclass}</if>
|
||||
<if test="basedoctablename != null and basedoctablename != ''">and BASEDOCTABLENAME = #{basedoctablename}
|
||||
</if>
|
||||
<if test="basedoctablepkname != null and basedoctablepkname != ''">and BASEDOCTABLEPKNAME =
|
||||
#{basedoctablepkname}
|
||||
</if>
|
||||
<if test="bdcode != null and bdcode != ''">and BDCODE = #{bdcode}</if>
|
||||
<if test="bdname != null and bdname != ''">and BDNAME = #{bdname}</if>
|
||||
<if test="bdtype != null">and BDTYPE = #{bdtype}</if>
|
||||
<if test="budgetconst != null and budgetconst != ''">and BUDGETCONST = #{budgetconst}</if>
|
||||
<if test="classcheme != null and classcheme != ''">and CLASSCHEME = #{classcheme}</if>
|
||||
<if test="codefieldname != null and codefieldname != ''">and CODEFIELDNAME = #{codefieldname}</if>
|
||||
<if test="coderulegetter != null and coderulegetter != ''">and CODERULEGETTER = #{coderulegetter}</if>
|
||||
<if test="corpfieldname != null and corpfieldname != ''">and CORPFIELDNAME = #{corpfieldname}</if>
|
||||
<if test="dr != null">and DR = #{dr}</if>
|
||||
<if test="fatherfieldname != null and fatherfieldname != ''">and FATHERFIELDNAME = #{fatherfieldname}</if>
|
||||
<if test="funccode != null and funccode != ''">and FUNCCODE = #{funccode}</if>
|
||||
<if test="isdef != null and isdef != ''">and ISDEF = #{isdef}</if>
|
||||
<if test="isincludegroupdata != null and isincludegroupdata != ''">and ISINCLUDEGROUPDATA =
|
||||
#{isincludegroupdata}
|
||||
</if>
|
||||
<if test="isparaLevscheme != null and isparaLevscheme != ''">and ISPARA_LEVSCHEME = #{isparaLevscheme}</if>
|
||||
<if test="isselfref != null and isselfref != ''">and ISSELFREF = #{isselfref}</if>
|
||||
<if test="namefieldname != null and namefieldname != ''">and NAMEFIELDNAME = #{namefieldname}</if>
|
||||
<if test="orgbookfieldname != null and orgbookfieldname != ''">and ORGBOOKFIELDNAME = #{orgbookfieldname}
|
||||
</if>
|
||||
<if test="orgtypecode != null and orgtypecode != ''">and ORGTYPECODE = #{orgtypecode}</if>
|
||||
<if test="pkBdinfo != null and pkBdinfo != ''">and PK_BDINFO = #{pkBdinfo}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and PK_CORP = #{pkCorp}</if>
|
||||
<if test="pkDefdef != null and pkDefdef != ''">and PK_DEFDEF = #{pkDefdef}</if>
|
||||
<if test="refnodename != null and refnodename != ''">and REFNODENAME = #{refnodename}</if>
|
||||
<if test="refsystem != null and refsystem != ''">and REFSYSTEM = #{refsystem}</if>
|
||||
<if test="reserved1 != null and reserved1 != ''">and RESERVED1 = #{reserved1}</if>
|
||||
<if test="reserved2 != null and reserved2 != ''">and RESERVED2 = #{reserved2}</if>
|
||||
<if test="selfrefclass != null and selfrefclass != ''">and SELFREFCLASS = #{selfrefclass}</if>
|
||||
<if test="tablename != null and tablename != ''">and TABLENAME = #{tablename}</if>
|
||||
<if test="tablepkname != null and tablepkname != ''">and TABLEPKNAME = #{tablepkname}</if>
|
||||
<if test="ts != null">and TS = #{ts}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
select count(1) from ae_conf_bd_bdinfo
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="accessclass != null and accessclass != ''">and ACCESSCLASS = #{accessclass}</if>
|
||||
<if test="basedoctablename != null and basedoctablename != ''">and BASEDOCTABLENAME = #{basedoctablename}
|
||||
</if>
|
||||
<if test="basedoctablepkname != null and basedoctablepkname != ''">and BASEDOCTABLEPKNAME =
|
||||
#{basedoctablepkname}
|
||||
</if>
|
||||
<if test="bdcode != null and bdcode != ''">and BDCODE = #{bdcode}</if>
|
||||
<if test="bdname != null and bdname != ''">and BDNAME = #{bdname}</if>
|
||||
<if test="bdtype != null">and BDTYPE = #{bdtype}</if>
|
||||
<if test="budgetconst != null and budgetconst != ''">and BUDGETCONST = #{budgetconst}</if>
|
||||
<if test="classcheme != null and classcheme != ''">and CLASSCHEME = #{classcheme}</if>
|
||||
<if test="codefieldname != null and codefieldname != ''">and CODEFIELDNAME = #{codefieldname}</if>
|
||||
<if test="coderulegetter != null and coderulegetter != ''">and CODERULEGETTER = #{coderulegetter}</if>
|
||||
<if test="corpfieldname != null and corpfieldname != ''">and CORPFIELDNAME = #{corpfieldname}</if>
|
||||
<if test="dr != null">and DR = #{dr}</if>
|
||||
<if test="fatherfieldname != null and fatherfieldname != ''">and FATHERFIELDNAME = #{fatherfieldname}</if>
|
||||
<if test="funccode != null and funccode != ''">and FUNCCODE = #{funccode}</if>
|
||||
<if test="isdef != null and isdef != ''">and ISDEF = #{isdef}</if>
|
||||
<if test="isincludegroupdata != null and isincludegroupdata != ''">and ISINCLUDEGROUPDATA =
|
||||
#{isincludegroupdata}
|
||||
</if>
|
||||
<if test="isparaLevscheme != null and isparaLevscheme != ''">and ISPARA_LEVSCHEME = #{isparaLevscheme}</if>
|
||||
<if test="isselfref != null and isselfref != ''">and ISSELFREF = #{isselfref}</if>
|
||||
<if test="namefieldname != null and namefieldname != ''">and NAMEFIELDNAME = #{namefieldname}</if>
|
||||
<if test="orgbookfieldname != null and orgbookfieldname != ''">and ORGBOOKFIELDNAME = #{orgbookfieldname}
|
||||
</if>
|
||||
<if test="orgtypecode != null and orgtypecode != ''">and ORGTYPECODE = #{orgtypecode}</if>
|
||||
<if test="pkBdinfo != null and pkBdinfo != ''">and PK_BDINFO = #{pkBdinfo}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and PK_CORP = #{pkCorp}</if>
|
||||
<if test="pkDefdef != null and pkDefdef != ''">and PK_DEFDEF = #{pkDefdef}</if>
|
||||
<if test="refnodename != null and refnodename != ''">and REFNODENAME = #{refnodename}</if>
|
||||
<if test="refsystem != null and refsystem != ''">and REFSYSTEM = #{refsystem}</if>
|
||||
<if test="reserved1 != null and reserved1 != ''">and RESERVED1 = #{reserved1}</if>
|
||||
<if test="reserved2 != null and reserved2 != ''">and RESERVED2 = #{reserved2}</if>
|
||||
<if test="selfrefclass != null and selfrefclass != ''">and SELFREFCLASS = #{selfrefclass}</if>
|
||||
<if test="tablename != null and tablename != ''">and TABLENAME = #{tablename}</if>
|
||||
<if test="tablepkname != null and tablepkname != ''">and TABLEPKNAME = #{tablepkname}</if>
|
||||
<if test="ts != null">and TS = #{ts}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-AeConfBdBdinfoEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
select
|
||||
<include refid="AeConfBdBdinfoEntity_Base_Column_List"/>
|
||||
from ae_conf_bd_bdinfo
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="accessclass != null and accessclass != ''">and ACCESSCLASS like concat('%',#{accessclass},'%')
|
||||
</if>
|
||||
<if test="basedoctablename != null and basedoctablename != ''">and BASEDOCTABLENAME like
|
||||
concat('%',#{basedoctablename},'%')
|
||||
</if>
|
||||
<if test="basedoctablepkname != null and basedoctablepkname != ''">and BASEDOCTABLEPKNAME like
|
||||
concat('%',#{basedoctablepkname},'%')
|
||||
</if>
|
||||
<if test="bdcode != null and bdcode != ''">and BDCODE like concat('%',#{bdcode},'%')</if>
|
||||
<if test="bdname != null and bdname != ''">and BDNAME like concat('%',#{bdname},'%')</if>
|
||||
<if test="bdtype != null">and BDTYPE like concat('%',#{bdtype},'%')</if>
|
||||
<if test="budgetconst != null and budgetconst != ''">and BUDGETCONST like concat('%',#{budgetconst},'%')
|
||||
</if>
|
||||
<if test="classcheme != null and classcheme != ''">and CLASSCHEME like concat('%',#{classcheme},'%')</if>
|
||||
<if test="codefieldname != null and codefieldname != ''">and CODEFIELDNAME like
|
||||
concat('%',#{codefieldname},'%')
|
||||
</if>
|
||||
<if test="coderulegetter != null and coderulegetter != ''">and CODERULEGETTER like
|
||||
concat('%',#{coderulegetter},'%')
|
||||
</if>
|
||||
<if test="corpfieldname != null and corpfieldname != ''">and CORPFIELDNAME like
|
||||
concat('%',#{corpfieldname},'%')
|
||||
</if>
|
||||
<if test="dr != null">and DR like concat('%',#{dr},'%')</if>
|
||||
<if test="fatherfieldname != null and fatherfieldname != ''">and FATHERFIELDNAME like
|
||||
concat('%',#{fatherfieldname},'%')
|
||||
</if>
|
||||
<if test="funccode != null and funccode != ''">and FUNCCODE like concat('%',#{funccode},'%')</if>
|
||||
<if test="isdef != null and isdef != ''">and ISDEF like concat('%',#{isdef},'%')</if>
|
||||
<if test="isincludegroupdata != null and isincludegroupdata != ''">and ISINCLUDEGROUPDATA like
|
||||
concat('%',#{isincludegroupdata},'%')
|
||||
</if>
|
||||
<if test="isparaLevscheme != null and isparaLevscheme != ''">and ISPARA_LEVSCHEME like
|
||||
concat('%',#{isparaLevscheme},'%')
|
||||
</if>
|
||||
<if test="isselfref != null and isselfref != ''">and ISSELFREF like concat('%',#{isselfref},'%')</if>
|
||||
<if test="namefieldname != null and namefieldname != ''">and NAMEFIELDNAME like
|
||||
concat('%',#{namefieldname},'%')
|
||||
</if>
|
||||
<if test="orgbookfieldname != null and orgbookfieldname != ''">and ORGBOOKFIELDNAME like
|
||||
concat('%',#{orgbookfieldname},'%')
|
||||
</if>
|
||||
<if test="orgtypecode != null and orgtypecode != ''">and ORGTYPECODE like concat('%',#{orgtypecode},'%')
|
||||
</if>
|
||||
<if test="pkBdinfo != null and pkBdinfo != ''">and PK_BDINFO like concat('%',#{pkBdinfo},'%')</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">and PK_CORP like concat('%',#{pkCorp},'%')</if>
|
||||
<if test="pkDefdef != null and pkDefdef != ''">and PK_DEFDEF like concat('%',#{pkDefdef},'%')</if>
|
||||
<if test="refnodename != null and refnodename != ''">and REFNODENAME like concat('%',#{refnodename},'%')
|
||||
</if>
|
||||
<if test="refsystem != null and refsystem != ''">and REFSYSTEM like concat('%',#{refsystem},'%')</if>
|
||||
<if test="reserved1 != null and reserved1 != ''">and RESERVED1 like concat('%',#{reserved1},'%')</if>
|
||||
<if test="reserved2 != null and reserved2 != ''">and RESERVED2 like concat('%',#{reserved2},'%')</if>
|
||||
<if test="selfrefclass != null and selfrefclass != ''">and SELFREFCLASS like
|
||||
concat('%',#{selfrefclass},'%')
|
||||
</if>
|
||||
<if test="tablename != null and tablename != ''">and TABLENAME like concat('%',#{tablename},'%')</if>
|
||||
<if test="tablepkname != null and tablepkname != ''">and TABLEPKNAME like concat('%',#{tablepkname},'%')
|
||||
</if>
|
||||
<if test="ts != null">and TS like concat('%',#{ts},'%')</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="AeConfBdBdinfoentity_list_or" resultMap="get-AeConfBdBdinfoEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.AeConfBdBdinfoEntity">
|
||||
select
|
||||
<include refid="AeConfBdBdinfoEntity_Base_Column_List"/>
|
||||
from ae_conf_bd_bdinfo
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="accessclass != null and accessclass != ''">or ACCESSCLASS = #{accessclass}</if>
|
||||
<if test="basedoctablename != null and basedoctablename != ''">or BASEDOCTABLENAME = #{basedoctablename}
|
||||
</if>
|
||||
<if test="basedoctablepkname != null and basedoctablepkname != ''">or BASEDOCTABLEPKNAME =
|
||||
#{basedoctablepkname}
|
||||
</if>
|
||||
<if test="bdcode != null and bdcode != ''">or BDCODE = #{bdcode}</if>
|
||||
<if test="bdname != null and bdname != ''">or BDNAME = #{bdname}</if>
|
||||
<if test="bdtype != null">or BDTYPE = #{bdtype}</if>
|
||||
<if test="budgetconst != null and budgetconst != ''">or BUDGETCONST = #{budgetconst}</if>
|
||||
<if test="classcheme != null and classcheme != ''">or CLASSCHEME = #{classcheme}</if>
|
||||
<if test="codefieldname != null and codefieldname != ''">or CODEFIELDNAME = #{codefieldname}</if>
|
||||
<if test="coderulegetter != null and coderulegetter != ''">or CODERULEGETTER = #{coderulegetter}</if>
|
||||
<if test="corpfieldname != null and corpfieldname != ''">or CORPFIELDNAME = #{corpfieldname}</if>
|
||||
<if test="dr != null">or DR = #{dr}</if>
|
||||
<if test="fatherfieldname != null and fatherfieldname != ''">or FATHERFIELDNAME = #{fatherfieldname}</if>
|
||||
<if test="funccode != null and funccode != ''">or FUNCCODE = #{funccode}</if>
|
||||
<if test="isdef != null and isdef != ''">or ISDEF = #{isdef}</if>
|
||||
<if test="isincludegroupdata != null and isincludegroupdata != ''">or ISINCLUDEGROUPDATA =
|
||||
#{isincludegroupdata}
|
||||
</if>
|
||||
<if test="isparaLevscheme != null and isparaLevscheme != ''">or ISPARA_LEVSCHEME = #{isparaLevscheme}</if>
|
||||
<if test="isselfref != null and isselfref != ''">or ISSELFREF = #{isselfref}</if>
|
||||
<if test="namefieldname != null and namefieldname != ''">or NAMEFIELDNAME = #{namefieldname}</if>
|
||||
<if test="orgbookfieldname != null and orgbookfieldname != ''">or ORGBOOKFIELDNAME = #{orgbookfieldname}
|
||||
</if>
|
||||
<if test="orgtypecode != null and orgtypecode != ''">or ORGTYPECODE = #{orgtypecode}</if>
|
||||
<if test="pkBdinfo != null and pkBdinfo != ''">or PK_BDINFO = #{pkBdinfo}</if>
|
||||
<if test="pkCorp != null and pkCorp != ''">or PK_CORP = #{pkCorp}</if>
|
||||
<if test="pkDefdef != null and pkDefdef != ''">or PK_DEFDEF = #{pkDefdef}</if>
|
||||
<if test="refnodename != null and refnodename != ''">or REFNODENAME = #{refnodename}</if>
|
||||
<if test="refsystem != null and refsystem != ''">or REFSYSTEM = #{refsystem}</if>
|
||||
<if test="reserved1 != null and reserved1 != ''">or RESERVED1 = #{reserved1}</if>
|
||||
<if test="reserved2 != null and reserved2 != ''">or RESERVED2 = #{reserved2}</if>
|
||||
<if test="selfrefclass != null and selfrefclass != ''">or SELFREFCLASS = #{selfrefclass}</if>
|
||||
<if test="tablename != null and tablename != ''">or TABLENAME = #{tablename}</if>
|
||||
<if test="tablepkname != null and tablepkname != ''">or TABLEPKNAME = #{tablepkname}</if>
|
||||
<if test="ts != null">or TS = #{ts}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
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-25 10:20
|
||||
* 会计辅助核算项目
|
||||
*/
|
||||
@Data
|
||||
public class BdAccassitemVO extends BaseEntity {
|
||||
private String id;
|
||||
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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
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-27 09:52
|
||||
* 币种表
|
||||
*/
|
||||
@Data
|
||||
public class BdCurrtypeVO extends BaseEntity {
|
||||
private String id;
|
||||
private String pkCurrtype;
|
||||
private String code;
|
||||
private String name;
|
||||
private String currtypesign;
|
||||
private String dr;
|
||||
private String ts;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
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-25 14:01
|
||||
* 凭证类别
|
||||
*/
|
||||
@Data
|
||||
public class BdVoucherTypeVO extends BaseEntity {
|
||||
private String id;
|
||||
private String pkVouchertype;
|
||||
private String code;
|
||||
private String name;
|
||||
private String pkGlorgbook;
|
||||
private String shortname;
|
||||
private String enablestate;
|
||||
private String sealflag;
|
||||
private String dr;
|
||||
private String ts;
|
||||
}
|
|
@ -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;//是否主表项目
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
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;
|
||||
|
||||
private String pkentityorg;
|
||||
}
|
|
@ -0,0 +1,159 @@
|
|||
<?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>
|
||||
<if test="pkentityorg !=null and pkentityorg != null">pk_corp= #{pkentityorg}</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 id,pk_accassitem,code,name,pk_defdef,classid,tablename,tablepkname,dr,ts FROM mdm_bd_accassitem
|
||||
</select>
|
||||
|
||||
<select id="queryVoucherType" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdVoucherTypeVO" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdVoucherTypeVO">
|
||||
SELECT
|
||||
id,
|
||||
pk_vouchertype as pkVouchertype,
|
||||
code,
|
||||
name,
|
||||
pk_glorgbook as pkGlorgbook,
|
||||
shortname,
|
||||
enablestate,
|
||||
sealflag,
|
||||
dr,
|
||||
ts
|
||||
FROM mdm_bd_vouchertype
|
||||
</select>
|
||||
<select id="queryBdCurrtype" parameterType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdCurrtypeVO" resultType="com.hzya.frame.voucher.ae.comf.bd.entity.vo.BdCurrtypeVO">
|
||||
SELECT id,pk_currtype as pkCurrtype,code,name,currtypesign,dr,ts from mdm_bd_currtype
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
<?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">
|
||||
id,
|
||||
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.id AS id,
|
||||
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>
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -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> {
|
||||
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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{
|
||||
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
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());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/queryMdmAndFiledssByMdmId", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryMdmAndFiledssByMdmId(@RequestBody MdmModuleDbEntity entity) {
|
||||
try {
|
||||
List<MdmModuleDbEntity> all = mdmService.queryMdmAndFiledssByMdmId(entity);
|
||||
return getSuccessMessageEntity("请求成功", all);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -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 {
|
||||
List<MdmModuleDbEntity> all = mdmService.queryMdmAndFiledssByMdmId(entity);
|
||||
return getSuccessMessageEntity("请求成功", all);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -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> {
|
||||
|
||||
}
|
||||
|
|
@ -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> {
|
||||
|
||||
}
|
||||
|
|
@ -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{
|
||||
|
||||
}
|
||||
|
|
@ -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 {
|
||||
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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 {
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
|
||||
List<MdmModuleDbEntity> queryMdmAndFiledssByMdmId(MdmModuleDbEntity entity);
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,205 @@
|
|||
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);
|
||||
List<MdmModuleDbFiledsEntity> collect = filedList.stream().filter(filed -> "1".equals(filed.getViewType())).collect(Collectors.toList());
|
||||
mdmModuleDbEntity.setSublistMdmModuleDbFileds(collect);
|
||||
res.add(mdmModuleDbEntity);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询字段rules,查询是否关联别的表
|
||||
*
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<MdmModuleDbEntity> queryMdmAndFiledssByMdmId(MdmModuleDbEntity entity) {
|
||||
i = 0;
|
||||
List<MdmModuleDbEntity> mdmModuleDbEntityList = queryMdmAndFiledsByMdmId(entity);
|
||||
if (mdmModuleDbEntityList == null || mdmModuleDbEntityList.size() == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (MdmModuleDbEntity mdmModuleDbEntity : mdmModuleDbEntityList) {
|
||||
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);
|
||||
queryFiledssByDbname(dbEntity, filedRule);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
return mdmModuleDbEntityList;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 字段规则挂在字段上,不重新封装
|
||||
*/
|
||||
public void queryFiledssByDbname(MdmModuleDbFiledsEntity dbfiledEntity, MdmModuleDbFiledsRuleEntity filedRule){
|
||||
if (i >= 5) {
|
||||
Assert.state(false, "字段:{},关联层数超过5层,请查询是否存在死循环嵌套", 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);
|
||||
dbfiledEntity.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())) {
|
||||
System.out.println(mdmModuleDbFiledsRule);
|
||||
queryFiledssByDbname(dbFiledEntity, mdmModuleDbFiledsRule);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据db_name查询字段,注意循环嵌套
|
||||
* 根据rule form_name='typeOptionRuleForm' rule_code='service'
|
||||
*/
|
||||
public void queryFiledsByDbname(MdmModuleDbFiledsEntity dbfiledEntity, MdmModuleDbFiledsRuleEntity filedRule) {
|
||||
if (i >= 5) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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> {
|
||||
|
||||
}
|
||||
|
|
@ -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> {
|
||||
|
||||
}
|
||||
|
|
@ -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> {
|
||||
|
||||
}
|
||||
|
|
@ -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{
|
||||
|
||||
}
|
||||
|
|
@ -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{
|
||||
|
||||
}
|
||||
|
|
@ -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{
|
||||
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,499 @@
|
|||
<?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_update"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.subject.entity.AeConfSubjectClassificationEntity">
|
||||
update ae_conf_subject_classification set
|
||||
code = #{code},
|
||||
name = #{name},
|
||||
aeConfModuleId = #{aeConfModuleId},
|
||||
pk_corp = #{pkCorp},
|
||||
pkglorgbook = #{pkglorgbook},
|
||||
glorgbookcode = #{glorgbookcode},
|
||||
glorgbookname = #{glorgbookname},
|
||||
factorIds = #{factorids},
|
||||
factorNames = #{factornames},
|
||||
contrast_id = #{contrastId},
|
||||
contrast_code = #{contrastCode},
|
||||
contrast_name = #{contrastName},
|
||||
desdocvalue_default_id = #{desdocvalueDefaultId},
|
||||
desdocvalue_default_name = #{desdocvalueDefaultName},
|
||||
remark = #{remark},
|
||||
def1 = #{def1},
|
||||
def2 = #{def2},
|
||||
def3 = #{def3},
|
||||
def4 = #{def4},
|
||||
def5 = #{def5},
|
||||
def6 = #{def6},
|
||||
def7 = #{def7},
|
||||
def8 = #{def8},
|
||||
def9 = #{def9},
|
||||
def10 = #{def10},
|
||||
create_time = #{create_time},
|
||||
create_user = #{createUser},
|
||||
modify_time = #{modify_time},
|
||||
modify_time = now(),
|
||||
modify_user = #{modifyUser},
|
||||
sts = #{sts}
|
||||
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>
|
||||
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.hzya.frame.voucher.ae.comf.subject.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* Created by zydd on 2025-06-04 11:24
|
||||
* 科目对照来源档案使用
|
||||
*/
|
||||
@Data
|
||||
public class MappingFileVO {
|
||||
private String id;
|
||||
private String code;
|
||||
private String name;
|
||||
}
|
|
@ -0,0 +1,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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.controller;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateAssistEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.template.service.IAeConfVoucherTemplateAssistService;
|
||||
import com.hzya.frame.voucher.ae.comf.template.service.IAeConfVoucherTemplateService;
|
||||
import com.hzya.frame.web.action.DefaultController;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by zydd on 2025-06-25 16:51
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ae/conf/temp/assist")
|
||||
public class TemplateAssistController extends DefaultController {
|
||||
|
||||
@Autowired
|
||||
private IAeConfVoucherTemplateService templateService;
|
||||
@Autowired
|
||||
private IAeConfVoucherTemplateAssistService templateAssistService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*/
|
||||
@RequestMapping(value = "/queryByTemplateId", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryByTemplateId(@RequestBody AeConfVoucherTemplateAssistEntity entity) {
|
||||
try {
|
||||
List<AeConfVoucherTemplateAssistEntity> list = templateAssistService.queryByTemplateId(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
@RequestMapping(value = "/save", method = RequestMethod.POST)
|
||||
public JsonResultEntity saveEntity(@RequestBody AeConfVoucherTemplateAssistEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateAssistEntity list = templateAssistService.saveEntity(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
@RequestMapping(value = "/update", method = RequestMethod.POST)
|
||||
public JsonResultEntity updateEntity(@RequestBody AeConfVoucherTemplateAssistEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateAssistEntity list = templateAssistService.updateEntity(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
@RequestMapping(value = "/delete", method = RequestMethod.POST)
|
||||
public JsonResultEntity deleteEntity(@RequestBody AeConfVoucherTemplateAssistEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateAssistEntity list = templateAssistService.deleteEntity(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} 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());
|
||||
// }
|
||||
// }
|
||||
}
|
|
@ -0,0 +1,124 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.controller;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.template.service.IAeConfVoucherTemplateService;
|
||||
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.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by zydd on 2025-06-25 16:51
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ae/conf/temp")
|
||||
public class TemplateController extends DefaultController {
|
||||
|
||||
@Autowired
|
||||
private IAeConfVoucherTemplateService templateService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*/
|
||||
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryAll(@RequestBody AeConfVoucherTemplateEntity entity) {
|
||||
try {
|
||||
List<AeConfVoucherTemplateEntity> list = templateService.queryAll(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询
|
||||
*/
|
||||
@RequestMapping(value = "/queryById", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryById(@RequestBody AeConfVoucherTemplateEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateEntity aeConfVoucherTemplateEntity = templateService.queryById(entity);
|
||||
return getSuccessMessageEntity("请求成功", aeConfVoucherTemplateEntity);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@RequestMapping(value = "/save", method = RequestMethod.POST)
|
||||
public JsonResultEntity save(@RequestBody List<AeConfVoucherTemplateEntity> list) {
|
||||
try {
|
||||
List<AeConfVoucherTemplateEntity> aeConfVoucherTemplateEntityList = templateService.saveEntity(list);
|
||||
return getSuccessMessageEntity("请求成功", aeConfVoucherTemplateEntityList);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/update", method = RequestMethod.POST)
|
||||
public JsonResultEntity updateEntity(@RequestBody AeConfVoucherTemplateEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateEntity aeConfVoucherTemplateEntity = templateService.updateEntity(entity);
|
||||
return getSuccessMessageEntity("请求成功", aeConfVoucherTemplateEntity);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/delete", method = RequestMethod.POST)
|
||||
public JsonResultEntity deleteEntity(@RequestBody AeConfVoucherTemplateEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateEntity aeConfVoucherTemplateEntity = templateService.deleteEntity(entity);
|
||||
return getSuccessMessageEntity("请求成功", aeConfVoucherTemplateEntity);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 摘要校验
|
||||
*/
|
||||
@RequestMapping(value = "/checkAbstract", method = RequestMethod.POST)
|
||||
public JsonResultEntity checkAbstract(@RequestBody AeConfVoucherTemplateEntity entity) {
|
||||
try {
|
||||
boolean status = templateService.checkAbstract(entity);
|
||||
if(status){
|
||||
return getSuccessMessageEntity("校验成功");
|
||||
}else {
|
||||
return getFailureMessageEntity("校验失败");
|
||||
}
|
||||
} 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());
|
||||
// }
|
||||
// }
|
||||
}
|
|
@ -0,0 +1,95 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.controller;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateTypeEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.template.service.IAeConfVoucherTemplateTypeService;
|
||||
import com.hzya.frame.web.action.DefaultController;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by zydd on 2025-06-25 16:51
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ae/conf/temp/type")
|
||||
public class TemplateTypeController extends DefaultController {
|
||||
|
||||
@Autowired
|
||||
private IAeConfVoucherTemplateTypeService templateTypeService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询全部
|
||||
*/
|
||||
@RequestMapping(value = "/queryAll", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryAll(@RequestBody AeConfVoucherTemplateTypeEntity entity) {
|
||||
try {
|
||||
List<AeConfVoucherTemplateTypeEntity> list = templateTypeService.queryAll(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/queryByMdmId", method = RequestMethod.POST)
|
||||
public JsonResultEntity queryByMdmId(@RequestBody AeConfVoucherTemplateTypeEntity entity) {
|
||||
try {
|
||||
List<AeConfVoucherTemplateTypeEntity> list = templateTypeService.queryByMdmId(entity);
|
||||
return getSuccessMessageEntity("请求成功", list);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
@RequestMapping(value = "/save", method = RequestMethod.POST)
|
||||
public JsonResultEntity saveEntity(@RequestBody AeConfVoucherTemplateTypeEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateTypeEntity save = templateTypeService.saveEntity(entity);
|
||||
return getSuccessMessageEntity("请求成功", save);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
@RequestMapping(value = "/update", method = RequestMethod.POST)
|
||||
public JsonResultEntity updateEntity(@RequestBody AeConfVoucherTemplateTypeEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateTypeEntity update = templateTypeService.updateEntity(entity);
|
||||
return getSuccessMessageEntity("请求成功", update);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return getFailureMessageEntity(e.getMessage());
|
||||
}
|
||||
}
|
||||
@RequestMapping(value = "/delete", method = RequestMethod.POST)
|
||||
public JsonResultEntity deleteEntity(@RequestBody AeConfVoucherTemplateTypeEntity entity) {
|
||||
try {
|
||||
AeConfVoucherTemplateTypeEntity update = templateTypeService.deleteEntity(entity);
|
||||
return getSuccessMessageEntity("请求成功");
|
||||
} 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());
|
||||
// }
|
||||
// }
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.dao;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateAssistEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* (ae_conf_voucher_template_assist: table)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-25 16:31:32
|
||||
*/
|
||||
public interface IAeConfVoucherTemplateAssistDao extends IBaseDao<AeConfVoucherTemplateAssistEntity, String> {
|
||||
|
||||
void saveEntity(AeConfVoucherTemplateAssistEntity assistEntity);
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.dao;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* (ae_conf_voucher_template: table)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-25 16:22:52
|
||||
*/
|
||||
public interface IAeConfVoucherTemplateDao extends IBaseDao<AeConfVoucherTemplateEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.dao;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateTypeEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* (ae_conf_voucher_template_type: table)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-07-03 15:27:25
|
||||
*/
|
||||
public interface IAeConfVoucherTemplateTypeDao extends IBaseDao<AeConfVoucherTemplateTypeEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.dao.impl;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateAssistEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.template.dao.IAeConfVoucherTemplateAssistDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* (AeConfVoucherTemplateAssist)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-25 16:31:32
|
||||
*/
|
||||
@Repository
|
||||
public class AeConfVoucherTemplateAssistDaoImpl extends MybatisGenericDao<AeConfVoucherTemplateAssistEntity, String> implements IAeConfVoucherTemplateAssistDao{
|
||||
|
||||
@Override
|
||||
public void saveEntity(AeConfVoucherTemplateAssistEntity assistEntity) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.dao.impl;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.template.dao.IAeConfVoucherTemplateDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* (AeConfVoucherTemplate)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-25 16:22:52
|
||||
*/
|
||||
@Repository
|
||||
public class AeConfVoucherTemplateDaoImpl extends MybatisGenericDao<AeConfVoucherTemplateEntity, String> implements IAeConfVoucherTemplateDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.dao.impl;
|
||||
|
||||
import com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateTypeEntity;
|
||||
import com.hzya.frame.voucher.ae.comf.template.dao.IAeConfVoucherTemplateTypeDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* (AeConfVoucherTemplateType)表数据库访问层
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-07-03 15:27:25
|
||||
*/
|
||||
@Repository
|
||||
public class AeConfVoucherTemplateTypeDaoImpl extends MybatisGenericDao<AeConfVoucherTemplateTypeEntity, String> implements IAeConfVoucherTemplateTypeDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* (AeConfVoucherTemplateAssist)实体类
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-27 16:42:32
|
||||
*/
|
||||
@Data
|
||||
public class AeConfVoucherTemplateAssistEntity extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 关联模板id
|
||||
*/
|
||||
private Long voucherTemplateId;
|
||||
/**
|
||||
* 档案主数据id
|
||||
*/
|
||||
private String mdmId;
|
||||
/**
|
||||
* 档案编码
|
||||
*/
|
||||
private String mdmCode;
|
||||
/**
|
||||
* 档案名称
|
||||
*/
|
||||
private String mdmName;
|
||||
/**
|
||||
* 字段id
|
||||
*/
|
||||
private String fieldId;
|
||||
/**
|
||||
* 字段编码
|
||||
*/
|
||||
private String fieldCode;
|
||||
/**
|
||||
* 字段名称
|
||||
*/
|
||||
private String fieldName;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
private String def1;
|
||||
private String def2;
|
||||
private String def3;
|
||||
private String def4;
|
||||
private String def5;
|
||||
private String def6;
|
||||
private String def7;
|
||||
private String def8;
|
||||
private String def9;
|
||||
private String def10;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createUser;
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
private String modifyUser;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,382 @@
|
|||
<?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.template.dao.impl.AeConfVoucherTemplateAssistDaoImpl">
|
||||
|
||||
<resultMap id="get-AeConfVoucherTemplateAssistEntity-result"
|
||||
type="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateAssistEntity">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="voucherTemplateId" column="voucher_template_id" jdbcType="INTEGER"/>
|
||||
<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="fieldId" column="field_id" jdbcType="VARCHAR"/>
|
||||
<result property="fieldCode" column="field_code" jdbcType="VARCHAR"/>
|
||||
<result property="fieldName" column="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="AeConfVoucherTemplateAssistEntity_Base_Column_List">
|
||||
id
|
||||
,voucher_template_id
|
||||
,mdm_id
|
||||
,mdm_code
|
||||
,mdm_name
|
||||
,field_id
|
||||
,field_code
|
||||
,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-AeConfVoucherTemplateAssistEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateAssistEntity">
|
||||
select
|
||||
<include refid="AeConfVoucherTemplateAssistEntity_Base_Column_List"/>
|
||||
from ae_conf_voucher_template_assist
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id = #{id}</if>
|
||||
<if test="voucherTemplateId != null">and voucher_template_id = #{voucherTemplateId}</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="fieldId != null and fieldId != ''">and field_id = #{fieldId}</if>
|
||||
<if test="fieldCode != null and fieldCode != ''">and field_code = #{fieldCode}</if>
|
||||
<if test="fieldName != null and fieldName != ''">and field_name = #{fieldName}</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.template.entity.AeConfVoucherTemplateAssistEntity">
|
||||
select count(1) from ae_conf_voucher_template_assist
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id = #{id}</if>
|
||||
<if test="voucherTemplateId != null">and voucher_template_id = #{voucherTemplateId}</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="fieldId != null and fieldId != ''">and field_id = #{fieldId}</if>
|
||||
<if test="fieldCode != null and fieldCode != ''">and field_code = #{fieldCode}</if>
|
||||
<if test="fieldName != null and fieldName != ''">and field_name = #{fieldName}</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-AeConfVoucherTemplateAssistEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateAssistEntity">
|
||||
select
|
||||
<include refid="AeConfVoucherTemplateAssistEntity_Base_Column_List"/>
|
||||
from ae_conf_voucher_template_assist
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id like concat('%',#{id},'%')</if>
|
||||
<if test="voucherTemplateId != null">and voucher_template_id like concat('%',#{voucherTemplateId},'%')</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="fieldId != null and fieldId != ''">and field_id like concat('%',#{fieldId},'%')</if>
|
||||
<if test="fieldCode != null and fieldCode != ''">and field_code like concat('%',#{fieldCode},'%')</if>
|
||||
<if test="fieldName != null and fieldName != ''">and field_name like concat('%',#{fieldName},'%')</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="AeConfVoucherTemplateAssistentity_list_or" resultMap="get-AeConfVoucherTemplateAssistEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateAssistEntity">
|
||||
select
|
||||
<include refid="AeConfVoucherTemplateAssistEntity_Base_Column_List"/>
|
||||
from ae_conf_voucher_template_assist
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">or id = #{id}</if>
|
||||
<if test="voucherTemplateId != null">or voucher_template_id = #{voucherTemplateId}</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="fieldId != null and fieldId != ''">or field_id = #{fieldId}</if>
|
||||
<if test="fieldCode != null and fieldCode != ''">or field_code = #{fieldCode}</if>
|
||||
<if test="fieldName != null and fieldName != ''">or field_name = #{fieldName}</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.template.entity.AeConfVoucherTemplateAssistEntity"
|
||||
keyProperty="id" useGeneratedKeys="true">
|
||||
insert into ae_conf_voucher_template_assist(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null">id ,</if>
|
||||
<if test="voucherTemplateId != null">voucher_template_id ,</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="fieldId != null and fieldId != ''">field_id ,</if>
|
||||
<if test="fieldCode != null and fieldCode != ''">field_code ,</if>
|
||||
<if test="fieldName != null and fieldName != ''">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="createUser != null and createUser != ''">create_user ,</if>
|
||||
<if test="modify_time != null">modify_time ,</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">modify_user ,</if>
|
||||
<if test="sts != null and sts != ''">sts ,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null">#{id} ,</if>
|
||||
<if test="voucherTemplateId != null">#{voucherTemplateId} ,</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="fieldId != null and fieldId != ''">#{fieldId} ,</if>
|
||||
<if test="fieldCode != null and fieldCode != ''">#{fieldCode} ,</if>
|
||||
<if test="fieldName != null and fieldName != ''">#{fieldName} ,</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="createUser != null and createUser != ''">#{createUser} ,</if>
|
||||
<if test="modify_time != null">#{modify_time} ,</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_voucher_template_assist(voucher_template_id, mdm_id, mdm_code, mdm_name, field_id,
|
||||
field_code, 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.voucherTemplateId},#{entity.mdmId},#{entity.mdmCode},#{entity.mdmName},#{entity.fieldId},#{entity.fieldCode},#{entity.fieldName},#{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_voucher_template_assist(voucher_template_id, mdm_id, mdm_code, mdm_name, field_id,
|
||||
field_code, 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.voucherTemplateId},#{entity.mdmId},#{entity.mdmCode},#{entity.mdmName},#{entity.fieldId},#{entity.fieldCode},#{entity.fieldName},#{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
|
||||
voucher_template_id = values(voucher_template_id),
|
||||
mdm_id = values(mdm_id),
|
||||
mdm_code = values(mdm_code),
|
||||
mdm_name = values(mdm_name),
|
||||
field_id = values(field_id),
|
||||
field_code = values(field_code),
|
||||
field_name = values(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.template.entity.AeConfVoucherTemplateAssistEntity">
|
||||
update ae_conf_voucher_template_assist set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="voucherTemplateId != null">voucher_template_id = #{voucherTemplateId},</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="fieldId != null and fieldId != ''">field_id = #{fieldId},</if>
|
||||
<if test="fieldCode != null and fieldCode != ''">field_code = #{fieldCode},</if>
|
||||
<if test="fieldName != null and fieldName != ''">field_name = #{fieldName},</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.template.entity.AeConfVoucherTemplateAssistEntity">
|
||||
update ae_conf_voucher_template_assist
|
||||
set sts= 'N',
|
||||
modify_time =now()
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateAssistEntity">
|
||||
update ae_conf_voucher_template_assist 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="voucherTemplateId != null">and voucher_template_id = #{voucherTemplateId}</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="fieldId != null and fieldId != ''">and field_id = #{fieldId}</if>
|
||||
<if test="fieldCode != null and fieldCode != ''">and field_code = #{fieldCode}</if>
|
||||
<if test="fieldName != null and fieldName != ''">and field_name = #{fieldName}</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_voucher_template_assist
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,600 @@
|
|||
package com.hzya.frame.voucher.ae.comf.template.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* (AeConfVoucherTemplate)实体类
|
||||
*
|
||||
* @author zydd
|
||||
* @since 2025-06-27 14:57:25
|
||||
*/
|
||||
public class AeConfVoucherTemplateEntity extends BaseEntity {
|
||||
|
||||
/**
|
||||
* 主数据id
|
||||
*/
|
||||
private String mdmId;
|
||||
/**
|
||||
* 模板类型id
|
||||
*/
|
||||
private String templateTypeId;
|
||||
/**
|
||||
* 账薄主键
|
||||
*/
|
||||
private String pkGlorgbook;
|
||||
/**
|
||||
* 账簿编码
|
||||
*/
|
||||
private String glOrgbookCode;
|
||||
/**
|
||||
* 账簿名称
|
||||
*/
|
||||
private String glOrgbookName;
|
||||
/**
|
||||
* 凭证类别ID
|
||||
*/
|
||||
private String voucherTypeId;
|
||||
/**
|
||||
* 凭证类别code
|
||||
*/
|
||||
private String voucherTypeCode;
|
||||
/**
|
||||
* 凭证类别name
|
||||
*/
|
||||
private String voucherTypeName;
|
||||
/**
|
||||
* 业务单元
|
||||
*/
|
||||
private String businessUnitId;
|
||||
/**
|
||||
* 业务单元code
|
||||
*/
|
||||
private String businessUnitCode;
|
||||
/**
|
||||
* 业务单元name
|
||||
*/
|
||||
private String businessUnitName;
|
||||
/**
|
||||
* 会计科目(分类定义)
|
||||
*/
|
||||
private Long subjectClassificationId;
|
||||
private String subjectClassificationCode;
|
||||
private String subjectClassificationName;
|
||||
/**
|
||||
* 币种字段
|
||||
*/
|
||||
private String currencyField;
|
||||
private String currencyFieldCode;
|
||||
private String currencyFieldName;
|
||||
/**
|
||||
* 币种
|
||||
*/
|
||||
private String pkCurrtype;
|
||||
/**
|
||||
* 摘要前端传入
|
||||
*/
|
||||
private String abstractStr;
|
||||
/**
|
||||
* 摘要拼接之后
|
||||
*/
|
||||
private String abstractRes;
|
||||
/**
|
||||
* 汇率
|
||||
*/
|
||||
private String exchangeRate;
|
||||
/**
|
||||
* 借方数量字段
|
||||
*/
|
||||
private String jNumField;
|
||||
private String jNumFieldCode;
|
||||
private String jNumFieldName;
|
||||
|
||||
/**
|
||||
* 借方原币金额字段
|
||||
*/
|
||||
private String jYbSumField;
|
||||
private String jYbSumFieldCode;
|
||||
private String jYbSumFieldName;
|
||||
/**
|
||||
* 借方本币金额字段
|
||||
*/
|
||||
private String jBbSumField;
|
||||
private String jBbSumFieldCode;
|
||||
private String jBbSumFieldName;
|
||||
/**
|
||||
* 贷方数量字段
|
||||
*/
|
||||
private String dNumField;
|
||||
private String dNumFieldCode;
|
||||
private String dNumFieldName;
|
||||
/**
|
||||
* 贷方原币金额字段
|
||||
*/
|
||||
private String dYbSumField;
|
||||
private String dYbSumFieldCode;
|
||||
private String dYbSumFieldName;
|
||||
/**
|
||||
* 贷方本币金额字段
|
||||
*/
|
||||
private String dBbSumField;
|
||||
private String dBbSumFieldCode;
|
||||
private String dBbSumFieldName;
|
||||
/**
|
||||
* 现金流量项目主键
|
||||
*/
|
||||
private String pkCashflow;
|
||||
/**
|
||||
* 现金流量项目明细主键
|
||||
*/
|
||||
private String pkSubrelation;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
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<AeConfVoucherTemplateAssistEntity> assistEntityList;
|
||||
|
||||
|
||||
public String getMdmId() {
|
||||
return mdmId;
|
||||
}
|
||||
|
||||
public void setMdmId(String mdmId) {
|
||||
this.mdmId = mdmId;
|
||||
}
|
||||
|
||||
public String getPkGlorgbook() {
|
||||
return pkGlorgbook;
|
||||
}
|
||||
|
||||
public void setPkGlorgbook(String pkGlorgbook) {
|
||||
this.pkGlorgbook = pkGlorgbook;
|
||||
}
|
||||
|
||||
public String getGlOrgbookCode() {
|
||||
return glOrgbookCode;
|
||||
}
|
||||
|
||||
public void setGlOrgbookCode(String glOrgbookCode) {
|
||||
this.glOrgbookCode = glOrgbookCode;
|
||||
}
|
||||
|
||||
public String getGlOrgbookName() {
|
||||
return glOrgbookName;
|
||||
}
|
||||
|
||||
public void setGlOrgbookName(String glOrgbookName) {
|
||||
this.glOrgbookName = glOrgbookName;
|
||||
}
|
||||
|
||||
public String getVoucherTypeId() {
|
||||
return voucherTypeId;
|
||||
}
|
||||
|
||||
public void setVoucherTypeId(String voucherTypeId) {
|
||||
this.voucherTypeId = voucherTypeId;
|
||||
}
|
||||
|
||||
public String getVoucherTypeCode() {
|
||||
return voucherTypeCode;
|
||||
}
|
||||
|
||||
public void setVoucherTypeCode(String voucherTypeCode) {
|
||||
this.voucherTypeCode = voucherTypeCode;
|
||||
}
|
||||
|
||||
public String getVoucherTypeName() {
|
||||
return voucherTypeName;
|
||||
}
|
||||
|
||||
public void setVoucherTypeName(String voucherTypeName) {
|
||||
this.voucherTypeName = voucherTypeName;
|
||||
}
|
||||
|
||||
public String getBusinessUnitId() {
|
||||
return businessUnitId;
|
||||
}
|
||||
|
||||
public void setBusinessUnitId(String businessUnitId) {
|
||||
this.businessUnitId = businessUnitId;
|
||||
}
|
||||
|
||||
public String getBusinessUnitCode() {
|
||||
return businessUnitCode;
|
||||
}
|
||||
|
||||
public void setBusinessUnitCode(String businessUnitCode) {
|
||||
this.businessUnitCode = businessUnitCode;
|
||||
}
|
||||
|
||||
public String getBusinessUnitName() {
|
||||
return businessUnitName;
|
||||
}
|
||||
|
||||
public void setBusinessUnitName(String businessUnitName) {
|
||||
this.businessUnitName = businessUnitName;
|
||||
}
|
||||
|
||||
public Long getSubjectClassificationId() {
|
||||
return subjectClassificationId;
|
||||
}
|
||||
|
||||
public void setSubjectClassificationId(Long subjectClassificationId) {
|
||||
this.subjectClassificationId = subjectClassificationId;
|
||||
}
|
||||
|
||||
public String getSubjectClassificationCode() {
|
||||
return subjectClassificationCode;
|
||||
}
|
||||
|
||||
public void setSubjectClassificationCode(String subjectClassificationCode) {
|
||||
this.subjectClassificationCode = subjectClassificationCode;
|
||||
}
|
||||
|
||||
public String getSubjectClassificationName() {
|
||||
return subjectClassificationName;
|
||||
}
|
||||
|
||||
public void setSubjectClassificationName(String subjectClassificationName) {
|
||||
this.subjectClassificationName = subjectClassificationName;
|
||||
}
|
||||
|
||||
public String getCurrencyField() {
|
||||
return currencyField;
|
||||
}
|
||||
|
||||
public void setCurrencyField(String currencyField) {
|
||||
this.currencyField = currencyField;
|
||||
}
|
||||
|
||||
public String getCurrencyFieldCode() {
|
||||
return currencyFieldCode;
|
||||
}
|
||||
|
||||
public void setCurrencyFieldCode(String currencyFieldCode) {
|
||||
this.currencyFieldCode = currencyFieldCode;
|
||||
}
|
||||
|
||||
public String getCurrencyFieldName() {
|
||||
return currencyFieldName;
|
||||
}
|
||||
|
||||
public void setCurrencyFieldName(String currencyFieldName) {
|
||||
this.currencyFieldName = currencyFieldName;
|
||||
}
|
||||
|
||||
public String getPkCurrtype() {
|
||||
return pkCurrtype;
|
||||
}
|
||||
|
||||
public void setPkCurrtype(String pkCurrtype) {
|
||||
this.pkCurrtype = pkCurrtype;
|
||||
}
|
||||
|
||||
public String getAbstractStr() {
|
||||
return abstractStr;
|
||||
}
|
||||
|
||||
public void setAbstractStr(String abstractStr) {
|
||||
this.abstractStr = abstractStr;
|
||||
}
|
||||
|
||||
public String getAbstractRes() {
|
||||
return abstractRes;
|
||||
}
|
||||
|
||||
public void setAbstractRes(String abstractRes) {
|
||||
this.abstractRes = abstractRes;
|
||||
}
|
||||
|
||||
public String getExchangeRate() {
|
||||
return exchangeRate;
|
||||
}
|
||||
|
||||
public void setExchangeRate(String exchangeRate) {
|
||||
this.exchangeRate = exchangeRate;
|
||||
}
|
||||
|
||||
public String getjNumField() {
|
||||
return jNumField;
|
||||
}
|
||||
|
||||
public void setjNumField(String jNumField) {
|
||||
this.jNumField = jNumField;
|
||||
}
|
||||
|
||||
public String getjNumFieldCode() {
|
||||
return jNumFieldCode;
|
||||
}
|
||||
|
||||
public void setjNumFieldCode(String jNumFieldCode) {
|
||||
this.jNumFieldCode = jNumFieldCode;
|
||||
}
|
||||
|
||||
public String getjNumFieldName() {
|
||||
return jNumFieldName;
|
||||
}
|
||||
|
||||
public void setjNumFieldName(String jNumFieldName) {
|
||||
this.jNumFieldName = jNumFieldName;
|
||||
}
|
||||
|
||||
public String getjYbSumField() {
|
||||
return jYbSumField;
|
||||
}
|
||||
|
||||
public void setjYbSumField(String jYbSumField) {
|
||||
this.jYbSumField = jYbSumField;
|
||||
}
|
||||
|
||||
public String getjYbSumFieldCode() {
|
||||
return jYbSumFieldCode;
|
||||
}
|
||||
|
||||
public void setjYbSumFieldCode(String jYbSumFieldCode) {
|
||||
this.jYbSumFieldCode = jYbSumFieldCode;
|
||||
}
|
||||
|
||||
public String getjYbSumFieldName() {
|
||||
return jYbSumFieldName;
|
||||
}
|
||||
|
||||
public void setjYbSumFieldName(String jYbSumFieldName) {
|
||||
this.jYbSumFieldName = jYbSumFieldName;
|
||||
}
|
||||
|
||||
public String getjBbSumField() {
|
||||
return jBbSumField;
|
||||
}
|
||||
|
||||
public void setjBbSumField(String jBbSumField) {
|
||||
this.jBbSumField = jBbSumField;
|
||||
}
|
||||
|
||||
public String getjBbSumFieldCode() {
|
||||
return jBbSumFieldCode;
|
||||
}
|
||||
|
||||
public void setjBbSumFieldCode(String jBbSumFieldCode) {
|
||||
this.jBbSumFieldCode = jBbSumFieldCode;
|
||||
}
|
||||
|
||||
public String getjBbSumFieldName() {
|
||||
return jBbSumFieldName;
|
||||
}
|
||||
|
||||
public void setjBbSumFieldName(String jBbSumFieldName) {
|
||||
this.jBbSumFieldName = jBbSumFieldName;
|
||||
}
|
||||
|
||||
public String getdNumField() {
|
||||
return dNumField;
|
||||
}
|
||||
|
||||
public void setdNumField(String dNumField) {
|
||||
this.dNumField = dNumField;
|
||||
}
|
||||
|
||||
public String getdNumFieldCode() {
|
||||
return dNumFieldCode;
|
||||
}
|
||||
|
||||
public void setdNumFieldCode(String dNumFieldCode) {
|
||||
this.dNumFieldCode = dNumFieldCode;
|
||||
}
|
||||
|
||||
public String getdNumFieldName() {
|
||||
return dNumFieldName;
|
||||
}
|
||||
|
||||
public void setdNumFieldName(String dNumFieldName) {
|
||||
this.dNumFieldName = dNumFieldName;
|
||||
}
|
||||
|
||||
public String getdYbSumField() {
|
||||
return dYbSumField;
|
||||
}
|
||||
|
||||
public void setdYbSumField(String dYbSumField) {
|
||||
this.dYbSumField = dYbSumField;
|
||||
}
|
||||
|
||||
public String getdYbSumFieldCode() {
|
||||
return dYbSumFieldCode;
|
||||
}
|
||||
|
||||
public void setdYbSumFieldCode(String dYbSumFieldCode) {
|
||||
this.dYbSumFieldCode = dYbSumFieldCode;
|
||||
}
|
||||
|
||||
public String getdYbSumFieldName() {
|
||||
return dYbSumFieldName;
|
||||
}
|
||||
|
||||
public void setdYbSumFieldName(String dYbSumFieldName) {
|
||||
this.dYbSumFieldName = dYbSumFieldName;
|
||||
}
|
||||
|
||||
public String getdBbSumField() {
|
||||
return dBbSumField;
|
||||
}
|
||||
|
||||
public void setdBbSumField(String dBbSumField) {
|
||||
this.dBbSumField = dBbSumField;
|
||||
}
|
||||
|
||||
public String getdBbSumFieldCode() {
|
||||
return dBbSumFieldCode;
|
||||
}
|
||||
|
||||
public void setdBbSumFieldCode(String dBbSumFieldCode) {
|
||||
this.dBbSumFieldCode = dBbSumFieldCode;
|
||||
}
|
||||
|
||||
public String getdBbSumFieldName() {
|
||||
return dBbSumFieldName;
|
||||
}
|
||||
|
||||
public void setdBbSumFieldName(String dBbSumFieldName) {
|
||||
this.dBbSumFieldName = dBbSumFieldName;
|
||||
}
|
||||
|
||||
public String getPkCashflow() {
|
||||
return pkCashflow;
|
||||
}
|
||||
|
||||
public void setPkCashflow(String pkCashflow) {
|
||||
this.pkCashflow = pkCashflow;
|
||||
}
|
||||
|
||||
public String getPkSubrelation() {
|
||||
return pkSubrelation;
|
||||
}
|
||||
|
||||
public void setPkSubrelation(String pkSubrelation) {
|
||||
this.pkSubrelation = pkSubrelation;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getDef1() {
|
||||
return def1;
|
||||
}
|
||||
|
||||
public void setDef1(String def1) {
|
||||
this.def1 = def1;
|
||||
}
|
||||
|
||||
public String getDef2() {
|
||||
return def2;
|
||||
}
|
||||
|
||||
public void setDef2(String def2) {
|
||||
this.def2 = def2;
|
||||
}
|
||||
|
||||
public String getDef3() {
|
||||
return def3;
|
||||
}
|
||||
|
||||
public void setDef3(String def3) {
|
||||
this.def3 = def3;
|
||||
}
|
||||
|
||||
public String getDef4() {
|
||||
return def4;
|
||||
}
|
||||
|
||||
public void setDef4(String def4) {
|
||||
this.def4 = def4;
|
||||
}
|
||||
|
||||
public String getDef5() {
|
||||
return def5;
|
||||
}
|
||||
|
||||
public void setDef5(String def5) {
|
||||
this.def5 = def5;
|
||||
}
|
||||
|
||||
public String getDef6() {
|
||||
return def6;
|
||||
}
|
||||
|
||||
public void setDef6(String def6) {
|
||||
this.def6 = def6;
|
||||
}
|
||||
|
||||
public String getDef7() {
|
||||
return def7;
|
||||
}
|
||||
|
||||
public void setDef7(String def7) {
|
||||
this.def7 = def7;
|
||||
}
|
||||
|
||||
public String getDef8() {
|
||||
return def8;
|
||||
}
|
||||
|
||||
public void setDef8(String def8) {
|
||||
this.def8 = def8;
|
||||
}
|
||||
|
||||
public String getDef9() {
|
||||
return def9;
|
||||
}
|
||||
|
||||
public void setDef9(String def9) {
|
||||
this.def9 = def9;
|
||||
}
|
||||
|
||||
public String getDef10() {
|
||||
return def10;
|
||||
}
|
||||
|
||||
public void setDef10(String def10) {
|
||||
this.def10 = def10;
|
||||
}
|
||||
|
||||
public String getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(String createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public List<AeConfVoucherTemplateAssistEntity> getAssistEntityList() {
|
||||
return assistEntityList;
|
||||
}
|
||||
|
||||
public void setAssistEntityList(List<AeConfVoucherTemplateAssistEntity> assistEntityList) {
|
||||
this.assistEntityList = assistEntityList;
|
||||
}
|
||||
|
||||
public String getTemplateTypeId() {
|
||||
return templateTypeId;
|
||||
}
|
||||
|
||||
public void setTemplateTypeId(String templateTypeId) {
|
||||
this.templateTypeId = templateTypeId;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,932 @@
|
|||
<?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.template.dao.impl.AeConfVoucherTemplateDaoImpl">
|
||||
|
||||
<resultMap id="get-AeConfVoucherTemplateEntity-result"
|
||||
type="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||
<result property="templateTypeId" column="template_type_id" jdbcType="VARCHAR"/>
|
||||
<result property="pkGlorgbook" column="pk_glorgbook" jdbcType="VARCHAR"/>
|
||||
<result property="glOrgbookCode" column="gl_orgbook_code" jdbcType="VARCHAR"/>
|
||||
<result property="glOrgbookName" column="gl_orgbook_name" jdbcType="VARCHAR"/>
|
||||
<result property="voucherTypeId" column="voucher_type_id" jdbcType="VARCHAR"/>
|
||||
<result property="voucherTypeCode" column="voucher_type_code" jdbcType="VARCHAR"/>
|
||||
<result property="voucherTypeName" column="voucher_type_name" jdbcType="VARCHAR"/>
|
||||
<result property="businessUnitId" column="business_unit_id" jdbcType="VARCHAR"/>
|
||||
<result property="businessUnitCode" column="business_unit_code" jdbcType="VARCHAR"/>
|
||||
<result property="businessUnitName" column="business_unit_name" jdbcType="VARCHAR"/>
|
||||
<result property="subjectClassificationId" column="subject_classification_id" jdbcType="INTEGER"/>
|
||||
<result property="subjectClassificationCode" column="subject_classification_code" jdbcType="VARCHAR"/>
|
||||
<result property="subjectClassificationName" column="subject_classification_name" jdbcType="VARCHAR"/>
|
||||
<result property="currencyField" column="currency_field" jdbcType="VARCHAR"/>
|
||||
<result property="currencyFieldCode" column="currency_field_code" jdbcType="VARCHAR"/>
|
||||
<result property="currencyFieldName" column="currency_field_name" jdbcType="VARCHAR"/>
|
||||
<result property="pkCurrtype" column="pk_currtype" jdbcType="VARCHAR"/>
|
||||
<result property="abstractStr" column="abstract_str" jdbcType="VARCHAR"/>
|
||||
<result property="abstractRes" column="abstract_res" jdbcType="VARCHAR"/>
|
||||
<result property="exchangeRate" column="exchange_rate" jdbcType="VARCHAR"/>
|
||||
<result property="jNumField" column="j_num_field" jdbcType="VARCHAR"/>
|
||||
<result property="jNumFieldCode" column="j_num_field_code" jdbcType="VARCHAR"/>
|
||||
<result property="jNumFieldName" column="j_num_field_name" jdbcType="VARCHAR"/>
|
||||
<result property="jYbSumField" column="j_yb_sum_field" jdbcType="VARCHAR"/>
|
||||
<result property="jYbSumFieldCode" column="j_yb_sum_field_code" jdbcType="VARCHAR"/>
|
||||
<result property="jYbSumFieldName" column="j_yb_sum_field_name" jdbcType="VARCHAR"/>
|
||||
<result property="jBbSumField" column="j_bb_sum_field" jdbcType="VARCHAR"/>
|
||||
<result property="jBbSumFieldCode" column="j_bb_sum_field_code" jdbcType="VARCHAR"/>
|
||||
<result property="jBbSumFieldName" column="j_bb_sum_field_name" jdbcType="VARCHAR"/>
|
||||
<result property="dNumField" column="d_num_field" jdbcType="VARCHAR"/>
|
||||
<result property="dNumFieldCode" column="d_num_field_code" jdbcType="VARCHAR"/>
|
||||
<result property="dNumFieldName" column="d_num_field_name" jdbcType="VARCHAR"/>
|
||||
<result property="dYbSumField" column="d_yb_sum_field" jdbcType="VARCHAR"/>
|
||||
<result property="dYbSumFieldCode" column="d_yb_sum_field_code" jdbcType="VARCHAR"/>
|
||||
<result property="dYbSumFieldName" column="d_yb_sum_field_name" jdbcType="VARCHAR"/>
|
||||
<result property="dBbSumField" column="d_bb_sum_field" jdbcType="VARCHAR"/>
|
||||
<result property="dBbSumFieldCode" column="d_bb_sum_field_code" jdbcType="VARCHAR"/>
|
||||
<result property="dBbSumFieldName" column="d_bb_sum_field_name" jdbcType="VARCHAR"/>
|
||||
<result property="pkCashflow" column="pk_cashflow" jdbcType="VARCHAR"/>
|
||||
<result property="pkSubrelation" column="pk_subrelation" 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="AeConfVoucherTemplateEntity_Base_Column_List">
|
||||
id
|
||||
,mdm_id
|
||||
,template_type_id
|
||||
,pk_glorgbook
|
||||
,gl_orgbook_code
|
||||
,gl_orgbook_name
|
||||
,voucher_type_id
|
||||
,voucher_type_code
|
||||
,voucher_type_name
|
||||
,business_unit_id
|
||||
,business_unit_code
|
||||
,business_unit_name
|
||||
,subject_classification_id
|
||||
,subject_classification_code
|
||||
,subject_classification_name
|
||||
,currency_field
|
||||
,currency_field_code
|
||||
,currency_field_name
|
||||
,pk_currtype
|
||||
,abstract_str
|
||||
,abstract_res
|
||||
,exchange_rate
|
||||
,j_num_field
|
||||
,j_num_field_code
|
||||
,j_num_field_name
|
||||
,j_yb_sum_field
|
||||
,j_yb_sum_field_code
|
||||
,j_yb_sum_field_name
|
||||
,j_bb_sum_field
|
||||
,j_bb_sum_field_code
|
||||
,j_bb_sum_field_name
|
||||
,d_num_field
|
||||
,d_num_field_code
|
||||
,d_num_field_name
|
||||
,d_yb_sum_field
|
||||
,d_yb_sum_field_code
|
||||
,d_yb_sum_field_name
|
||||
,d_bb_sum_field
|
||||
,d_bb_sum_field_code
|
||||
,d_bb_sum_field_name
|
||||
,pk_cashflow
|
||||
,pk_subrelation
|
||||
,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-AeConfVoucherTemplateEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity">
|
||||
select
|
||||
<include refid="AeConfVoucherTemplateEntity_Base_Column_List"/>
|
||||
from ae_conf_voucher_template
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id = #{id}</if>
|
||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||
<if test="templateTypeId != null and templateTypeId != ''">and template_type_id = #{templateTypeId}</if>
|
||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</if>
|
||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code = #{glOrgbookCode}</if>
|
||||
<if test="glOrgbookName != null and glOrgbookName != ''">and gl_orgbook_name = #{glOrgbookName}</if>
|
||||
<if test="voucherTypeId != null and voucherTypeId != ''">and voucher_type_id = #{voucherTypeId}</if>
|
||||
<if test="voucherTypeCode != null and voucherTypeCode != ''">and voucher_type_code = #{voucherTypeCode}</if>
|
||||
<if test="voucherTypeName != null and voucherTypeName != ''">and voucher_type_name = #{voucherTypeName}</if>
|
||||
<if test="businessUnitId != null and businessUnitId != ''">and business_unit_id = #{businessUnitId}</if>
|
||||
<if test="businessUnitCode != null and businessUnitCode != ''">and business_unit_code =
|
||||
#{businessUnitCode}
|
||||
</if>
|
||||
<if test="businessUnitName != null and businessUnitName != ''">and business_unit_name =
|
||||
#{businessUnitName}
|
||||
</if>
|
||||
<if test="subjectClassificationId != null">and subject_classification_id = #{subjectClassificationId}</if>
|
||||
<if test="subjectClassificationCode != null and subjectClassificationCode != ''">and
|
||||
subject_classification_code = #{subjectClassificationCode}
|
||||
</if>
|
||||
<if test="subjectClassificationName != null and subjectClassificationName != ''">and
|
||||
subject_classification_name = #{subjectClassificationName}
|
||||
</if>
|
||||
<if test="currencyField != null and currencyField != ''">and currency_field = #{currencyField}</if>
|
||||
<if test="currencyFieldCode != null and currencyFieldCode != ''">and currency_field_code =
|
||||
#{currencyFieldCode}
|
||||
</if>
|
||||
<if test="currencyFieldName != null and currencyFieldName != ''">and currency_field_name =
|
||||
#{currencyFieldName}
|
||||
</if>
|
||||
<if test="pkCurrtype != null and pkCurrtype != ''">and pk_currtype = #{pkCurrtype}</if>
|
||||
<if test="abstractStr != null and abstractStr != ''">and abstract_str = #{abstractStr}</if>
|
||||
<if test="abstractRes != null and abstractRes != ''">and abstract_res = #{abstractRes}</if>
|
||||
<if test="exchangeRate != null and exchangeRate != ''">and exchange_rate = #{exchangeRate}</if>
|
||||
<if test="jNumField != null and jNumField != ''">and j_num_field = #{jNumField}</if>
|
||||
<if test="jNumFieldCode != null and jNumFieldCode != ''">and j_num_field_code = #{jNumFieldCode}</if>
|
||||
<if test="jNumFieldName != null and jNumFieldName != ''">and j_num_field_name = #{jNumFieldName}</if>
|
||||
<if test="jYbSumField != null and jYbSumField != ''">and j_yb_sum_field = #{jYbSumField}</if>
|
||||
<if test="jYbSumFieldCode != null and jYbSumFieldCode != ''">and j_yb_sum_field_code = #{jYbSumFieldCode}
|
||||
</if>
|
||||
<if test="jYbSumFieldName != null and jYbSumFieldName != ''">and j_yb_sum_field_name = #{jYbSumFieldName}
|
||||
</if>
|
||||
<if test="jBbSumField != null and jBbSumField != ''">and j_bb_sum_field = #{jBbSumField}</if>
|
||||
<if test="jBbSumFieldCode != null and jBbSumFieldCode != ''">and j_bb_sum_field_code = #{jBbSumFieldCode}
|
||||
</if>
|
||||
<if test="jBbSumFieldName != null and jBbSumFieldName != ''">and j_bb_sum_field_name = #{jBbSumFieldName}
|
||||
</if>
|
||||
<if test="dNumField != null and dNumField != ''">and d_num_field = #{dNumField}</if>
|
||||
<if test="dNumFieldCode != null and dNumFieldCode != ''">and d_num_field_code = #{dNumFieldCode}</if>
|
||||
<if test="dNumFieldName != null and dNumFieldName != ''">and d_num_field_name = #{dNumFieldName}</if>
|
||||
<if test="dYbSumField != null and dYbSumField != ''">and d_yb_sum_field = #{dYbSumField}</if>
|
||||
<if test="dYbSumFieldCode != null and dYbSumFieldCode != ''">and d_yb_sum_field_code = #{dYbSumFieldCode}
|
||||
</if>
|
||||
<if test="dYbSumFieldName != null and dYbSumFieldName != ''">and d_yb_sum_field_name = #{dYbSumFieldName}
|
||||
</if>
|
||||
<if test="dBbSumField != null and dBbSumField != ''">and d_bb_sum_field = #{dBbSumField}</if>
|
||||
<if test="dBbSumFieldCode != null and dBbSumFieldCode != ''">and d_bb_sum_field_code = #{dBbSumFieldCode}
|
||||
</if>
|
||||
<if test="dBbSumFieldName != null and dBbSumFieldName != ''">and d_bb_sum_field_name = #{dBbSumFieldName}
|
||||
</if>
|
||||
<if test="pkCashflow != null and pkCashflow != ''">and pk_cashflow = #{pkCashflow}</if>
|
||||
<if test="pkSubrelation != null and pkSubrelation != ''">and pk_subrelation = #{pkSubrelation}</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.template.entity.AeConfVoucherTemplateEntity">
|
||||
select count(1) from ae_conf_voucher_template
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id = #{id}</if>
|
||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||
<if test="templateTypeId != null and templateTypeId != ''">and template_type_id = #{templateTypeId}</if>
|
||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</if>
|
||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code = #{glOrgbookCode}</if>
|
||||
<if test="glOrgbookName != null and glOrgbookName != ''">and gl_orgbook_name = #{glOrgbookName}</if>
|
||||
<if test="voucherTypeId != null and voucherTypeId != ''">and voucher_type_id = #{voucherTypeId}</if>
|
||||
<if test="voucherTypeCode != null and voucherTypeCode != ''">and voucher_type_code = #{voucherTypeCode}</if>
|
||||
<if test="voucherTypeName != null and voucherTypeName != ''">and voucher_type_name = #{voucherTypeName}</if>
|
||||
<if test="businessUnitId != null and businessUnitId != ''">and business_unit_id = #{businessUnitId}</if>
|
||||
<if test="businessUnitCode != null and businessUnitCode != ''">and business_unit_code =
|
||||
#{businessUnitCode}
|
||||
</if>
|
||||
<if test="businessUnitName != null and businessUnitName != ''">and business_unit_name =
|
||||
#{businessUnitName}
|
||||
</if>
|
||||
<if test="subjectClassificationId != null">and subject_classification_id = #{subjectClassificationId}</if>
|
||||
<if test="subjectClassificationCode != null and subjectClassificationCode != ''">and
|
||||
subject_classification_code = #{subjectClassificationCode}
|
||||
</if>
|
||||
<if test="subjectClassificationName != null and subjectClassificationName != ''">and
|
||||
subject_classification_name = #{subjectClassificationName}
|
||||
</if>
|
||||
<if test="currencyField != null and currencyField != ''">and currency_field = #{currencyField}</if>
|
||||
<if test="currencyFieldCode != null and currencyFieldCode != ''">and currency_field_code =
|
||||
#{currencyFieldCode}
|
||||
</if>
|
||||
<if test="currencyFieldName != null and currencyFieldName != ''">and currency_field_name =
|
||||
#{currencyFieldName}
|
||||
</if>
|
||||
<if test="pkCurrtype != null and pkCurrtype != ''">and pk_currtype = #{pkCurrtype}</if>
|
||||
<if test="abstractStr != null and abstractStr != ''">and abstract_str = #{abstractStr}</if>
|
||||
<if test="abstractRes != null and abstractRes != ''">and abstract_res = #{abstractRes}</if>
|
||||
<if test="exchangeRate != null and exchangeRate != ''">and exchange_rate = #{exchangeRate}</if>
|
||||
<if test="jNumField != null and jNumField != ''">and j_num_field = #{jNumField}</if>
|
||||
<if test="jNumFieldCode != null and jNumFieldCode != ''">and j_num_field_code = #{jNumFieldCode}</if>
|
||||
<if test="jNumFieldName != null and jNumFieldName != ''">and j_num_field_name = #{jNumFieldName}</if>
|
||||
<if test="jYbSumField != null and jYbSumField != ''">and j_yb_sum_field = #{jYbSumField}</if>
|
||||
<if test="jYbSumFieldCode != null and jYbSumFieldCode != ''">and j_yb_sum_field_code = #{jYbSumFieldCode}
|
||||
</if>
|
||||
<if test="jYbSumFieldName != null and jYbSumFieldName != ''">and j_yb_sum_field_name = #{jYbSumFieldName}
|
||||
</if>
|
||||
<if test="jBbSumField != null and jBbSumField != ''">and j_bb_sum_field = #{jBbSumField}</if>
|
||||
<if test="jBbSumFieldCode != null and jBbSumFieldCode != ''">and j_bb_sum_field_code = #{jBbSumFieldCode}
|
||||
</if>
|
||||
<if test="jBbSumFieldName != null and jBbSumFieldName != ''">and j_bb_sum_field_name = #{jBbSumFieldName}
|
||||
</if>
|
||||
<if test="dNumField != null and dNumField != ''">and d_num_field = #{dNumField}</if>
|
||||
<if test="dNumFieldCode != null and dNumFieldCode != ''">and d_num_field_code = #{dNumFieldCode}</if>
|
||||
<if test="dNumFieldName != null and dNumFieldName != ''">and d_num_field_name = #{dNumFieldName}</if>
|
||||
<if test="dYbSumField != null and dYbSumField != ''">and d_yb_sum_field = #{dYbSumField}</if>
|
||||
<if test="dYbSumFieldCode != null and dYbSumFieldCode != ''">and d_yb_sum_field_code = #{dYbSumFieldCode}
|
||||
</if>
|
||||
<if test="dYbSumFieldName != null and dYbSumFieldName != ''">and d_yb_sum_field_name = #{dYbSumFieldName}
|
||||
</if>
|
||||
<if test="dBbSumField != null and dBbSumField != ''">and d_bb_sum_field = #{dBbSumField}</if>
|
||||
<if test="dBbSumFieldCode != null and dBbSumFieldCode != ''">and d_bb_sum_field_code = #{dBbSumFieldCode}
|
||||
</if>
|
||||
<if test="dBbSumFieldName != null and dBbSumFieldName != ''">and d_bb_sum_field_name = #{dBbSumFieldName}
|
||||
</if>
|
||||
<if test="pkCashflow != null and pkCashflow != ''">and pk_cashflow = #{pkCashflow}</if>
|
||||
<if test="pkSubrelation != null and pkSubrelation != ''">and pk_subrelation = #{pkSubrelation}</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-AeConfVoucherTemplateEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity">
|
||||
select
|
||||
<include refid="AeConfVoucherTemplateEntity_Base_Column_List"/>
|
||||
from ae_conf_voucher_template
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">and id like concat('%',#{id},'%')</if>
|
||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
||||
<if test="templateTypeId != null and templateTypeId != ''">and template_type_id like concat('%',#{templateTypeId},'%')</if>
|
||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook like concat('%',#{pkGlorgbook},'%')
|
||||
</if>
|
||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code like
|
||||
concat('%',#{glOrgbookCode},'%')
|
||||
</if>
|
||||
<if test="glOrgbookName != null and glOrgbookName != ''">and gl_orgbook_name like
|
||||
concat('%',#{glOrgbookName},'%')
|
||||
</if>
|
||||
<if test="voucherTypeId != null and voucherTypeId != ''">and voucher_type_id like
|
||||
concat('%',#{voucherTypeId},'%')
|
||||
</if>
|
||||
<if test="voucherTypeCode != null and voucherTypeCode != ''">and voucher_type_code like
|
||||
concat('%',#{voucherTypeCode},'%')
|
||||
</if>
|
||||
<if test="voucherTypeName != null and voucherTypeName != ''">and voucher_type_name like
|
||||
concat('%',#{voucherTypeName},'%')
|
||||
</if>
|
||||
<if test="businessUnitId != null and businessUnitId != ''">and business_unit_id like
|
||||
concat('%',#{businessUnitId},'%')
|
||||
</if>
|
||||
<if test="businessUnitCode != null and businessUnitCode != ''">and business_unit_code like
|
||||
concat('%',#{businessUnitCode},'%')
|
||||
</if>
|
||||
<if test="businessUnitName != null and businessUnitName != ''">and business_unit_name like
|
||||
concat('%',#{businessUnitName},'%')
|
||||
</if>
|
||||
<if test="subjectClassificationId != null">and subject_classification_id like
|
||||
concat('%',#{subjectClassificationId},'%')
|
||||
</if>
|
||||
<if test="subjectClassificationCode != null and subjectClassificationCode != ''">and
|
||||
subject_classification_code like concat('%',#{subjectClassificationCode},'%')
|
||||
</if>
|
||||
<if test="subjectClassificationName != null and subjectClassificationName != ''">and
|
||||
subject_classification_name like concat('%',#{subjectClassificationName},'%')
|
||||
</if>
|
||||
<if test="currencyField != null and currencyField != ''">and currency_field like
|
||||
concat('%',#{currencyField},'%')
|
||||
</if>
|
||||
<if test="currencyFieldCode != null and currencyFieldCode != ''">and currency_field_code like
|
||||
concat('%',#{currencyFieldCode},'%')
|
||||
</if>
|
||||
<if test="currencyFieldName != null and currencyFieldName != ''">and currency_field_name like
|
||||
concat('%',#{currencyFieldName},'%')
|
||||
</if>
|
||||
<if test="pkCurrtype != null and pkCurrtype != ''">and pk_currtype like concat('%',#{pkCurrtype},'%')</if>
|
||||
<if test="abstractStr != null and abstractStr != ''">and abstract_str like concat('%',#{abstractStr},'%')
|
||||
</if>
|
||||
<if test="abstractRes != null and abstractRes != ''">and abstract_res like concat('%',#{abstractRes},'%')
|
||||
</if>
|
||||
<if test="exchangeRate != null and exchangeRate != ''">and exchange_rate like
|
||||
concat('%',#{exchangeRate},'%')
|
||||
</if>
|
||||
<if test="jNumField != null and jNumField != ''">and j_num_field like concat('%',#{jNumField},'%')</if>
|
||||
<if test="jNumFieldCode != null and jNumFieldCode != ''">and j_num_field_code like
|
||||
concat('%',#{jNumFieldCode},'%')
|
||||
</if>
|
||||
<if test="jNumFieldName != null and jNumFieldName != ''">and j_num_field_name like
|
||||
concat('%',#{jNumFieldName},'%')
|
||||
</if>
|
||||
<if test="jYbSumField != null and jYbSumField != ''">and j_yb_sum_field like
|
||||
concat('%',#{jYbSumField},'%')
|
||||
</if>
|
||||
<if test="jYbSumFieldCode != null and jYbSumFieldCode != ''">and j_yb_sum_field_code like
|
||||
concat('%',#{jYbSumFieldCode},'%')
|
||||
</if>
|
||||
<if test="jYbSumFieldName != null and jYbSumFieldName != ''">and j_yb_sum_field_name like
|
||||
concat('%',#{jYbSumFieldName},'%')
|
||||
</if>
|
||||
<if test="jBbSumField != null and jBbSumField != ''">and j_bb_sum_field like
|
||||
concat('%',#{jBbSumField},'%')
|
||||
</if>
|
||||
<if test="jBbSumFieldCode != null and jBbSumFieldCode != ''">and j_bb_sum_field_code like
|
||||
concat('%',#{jBbSumFieldCode},'%')
|
||||
</if>
|
||||
<if test="jBbSumFieldName != null and jBbSumFieldName != ''">and j_bb_sum_field_name like
|
||||
concat('%',#{jBbSumFieldName},'%')
|
||||
</if>
|
||||
<if test="dNumField != null and dNumField != ''">and d_num_field like concat('%',#{dNumField},'%')</if>
|
||||
<if test="dNumFieldCode != null and dNumFieldCode != ''">and d_num_field_code like
|
||||
concat('%',#{dNumFieldCode},'%')
|
||||
</if>
|
||||
<if test="dNumFieldName != null and dNumFieldName != ''">and d_num_field_name like
|
||||
concat('%',#{dNumFieldName},'%')
|
||||
</if>
|
||||
<if test="dYbSumField != null and dYbSumField != ''">and d_yb_sum_field like
|
||||
concat('%',#{dYbSumField},'%')
|
||||
</if>
|
||||
<if test="dYbSumFieldCode != null and dYbSumFieldCode != ''">and d_yb_sum_field_code like
|
||||
concat('%',#{dYbSumFieldCode},'%')
|
||||
</if>
|
||||
<if test="dYbSumFieldName != null and dYbSumFieldName != ''">and d_yb_sum_field_name like
|
||||
concat('%',#{dYbSumFieldName},'%')
|
||||
</if>
|
||||
<if test="dBbSumField != null and dBbSumField != ''">and d_bb_sum_field like
|
||||
concat('%',#{dBbSumField},'%')
|
||||
</if>
|
||||
<if test="dBbSumFieldCode != null and dBbSumFieldCode != ''">and d_bb_sum_field_code like
|
||||
concat('%',#{dBbSumFieldCode},'%')
|
||||
</if>
|
||||
<if test="dBbSumFieldName != null and dBbSumFieldName != ''">and d_bb_sum_field_name like
|
||||
concat('%',#{dBbSumFieldName},'%')
|
||||
</if>
|
||||
<if test="pkCashflow != null and pkCashflow != ''">and pk_cashflow like concat('%',#{pkCashflow},'%')</if>
|
||||
<if test="pkSubrelation != null and pkSubrelation != ''">and pk_subrelation like
|
||||
concat('%',#{pkSubrelation},'%')
|
||||
</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="AeConfVoucherTemplateentity_list_or" resultMap="get-AeConfVoucherTemplateEntity-result"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity">
|
||||
select
|
||||
<include refid="AeConfVoucherTemplateEntity_Base_Column_List"/>
|
||||
from ae_conf_voucher_template
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null">or id = #{id}</if>
|
||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
||||
<if test="templateTypeId != null and templateTypeId != ''">or template_type_id = #{templateTypeId}</if>
|
||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">or pk_glorgbook = #{pkGlorgbook}</if>
|
||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">or gl_orgbook_code = #{glOrgbookCode}</if>
|
||||
<if test="glOrgbookName != null and glOrgbookName != ''">or gl_orgbook_name = #{glOrgbookName}</if>
|
||||
<if test="voucherTypeId != null and voucherTypeId != ''">or voucher_type_id = #{voucherTypeId}</if>
|
||||
<if test="voucherTypeCode != null and voucherTypeCode != ''">or voucher_type_code = #{voucherTypeCode}</if>
|
||||
<if test="voucherTypeName != null and voucherTypeName != ''">or voucher_type_name = #{voucherTypeName}</if>
|
||||
<if test="businessUnitId != null and businessUnitId != ''">or business_unit_id = #{businessUnitId}</if>
|
||||
<if test="businessUnitCode != null and businessUnitCode != ''">or business_unit_code = #{businessUnitCode}
|
||||
</if>
|
||||
<if test="businessUnitName != null and businessUnitName != ''">or business_unit_name = #{businessUnitName}
|
||||
</if>
|
||||
<if test="subjectClassificationId != null">or subject_classification_id = #{subjectClassificationId}</if>
|
||||
<if test="subjectClassificationCode != null and subjectClassificationCode != ''">or
|
||||
subject_classification_code = #{subjectClassificationCode}
|
||||
</if>
|
||||
<if test="subjectClassificationName != null and subjectClassificationName != ''">or
|
||||
subject_classification_name = #{subjectClassificationName}
|
||||
</if>
|
||||
<if test="currencyField != null and currencyField != ''">or currency_field = #{currencyField}</if>
|
||||
<if test="currencyFieldCode != null and currencyFieldCode != ''">or currency_field_code =
|
||||
#{currencyFieldCode}
|
||||
</if>
|
||||
<if test="currencyFieldName != null and currencyFieldName != ''">or currency_field_name =
|
||||
#{currencyFieldName}
|
||||
</if>
|
||||
<if test="pkCurrtype != null and pkCurrtype != ''">or pk_currtype = #{pkCurrtype}</if>
|
||||
<if test="abstractStr != null and abstractStr != ''">or abstract_str = #{abstractStr}</if>
|
||||
<if test="abstractRes != null and abstractRes != ''">or abstract_res = #{abstractRes}</if>
|
||||
<if test="exchangeRate != null and exchangeRate != ''">or exchange_rate = #{exchangeRate}</if>
|
||||
<if test="jNumField != null and jNumField != ''">or j_num_field = #{jNumField}</if>
|
||||
<if test="jNumFieldCode != null and jNumFieldCode != ''">or j_num_field_code = #{jNumFieldCode}</if>
|
||||
<if test="jNumFieldName != null and jNumFieldName != ''">or j_num_field_name = #{jNumFieldName}</if>
|
||||
<if test="jYbSumField != null and jYbSumField != ''">or j_yb_sum_field = #{jYbSumField}</if>
|
||||
<if test="jYbSumFieldCode != null and jYbSumFieldCode != ''">or j_yb_sum_field_code = #{jYbSumFieldCode}
|
||||
</if>
|
||||
<if test="jYbSumFieldName != null and jYbSumFieldName != ''">or j_yb_sum_field_name = #{jYbSumFieldName}
|
||||
</if>
|
||||
<if test="jBbSumField != null and jBbSumField != ''">or j_bb_sum_field = #{jBbSumField}</if>
|
||||
<if test="jBbSumFieldCode != null and jBbSumFieldCode != ''">or j_bb_sum_field_code = #{jBbSumFieldCode}
|
||||
</if>
|
||||
<if test="jBbSumFieldName != null and jBbSumFieldName != ''">or j_bb_sum_field_name = #{jBbSumFieldName}
|
||||
</if>
|
||||
<if test="dNumField != null and dNumField != ''">or d_num_field = #{dNumField}</if>
|
||||
<if test="dNumFieldCode != null and dNumFieldCode != ''">or d_num_field_code = #{dNumFieldCode}</if>
|
||||
<if test="dNumFieldName != null and dNumFieldName != ''">or d_num_field_name = #{dNumFieldName}</if>
|
||||
<if test="dYbSumField != null and dYbSumField != ''">or d_yb_sum_field = #{dYbSumField}</if>
|
||||
<if test="dYbSumFieldCode != null and dYbSumFieldCode != ''">or d_yb_sum_field_code = #{dYbSumFieldCode}
|
||||
</if>
|
||||
<if test="dYbSumFieldName != null and dYbSumFieldName != ''">or d_yb_sum_field_name = #{dYbSumFieldName}
|
||||
</if>
|
||||
<if test="dBbSumField != null and dBbSumField != ''">or d_bb_sum_field = #{dBbSumField}</if>
|
||||
<if test="dBbSumFieldCode != null and dBbSumFieldCode != ''">or d_bb_sum_field_code = #{dBbSumFieldCode}
|
||||
</if>
|
||||
<if test="dBbSumFieldName != null and dBbSumFieldName != ''">or d_bb_sum_field_name = #{dBbSumFieldName}
|
||||
</if>
|
||||
<if test="pkCashflow != null and pkCashflow != ''">or pk_cashflow = #{pkCashflow}</if>
|
||||
<if test="pkSubrelation != null and pkSubrelation != ''">or pk_subrelation = #{pkSubrelation}</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.template.entity.AeConfVoucherTemplateEntity" keyProperty="id"
|
||||
useGeneratedKeys="true">
|
||||
insert into ae_conf_voucher_template(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null">id ,</if>
|
||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
||||
<if test="templateTypeId != null and templateTypeId != ''">template_type_id ,</if>
|
||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">pk_glorgbook ,</if>
|
||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">gl_orgbook_code ,</if>
|
||||
<if test="glOrgbookName != null and glOrgbookName != ''">gl_orgbook_name ,</if>
|
||||
<if test="voucherTypeId != null and voucherTypeId != ''">voucher_type_id ,</if>
|
||||
<if test="voucherTypeCode != null and voucherTypeCode != ''">voucher_type_code ,</if>
|
||||
<if test="voucherTypeName != null and voucherTypeName != ''">voucher_type_name ,</if>
|
||||
<if test="businessUnitId != null and businessUnitId != ''">business_unit_id ,</if>
|
||||
<if test="businessUnitCode != null and businessUnitCode != ''">business_unit_code ,</if>
|
||||
<if test="businessUnitName != null and businessUnitName != ''">business_unit_name ,</if>
|
||||
<if test="subjectClassificationId != null">subject_classification_id ,</if>
|
||||
<if test="subjectClassificationCode != null and subjectClassificationCode != ''">subject_classification_code
|
||||
,
|
||||
</if>
|
||||
<if test="subjectClassificationName != null and subjectClassificationName != ''">subject_classification_name
|
||||
,
|
||||
</if>
|
||||
<if test="currencyField != null and currencyField != ''">currency_field ,</if>
|
||||
<if test="currencyFieldCode != null and currencyFieldCode != ''">currency_field_code ,</if>
|
||||
<if test="currencyFieldName != null and currencyFieldName != ''">currency_field_name ,</if>
|
||||
<if test="pkCurrtype != null and pkCurrtype != ''">pk_currtype ,</if>
|
||||
<if test="abstractStr != null and abstractStr != ''">abstract_str ,</if>
|
||||
<if test="abstractRes != null and abstractRes != ''">abstract_res ,</if>
|
||||
<if test="exchangeRate != null and exchangeRate != ''">exchange_rate ,</if>
|
||||
<if test="jNumField != null and jNumField != ''">j_num_field ,</if>
|
||||
<if test="jNumFieldCode != null and jNumFieldCode != ''">j_num_field_code ,</if>
|
||||
<if test="jNumFieldName != null and jNumFieldName != ''">j_num_field_name ,</if>
|
||||
<if test="jYbSumField != null and jYbSumField != ''">j_yb_sum_field ,</if>
|
||||
<if test="jYbSumFieldCode != null and jYbSumFieldCode != ''">j_yb_sum_field_code ,</if>
|
||||
<if test="jYbSumFieldName != null and jYbSumFieldName != ''">j_yb_sum_field_name ,</if>
|
||||
<if test="jBbSumField != null and jBbSumField != ''">j_bb_sum_field ,</if>
|
||||
<if test="jBbSumFieldCode != null and jBbSumFieldCode != ''">j_bb_sum_field_code ,</if>
|
||||
<if test="jBbSumFieldName != null and jBbSumFieldName != ''">j_bb_sum_field_name ,</if>
|
||||
<if test="dNumField != null and dNumField != ''">d_num_field ,</if>
|
||||
<if test="dNumFieldCode != null and dNumFieldCode != ''">d_num_field_code ,</if>
|
||||
<if test="dNumFieldName != null and dNumFieldName != ''">d_num_field_name ,</if>
|
||||
<if test="dYbSumField != null and dYbSumField != ''">d_yb_sum_field ,</if>
|
||||
<if test="dYbSumFieldCode != null and dYbSumFieldCode != ''">d_yb_sum_field_code ,</if>
|
||||
<if test="dYbSumFieldName != null and dYbSumFieldName != ''">d_yb_sum_field_name ,</if>
|
||||
<if test="dBbSumField != null and dBbSumField != ''">d_bb_sum_field ,</if>
|
||||
<if test="dBbSumFieldCode != null and dBbSumFieldCode != ''">d_bb_sum_field_code ,</if>
|
||||
<if test="dBbSumFieldName != null and dBbSumFieldName != ''">d_bb_sum_field_name ,</if>
|
||||
<if test="pkCashflow != null and pkCashflow != ''">pk_cashflow ,</if>
|
||||
<if test="pkSubrelation != null and pkSubrelation != ''">pk_subrelation ,</if>
|
||||
<if test="remark != null and remark != ''">remark ,</if>
|
||||
<if test="def1 != null and def1 != ''">def1 ,</if>
|
||||
<if test="def2 != null and def2 != ''">def2 ,</if>
|
||||
<if test="def3 != null and def3 != ''">def3 ,</if>
|
||||
<if test="def4 != null and def4 != ''">def4 ,</if>
|
||||
<if test="def5 != null and def5 != ''">def5 ,</if>
|
||||
<if test="def6 != null and def6 != ''">def6 ,</if>
|
||||
<if test="def7 != null and def7 != ''">def7 ,</if>
|
||||
<if test="def8 != null and def8 != ''">def8 ,</if>
|
||||
<if test="def9 != null and def9 != ''">def9 ,</if>
|
||||
<if test="def10 != null and def10 != ''">def10 ,</if>
|
||||
<if test="create_time != null">create_time ,</if>
|
||||
<if test="create_time == null">create_time ,</if>
|
||||
<if test="createUser != null and createUser != ''">create_user ,</if>
|
||||
<if test="modify_time != null">modify_time ,</if>
|
||||
<if test="modify_time == null">modify_time ,</if>
|
||||
<if test="modifyUser != null and modifyUser != ''">modify_user ,</if>
|
||||
<if test="sts != null and sts != ''">sts ,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null">#{id} ,</if>
|
||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
||||
<if test="templateTypeId != null and templateTypeId != ''">#{templateTypeId} ,</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="voucherTypeId != null and voucherTypeId != ''">#{voucherTypeId} ,</if>
|
||||
<if test="voucherTypeCode != null and voucherTypeCode != ''">#{voucherTypeCode} ,</if>
|
||||
<if test="voucherTypeName != null and voucherTypeName != ''">#{voucherTypeName} ,</if>
|
||||
<if test="businessUnitId != null and businessUnitId != ''">#{businessUnitId} ,</if>
|
||||
<if test="businessUnitCode != null and businessUnitCode != ''">#{businessUnitCode} ,</if>
|
||||
<if test="businessUnitName != null and businessUnitName != ''">#{businessUnitName} ,</if>
|
||||
<if test="subjectClassificationId != null">#{subjectClassificationId} ,</if>
|
||||
<if test="subjectClassificationCode != null and subjectClassificationCode != ''">
|
||||
#{subjectClassificationCode} ,
|
||||
</if>
|
||||
<if test="subjectClassificationName != null and subjectClassificationName != ''">
|
||||
#{subjectClassificationName} ,
|
||||
</if>
|
||||
<if test="currencyField != null and currencyField != ''">#{currencyField} ,</if>
|
||||
<if test="currencyFieldCode != null and currencyFieldCode != ''">#{currencyFieldCode} ,</if>
|
||||
<if test="currencyFieldName != null and currencyFieldName != ''">#{currencyFieldName} ,</if>
|
||||
<if test="pkCurrtype != null and pkCurrtype != ''">#{pkCurrtype} ,</if>
|
||||
<if test="abstractStr != null and abstractStr != ''">#{abstractStr} ,</if>
|
||||
<if test="abstractRes != null and abstractRes != ''">#{abstractRes} ,</if>
|
||||
<if test="exchangeRate != null and exchangeRate != ''">#{exchangeRate} ,</if>
|
||||
<if test="jNumField != null and jNumField != ''">#{jNumField} ,</if>
|
||||
<if test="jNumFieldCode != null and jNumFieldCode != ''">#{jNumFieldCode} ,</if>
|
||||
<if test="jNumFieldName != null and jNumFieldName != ''">#{jNumFieldName} ,</if>
|
||||
<if test="jYbSumField != null and jYbSumField != ''">#{jYbSumField} ,</if>
|
||||
<if test="jYbSumFieldCode != null and jYbSumFieldCode != ''">#{jYbSumFieldCode} ,</if>
|
||||
<if test="jYbSumFieldName != null and jYbSumFieldName != ''">#{jYbSumFieldName} ,</if>
|
||||
<if test="jBbSumField != null and jBbSumField != ''">#{jBbSumField} ,</if>
|
||||
<if test="jBbSumFieldCode != null and jBbSumFieldCode != ''">#{jBbSumFieldCode} ,</if>
|
||||
<if test="jBbSumFieldName != null and jBbSumFieldName != ''">#{jBbSumFieldName} ,</if>
|
||||
<if test="dNumField != null and dNumField != ''">#{dNumField} ,</if>
|
||||
<if test="dNumFieldCode != null and dNumFieldCode != ''">#{dNumFieldCode} ,</if>
|
||||
<if test="dNumFieldName != null and dNumFieldName != ''">#{dNumFieldName} ,</if>
|
||||
<if test="dYbSumField != null and dYbSumField != ''">#{dYbSumField} ,</if>
|
||||
<if test="dYbSumFieldCode != null and dYbSumFieldCode != ''">#{dYbSumFieldCode} ,</if>
|
||||
<if test="dYbSumFieldName != null and dYbSumFieldName != ''">#{dYbSumFieldName} ,</if>
|
||||
<if test="dBbSumField != null and dBbSumField != ''">#{dBbSumField} ,</if>
|
||||
<if test="dBbSumFieldCode != null and dBbSumFieldCode != ''">#{dBbSumFieldCode} ,</if>
|
||||
<if test="dBbSumFieldName != null and dBbSumFieldName != ''">#{dBbSumFieldName} ,</if>
|
||||
<if test="pkCashflow != null and pkCashflow != ''">#{pkCashflow} ,</if>
|
||||
<if test="pkSubrelation != null and pkSubrelation != ''">#{pkSubrelation} ,</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_voucher_template(mdm_id, pk_glorgbook, gl_orgbook_code, gl_orgbook_name, voucher_type_id,
|
||||
voucher_type_code, voucher_type_name, business_unit_id, business_unit_code, business_unit_name,
|
||||
subject_classification_id, subject_classification_code, subject_classification_name, currency_field,
|
||||
currency_field_code, currency_field_name, pk_currtype, abstract_str, abstract_res, exchange_rate, j_num_field,
|
||||
j_num_field_code, j_num_field_name, j_yb_sum_field, j_yb_sum_field_code, j_yb_sum_field_name, j_bb_sum_field,
|
||||
j_bb_sum_field_code, j_bb_sum_field_name, d_num_field, d_num_field_code, d_num_field_name, d_yb_sum_field,
|
||||
d_yb_sum_field_code, d_yb_sum_field_name, d_bb_sum_field, d_bb_sum_field_code, d_bb_sum_field_name, pk_cashflow,
|
||||
pk_subrelation, 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.mdmId},#{entity.pkGlorgbook},#{entity.glOrgbookCode},#{entity.glOrgbookName},#{entity.voucherTypeId},#{entity.voucherTypeCode},#{entity.voucherTypeName},#{entity.businessUnitId},#{entity.businessUnitCode},#{entity.businessUnitName},#{entity.subjectClassificationId},#{entity.subjectClassificationCode},#{entity.subjectClassificationName},#{entity.currencyField},#{entity.currencyFieldCode},#{entity.currencyFieldName},#{entity.pkCurrtype},#{entity.abstractStr},#{entity.abstractRes},#{entity.exchangeRate},#{entity.jNumField},#{entity.jNumFieldCode},#{entity.jNumFieldName},#{entity.jYbSumField},#{entity.jYbSumFieldCode},#{entity.jYbSumFieldName},#{entity.jBbSumField},#{entity.jBbSumFieldCode},#{entity.jBbSumFieldName},#{entity.dNumField},#{entity.dNumFieldCode},#{entity.dNumFieldName},#{entity.dYbSumField},#{entity.dYbSumFieldCode},#{entity.dYbSumFieldName},#{entity.dBbSumField},#{entity.dBbSumFieldCode},#{entity.dBbSumFieldName},#{entity.pkCashflow},#{entity.pkSubrelation},#{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_voucher_template(mdm_id, pk_glorgbook, gl_orgbook_code, gl_orgbook_name, voucher_type_id,
|
||||
voucher_type_code, voucher_type_name, business_unit_id, business_unit_code, business_unit_name,
|
||||
subject_classification_id, subject_classification_code, subject_classification_name, currency_field,
|
||||
currency_field_code, currency_field_name, pk_currtype, abstract_str, abstract_res, exchange_rate, j_num_field,
|
||||
j_num_field_code, j_num_field_name, j_yb_sum_field, j_yb_sum_field_code, j_yb_sum_field_name, j_bb_sum_field,
|
||||
j_bb_sum_field_code, j_bb_sum_field_name, d_num_field, d_num_field_code, d_num_field_name, d_yb_sum_field,
|
||||
d_yb_sum_field_code, d_yb_sum_field_name, d_bb_sum_field, d_bb_sum_field_code, d_bb_sum_field_name, pk_cashflow,
|
||||
pk_subrelation, 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.mdmId},#{entity.pkGlorgbook},#{entity.glOrgbookCode},#{entity.glOrgbookName},#{entity.voucherTypeId},#{entity.voucherTypeCode},#{entity.voucherTypeName},#{entity.businessUnitId},#{entity.businessUnitCode},#{entity.businessUnitName},#{entity.subjectClassificationId},#{entity.subjectClassificationCode},#{entity.subjectClassificationName},#{entity.currencyField},#{entity.currencyFieldCode},#{entity.currencyFieldName},#{entity.pkCurrtype},#{entity.abstractStr},#{entity.abstractRes},#{entity.exchangeRate},#{entity.jNumField},#{entity.jNumFieldCode},#{entity.jNumFieldName},#{entity.jYbSumField},#{entity.jYbSumFieldCode},#{entity.jYbSumFieldName},#{entity.jBbSumField},#{entity.jBbSumFieldCode},#{entity.jBbSumFieldName},#{entity.dNumField},#{entity.dNumFieldCode},#{entity.dNumFieldName},#{entity.dYbSumField},#{entity.dYbSumFieldCode},#{entity.dYbSumFieldName},#{entity.dBbSumField},#{entity.dBbSumFieldCode},#{entity.dBbSumFieldName},#{entity.pkCashflow},#{entity.pkSubrelation},#{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
|
||||
mdm_id = values(mdm_id),
|
||||
pk_glorgbook = values(pk_glorgbook),
|
||||
gl_orgbook_code = values(gl_orgbook_code),
|
||||
gl_orgbook_name = values(gl_orgbook_name),
|
||||
voucher_type_id = values(voucher_type_id),
|
||||
voucher_type_code = values(voucher_type_code),
|
||||
voucher_type_name = values(voucher_type_name),
|
||||
business_unit_id = values(business_unit_id),
|
||||
business_unit_code = values(business_unit_code),
|
||||
business_unit_name = values(business_unit_name),
|
||||
subject_classification_id = values(subject_classification_id),
|
||||
subject_classification_code = values(subject_classification_code),
|
||||
subject_classification_name = values(subject_classification_name),
|
||||
currency_field = values(currency_field),
|
||||
currency_field_code = values(currency_field_code),
|
||||
currency_field_name = values(currency_field_name),
|
||||
pk_currtype = values(pk_currtype),
|
||||
abstract_str = values(abstract_str),
|
||||
abstract_res = values(abstract_res),
|
||||
exchange_rate = values(exchange_rate),
|
||||
j_num_field = values(j_num_field),
|
||||
j_num_field_code = values(j_num_field_code),
|
||||
j_num_field_name = values(j_num_field_name),
|
||||
j_yb_sum_field = values(j_yb_sum_field),
|
||||
j_yb_sum_field_code = values(j_yb_sum_field_code),
|
||||
j_yb_sum_field_name = values(j_yb_sum_field_name),
|
||||
j_bb_sum_field = values(j_bb_sum_field),
|
||||
j_bb_sum_field_code = values(j_bb_sum_field_code),
|
||||
j_bb_sum_field_name = values(j_bb_sum_field_name),
|
||||
d_num_field = values(d_num_field),
|
||||
d_num_field_code = values(d_num_field_code),
|
||||
d_num_field_name = values(d_num_field_name),
|
||||
d_yb_sum_field = values(d_yb_sum_field),
|
||||
d_yb_sum_field_code = values(d_yb_sum_field_code),
|
||||
d_yb_sum_field_name = values(d_yb_sum_field_name),
|
||||
d_bb_sum_field = values(d_bb_sum_field),
|
||||
d_bb_sum_field_code = values(d_bb_sum_field_code),
|
||||
d_bb_sum_field_name = values(d_bb_sum_field_name),
|
||||
pk_cashflow = values(pk_cashflow),
|
||||
pk_subrelation = values(pk_subrelation),
|
||||
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.template.entity.AeConfVoucherTemplateEntity">
|
||||
update ae_conf_voucher_template set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
||||
<if test="templateTypeId != null and templateTypeId != ''">template_type_id = #{templateTypeId},</if>
|
||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">pk_glorgbook = #{pkGlorgbook},</if>
|
||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">gl_orgbook_code = #{glOrgbookCode},</if>
|
||||
<if test="glOrgbookName != null and glOrgbookName != ''">gl_orgbook_name = #{glOrgbookName},</if>
|
||||
<if test="voucherTypeId != null and voucherTypeId != ''">voucher_type_id = #{voucherTypeId},</if>
|
||||
<if test="voucherTypeCode != null and voucherTypeCode != ''">voucher_type_code = #{voucherTypeCode},</if>
|
||||
<if test="voucherTypeName != null and voucherTypeName != ''">voucher_type_name = #{voucherTypeName},</if>
|
||||
<if test="businessUnitId != null and businessUnitId != ''">business_unit_id = #{businessUnitId},</if>
|
||||
<if test="businessUnitCode != null and businessUnitCode != ''">business_unit_code = #{businessUnitCode},
|
||||
</if>
|
||||
<if test="businessUnitName != null and businessUnitName != ''">business_unit_name = #{businessUnitName},
|
||||
</if>
|
||||
<if test="subjectClassificationId != null">subject_classification_id = #{subjectClassificationId},</if>
|
||||
<if test="subjectClassificationCode != null and subjectClassificationCode != ''">subject_classification_code
|
||||
= #{subjectClassificationCode},
|
||||
</if>
|
||||
<if test="subjectClassificationName != null and subjectClassificationName != ''">subject_classification_name
|
||||
= #{subjectClassificationName},
|
||||
</if>
|
||||
<if test="currencyField != null and currencyField != ''">currency_field = #{currencyField},</if>
|
||||
<if test="currencyFieldCode != null and currencyFieldCode != ''">currency_field_code =
|
||||
#{currencyFieldCode},
|
||||
</if>
|
||||
<if test="currencyFieldName != null and currencyFieldName != ''">currency_field_name =
|
||||
#{currencyFieldName},
|
||||
</if>
|
||||
<if test="pkCurrtype != null and pkCurrtype != ''">pk_currtype = #{pkCurrtype},</if>
|
||||
<if test="abstractStr != null and abstractStr != ''">abstract_str = #{abstractStr},</if>
|
||||
<if test="abstractRes != null and abstractRes != ''">abstract_res = #{abstractRes},</if>
|
||||
<if test="exchangeRate != null and exchangeRate != ''">exchange_rate = #{exchangeRate},</if>
|
||||
<if test="jNumField != null and jNumField != ''">j_num_field = #{jNumField},</if>
|
||||
<if test="jNumFieldCode != null and jNumFieldCode != ''">j_num_field_code = #{jNumFieldCode},</if>
|
||||
<if test="jNumFieldName != null and jNumFieldName != ''">j_num_field_name = #{jNumFieldName},</if>
|
||||
<if test="jYbSumField != null and jYbSumField != ''">j_yb_sum_field = #{jYbSumField},</if>
|
||||
<if test="jYbSumFieldCode != null and jYbSumFieldCode != ''">j_yb_sum_field_code = #{jYbSumFieldCode},</if>
|
||||
<if test="jYbSumFieldName != null and jYbSumFieldName != ''">j_yb_sum_field_name = #{jYbSumFieldName},</if>
|
||||
<if test="jBbSumField != null and jBbSumField != ''">j_bb_sum_field = #{jBbSumField},</if>
|
||||
<if test="jBbSumFieldCode != null and jBbSumFieldCode != ''">j_bb_sum_field_code = #{jBbSumFieldCode},</if>
|
||||
<if test="jBbSumFieldName != null and jBbSumFieldName != ''">j_bb_sum_field_name = #{jBbSumFieldName},</if>
|
||||
<if test="dNumField != null and dNumField != ''">d_num_field = #{dNumField},</if>
|
||||
<if test="dNumFieldCode != null and dNumFieldCode != ''">d_num_field_code = #{dNumFieldCode},</if>
|
||||
<if test="dNumFieldName != null and dNumFieldName != ''">d_num_field_name = #{dNumFieldName},</if>
|
||||
<if test="dYbSumField != null and dYbSumField != ''">d_yb_sum_field = #{dYbSumField},</if>
|
||||
<if test="dYbSumFieldCode != null and dYbSumFieldCode != ''">d_yb_sum_field_code = #{dYbSumFieldCode},</if>
|
||||
<if test="dYbSumFieldName != null and dYbSumFieldName != ''">d_yb_sum_field_name = #{dYbSumFieldName},</if>
|
||||
<if test="dBbSumField != null and dBbSumField != ''">d_bb_sum_field = #{dBbSumField},</if>
|
||||
<if test="dBbSumFieldCode != null and dBbSumFieldCode != ''">d_bb_sum_field_code = #{dBbSumFieldCode},</if>
|
||||
<if test="dBbSumFieldName != null and dBbSumFieldName != ''">d_bb_sum_field_name = #{dBbSumFieldName},</if>
|
||||
<if test="pkCashflow != null and pkCashflow != ''">pk_cashflow = #{pkCashflow},</if>
|
||||
<if test="pkSubrelation != null and pkSubrelation != ''">pk_subrelation = #{pkSubrelation},</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.template.entity.AeConfVoucherTemplateEntity">
|
||||
update ae_conf_voucher_template
|
||||
set sts= 'N',
|
||||
modify_time = now()
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition"
|
||||
parameterType="com.hzya.frame.voucher.ae.comf.template.entity.AeConfVoucherTemplateEntity">
|
||||
update ae_conf_voucher_template 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="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||
<if test="pkGlorgbook != null and pkGlorgbook != ''">and pk_glorgbook = #{pkGlorgbook}</if>
|
||||
<if test="glOrgbookCode != null and glOrgbookCode != ''">and gl_orgbook_code = #{glOrgbookCode}</if>
|
||||
<if test="glOrgbookName != null and glOrgbookName != ''">and gl_orgbook_name = #{glOrgbookName}</if>
|
||||
<if test="voucherTypeId != null and voucherTypeId != ''">and voucher_type_id = #{voucherTypeId}</if>
|
||||
<if test="voucherTypeCode != null and voucherTypeCode != ''">and voucher_type_code = #{voucherTypeCode}</if>
|
||||
<if test="voucherTypeName != null and voucherTypeName != ''">and voucher_type_name = #{voucherTypeName}</if>
|
||||
<if test="businessUnitId != null and businessUnitId != ''">and business_unit_id = #{businessUnitId}</if>
|
||||
<if test="businessUnitCode != null and businessUnitCode != ''">and business_unit_code =
|
||||
#{businessUnitCode}
|
||||
</if>
|
||||
<if test="businessUnitName != null and businessUnitName != ''">and business_unit_name =
|
||||
#{businessUnitName}
|
||||
</if>
|
||||
<if test="subjectClassificationId != null">and subject_classification_id = #{subjectClassificationId}</if>
|
||||
<if test="subjectClassificationCode != null and subjectClassificationCode != ''">and
|
||||
subject_classification_code = #{subjectClassificationCode}
|
||||
</if>
|
||||
<if test="subjectClassificationName != null and subjectClassificationName != ''">and
|
||||
subject_classification_name = #{subjectClassificationName}
|
||||
</if>
|
||||
<if test="currencyField != null and currencyField != ''">and currency_field = #{currencyField}</if>
|
||||
<if test="currencyFieldCode != null and currencyFieldCode != ''">and currency_field_code =
|
||||
#{currencyFieldCode}
|
||||
</if>
|
||||
<if test="currencyFieldName != null and currencyFieldName != ''">and currency_field_name =
|
||||
#{currencyFieldName}
|
||||
</if>
|
||||
<if test="pkCurrtype != null and pkCurrtype != ''">and pk_currtype = #{pkCurrtype}</if>
|
||||
<if test="abstractStr != null and abstractStr != ''">and abstract_str = #{abstractStr}</if>
|
||||
<if test="abstractRes != null and abstractRes != ''">and abstract_res = #{abstractRes}</if>
|
||||
<if test="exchangeRate != null and exchangeRate != ''">and exchange_rate = #{exchangeRate}</if>
|
||||
<if test="jNumField != null and jNumField != ''">and j_num_field = #{jNumField}</if>
|
||||
<if test="jNumFieldCode != null and jNumFieldCode != ''">and j_num_field_code = #{jNumFieldCode}</if>
|
||||
<if test="jNumFieldName != null and jNumFieldName != ''">and j_num_field_name = #{jNumFieldName}</if>
|
||||
<if test="jYbSumField != null and jYbSumField != ''">and j_yb_sum_field = #{jYbSumField}</if>
|
||||
<if test="jYbSumFieldCode != null and jYbSumFieldCode != ''">and j_yb_sum_field_code = #{jYbSumFieldCode}
|
||||
</if>
|
||||
<if test="jYbSumFieldName != null and jYbSumFieldName != ''">and j_yb_sum_field_name = #{jYbSumFieldName}
|
||||
</if>
|
||||
<if test="jBbSumField != null and jBbSumField != ''">and j_bb_sum_field = #{jBbSumField}</if>
|
||||
<if test="jBbSumFieldCode != null and jBbSumFieldCode != ''">and j_bb_sum_field_code = #{jBbSumFieldCode}
|
||||
</if>
|
||||
<if test="jBbSumFieldName != null and jBbSumFieldName != ''">and j_bb_sum_field_name = #{jBbSumFieldName}
|
||||
</if>
|
||||
<if test="dNumField != null and dNumField != ''">and d_num_field = #{dNumField}</if>
|
||||
<if test="dNumFieldCode != null and dNumFieldCode != ''">and d_num_field_code = #{dNumFieldCode}</if>
|
||||
<if test="dNumFieldName != null and dNumFieldName != ''">and d_num_field_name = #{dNumFieldName}</if>
|
||||
<if test="dYbSumField != null and dYbSumField != ''">and d_yb_sum_field = #{dYbSumField}</if>
|
||||
<if test="dYbSumFieldCode != null and dYbSumFieldCode != ''">and d_yb_sum_field_code = #{dYbSumFieldCode}
|
||||
</if>
|
||||
<if test="dYbSumFieldName != null and dYbSumFieldName != ''">and d_yb_sum_field_name = #{dYbSumFieldName}
|
||||
</if>
|
||||
<if test="dBbSumField != null and dBbSumField != ''">and d_bb_sum_field = #{dBbSumField}</if>
|
||||
<if test="dBbSumFieldCode != null and dBbSumFieldCode != ''">and d_bb_sum_field_code = #{dBbSumFieldCode}
|
||||
</if>
|
||||
<if test="dBbSumFieldName != null and dBbSumFieldName != ''">and d_bb_sum_field_name = #{dBbSumFieldName}
|
||||
</if>
|
||||
<if test="pkCashflow != null and pkCashflow != ''">and pk_cashflow = #{pkCashflow}</if>
|
||||
<if test="pkSubrelation != null and pkSubrelation != ''">and pk_subrelation = #{pkSubrelation}</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_voucher_template
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue