广脉:1、新增业务模块-主数据相关接口
This commit is contained in:
parent
128ea0c5c3
commit
93d141640f
|
@ -0,0 +1,119 @@
|
|||
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,41 @@
|
|||
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.voucher.ae.comf.module.entity.AeConfBusinessModuleMdmEntity;
|
||||
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;
|
||||
|
||||
@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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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.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 {
|
||||
|
||||
}
|
||||
|
|
@ -1,136 +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;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
/**
|
||||
* 模块名称
|
||||
*/
|
||||
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,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,379 @@
|
|||
<?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="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="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="id != null">#{id} ,</if>
|
||||
<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,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,147 @@
|
|||
package com.hzya.frame.voucher.ae.comf.module.service.impl;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
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.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;
|
||||
|
||||
|
||||
@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.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不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getAeConfModuleName(),"业务模块-主数据保存时,业务模块name不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getMdmId(),"业务模块-主数据保存时,主数据id不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getMdmCode(),"业务模块-主数据保存时,主数据code不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getMdmName(),"业务模块-主数据保存时,主数据name不能为空,请检查!");
|
||||
}
|
||||
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不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getAeConfModuleId(),"业务模块-主数据保存时,业务模块id不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getAeConfModuleName(),"业务模块-主数据保存时,业务模块name不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getMdmId(),"业务模块-主数据保存时,主数据id不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getMdmCode(),"业务模块-主数据保存时,主数据code不能为空,请检查!");
|
||||
Assert.notNull(moduleMdmEntity.getMdmName(),"业务模块-主数据保存时,主数据name不能为空,请检查!");
|
||||
}
|
||||
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不能为空,请检查!");
|
||||
}
|
||||
Map<String,Integer> deleteMap=new HashMap<>();
|
||||
for (AeConfBusinessModuleMdmEntity aeConfBusinessModuleMdmEntity : list) {
|
||||
int i = aeConfBusinessModuleMdmDao.logicRemove(aeConfBusinessModuleMdmEntity);
|
||||
deleteMap.put(aeConfBusinessModuleMdmEntity.getId(),i);
|
||||
}
|
||||
return deleteMap;
|
||||
}
|
||||
|
||||
|
||||
}
|
16
pom.xml
16
pom.xml
|
@ -7,18 +7,7 @@
|
|||
<module>base-common</module>
|
||||
<module>base-webapp</module>
|
||||
<module>base-core</module>
|
||||
<!-- <module>fw-bip</module>-->
|
||||
<!-- <module>fw-cbs</module>-->
|
||||
<!-- <module>fw-dd</module>-->
|
||||
<!-- <module>fw-grpU8</module>-->
|
||||
<!-- <module>fw-nc</module>-->
|
||||
<!-- <module>fw-ncc</module>-->
|
||||
<!-- <module>fw-ningbobank</module>-->
|
||||
<!-- <module>fw-oa</module>-->
|
||||
<!-- <module>fw-u8</module>-->
|
||||
<!-- <module>fw-u8c</module>-->
|
||||
<!-- <module>fw-u9c</module>-->
|
||||
<!-- <module>fw-weixin</module>-->
|
||||
|
||||
</modules>
|
||||
<groupId>com.hzya.frame</groupId>
|
||||
<artifactId>kangarooDataCenterV3</artifactId>
|
||||
|
@ -45,7 +34,8 @@
|
|||
<!-- <mybatis-spring-boot-starter.version>2.2.2</mybatis-spring-boot-starter.version>-->
|
||||
<mybatis-plus-boot-starter.version>3.5.6</mybatis-plus-boot-starter.version>
|
||||
<!-- <mysql-connector-j.version>8.0.33</mysql-connector-j.version>-->
|
||||
<mysql-connector-java>5.1.49</mysql-connector-java>
|
||||
<!-- <mysql-connector-java>5.1.49</mysql-connector-java>-->
|
||||
<mysql-connector-java>8.0.13</mysql-connector-java>
|
||||
<pagehelper-spring-boot-starter.version>1.4.6</pagehelper-spring-boot-starter.version>
|
||||
<spring-boot-starter-cache.version>2.7.18</spring-boot-starter-cache.version>
|
||||
<sa.token.version>1.30.0</sa.token.version>
|
||||
|
|
Loading…
Reference in New Issue