广脉:1、新增业务模块,影响因素设置模块,基础接口

This commit is contained in:
zhengyf 2025-05-23 14:50:06 +08:00
parent ade8b2c5cb
commit 128ea0c5c3
18 changed files with 1521 additions and 17 deletions

View File

@ -0,0 +1,94 @@
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());
}
}
}

View File

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

View File

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

View File

@ -0,0 +1,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
*/
private String mappingFileId;
/**
* 映射档案code
*/
private String mappingFileCode;
/**
* 映射档案名称
*/
private String mappingFileName;
/**
* 备注
*/
private String remark;
private String def1;
private String def2;
private String def3;
private String def4;
private String def5;
private String def6;
private String def7;
private String def8;
private String def9;
private String def10;
/**
* 创建人
*/
private String createUser;
/**
* 修改人
*/
private String modifyUser;
}

View File

@ -0,0 +1,451 @@
<?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="id != null">id ,</if>
<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="id != null">#{id} ,</if>
<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 = #{modify_time},
modify_user_id = #{modify_user_id}
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'
</select>
</mapper>

View File

@ -0,0 +1,21 @@
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);
}

View File

@ -0,0 +1,105 @@
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.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 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 save = this.dao.save(entity);
return save;
}
/**
* 根据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());
}
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,305 @@
<?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="id != null">id ,</if>
<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="id != null">#{id} ,</if>
<if test="moduleName != null and moduleName != ''">#{moduleName} ,</if>
<if test="def1 != null and def1 != ''">#{def1} ,</if>
<if test="def2 != null and def2 != ''">#{def2} ,</if>
<if test="def3 != null and def3 != ''">#{def3} ,</if>
<if test="def4 != null and def4 != ''">#{def4} ,</if>
<if test="def5 != null and def5 != ''">#{def5} ,</if>
<if test="def6 != null and def6 != ''">#{def6} ,</if>
<if test="def7 != null and def7 != ''">#{def7} ,</if>
<if test="def8 != null and def8 != ''">#{def8} ,</if>
<if test="def9 != null and def9 != ''">#{def9} ,</if>
<if test="def10 != null and def10 != ''">#{def10} ,</if>
<if test="create_time != null">#{create_time} ,</if>
<if test="create_time == null">now() ,</if>
<if test="createUser != null and createUser != ''">#{createUser} ,</if>
<if test="modify_time != null">#{modify_time} ,</if>
<if test="modify_time == null">now() ,</if>
<if test="modifyUser != null and modifyUser != ''">#{modifyUser} ,</if>
<if test="sts != null and sts != ''">#{sts} ,</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_business_module(module_name, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10,
create_time, create_user, modify_time, modify_user, sts, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.moduleName},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into ae_conf_business_module(module_name, def1, def2, def3, def4, def5, def6, def7, def8, def9, def10,
create_time, create_user, modify_time, modify_user, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.moduleName},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.create_time},#{entity.createUser},#{entity.modify_time},#{entity.modifyUser},#{entity.sts})
</foreach>
on duplicate key update
module_name = values(module_name),
def1 = values(def1),
def2 = values(def2),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
def6 = values(def6),
def7 = values(def7),
def8 = values(def8),
def9 = values(def9),
def10 = values(def10),
create_time = values(create_time),
create_user = values(create_user),
modify_time = values(modify_time),
modify_user = values(modify_user),
sts = values(sts)
</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity">
update ae_conf_business_module set
<trim suffix="" suffixOverrides=",">
<if test="moduleName != null and moduleName != ''">module_name = #{moduleName},</if>
<if test="def1 != null and def1 != ''">def1 = #{def1},</if>
<if test="def2 != null and def2 != ''">def2 = #{def2},</if>
<if test="def3 != null and def3 != ''">def3 = #{def3},</if>
<if test="def4 != null and def4 != ''">def4 = #{def4},</if>
<if test="def5 != null and def5 != ''">def5 = #{def5},</if>
<if test="def6 != null and def6 != ''">def6 = #{def6},</if>
<if test="def7 != null and def7 != ''">def7 = #{def7},</if>
<if test="def8 != null and def8 != ''">def8 = #{def8},</if>
<if test="def9 != null and def9 != ''">def9 = #{def9},</if>
<if test="def10 != null and def10 != ''">def10 = #{def10},</if>
<if test="create_time != null">create_time = #{create_time},</if>
<if test="create_time = null">create_time = now(),</if>
<if test="createUser != null and createUser != ''">create_user = #{createUser},</if>
<if test="modify_time != null">modify_time = #{modify_time},</if>
<if test="modify_time == null">modify_time = now(),</if>
<if test="modifyUser != null and modifyUser != ''">modify_user = #{modifyUser},</if>
<if test="sts != null and sts != ''">sts = #{sts},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity">
update ae_conf_business_module set sts= 'N' ,modify_time = now()
<if test="modify_user_id!=null and modify_user_id!=''">,modify_user_id = #{modify_user_id}</if>
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.voucher.ae.comf.module.entity.AeConfBusinessModuleEntity">
update ae_conf_business_module set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null">and id = #{id}</if>
<if test="moduleName != null and moduleName != ''">and module_name = #{moduleName}</if>
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">and def10 = #{def10}</if>
<if test="createUser != null and createUser != ''">and create_user = #{createUser}</if>
<if test="modifyUser != null and modifyUser != ''">and modify_user = #{modifyUser}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete
from ae_conf_business_module
where id = #{id}
</delete>
</mapper>

View File

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

View File

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

View File

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

View File

@ -14,7 +14,7 @@ spring:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=600000000&socketTimeout=600000000&autoReconnectForPools=true&keepAlive=true
username: root
password: 89c3c88d08a913294c52f4f4599c4507
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径

View File

@ -36,7 +36,7 @@ spring:
# use-suffix-pattern: true
profiles:
# active: @profileActive@
active: gmprod
active: gmdev
# active: dev
servlet:
multipart:

View File

@ -7,7 +7,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.context.support.ApplicationObjectSupport;
/**
* @author 郭军辉
* <p>
@ -26,7 +25,7 @@ public class DefaultController extends ApplicationObjectSupport {
* @return
*/
public JsonResultEntity getFailureMessageEntity(String message) {
return new JsonResultEntity(message, false);
return new JsonResultEntity(message, false, "500");
}
/**
@ -35,8 +34,8 @@ public class DefaultController extends ApplicationObjectSupport {
* @param message 提示信息
* @return
*/
public JsonResultEntity getFailureMessageEntity(String message, Object mo) {
return new JsonResultEntity(message, false, mo);
public JsonResultEntity getFailureMessageEntity(String message, Object mo) {
return new JsonResultEntity(message, false, "500", mo);
}
/**
@ -46,8 +45,8 @@ public class DefaultController extends ApplicationObjectSupport {
* @param mo 返回对象
* @return
*/
public JsonResultEntity getSuccessMessageEntity(String message, Object mo) {
return new JsonResultEntity(message, true, mo);
public JsonResultEntity getSuccessMessageEntity(String message, Object mo) {
return new JsonResultEntity(message, true, "200", mo);
}
/**
@ -56,18 +55,11 @@ public class DefaultController extends ApplicationObjectSupport {
* @param message 提示消息
* @return
*/
public JsonResultEntity getSuccessMessageEntity(String message ) {
return new JsonResultEntity(message, true);
public JsonResultEntity getSuccessMessageEntity(String message) {
return new JsonResultEntity(message, true, "200");
}
/**
* //绑定org_id
*