Merge branch 'dev' of http://192.168.2.237:3000/root/kangarooDataCenterV3 into dev
This commit is contained in:
commit
88775d3efe
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.bank.dao;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 客户银行(mdm_customer_bank: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:55:55
|
||||
*/
|
||||
public interface IMdmCustomerBankDao extends IBaseDao<MdmCustomerBankEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.bank.dao.impl;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity;
|
||||
import com.hzya.frame.plugin.masterData.customer.bank.dao.IMdmCustomerBankDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 客户银行(MdmCustomerBank)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:55:55
|
||||
*/
|
||||
public class MdmCustomerBankDaoImpl extends MybatisGenericDao<MdmCustomerBankEntity, String> implements IMdmCustomerBankDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.bank.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 客户银行(MdmCustomerBank)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:55:55
|
||||
*/
|
||||
public class MdmCustomerBankEntity extends BaseEntity {
|
||||
|
||||
/** formmain_id */
|
||||
private String formmainId;
|
||||
/** 数据状态 Y正常 N删除 F修改 */
|
||||
private String dataStatus;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
/** 银行 */
|
||||
private String bank;
|
||||
/** 开户银行 */
|
||||
private String pkBankdoc;
|
||||
/** 账号 */
|
||||
private String accnum;
|
||||
/** 联行号 */
|
||||
private String combinenum;
|
||||
|
||||
|
||||
public String getFormmainId() {
|
||||
return formmainId;
|
||||
}
|
||||
|
||||
public void setFormmainId(String formmainId) {
|
||||
this.formmainId = formmainId;
|
||||
}
|
||||
|
||||
public String getDataStatus() {
|
||||
return dataStatus;
|
||||
}
|
||||
|
||||
public void setDataStatus(String dataStatus) {
|
||||
this.dataStatus = dataStatus;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getBank() {
|
||||
return bank;
|
||||
}
|
||||
|
||||
public void setBank(String bank) {
|
||||
this.bank = bank;
|
||||
}
|
||||
|
||||
public String getPkBankdoc() {
|
||||
return pkBankdoc;
|
||||
}
|
||||
|
||||
public void setPkBankdoc(String pkBankdoc) {
|
||||
this.pkBankdoc = pkBankdoc;
|
||||
}
|
||||
|
||||
public String getAccnum() {
|
||||
return accnum;
|
||||
}
|
||||
|
||||
public void setAccnum(String accnum) {
|
||||
this.accnum = accnum;
|
||||
}
|
||||
|
||||
public String getCombinenum() {
|
||||
return combinenum;
|
||||
}
|
||||
|
||||
public void setCombinenum(String combinenum) {
|
||||
this.combinenum = combinenum;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,267 @@
|
|||
<?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.plugin.masterData.customer.bank.dao.impl.MdmCustomerBankDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmCustomerBankEntity-result" type="com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="formmainId" column="formmain_id" jdbcType="VARCHAR"/>
|
||||
<result property="dataStatus" column="data_status" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
<result property="bank" column="bank" jdbcType="VARCHAR"/>
|
||||
<result property="pkBankdoc" column="pk_bankdoc" jdbcType="VARCHAR"/>
|
||||
<result property="accnum" column="accnum" jdbcType="VARCHAR"/>
|
||||
<result property="combinenum" column="combinenum" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "MdmCustomerBankEntity_Base_Column_List">
|
||||
id
|
||||
,formmain_id
|
||||
,data_status
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
,bank
|
||||
,pk_bankdoc
|
||||
,accnum
|
||||
,combinenum
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmCustomerBankEntity-result" parameterType = "com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity">
|
||||
select
|
||||
<include refid="MdmCustomerBankEntity_Base_Column_List" />
|
||||
from mdm_customer_bank
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="bank != null and bank != ''"> and bank = #{bank} </if>
|
||||
<if test="pkBankdoc != null and pkBankdoc != ''"> and pk_bankdoc = #{pkBankdoc} </if>
|
||||
<if test="accnum != null and accnum != ''"> and accnum = #{accnum} </if>
|
||||
<if test="combinenum != null and combinenum != ''"> and combinenum = #{combinenum} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity">
|
||||
select count(1) from mdm_customer_bank
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="bank != null and bank != ''"> and bank = #{bank} </if>
|
||||
<if test="pkBankdoc != null and pkBankdoc != ''"> and pk_bankdoc = #{pkBankdoc} </if>
|
||||
<if test="accnum != null and accnum != ''"> and accnum = #{accnum} </if>
|
||||
<if test="combinenum != null and combinenum != ''"> and combinenum = #{combinenum} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-MdmCustomerBankEntity-result" parameterType = "com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity">
|
||||
select
|
||||
<include refid="MdmCustomerBankEntity_Base_Column_List" />
|
||||
from mdm_customer_bank
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id like concat('%',#{formmainId},'%') </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status like concat('%',#{dataStatus},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
<if test="bank != null and bank != ''"> and bank like concat('%',#{bank},'%') </if>
|
||||
<if test="pkBankdoc != null and pkBankdoc != ''"> and pk_bankdoc like concat('%',#{pkBankdoc},'%') </if>
|
||||
<if test="accnum != null and accnum != ''"> and accnum like concat('%',#{accnum},'%') </if>
|
||||
<if test="combinenum != null and combinenum != ''"> and combinenum like concat('%',#{combinenum},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="MdmCustomerBankentity_list_or" resultMap="get-MdmCustomerBankEntity-result" parameterType = "com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity">
|
||||
select
|
||||
<include refid="MdmCustomerBankEntity_Base_Column_List" />
|
||||
from mdm_customer_bank
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> or formmain_id = #{formmainId} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> or data_status = #{dataStatus} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||
<if test="bank != null and bank != ''"> or bank = #{bank} </if>
|
||||
<if test="pkBankdoc != null and pkBankdoc != ''"> or pk_bankdoc = #{pkBankdoc} </if>
|
||||
<if test="accnum != null and accnum != ''"> or accnum = #{accnum} </if>
|
||||
<if test="combinenum != null and combinenum != ''"> or combinenum = #{combinenum} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer_bank(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="formmainId != null and formmainId != ''"> formmain_id , </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> data_status , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="bank != null and bank != ''"> bank , </if>
|
||||
<if test="pkBankdoc != null and pkBankdoc != ''"> pk_bankdoc , </if>
|
||||
<if test="accnum != null and accnum != ''"> accnum , </if>
|
||||
<if test="combinenum != null and combinenum != ''"> combinenum , </if>
|
||||
<if test="sorts == null ">sorts,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="formmainId != null and formmainId != ''"> #{formmainId} ,</if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> #{dataStatus} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="bank != null and bank != ''"> #{bank} ,</if>
|
||||
<if test="pkBankdoc != null and pkBankdoc != ''"> #{pkBankdoc} ,</if>
|
||||
<if test="accnum != null and accnum != ''"> #{accnum} ,</if>
|
||||
<if test="combinenum != null and combinenum != ''"> #{combinenum} ,</if>
|
||||
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from mdm_customer_bank a WHERE a.sts = 'Y' ),</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer_bank(formmain_id, data_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, bank, pk_bankdoc, accnum, combinenum, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.dataStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.bank},#{entity.pkBankdoc},#{entity.accnum},#{entity.combinenum}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer_bank(formmain_id, data_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, bank, pk_bankdoc, accnum, combinenum)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.dataStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.bank},#{entity.pkBankdoc},#{entity.accnum},#{entity.combinenum})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
formmain_id = values(formmain_id),
|
||||
data_status = values(data_status),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id),
|
||||
bank = values(bank),
|
||||
pk_bankdoc = values(pk_bankdoc),
|
||||
accnum = values(accnum),
|
||||
combinenum = values(combinenum)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity" >
|
||||
update mdm_customer_bank set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="formmainId != null and formmainId != ''"> formmain_id = #{formmainId},</if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> data_status = #{dataStatus},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||
<if test="bank != null and bank != ''"> bank = #{bank},</if>
|
||||
<if test="pkBankdoc != null and pkBankdoc != ''"> pk_bankdoc = #{pkBankdoc},</if>
|
||||
<if test="accnum != null and accnum != ''"> accnum = #{accnum},</if>
|
||||
<if test="combinenum != null and combinenum != ''"> combinenum = #{combinenum},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity" >
|
||||
update mdm_customer_bank 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.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity" >
|
||||
update mdm_customer_bank set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="bank != null and bank != ''"> and bank = #{bank} </if>
|
||||
<if test="pkBankdoc != null and pkBankdoc != ''"> and pk_bankdoc = #{pkBankdoc} </if>
|
||||
<if test="accnum != null and accnum != ''"> and accnum = #{accnum} </if>
|
||||
<if test="combinenum != null and combinenum != ''"> and combinenum = #{combinenum} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from mdm_customer_bank where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.bank.plugin;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* 客户银行(MdmCustomerBank)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:55:55
|
||||
*/
|
||||
public class MdmCustomerBankPluginInitializer extends PluginBaseEntity{
|
||||
Logger logger = LoggerFactory.getLogger(MdmCustomerBankPluginInitializer.class);
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "MdmCustomerBankPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "MdmCustomerBankPlugin插件";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "MdmCustomerBankPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
logger.info("执行业务代码逻辑");
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.bank.service;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
/**
|
||||
* 客户银行(MdmCustomerBank)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:55:55
|
||||
*/
|
||||
public interface IMdmCustomerBankService extends IBaseService<MdmCustomerBankEntity, String>{
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.bank.service.impl;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.customer.bank.entity.MdmCustomerBankEntity;
|
||||
import com.hzya.frame.plugin.masterData.customer.bank.dao.IMdmCustomerBankDao;
|
||||
import com.hzya.frame.plugin.masterData.customer.bank.service.IMdmCustomerBankService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import javax.annotation.Resource;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
/**
|
||||
* 客户银行(MdmCustomerBank)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:55:55
|
||||
*/
|
||||
public class MdmCustomerBankServiceImpl extends BaseService<MdmCustomerBankEntity, String> implements IMdmCustomerBankService {
|
||||
|
||||
private IMdmCustomerBankDao mdmCustomerBankDao;
|
||||
|
||||
@Autowired
|
||||
public void setMdmCustomerBankDao(IMdmCustomerBankDao dao) {
|
||||
this.mdmCustomerBankDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.dao;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity;
|
||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||
|
||||
/**
|
||||
* 客户档案(mdm_customer: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public interface IMdmCustomerDao extends IBaseDao<MdmCustomerEntity, String> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.dao.impl;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity;
|
||||
import com.hzya.frame.plugin.masterData.customer.dao.IMdmCustomerDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmCustomerDaoImpl extends MybatisGenericDao<MdmCustomerEntity, String> implements IMdmCustomerDao{
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,186 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmCustomerEntity extends BaseEntity {
|
||||
|
||||
/** 单据规则 */
|
||||
private String documentRule;
|
||||
/** 单据规则流水号 */
|
||||
private Long documentRuleNum;
|
||||
/** 数据状态 Y正常 N删除 F修改 */
|
||||
private String dataStatus;
|
||||
/** 新增数据状态 0待下发 1已下发 */
|
||||
private String addStatus;
|
||||
/** 修改数据状态 0待下发 1已下发 */
|
||||
private String updateStatus;
|
||||
/** 删除数据状态 0待下发 1已下发 */
|
||||
private String deleteStatus;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
/** 客户编码 */
|
||||
private String code;
|
||||
/** 客户类型 */
|
||||
private String custprop;
|
||||
/** 客户状态 */
|
||||
private String custstate;
|
||||
/** 启用状态 */
|
||||
private String enablestate;
|
||||
/** 客户名称 */
|
||||
private String name;
|
||||
/** 国家/地区 */
|
||||
private String pkCountry;
|
||||
/** 客户基本分类 */
|
||||
private String pkCustclass;
|
||||
/** 所属集团 */
|
||||
private String pkGroup;
|
||||
/** 所属组织 */
|
||||
private String pkOrg;
|
||||
/** 纳税人登记号 */
|
||||
private String taxpayerid;
|
||||
|
||||
|
||||
public String getDocumentRule() {
|
||||
return documentRule;
|
||||
}
|
||||
|
||||
public void setDocumentRule(String documentRule) {
|
||||
this.documentRule = documentRule;
|
||||
}
|
||||
|
||||
public Long getDocumentRuleNum() {
|
||||
return documentRuleNum;
|
||||
}
|
||||
|
||||
public void setDocumentRuleNum(Long documentRuleNum) {
|
||||
this.documentRuleNum = documentRuleNum;
|
||||
}
|
||||
|
||||
public String getDataStatus() {
|
||||
return dataStatus;
|
||||
}
|
||||
|
||||
public void setDataStatus(String dataStatus) {
|
||||
this.dataStatus = dataStatus;
|
||||
}
|
||||
|
||||
public String getAddStatus() {
|
||||
return addStatus;
|
||||
}
|
||||
|
||||
public void setAddStatus(String addStatus) {
|
||||
this.addStatus = addStatus;
|
||||
}
|
||||
|
||||
public String getUpdateStatus() {
|
||||
return updateStatus;
|
||||
}
|
||||
|
||||
public void setUpdateStatus(String updateStatus) {
|
||||
this.updateStatus = updateStatus;
|
||||
}
|
||||
|
||||
public String getDeleteStatus() {
|
||||
return deleteStatus;
|
||||
}
|
||||
|
||||
public void setDeleteStatus(String deleteStatus) {
|
||||
this.deleteStatus = deleteStatus;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
||||
public void setCompanyId(String companyId) {
|
||||
this.companyId = companyId;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCustprop() {
|
||||
return custprop;
|
||||
}
|
||||
|
||||
public void setCustprop(String custprop) {
|
||||
this.custprop = custprop;
|
||||
}
|
||||
|
||||
public String getCuststate() {
|
||||
return custstate;
|
||||
}
|
||||
|
||||
public void setCuststate(String custstate) {
|
||||
this.custstate = custstate;
|
||||
}
|
||||
|
||||
public String getEnablestate() {
|
||||
return enablestate;
|
||||
}
|
||||
|
||||
public void setEnablestate(String enablestate) {
|
||||
this.enablestate = enablestate;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPkCountry() {
|
||||
return pkCountry;
|
||||
}
|
||||
|
||||
public void setPkCountry(String pkCountry) {
|
||||
this.pkCountry = pkCountry;
|
||||
}
|
||||
|
||||
public String getPkCustclass() {
|
||||
return pkCustclass;
|
||||
}
|
||||
|
||||
public void setPkCustclass(String pkCustclass) {
|
||||
this.pkCustclass = pkCustclass;
|
||||
}
|
||||
|
||||
public String getPkGroup() {
|
||||
return pkGroup;
|
||||
}
|
||||
|
||||
public void setPkGroup(String pkGroup) {
|
||||
this.pkGroup = pkGroup;
|
||||
}
|
||||
|
||||
public String getPkOrg() {
|
||||
return pkOrg;
|
||||
}
|
||||
|
||||
public void setPkOrg(String pkOrg) {
|
||||
this.pkOrg = pkOrg;
|
||||
}
|
||||
|
||||
public String getTaxpayerid() {
|
||||
return taxpayerid;
|
||||
}
|
||||
|
||||
public void setTaxpayerid(String taxpayerid) {
|
||||
this.taxpayerid = taxpayerid;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,377 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.plugin.masterData.customer.dao.impl.MdmCustomerDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmCustomerEntity-result" type="com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="documentRule" column="document_rule" jdbcType="VARCHAR"/>
|
||||
<result property="documentRuleNum" column="document_rule_num" jdbcType="INTEGER"/>
|
||||
<result property="dataStatus" column="data_status" jdbcType="VARCHAR"/>
|
||||
<result property="addStatus" column="add_status" jdbcType="VARCHAR"/>
|
||||
<result property="updateStatus" column="update_status" jdbcType="VARCHAR"/>
|
||||
<result property="deleteStatus" column="delete_status" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
<result property="code" column="code" jdbcType="VARCHAR"/>
|
||||
<result property="custprop" column="custprop" jdbcType="VARCHAR"/>
|
||||
<result property="custstate" column="custstate" jdbcType="VARCHAR"/>
|
||||
<result property="enablestate" column="enablestate" jdbcType="VARCHAR"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="pkCountry" column="pk_country" jdbcType="VARCHAR"/>
|
||||
<result property="pkCustclass" column="pk_custclass" jdbcType="VARCHAR"/>
|
||||
<result property="pkGroup" column="pk_group" jdbcType="VARCHAR"/>
|
||||
<result property="pkOrg" column="pk_org" jdbcType="VARCHAR"/>
|
||||
<result property="taxpayerid" column="taxpayerid" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "MdmCustomerEntity_Base_Column_List">
|
||||
id
|
||||
,document_rule
|
||||
,document_rule_num
|
||||
,data_status
|
||||
,add_status
|
||||
,update_status
|
||||
,delete_status
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
,modify_time
|
||||
,sts
|
||||
,org_id
|
||||
,company_id
|
||||
,code
|
||||
,custprop
|
||||
,custstate
|
||||
,enablestate
|
||||
,name
|
||||
,pk_country
|
||||
,pk_custclass
|
||||
,pk_group
|
||||
,pk_org
|
||||
,taxpayerid
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity">
|
||||
select count(1) from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule like concat('%',#{documentRule},'%') </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num like concat('%',#{documentRuleNum},'%') </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status like concat('%',#{dataStatus},'%') </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status like concat('%',#{addStatus},'%') </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status like concat('%',#{updateStatus},'%') </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status like concat('%',#{deleteStatus},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
<if test="code != null and code != ''"> and code like concat('%',#{code},'%') </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop like concat('%',#{custprop},'%') </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate like concat('%',#{custstate},'%') </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate like concat('%',#{enablestate},'%') </if>
|
||||
<if test="name != null and name != ''"> and name like concat('%',#{name},'%') </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country like concat('%',#{pkCountry},'%') </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass like concat('%',#{pkCustclass},'%') </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group like concat('%',#{pkGroup},'%') </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org like concat('%',#{pkOrg},'%') </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid like concat('%',#{taxpayerid},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="MdmCustomerentity_list_or" resultMap="get-MdmCustomerEntity-result" parameterType = "com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity">
|
||||
select
|
||||
<include refid="MdmCustomerEntity_Base_Column_List" />
|
||||
from mdm_customer
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> or document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> or document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> or data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> or add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> or update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> or delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> or code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> or custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> or custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> or enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> or name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> or pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> or pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> or pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> or pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> or taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="documentRule != null and documentRule != ''"> document_rule , </if>
|
||||
<if test="documentRuleNum != null"> document_rule_num , </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> data_status , </if>
|
||||
<if test="addStatus != null and addStatus != ''"> add_status , </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> update_status , </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> delete_status , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="code != null and code != ''"> code , </if>
|
||||
<if test="custprop != null and custprop != ''"> custprop , </if>
|
||||
<if test="custstate != null and custstate != ''"> custstate , </if>
|
||||
<if test="enablestate != null and enablestate != ''"> enablestate , </if>
|
||||
<if test="name != null and name != ''"> name , </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> pk_country , </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> pk_custclass , </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> pk_group , </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> pk_org , </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> taxpayerid , </if>
|
||||
<if test="sorts == null ">sorts,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="documentRule != null and documentRule != ''"> #{documentRule} ,</if>
|
||||
<if test="documentRuleNum != null"> #{documentRuleNum} ,</if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> #{dataStatus} ,</if>
|
||||
<if test="addStatus != null and addStatus != ''"> #{addStatus} ,</if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> #{updateStatus} ,</if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> #{deleteStatus} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="code != null and code != ''"> #{code} ,</if>
|
||||
<if test="custprop != null and custprop != ''"> #{custprop} ,</if>
|
||||
<if test="custstate != null and custstate != ''"> #{custstate} ,</if>
|
||||
<if test="enablestate != null and enablestate != ''"> #{enablestate} ,</if>
|
||||
<if test="name != null and name != ''"> #{name} ,</if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> #{pkCountry} ,</if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> #{pkCustclass} ,</if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> #{pkGroup} ,</if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> #{pkOrg} ,</if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> #{taxpayerid} ,</if>
|
||||
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from mdm_customer a WHERE a.sts = 'Y' ),</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, code, custprop, custstate, enablestate, name, pk_country, pk_custclass, pk_group, pk_org, taxpayerid, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.code},#{entity.custprop},#{entity.custstate},#{entity.enablestate},#{entity.name},#{entity.pkCountry},#{entity.pkCustclass},#{entity.pkGroup},#{entity.pkOrg},#{entity.taxpayerid}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into mdm_customer(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, code, custprop, custstate, enablestate, name, pk_country, pk_custclass, pk_group, pk_org, taxpayerid)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.code},#{entity.custprop},#{entity.custstate},#{entity.enablestate},#{entity.name},#{entity.pkCountry},#{entity.pkCustclass},#{entity.pkGroup},#{entity.pkOrg},#{entity.taxpayerid})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
document_rule = values(document_rule),
|
||||
document_rule_num = values(document_rule_num),
|
||||
data_status = values(data_status),
|
||||
add_status = values(add_status),
|
||||
update_status = values(update_status),
|
||||
delete_status = values(delete_status),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id),
|
||||
code = values(code),
|
||||
custprop = values(custprop),
|
||||
custstate = values(custstate),
|
||||
enablestate = values(enablestate),
|
||||
name = values(name),
|
||||
pk_country = values(pk_country),
|
||||
pk_custclass = values(pk_custclass),
|
||||
pk_group = values(pk_group),
|
||||
pk_org = values(pk_org),
|
||||
taxpayerid = values(taxpayerid)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity" >
|
||||
update mdm_customer set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="documentRule != null and documentRule != ''"> document_rule = #{documentRule},</if>
|
||||
<if test="documentRuleNum != null"> document_rule_num = #{documentRuleNum},</if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> data_status = #{dataStatus},</if>
|
||||
<if test="addStatus != null and addStatus != ''"> add_status = #{addStatus},</if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> update_status = #{updateStatus},</if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> delete_status = #{deleteStatus},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||
<if test="code != null and code != ''"> code = #{code},</if>
|
||||
<if test="custprop != null and custprop != ''"> custprop = #{custprop},</if>
|
||||
<if test="custstate != null and custstate != ''"> custstate = #{custstate},</if>
|
||||
<if test="enablestate != null and enablestate != ''"> enablestate = #{enablestate},</if>
|
||||
<if test="name != null and name != ''"> name = #{name},</if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> pk_country = #{pkCountry},</if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> pk_custclass = #{pkCustclass},</if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> pk_group = #{pkGroup},</if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> pk_org = #{pkOrg},</if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> taxpayerid = #{taxpayerid},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity" >
|
||||
update mdm_customer 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.plugin.masterData.customer.entity.MdmCustomerEntity" >
|
||||
update mdm_customer set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="documentRule != null and documentRule != ''"> and document_rule = #{documentRule} </if>
|
||||
<if test="documentRuleNum != null"> and document_rule_num = #{documentRuleNum} </if>
|
||||
<if test="dataStatus != null and dataStatus != ''"> and data_status = #{dataStatus} </if>
|
||||
<if test="addStatus != null and addStatus != ''"> and add_status = #{addStatus} </if>
|
||||
<if test="updateStatus != null and updateStatus != ''"> and update_status = #{updateStatus} </if>
|
||||
<if test="deleteStatus != null and deleteStatus != ''"> and delete_status = #{deleteStatus} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="custprop != null and custprop != ''"> and custprop = #{custprop} </if>
|
||||
<if test="custstate != null and custstate != ''"> and custstate = #{custstate} </if>
|
||||
<if test="enablestate != null and enablestate != ''"> and enablestate = #{enablestate} </if>
|
||||
<if test="name != null and name != ''"> and name = #{name} </if>
|
||||
<if test="pkCountry != null and pkCountry != ''"> and pk_country = #{pkCountry} </if>
|
||||
<if test="pkCustclass != null and pkCustclass != ''"> and pk_custclass = #{pkCustclass} </if>
|
||||
<if test="pkGroup != null and pkGroup != ''"> and pk_group = #{pkGroup} </if>
|
||||
<if test="pkOrg != null and pkOrg != ''"> and pk_org = #{pkOrg} </if>
|
||||
<if test="taxpayerid != null and taxpayerid != ''"> and taxpayerid = #{taxpayerid} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from mdm_customer where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.plugin;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmCustomerPluginInitializer extends PluginBaseEntity{
|
||||
Logger logger = LoggerFactory.getLogger(MdmCustomerPluginInitializer.class);
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
logger.info(getPluginLabel() + "執行初始化方法initialize()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginId() {
|
||||
return "MdmCustomerPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginName() {
|
||||
return "MdmCustomerPlugin插件";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginLabel() {
|
||||
return "MdmCustomerPlugin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginType() {
|
||||
return "1";
|
||||
}
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||
logger.info("执行业务代码逻辑");
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.service;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity;
|
||||
import com.hzya.frame.basedao.service.IBaseService;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public interface IMdmCustomerService extends IBaseService<MdmCustomerEntity, String>{
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.hzya.frame.plugin.masterData.customer.service.impl;
|
||||
|
||||
import com.hzya.frame.plugin.masterData.customer.entity.MdmCustomerEntity;
|
||||
import com.hzya.frame.plugin.masterData.customer.dao.IMdmCustomerDao;
|
||||
import com.hzya.frame.plugin.masterData.customer.service.IMdmCustomerService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import javax.annotation.Resource;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
/**
|
||||
* 客户档案(MdmCustomer)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-21 13:52:35
|
||||
*/
|
||||
public class MdmCustomerServiceImpl extends BaseService<MdmCustomerEntity, String> implements IMdmCustomerService {
|
||||
|
||||
private IMdmCustomerDao mdmCustomerDao;
|
||||
|
||||
@Autowired
|
||||
public void setMdmCustomerDao(IMdmCustomerDao dao) {
|
||||
this.mdmCustomerDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
}
|
|
@ -210,7 +210,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.org.entity.MdmOrgEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.org.entity.MdmOrgEntity" >
|
||||
insert into mdm_org(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -276,7 +276,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_org(document_rule, document_rule_num, org_code, org_name, org_address, org_countryzone, org_innercode, org_memo, org_mnecode, org_ncindustry, org_fatherorg, org_principal, org_tel, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -284,7 +284,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_org(document_rule, document_rule_num, org_code, org_name, org_address, org_countryzone, org_innercode, org_memo, org_mnecode, org_ncindustry, org_fatherorg, org_principal, org_tel, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -204,7 +204,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.project.entity.MdmProjectEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.project.entity.MdmProjectEntity" >
|
||||
insert into mdm_project(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -268,7 +268,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_project(document_rule, document_rule_num, project_code, project_name, project_bill_type, project_memo, project_currtype, project_dutier, project_duty_dept, project_org, project_parentpro, project_sh_name, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -276,7 +276,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_project(document_rule, document_rule_num, project_code, project_name, project_bill_type, project_memo, project_currtype, project_dutier, project_duty_dept, project_org, project_parentpro, project_sh_name, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -258,7 +258,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.user.entity.MdmUserEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.plugin.masterData.user.entity.MdmUserEntity" >
|
||||
insert into mdm_user(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -340,7 +340,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_user(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, user_name, user_code, user_password, pwdlevelcode, pwdparam, user_note, abledate, disabledate, islocked, user_type, base_doc_type, pk_base_doc, identityverifycode, pk_org, format, isca, enablestate, contentlang, user_code_q, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -348,7 +348,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_user(document_rule, document_rule_num, data_status, add_status, update_status, delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, user_name, user_code, user_password, pwdlevelcode, pwdparam, user_note, abledate, disabledate, islocked, user_type, base_doc_type, pk_base_doc, identityverifycode, pk_org, format, isca, enablestate, contentlang, user_code_q)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -19,5 +19,5 @@ spring:
|
|||
savefile:
|
||||
# 文件保存路径
|
||||
path: E:\yongansystem\file
|
||||
ax:
|
||||
zt:
|
||||
url: http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -23,5 +23,5 @@ spring:
|
|||
savefile:
|
||||
# 文件保存路径
|
||||
path: D:\yongansystem\kangarooDataCenter\v3\logs
|
||||
ax:
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -24,5 +24,5 @@ spring:
|
|||
savefile:
|
||||
# 文件保存路径
|
||||
path: /Users/apple/Desktop/log/local
|
||||
ax:
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -19,5 +19,5 @@ spring:
|
|||
savefile:
|
||||
# 文件保存路径
|
||||
path: /Users/apple/Desktop/log/local
|
||||
ax:
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -19,5 +19,5 @@ spring:
|
|||
savefile:
|
||||
# 文件保存路径
|
||||
path: E:\yongansystem\log
|
||||
ax:
|
||||
zt:
|
||||
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
|
|
@ -90,7 +90,7 @@ mybatis-plus:
|
|||
global-config:
|
||||
db-config:
|
||||
id-type: auto # 主键策略
|
||||
ax:
|
||||
zt:
|
||||
url:
|
||||
# 积木报表工具
|
||||
#JimuReport[minidao配置]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>MdmCustomerBankPlugin</id>
|
||||
<name>MdmCustomerBankPlugin插件</name>
|
||||
<category>90000001</category>
|
||||
</plugin>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerBankDao" class="com.hzya.frame.plugin.masterData.customer.bank.dao.impl.MdmCustomerBankDaoImpl" />
|
||||
</beans>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerBankInitializer" class="com.hzya.frame.plugin.masterData.customer.bank.plugin.MdmCustomerBankPluginInitializer" />
|
||||
</beans>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerBankService" class="com.hzya.frame.plugin.masterData.customer.bank.service.impl.MdmCustomerBankServiceImpl" />
|
||||
</beans>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin>
|
||||
<id>MdmCustomerPlugin</id>
|
||||
<name>MdmCustomerPlugin插件</name>
|
||||
<category>90000001</category>
|
||||
</plugin>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerDao" class="com.hzya.frame.plugin.masterData.customer.dao.impl.MdmCustomerDaoImpl" />
|
||||
</beans>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerInitializer" class="com.hzya.frame.plugin.masterData.customer.plugin.MdmCustomerPluginInitializer" />
|
||||
</beans>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
<beans default-autowire="byName">
|
||||
<bean name="mdmCustomerService" class="com.hzya.frame.plugin.masterData.customer.service.impl.MdmCustomerServiceImpl" />
|
||||
</beans>
|
|
@ -54,8 +54,8 @@ public class temButtom {
|
|||
public void test01() {
|
||||
String a = AESUtil.encrypt("hzya@1314");
|
||||
System.out.println(a);
|
||||
|
||||
//String sa= "{\n \\"status\\": \\"success\\",\n \\"data\\": \\"[{\\\\"pk_corp\\\\":\\\\"1001\\\\",\\\\"unitcode\\\\":\\\\"01\\\\",\\\\"unitname\\\\":\\\\"临安奥星电子股份有限公司\\\\",\\\\"createdate\\\\":\\\\"2024-04-24\\\\",\\\\"deptattr\\\\":\\\\"1\\\\",\\\\"deptname\\\\":\\\\"DEV测试一级部门\\\\",\\\\"deptcode\\\\":\\\\"99\\\\",\\\\"pk_deptdoc\\\\":\\\\"1001F1100000000067AS\\\\"}]\\",\n \\"taskNumber\\": \\"202404250041\\"\n}";
|
||||
String b = AESUtil.decrypt("62e4295b615a30dbf3b8ee96f41c820b");
|
||||
System.out.println(b);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ public class MdmQuery {
|
|||
|
||||
//分页
|
||||
private Integer pageNum;
|
||||
//分页
|
||||
private Long mdmCode;
|
||||
private Integer pageSize;
|
||||
//表名
|
||||
private String tableName;
|
||||
|
@ -66,4 +68,12 @@ public class MdmQuery {
|
|||
public void setDetailQueryCondition(List<MdmQuery> detailQueryCondition) {
|
||||
this.detailQueryCondition = detailQueryCondition;
|
||||
}
|
||||
|
||||
public Long getMdmCode() {
|
||||
return mdmCode;
|
||||
}
|
||||
|
||||
public void setMdmCode(Long mdmCode) {
|
||||
this.mdmCode = mdmCode;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,8 +49,11 @@ public interface IMdmModuleDao extends IBaseDao<MdmModuleEntity, String> {
|
|||
Integer deleteTable(Map<String, Object> maps);
|
||||
|
||||
|
||||
JSONObject queryMdmST(Map<String, String> maps);
|
||||
JSONObject queryMdmST(Map<String, Object> maps);
|
||||
List<JSONObject> queryMdmSTDetail(Map<String, String> maps);
|
||||
|
||||
List<JSONObject> queryMdmSTs(Map<String, Object> map);
|
||||
|
||||
void updateMdmSTs(Map<String, Object> updateMap);
|
||||
}
|
||||
|
||||
|
|
|
@ -148,10 +148,20 @@ public class MdmModuleDaoImpl extends MybatisGenericDao<MdmModuleEntity, String>
|
|||
}
|
||||
|
||||
@Override
|
||||
public JSONObject queryMdmST(Map<String, String> maps) {
|
||||
public JSONObject queryMdmST(Map<String, Object> maps) {
|
||||
JSONObject o = (JSONObject) super.selectOne(getSqlIdPrifx() + "queryMdmST", maps);
|
||||
return o;
|
||||
}
|
||||
@Override
|
||||
public List<JSONObject> queryMdmSTs(Map<String, Object> maps) {
|
||||
List<JSONObject> o = (List<JSONObject>) super.selectList(getSqlIdPrifx() + "queryMdmST", maps);
|
||||
return o;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateMdmSTs(Map<String, Object> maps) {
|
||||
super.update(getSqlIdPrifx() + "updateMdmSTs", maps);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<JSONObject> queryMdmSTDetail(Map<String, String> maps) {
|
||||
|
|
|
@ -397,6 +397,9 @@ where id = #{id}
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="alterTable" resultType="java.lang.Integer">
|
||||
ALTER TABLE ${tableName}
|
||||
|
@ -551,7 +554,7 @@ where id = #{id}
|
|||
${item.getValueByType('a.')}
|
||||
</foreach>
|
||||
</if>
|
||||
and a.sts='Y'
|
||||
and a.sts='Y' and a.data_status != 'N'
|
||||
<if test="detailQueryCondition != null and detailQueryCondition.size>0">
|
||||
<foreach collection="detailQueryCondition" item="item" index="index">
|
||||
AND a.id IN (
|
||||
|
@ -591,7 +594,7 @@ where id = #{id}
|
|||
</trim>
|
||||
)
|
||||
</if>
|
||||
and sts = 'Y'
|
||||
and sts = 'Y' and data_status != 'N'
|
||||
</trim>
|
||||
order by sorts asc
|
||||
</select>
|
||||
|
@ -605,7 +608,7 @@ where id = #{id}
|
|||
from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id !='' ">and id = #{id}</if>
|
||||
and sts = 'Y'
|
||||
and sts = 'Y' and data_status != 'N'
|
||||
</trim>
|
||||
order by sorts asc
|
||||
</select>
|
||||
|
@ -617,7 +620,7 @@ where id = #{id}
|
|||
${label},
|
||||
${upId}
|
||||
from ${tableName}
|
||||
where sts = 'Y'
|
||||
where sts = 'Y' and data_status != 'N'
|
||||
order by sorts asc
|
||||
</select>
|
||||
<!-- 查询符合条件的数量 -->
|
||||
|
@ -748,7 +751,8 @@ where id = #{id}
|
|||
</insert>
|
||||
<update id="deleteTemplateById" parameterType="com.hzya.frame.sys.entity.FormmainDeleteDto">
|
||||
update ${tableName} set
|
||||
sts='N',modify_time = now(),modify_user_id = #{loginId}
|
||||
data_status ='N',modify_time = now(),modify_user_id = #{loginId}
|
||||
<if test="formmain_id == null ">,delete_status = '0' </if>
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id !='' ">and id = #{id}</if>
|
||||
<if test="formmain_id != null and formmain_id !='' ">and formmain_id = #{formmain_id}</if>
|
||||
|
@ -758,7 +762,7 @@ where id = #{id}
|
|||
|
||||
<update id="deleteChilder" parameterType="com.hzya.frame.sys.entity.FormmainDeleteDto">
|
||||
update ${tableName} set
|
||||
sts='N',modify_time = now(),modify_user_id = #{loginId}
|
||||
data_status='N',modify_time = now(),modify_user_id = #{loginId},delete_status = '0'
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="upIdFiled != null and upIdFiled !='' and upIdFiledValue != null and upIdFiledValue !=''">
|
||||
and ${upIdFiled} like concat(#{upIdFiledValue},'%')
|
||||
|
@ -800,8 +804,65 @@ where id = #{id}
|
|||
select * from ${tableName}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="documentRule != null and documentRule !='' ">and document_rule = #{documentRule}</if>
|
||||
<if test="dataStatus != null and dataStatus !='' ">and data_status = #{dataStatus}</if>
|
||||
<if test="addStatus != null and addStatus !='' ">and add_status = #{addStatus}</if>
|
||||
<if test="updateStatus != null and updateStatus !='' ">and update_status = #{updateStatus}</if>
|
||||
<if test="deleteStatus != null and deleteStatus !='' ">and delete_status = #{deleteStatus}</if>
|
||||
<if test="id != null and id !='' ">and id = #{id}</if>
|
||||
<if test="mdmModuleDistributeDetailEntities != null and mdmModuleDistributeDetailEntities.size>0">
|
||||
AND
|
||||
<foreach collection="mdmModuleDistributeDetailEntities" item="item" index="index" open="(" close=")" >
|
||||
${item.leftBracket} ${item.filedName}
|
||||
<choose>
|
||||
<when test="item.compareType == '1'.toString() ">
|
||||
=
|
||||
</when>
|
||||
<when test="item.compareType == '2'.toString() ">
|
||||
!=
|
||||
</when>
|
||||
<when test="item.compareType == '3'.toString() ">
|
||||
>
|
||||
</when>
|
||||
<when test="item.compareType == '4'.toString() ">
|
||||
<
|
||||
</when>
|
||||
</choose>
|
||||
#{item.filedVaule}
|
||||
<choose>
|
||||
<when test="item.connectionSymbol == '1'.toString() ">
|
||||
<choose>
|
||||
<when test="item.rightParenthesis == ')'.toString() ">
|
||||
${item.rightParenthesis} and
|
||||
</when>
|
||||
<otherwise>
|
||||
${item.rightParenthesis}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</when>
|
||||
<when test="item.connectionSymbol == '2'.toString() ">
|
||||
<choose>
|
||||
<when test="item.rightParenthesis == ')'.toString() ">
|
||||
${item.rightParenthesis} or
|
||||
</when>
|
||||
<otherwise>
|
||||
${item.rightParenthesis}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</when>
|
||||
<otherwise>
|
||||
${item.rightParenthesis}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="ids != null and ids.size>0">
|
||||
AND id in
|
||||
<foreach collection="ids" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item.id}
|
||||
</foreach>
|
||||
</if>
|
||||
and sts = 'Y'
|
||||
<if test="size != null and size !='' ">limit #{size}</if>
|
||||
</trim>
|
||||
</select>
|
||||
|
||||
|
@ -810,5 +871,17 @@ where id = #{id}
|
|||
parameterType="java.util.HashMap">
|
||||
select * from ${tableName} where sts='Y' and formmain_id = #{formmainId}
|
||||
</select>
|
||||
|
||||
<update id="updateMdmSTs" parameterType="java.util.HashMap">
|
||||
update ${tableName} set
|
||||
<trim prefixOverrides=",">
|
||||
<if test="addStatus != null and addStatus !='' ">, add_status = #{addStatus}</if>
|
||||
,modify_time = now()
|
||||
</trim>
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id !='' ">and id = #{id}</if>
|
||||
<if test="dataStatus != null and dataStatus !='' ">and data_status = #{dataStatus}</if>
|
||||
</trim>
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -388,4 +388,13 @@ public interface IMdmModuleService extends IBaseService<MdmModuleEntity, String>
|
|||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmMainDBField(JSONObject jsonObject);
|
||||
|
||||
/**
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-分发设置-列表获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
JsonResultEntity queryMdmDistributeByMdmCode(JSONObject jsonObject);
|
||||
}
|
||||
|
|
|
@ -311,6 +311,7 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
}
|
||||
entity.setCreate();
|
||||
mdmModuleDao.save(entity);
|
||||
entity = mdmModuleDao.get(entity.getId());
|
||||
return BaseResult.getSuccessMessageEntity("保存成功",entity);
|
||||
}
|
||||
|
||||
|
@ -619,6 +620,40 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
source_name.setDataType("1");
|
||||
mdmModuleDbFiledsEntities.add(source_name);
|
||||
|
||||
MdmModuleDbFiledsEntity data_type = new MdmModuleDbFiledsEntity();
|
||||
data_type.setMdmId(entity.getMdmId());
|
||||
data_type.setDbId(entity.getId());
|
||||
data_type.setEnName("data_type");
|
||||
data_type.setChName("状态");
|
||||
data_type.setFiledType("3");
|
||||
data_type.setAddType("1");
|
||||
data_type.setUpdateType("1");
|
||||
data_type.setShowType("1");
|
||||
data_type.setQueryType("1");
|
||||
data_type.setListType("1");
|
||||
data_type.setViewType("1");
|
||||
data_type.setFiledLength("50");
|
||||
data_type.setCreate();
|
||||
data_type.setDataType("1");
|
||||
mdmModuleDbFiledsEntities.add(data_type);
|
||||
|
||||
MdmModuleDbFiledsEntity remark = new MdmModuleDbFiledsEntity();
|
||||
remark.setMdmId(entity.getMdmId());
|
||||
remark.setDbId(entity.getId());
|
||||
remark.setEnName("remark");
|
||||
remark.setChName("备注");
|
||||
remark.setFiledType("3");
|
||||
remark.setAddType("1");
|
||||
remark.setUpdateType("1");
|
||||
remark.setShowType("1");
|
||||
remark.setQueryType("1");
|
||||
remark.setListType("1");
|
||||
remark.setViewType("1");
|
||||
remark.setFiledLength("255");
|
||||
remark.setCreate();
|
||||
remark.setDataType("1");
|
||||
mdmModuleDbFiledsEntities.add(remark);
|
||||
|
||||
MdmModuleDbFiledsEntity code = new MdmModuleDbFiledsEntity();
|
||||
code.setMdmId(entity.getMdmId());
|
||||
code.setDbId(entity.getId());
|
||||
|
@ -757,13 +792,47 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
option_type.setCreate();
|
||||
option_type.setDataType("1");
|
||||
mdmModuleDbFiledsEntities.add(option_type);
|
||||
|
||||
MdmModuleDbFiledsEntity data_type = new MdmModuleDbFiledsEntity();
|
||||
data_type.setMdmId(entity.getMdmId());
|
||||
data_type.setDbId(entity.getId());
|
||||
data_type.setEnName("data_type");
|
||||
data_type.setChName("状态");
|
||||
data_type.setFiledType("3");
|
||||
data_type.setAddType("1");
|
||||
data_type.setUpdateType("1");
|
||||
data_type.setShowType("1");
|
||||
data_type.setQueryType("1");
|
||||
data_type.setListType("1");
|
||||
data_type.setViewType("1");
|
||||
data_type.setFiledLength("255");
|
||||
data_type.setCreate();
|
||||
data_type.setDataType("1");
|
||||
mdmModuleDbFiledsEntities.add(data_type);
|
||||
|
||||
MdmModuleDbFiledsEntity remark = new MdmModuleDbFiledsEntity();
|
||||
remark.setMdmId(entity.getMdmId());
|
||||
remark.setDbId(entity.getId());
|
||||
remark.setEnName("remark");
|
||||
remark.setChName("备注");
|
||||
remark.setFiledType("3");
|
||||
remark.setAddType("1");
|
||||
remark.setUpdateType("1");
|
||||
remark.setShowType("1");
|
||||
remark.setQueryType("1");
|
||||
remark.setListType("1");
|
||||
remark.setViewType("1");
|
||||
remark.setFiledLength("255");
|
||||
remark.setCreate();
|
||||
remark.setDataType("1");
|
||||
mdmModuleDbFiledsEntities.add(remark);
|
||||
}
|
||||
if ("2".equals(entity.getDbType()) || "1".equals(entity.getDbType())) {
|
||||
MdmModuleDbFiledsEntity data_status = new MdmModuleDbFiledsEntity();
|
||||
data_status.setMdmId(entity.getMdmId());
|
||||
data_status.setDbId(entity.getId());
|
||||
data_status.setEnName("data_status");
|
||||
data_status.setChName("数据状态 Y正常 N删除 F修改");
|
||||
data_status.setChName("数据状态");
|
||||
data_status.setFiledType("3");
|
||||
data_status.setAddType("2");
|
||||
data_status.setUpdateType("2");
|
||||
|
@ -2251,6 +2320,24 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
List<MdmModuleDistributeEntity> list = mdmModuleDistributeDao.queryBase(entity);
|
||||
if(list != null && list.size() > 0){
|
||||
MdmModuleDistributeDetailEntity mdmModuleDistributeDetailEntity = new MdmModuleDistributeDetailEntity();
|
||||
mdmModuleDistributeDetailEntity.setMdmId(entity.getMdmId());
|
||||
mdmModuleDistributeDetailEntity.setSts("Y");
|
||||
List<MdmModuleDistributeDetailEntity> listDetail = mdmModuleDistributeDetailDao.queryBase(mdmModuleDistributeDetailEntity);
|
||||
if(listDetail != null && listDetail.size() > 0){
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
List<MdmModuleDistributeDetailEntity> mdmModuleDistributeDetailEntities = new ArrayList<>();
|
||||
for (int i1 = 0; i1 < listDetail.size(); i1++) {
|
||||
if(listDetail.get(i1).getDistributeId().equals(list.get(i).getId())){
|
||||
mdmModuleDistributeDetailEntities.add(listDetail.get(i1) );
|
||||
}
|
||||
}
|
||||
list.get(i).setMdmModuleDistributeDetailEntities(mdmModuleDistributeDetailEntities);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("获取分发设置成功", list);
|
||||
}
|
||||
|
||||
|
@ -2331,12 +2418,16 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
mdmModuleDistributeDetailDao.logicRemoveMultiCondition(mdmModuleDistributeDetailEntity);
|
||||
if (entity.getMdmModuleDistributeDetailEntities() != null && entity.getMdmModuleDistributeDetailEntities().size() > 0) {
|
||||
for (int i = 0; i < entity.getMdmModuleDistributeDetailEntities().size(); i++) {
|
||||
entity.getMdmModuleDistributeDetailEntities().get(i).setSts("Y");
|
||||
entity.getMdmModuleDistributeDetailEntities().get(i).setMdmId(entity.getMdmId());
|
||||
entity.getMdmModuleDistributeDetailEntities().get(i).setSts("Y");
|
||||
if (entity.getMdmModuleDistributeDetailEntities().get(i).getId() != null) {
|
||||
entity.getMdmModuleDistributeDetailEntities().get(i).setUpdate();
|
||||
entity.getMdmModuleDistributeDetailEntities().get(i).setDistributeId(entity.getId());
|
||||
mdmModuleDistributeDetailDao.update(entity.getMdmModuleDistributeDetailEntities().get(i));
|
||||
} else {
|
||||
entity.getMdmModuleDistributeDetailEntities().get(i).setCreate();
|
||||
entity.getMdmModuleDistributeDetailEntities().get(i).setDistributeId(entity.getId());
|
||||
mdmModuleDistributeDetailDao.save(entity.getMdmModuleDistributeDetailEntities().get(i));
|
||||
}
|
||||
}
|
||||
|
@ -2494,13 +2585,13 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
mdmModuleDbFiledsEntity.setMdmId(entity.getMdmId());
|
||||
List<MdmModuleDbFiledsEntity> mdmModuleDbEntities = mdmServiceCache.queryMdmModuleDbFileds(mdmModuleDbFiledsEntity);
|
||||
List<MdmModuleDbFiledsEntity> list = new ArrayList<>();
|
||||
if(mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0){
|
||||
for (int i = 0; i < mdmModuleDbEntities.size(); i++) {
|
||||
if(entity.getDbId().equals(mdmModuleDbEntities.get(i).getDbId()) && "1".equals(mdmModuleDbEntities.get(i).getViewType())){
|
||||
list.add(mdmModuleDbEntities.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
if(mdmModuleDbEntities != null && mdmModuleDbEntities.size() > 0){
|
||||
for (int i = 0; i < mdmModuleDbEntities.size(); i++) {
|
||||
if(entity.getDbId().equals(mdmModuleDbEntities.get(i).getDbId()) && "1".equals(mdmModuleDbEntities.get(i).getViewType())){
|
||||
list.add(mdmModuleDbEntities.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
return BaseResult.getSuccessMessageEntity("查询数据成功", list);
|
||||
}
|
||||
|
||||
|
@ -2577,4 +2668,27 @@ public class MdmModuleServiceImpl extends BaseService<MdmModuleEntity, String> i
|
|||
}
|
||||
return BaseResult.getSuccessMessageEntity("查询数据成功", list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param object
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 主数据-分发设置-列表获取
|
||||
* @Date 11:43 上午 2024/6/11
|
||||
**/
|
||||
@Override
|
||||
public JsonResultEntity queryMdmDistributeByMdmCode(JSONObject object) {
|
||||
MdmModuleDistributeEntity entity = getData("jsonStr", object, MdmModuleDistributeEntity.class);
|
||||
if (entity == null) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
if (entity.getMdmCode() == null || "".equals(entity.getMdmCode())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
MdmModuleEntity mdmModuleEntity = mdmServiceCache.getMdmModuleEntity(entity.getMdmCode());
|
||||
entity.setMdmId(mdmModuleEntity.getId());
|
||||
List<MdmModuleDistributeEntity> list = mdmModuleDistributeDao.queryBase(entity);
|
||||
return BaseResult.getSuccessMessageEntity("获取分发设置成功", list);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,6 +76,14 @@
|
|||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<if test="roletype != null and roletype != ''">
|
||||
and id in (
|
||||
select
|
||||
filed_id
|
||||
from mdm_module_db_fileds_rule
|
||||
where sts='Y' and rule_code = #{roletype} and rule_value = #{roleValue}
|
||||
)
|
||||
</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
|
|
|
@ -11,5 +11,6 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
|||
*/
|
||||
public interface IMdmModuleDistributeDao extends IBaseDao<MdmModuleDistributeEntity, String> {
|
||||
|
||||
Integer queryCountUse(MdmModuleDistributeEntity mdmModuleDistributeEntity);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,9 @@ import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity;
|
|||
import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* 主数据功能应用分发表(MdmModuleDistribute)表数据库访问层
|
||||
*
|
||||
|
@ -12,6 +15,11 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|||
*/
|
||||
@Repository(value = "MdmModuleDistributeDaoImpl")
|
||||
public class MdmModuleDistributeDaoImpl extends MybatisGenericDao<MdmModuleDistributeEntity, String> implements IMdmModuleDistributeDao{
|
||||
|
||||
|
||||
@Override
|
||||
public Integer queryCountUse(MdmModuleDistributeEntity mdmModuleDistributeEntity) {
|
||||
Integer o = (Integer) super.selectOne(getSqlIdPrifx() + "queryCountUse", mdmModuleDistributeEntity);
|
||||
return o;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@ public class MdmModuleDistributeEntity extends BaseEntity {
|
|||
private String mdmId;
|
||||
/** 应用id */
|
||||
private String appId;
|
||||
/** 应用id */
|
||||
private Long mdmCode;
|
||||
/** 触发类型 0、手动1、自动 */
|
||||
private String enabledType;
|
||||
/** 修改接口 */
|
||||
|
@ -40,6 +42,13 @@ public class MdmModuleDistributeEntity extends BaseEntity {
|
|||
/** 公司id */
|
||||
private List<MdmModuleDistributeDetailEntity> mdmModuleDistributeDetailEntities;
|
||||
|
||||
public Long getMdmCode() {
|
||||
return mdmCode;
|
||||
}
|
||||
|
||||
public void setMdmCode(Long mdmCode) {
|
||||
this.mdmCode = mdmCode;
|
||||
}
|
||||
|
||||
public String getMdmId() {
|
||||
return mdmId;
|
||||
|
@ -144,5 +153,7 @@ public class MdmModuleDistributeEntity extends BaseEntity {
|
|||
public void setMdmModuleDistributeDetailEntities(List<MdmModuleDistributeDetailEntity> mdmModuleDistributeDetailEntities) {
|
||||
this.mdmModuleDistributeDetailEntities = mdmModuleDistributeDetailEntities;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity" >
|
||||
insert into mdm_module_distribute(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -235,7 +235,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_module_distribute(mdm_id, app_id, enabled_type, update_api, update_script, add_api, add_script, delete_api, delete_script, enabled_state, db_id, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -243,7 +243,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_module_distribute(mdm_id, app_id, enabled_type, update_api, update_script, add_api, add_script, delete_api, delete_script, enabled_state, db_id, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -324,6 +324,16 @@ update mdm_module_distribute set sts= 'N' ,modify_time = #{modify_time},modify_
|
|||
<delete id="entity_delete">
|
||||
delete from mdm_module_distribute where id = #{id}
|
||||
</delete>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="queryCountUse" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity">
|
||||
select count(1) from mdm_module_distribute
|
||||
where sts='Y' and (
|
||||
<trim prefixOverrides="or" >
|
||||
<if test="updateScript != null and updateScript != ''"> or update_script = #{updateScript} </if>
|
||||
<if test="addScript != null and addScript != ''"> or add_script = #{addScript} </if>
|
||||
<if test="deleteScript != null and deleteScript != ''"> or delete_script = #{deleteScript} </if>
|
||||
</trim>
|
||||
)
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import com.hzya.frame.basedao.dao.IBaseDao;
|
|||
* 主数据功能应用分发明细表(mdm_module_distribute_detail: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-14 10:03:50
|
||||
* @since 2024-06-19 10:34:58
|
||||
*/
|
||||
public interface IMdmModuleDistributeDetailDao extends IBaseDao<MdmModuleDistributeDetailEntity, String> {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
|||
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-14 10:03:50
|
||||
* @since 2024-06-19 10:34:58
|
||||
*/
|
||||
@Repository(value = "MdmModuleDistributeDetailDaoImpl")
|
||||
public class MdmModuleDistributeDetailDaoImpl extends MybatisGenericDao<MdmModuleDistributeDetailEntity, String> implements IMdmModuleDistributeDetailDao{
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
|
|||
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-14 10:03:50
|
||||
* @since 2024-06-19 10:34:58
|
||||
*/
|
||||
public class MdmModuleDistributeDetailEntity extends BaseEntity {
|
||||
|
||||
|
@ -20,6 +20,8 @@ public class MdmModuleDistributeDetailEntity extends BaseEntity {
|
|||
private String dataType;
|
||||
/** 左括号 */
|
||||
private String leftBracket;
|
||||
/** 字段id */
|
||||
private String filedId;
|
||||
/** 字段名 */
|
||||
private String filedName;
|
||||
/** 对比类型 1、等于 2、不等于 3、大于 4、小于 */
|
||||
|
@ -74,6 +76,14 @@ public class MdmModuleDistributeDetailEntity extends BaseEntity {
|
|||
this.leftBracket = leftBracket;
|
||||
}
|
||||
|
||||
public String getFiledId() {
|
||||
return filedId;
|
||||
}
|
||||
|
||||
public void setFiledId(String filedId) {
|
||||
this.filedId = filedId;
|
||||
}
|
||||
|
||||
public String getFiledName() {
|
||||
return filedName;
|
||||
}
|
||||
|
|
|
@ -2,35 +2,38 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.hzya.frame.mdm.mdmModuleDistributeDetail.dao.impl.MdmModuleDistributeDetailDaoImpl">
|
||||
|
||||
<resultMap id="get-MdmModuleDistributeDetailEntity-result" type="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||
<result property="distributeId" column="distribute_id" jdbcType="VARCHAR"/>
|
||||
<result property="apiId" column="api_id" jdbcType="VARCHAR"/>
|
||||
<result property="dataType" column="data_type" jdbcType="VARCHAR"/>
|
||||
<result property="leftBracket" column="left_bracket" jdbcType="VARCHAR"/>
|
||||
<result property="filedName" column="filed_name" jdbcType="VARCHAR"/>
|
||||
<result property="compareType" column="compare_type" jdbcType="VARCHAR"/>
|
||||
<result property="filedVaule" column="filed_vaule" jdbcType="VARCHAR"/>
|
||||
<result property="connectionSymbol" column="connection_symbol" jdbcType="VARCHAR"/>
|
||||
<result property="rightParenthesis" column="right_parenthesis" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<resultMap id="get-MdmModuleDistributeDetailEntity-result"
|
||||
type="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||
<result property="distributeId" column="distribute_id" jdbcType="VARCHAR"/>
|
||||
<result property="apiId" column="api_id" jdbcType="VARCHAR"/>
|
||||
<result property="dataType" column="data_type" jdbcType="VARCHAR"/>
|
||||
<result property="leftBracket" column="left_bracket" jdbcType="VARCHAR"/>
|
||||
<result property="filedId" column="filed_id" jdbcType="VARCHAR"/>
|
||||
<result property="filedName" column="filed_name" jdbcType="VARCHAR"/>
|
||||
<result property="compareType" column="compare_type" jdbcType="VARCHAR"/>
|
||||
<result property="filedVaule" column="filed_vaule" jdbcType="VARCHAR"/>
|
||||
<result property="connectionSymbol" column="connection_symbol" jdbcType="VARCHAR"/>
|
||||
<result property="rightParenthesis" column="right_parenthesis" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="sts" column="sts" jdbcType="VARCHAR"/>
|
||||
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
|
||||
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
<!-- 查询的字段-->
|
||||
<sql id = "MdmModuleDistributeDetailEntity_Base_Column_List">
|
||||
<sql id="MdmModuleDistributeDetailEntity_Base_Column_List">
|
||||
id
|
||||
,mdm_id
|
||||
,distribute_id
|
||||
,api_id
|
||||
,data_type
|
||||
,left_bracket
|
||||
,filed_id
|
||||
,filed_name
|
||||
,compare_type
|
||||
,filed_vaule
|
||||
|
@ -45,269 +48,311 @@
|
|||
,org_id
|
||||
,company_id
|
||||
</sql>
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-MdmModuleDistributeDetailEntity-result">
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleDistributeDetailEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
select
|
||||
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List" />
|
||||
from mdm_module_distribute_detail where id = #{ id } and sts='Y'
|
||||
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List"/>
|
||||
from mdm_module_distribute_detail
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||
<if test="distributeId != null and distributeId != ''">and distribute_id = #{distributeId}</if>
|
||||
<if test="apiId != null and apiId != ''">and api_id = #{apiId}</if>
|
||||
<if test="dataType != null and dataType != ''">and data_type = #{dataType}</if>
|
||||
<if test="leftBracket != null and leftBracket != ''">and left_bracket = #{leftBracket}</if>
|
||||
<if test="filedId != null and filedId != ''">and filed_id = #{filedId}</if>
|
||||
<if test="filedName != null and filedName != ''">and filed_name = #{filedName}</if>
|
||||
<if test="compareType != null and compareType != ''">and compare_type = #{compareType}</if>
|
||||
<if test="filedVaule != null and filedVaule != ''">and filed_vaule = #{filedVaule}</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''">and connection_symbol = #{connectionSymbol}
|
||||
</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''">and right_parenthesis = #{rightParenthesis}
|
||||
</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleDistributeDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
select
|
||||
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List" />
|
||||
from mdm_module_distribute_detail
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
||||
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="leftBracket != null and leftBracket != ''"> and left_bracket = #{leftBracket} </if>
|
||||
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
|
||||
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
|
||||
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''"> and connection_symbol = #{connectionSymbol} </if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''"> and right_parenthesis = #{rightParenthesis} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
select count(1) from mdm_module_distribute_detail
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||
<if test="distributeId != null and distributeId != ''">and distribute_id = #{distributeId}</if>
|
||||
<if test="apiId != null and apiId != ''">and api_id = #{apiId}</if>
|
||||
<if test="dataType != null and dataType != ''">and data_type = #{dataType}</if>
|
||||
<if test="leftBracket != null and leftBracket != ''">and left_bracket = #{leftBracket}</if>
|
||||
<if test="filedId != null and filedId != ''">and filed_id = #{filedId}</if>
|
||||
<if test="filedName != null and filedName != ''">and filed_name = #{filedName}</if>
|
||||
<if test="compareType != null and compareType != ''">and compare_type = #{compareType}</if>
|
||||
<if test="filedVaule != null and filedVaule != ''">and filed_vaule = #{filedVaule}</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''">and connection_symbol = #{connectionSymbol}
|
||||
</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''">and right_parenthesis = #{rightParenthesis}
|
||||
</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">and modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询符合条件的数量 -->
|
||||
<select id="entity_count" resultType="Integer" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
select count(1) from mdm_module_distribute_detail
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
||||
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="leftBracket != null and leftBracket != ''"> and left_bracket = #{leftBracket} </if>
|
||||
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
|
||||
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
|
||||
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''"> and connection_symbol = #{connectionSymbol} </if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''"> and right_parenthesis = #{rightParenthesis} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> and modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null "> order by ${sort} ${order}</if>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 分页查询列表 采用like格式 -->
|
||||
<select id="entity_list_like" resultMap="get-MdmModuleDistributeDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
select
|
||||
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List" />
|
||||
from mdm_module_distribute_detail
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||
<if test="distributeId != null and distributeId != ''"> and distribute_id like concat('%',#{distributeId},'%') </if>
|
||||
<if test="apiId != null and apiId != ''"> and api_id like concat('%',#{apiId},'%') </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type like concat('%',#{dataType},'%') </if>
|
||||
<if test="leftBracket != null and leftBracket != ''"> and left_bracket like concat('%',#{leftBracket},'%') </if>
|
||||
<if test="filedName != null and filedName != ''"> and filed_name like concat('%',#{filedName},'%') </if>
|
||||
<if test="compareType != null and compareType != ''"> and compare_type like concat('%',#{compareType},'%') </if>
|
||||
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule like concat('%',#{filedVaule},'%') </if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''"> and connection_symbol like concat('%',#{connectionSymbol},'%') </if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''"> and right_parenthesis like concat('%',#{rightParenthesis},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> and modify_user_id like concat('%',#{modify_user_id},'%') </if>
|
||||
<if test="modify_time != null"> and modify_time like concat('%',#{modify_time},'%') </if>
|
||||
<if test="sts != null and sts != ''"> and sts like concat('%',#{sts},'%') </if>
|
||||
<if test="org_id != null and org_id != ''"> and org_id like concat('%',#{org_id},'%') </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
<select id="entity_list_like" resultMap="get-MdmModuleDistributeDetailEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
select
|
||||
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List"/>
|
||||
from mdm_module_distribute_detail
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
||||
<if test="mdmId != null and mdmId != ''">and mdm_id like concat('%',#{mdmId},'%')</if>
|
||||
<if test="distributeId != null and distributeId != ''">and distribute_id like
|
||||
concat('%',#{distributeId},'%')
|
||||
</if>
|
||||
<if test="apiId != null and apiId != ''">and api_id like concat('%',#{apiId},'%')</if>
|
||||
<if test="dataType != null and dataType != ''">and data_type like concat('%',#{dataType},'%')</if>
|
||||
<if test="leftBracket != null and leftBracket != ''">and left_bracket like concat('%',#{leftBracket},'%')
|
||||
</if>
|
||||
<if test="filedId != null and filedId != ''">and filed_id like concat('%',#{filedId},'%')</if>
|
||||
<if test="filedName != null and filedName != ''">and filed_name like concat('%',#{filedName},'%')</if>
|
||||
<if test="compareType != null and compareType != ''">and compare_type like concat('%',#{compareType},'%')
|
||||
</if>
|
||||
<if test="filedVaule != null and filedVaule != ''">and filed_vaule like concat('%',#{filedVaule},'%')</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''">and connection_symbol like
|
||||
concat('%',#{connectionSymbol},'%')
|
||||
</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''">and right_parenthesis like
|
||||
concat('%',#{rightParenthesis},'%')
|
||||
</if>
|
||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
||||
concat('%',#{create_user_id},'%')
|
||||
</if>
|
||||
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
|
||||
concat('%',#{modify_user_id},'%')
|
||||
</if>
|
||||
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
|
||||
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
|
||||
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id like concat('%',#{companyId},'%')</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="MdmModuleDistributeDetailentity_list_or" resultMap="get-MdmModuleDistributeDetailEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
select
|
||||
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List" />
|
||||
from mdm_module_distribute_detail
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||
<if test="distributeId != null and distributeId != ''"> or distribute_id = #{distributeId} </if>
|
||||
<if test="apiId != null and apiId != ''"> or api_id = #{apiId} </if>
|
||||
<if test="dataType != null and dataType != ''"> or data_type = #{dataType} </if>
|
||||
<if test="leftBracket != null and leftBracket != ''"> or left_bracket = #{leftBracket} </if>
|
||||
<if test="filedName != null and filedName != ''"> or filed_name = #{filedName} </if>
|
||||
<if test="compareType != null and compareType != ''"> or compare_type = #{compareType} </if>
|
||||
<if test="filedVaule != null and filedVaule != ''"> or filed_vaule = #{filedVaule} </if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''"> or connection_symbol = #{connectionSymbol} </if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''"> or right_parenthesis = #{rightParenthesis} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> or modify_user_id = #{modify_user_id} </if>
|
||||
<if test="modify_time != null"> or modify_time = #{modify_time} </if>
|
||||
<if test="sts != null and sts != ''"> or sts = #{sts} </if>
|
||||
<if test="org_id != null and org_id != ''"> or org_id = #{org_id} </if>
|
||||
<if test="companyId != null and companyId != ''"> or company_id = #{companyId} </if>
|
||||
<!-- 查询列表 字段采用or格式 -->
|
||||
<select id="MdmModuleDistributeDetailentity_list_or" resultMap="get-MdmModuleDistributeDetailEntity-result"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
select
|
||||
<include refid="MdmModuleDistributeDetailEntity_Base_Column_List"/>
|
||||
from mdm_module_distribute_detail
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">or id = #{id}</if>
|
||||
<if test="mdmId != null and mdmId != ''">or mdm_id = #{mdmId}</if>
|
||||
<if test="distributeId != null and distributeId != ''">or distribute_id = #{distributeId}</if>
|
||||
<if test="apiId != null and apiId != ''">or api_id = #{apiId}</if>
|
||||
<if test="dataType != null and dataType != ''">or data_type = #{dataType}</if>
|
||||
<if test="leftBracket != null and leftBracket != ''">or left_bracket = #{leftBracket}</if>
|
||||
<if test="filedId != null and filedId != ''">or filed_id = #{filedId}</if>
|
||||
<if test="filedName != null and filedName != ''">or filed_name = #{filedName}</if>
|
||||
<if test="compareType != null and compareType != ''">or compare_type = #{compareType}</if>
|
||||
<if test="filedVaule != null and filedVaule != ''">or filed_vaule = #{filedVaule}</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''">or connection_symbol = #{connectionSymbol}
|
||||
</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''">or right_parenthesis = #{rightParenthesis}
|
||||
</if>
|
||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
|
||||
<if test="modify_time != null">or modify_time = #{modify_time}</if>
|
||||
<if test="sts != null and sts != ''">or sts = #{sts}</if>
|
||||
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
|
||||
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
||||
insert into mdm_module_distribute_detail(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||
<if test="distributeId != null and distributeId != ''"> distribute_id , </if>
|
||||
<if test="apiId != null and apiId != ''"> api_id , </if>
|
||||
<if test="dataType != null and dataType != ''"> data_type , </if>
|
||||
<if test="leftBracket != null and leftBracket != ''"> left_bracket , </if>
|
||||
<if test="filedName != null and filedName != ''"> filed_name , </if>
|
||||
<if test="compareType != null and compareType != ''"> compare_type , </if>
|
||||
<if test="filedVaule != null and filedVaule != ''"> filed_vaule , </if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''"> connection_symbol , </if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''"> right_parenthesis , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id , </if>
|
||||
<if test="modify_time != null"> modify_time , </if>
|
||||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||
<if test="distributeId != null and distributeId != ''"> #{distributeId} ,</if>
|
||||
<if test="apiId != null and apiId != ''"> #{apiId} ,</if>
|
||||
<if test="dataType != null and dataType != ''"> #{dataType} ,</if>
|
||||
<if test="leftBracket != null and leftBracket != ''"> #{leftBracket} ,</if>
|
||||
<if test="filedName != null and filedName != ''"> #{filedName} ,</if>
|
||||
<if test="compareType != null and compareType != ''"> #{compareType} ,</if>
|
||||
<if test="filedVaule != null and filedVaule != ''"> #{filedVaule} ,</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''"> #{connectionSymbol} ,</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''"> #{rightParenthesis} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> #{modify_user_id} ,</if>
|
||||
<if test="modify_time != null"> #{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, left_bracket, filed_name, compare_type, filed_vaule, connection_symbol, right_parenthesis, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.leftBracket},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.connectionSymbol},#{entity.rightParenthesis},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, left_bracket, filed_name, compare_type, filed_vaule, connection_symbol, right_parenthesis, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.leftBracket},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.connectionSymbol},#{entity.rightParenthesis},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
mdm_id = values(mdm_id),
|
||||
distribute_id = values(distribute_id),
|
||||
api_id = values(api_id),
|
||||
data_type = values(data_type),
|
||||
left_bracket = values(left_bracket),
|
||||
filed_name = values(filed_name),
|
||||
compare_type = values(compare_type),
|
||||
filed_vaule = values(filed_vaule),
|
||||
connection_symbol = values(connection_symbol),
|
||||
right_parenthesis = values(right_parenthesis),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id)</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
||||
update mdm_module_distribute_detail set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||
<if test="distributeId != null and distributeId != ''"> distribute_id = #{distributeId},</if>
|
||||
<if test="apiId != null and apiId != ''"> api_id = #{apiId},</if>
|
||||
<if test="dataType != null and dataType != ''"> data_type = #{dataType},</if>
|
||||
<if test="leftBracket != null and leftBracket != ''"> left_bracket = #{leftBracket},</if>
|
||||
<if test="filedName != null and filedName != ''"> filed_name = #{filedName},</if>
|
||||
<if test="compareType != null and compareType != ''"> compare_type = #{compareType},</if>
|
||||
<if test="filedVaule != null and filedVaule != ''"> filed_vaule = #{filedVaule},</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''"> connection_symbol = #{connectionSymbol},</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''"> right_parenthesis = #{rightParenthesis},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null"> modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''"> sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''"> org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''"> company_id = #{companyId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete" parameterType = "com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
insert into mdm_module_distribute_detail(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
<if test="mdmId != null and mdmId != ''">mdm_id ,</if>
|
||||
<if test="distributeId != null and distributeId != ''">distribute_id ,</if>
|
||||
<if test="apiId != null and apiId != ''">api_id ,</if>
|
||||
<if test="dataType != null and dataType != ''">data_type ,</if>
|
||||
<if test="leftBracket != null and leftBracket != ''">left_bracket ,</if>
|
||||
<if test="filedId != null and filedId != ''">filed_id ,</if>
|
||||
<if test="filedName != null and filedName != ''">filed_name ,</if>
|
||||
<if test="compareType != null and compareType != ''">compare_type ,</if>
|
||||
<if test="filedVaule != null and filedVaule != ''">filed_vaule ,</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''">connection_symbol ,</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''">right_parenthesis ,</if>
|
||||
<if test="sorts != null">sorts ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
||||
<if test="create_time != null">create_time ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
|
||||
<if test="modify_time != null">modify_time ,</if>
|
||||
<if test="sts != null and sts != ''">sts ,</if>
|
||||
<if test="org_id != null and org_id != ''">org_id ,</if>
|
||||
<if test="companyId != null and companyId != ''">company_id ,</if>
|
||||
<if test="sorts == null ">sorts,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id} ,</if>
|
||||
<if test="mdmId != null and mdmId != ''">#{mdmId} ,</if>
|
||||
<if test="distributeId != null and distributeId != ''">#{distributeId} ,</if>
|
||||
<if test="apiId != null and apiId != ''">#{apiId} ,</if>
|
||||
<if test="dataType != null and dataType != ''">#{dataType} ,</if>
|
||||
<if test="leftBracket != null and leftBracket != ''">#{leftBracket} ,</if>
|
||||
<if test="filedId != null and filedId != ''">#{filedId} ,</if>
|
||||
<if test="filedName != null and filedName != ''">#{filedName} ,</if>
|
||||
<if test="compareType != null and compareType != ''">#{compareType} ,</if>
|
||||
<if test="filedVaule != null and filedVaule != ''">#{filedVaule} ,</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''">#{connectionSymbol} ,</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''">#{rightParenthesis} ,</if>
|
||||
<if test="sorts != null">#{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
||||
<if test="create_time != null">#{create_time} ,</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
|
||||
<if test="modify_time != null">#{modify_time} ,</if>
|
||||
<if test="sts != null and sts != ''">#{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
|
||||
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from mdm_module_distribute_detail
|
||||
a WHERE a.sts = 'Y' ),
|
||||
</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch">
|
||||
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, left_bracket, filed_id,
|
||||
filed_name, compare_type, filed_vaule, connection_symbol, right_parenthesis, create_user_id, create_time,
|
||||
modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.leftBracket},#{entity.filedId},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.connectionSymbol},#{entity.rightParenthesis},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},
|
||||
'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch">
|
||||
insert into mdm_module_distribute_detail(mdm_id, distribute_id, api_id, data_type, left_bracket, filed_id,
|
||||
filed_name, compare_type, filed_vaule, connection_symbol, right_parenthesis, create_user_id, create_time,
|
||||
modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.distributeId},#{entity.apiId},#{entity.dataType},#{entity.leftBracket},#{entity.filedId},#{entity.filedName},#{entity.compareType},#{entity.filedVaule},#{entity.connectionSymbol},#{entity.rightParenthesis},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
mdm_id = values(mdm_id),
|
||||
distribute_id = values(distribute_id),
|
||||
api_id = values(api_id),
|
||||
data_type = values(data_type),
|
||||
left_bracket = values(left_bracket),
|
||||
filed_id = values(filed_id),
|
||||
filed_name = values(filed_name),
|
||||
compare_type = values(compare_type),
|
||||
filed_vaule = values(filed_vaule),
|
||||
connection_symbol = values(connection_symbol),
|
||||
right_parenthesis = values(right_parenthesis),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
modify_time = values(modify_time),
|
||||
sts = values(sts),
|
||||
org_id = values(org_id),
|
||||
company_id = values(company_id)
|
||||
</insert>
|
||||
<!--通过主键修改方法-->
|
||||
<update id="entity_update"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
update mdm_module_distribute_detail set
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="mdmId != null and mdmId != ''">mdm_id = #{mdmId},</if>
|
||||
<if test="distributeId != null and distributeId != ''">distribute_id = #{distributeId},</if>
|
||||
<if test="apiId != null and apiId != ''">api_id = #{apiId},</if>
|
||||
<if test="dataType != null and dataType != ''">data_type = #{dataType},</if>
|
||||
left_bracket = #{leftBracket},
|
||||
filed_id = #{filedId},
|
||||
filed_name = #{filedName},
|
||||
compare_type = #{compareType},
|
||||
filed_vaule = #{filedVaule},
|
||||
connection_symbol = #{connectionSymbol},
|
||||
right_parenthesis = #{rightParenthesis},
|
||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null">create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
|
||||
<if test="modify_time != null">modify_time = #{modify_time},</if>
|
||||
<if test="sts != null and sts != ''">sts = #{sts},</if>
|
||||
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
|
||||
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<!-- 逻辑删除 -->
|
||||
<update id="entity_logicDelete"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
update mdm_module_distribute_detail 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.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity" >
|
||||
update mdm_module_distribute_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||
<if test="distributeId != null and distributeId != ''"> and distribute_id = #{distributeId} </if>
|
||||
<if test="apiId != null and apiId != ''"> and api_id = #{apiId} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="leftBracket != null and leftBracket != ''"> and left_bracket = #{leftBracket} </if>
|
||||
<if test="filedName != null and filedName != ''"> and filed_name = #{filedName} </if>
|
||||
<if test="compareType != null and compareType != ''"> and compare_type = #{compareType} </if>
|
||||
<if test="filedVaule != null and filedVaule != ''"> and filed_vaule = #{filedVaule} </if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''"> and connection_symbol = #{connectionSymbol} </if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''"> and right_parenthesis = #{rightParenthesis} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
<!-- 多条件逻辑删除 -->
|
||||
<update id="entity_logicDelete_Multi_Condition"
|
||||
parameterType="com.hzya.frame.mdm.mdmModuleDistributeDetail.entity.MdmModuleDistributeDetailEntity">
|
||||
update mdm_module_distribute_detail set sts= 'N' ,modify_time = #{modify_time},modify_user_id =
|
||||
#{modify_user_id}
|
||||
<trim prefix="where" prefixOverrides="and">
|
||||
<if test="id != null and id != ''">and id = #{id}</if>
|
||||
<if test="mdmId != null and mdmId != ''">and mdm_id = #{mdmId}</if>
|
||||
<if test="distributeId != null and distributeId != ''">and distribute_id = #{distributeId}</if>
|
||||
<if test="apiId != null and apiId != ''">and api_id = #{apiId}</if>
|
||||
<if test="dataType != null and dataType != ''">and data_type = #{dataType}</if>
|
||||
<if test="leftBracket != null and leftBracket != ''">and left_bracket = #{leftBracket}</if>
|
||||
<if test="filedId != null and filedId != ''">and filed_id = #{filedId}</if>
|
||||
<if test="filedName != null and filedName != ''">and filed_name = #{filedName}</if>
|
||||
<if test="compareType != null and compareType != ''">and compare_type = #{compareType}</if>
|
||||
<if test="filedVaule != null and filedVaule != ''">and filed_vaule = #{filedVaule}</if>
|
||||
<if test="connectionSymbol != null and connectionSymbol != ''">and connection_symbol = #{connectionSymbol}
|
||||
</if>
|
||||
<if test="rightParenthesis != null and rightParenthesis != ''">and right_parenthesis = #{rightParenthesis}
|
||||
</if>
|
||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
</trim>
|
||||
</update>
|
||||
<!--通过主键删除-->
|
||||
<delete id="entity_delete">
|
||||
delete from mdm_module_distribute_detail where id = #{id}
|
||||
</delete>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
|
|||
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-14 10:03:50
|
||||
* @since 2024-06-19 10:34:58
|
||||
*/
|
||||
public interface IMdmModuleDistributeDetailService extends IBaseService<MdmModuleDistributeDetailEntity, String>{
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
|
|||
* 主数据功能应用分发明细表(MdmModuleDistributeDetail)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-14 10:03:50
|
||||
* @since 2024-06-19 10:34:58
|
||||
*/
|
||||
@Service(value = "mdmModuleDistributeDetailService")
|
||||
public class MdmModuleDistributeDetailServiceImpl extends BaseService<MdmModuleDistributeDetailEntity, String> implements IMdmModuleDistributeDetailService {
|
||||
|
|
|
@ -17,6 +17,10 @@ public class MdmModuleOptionLogEntity extends BaseEntity {
|
|||
private String formmainId;
|
||||
/** 来源名称 */
|
||||
private String sourceName;
|
||||
/** 状态 1、成功2、失败 */
|
||||
private String dataType;
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
/** 编码 */
|
||||
private String code;
|
||||
/** source_data */
|
||||
|
@ -29,6 +33,22 @@ public class MdmModuleOptionLogEntity extends BaseEntity {
|
|||
private String companyId;
|
||||
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDataType(String dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getFormmainId() {
|
||||
return formmainId;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="formmainId" column="formmain_id" jdbcType="VARCHAR"/>
|
||||
<result property="sourceName" column="source_name" jdbcType="VARCHAR"/>
|
||||
<result property="dataType" column="data_type" jdbcType="VARCHAR"/>
|
||||
<result property="code" column="code" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="sourceData" column="source_data" jdbcType="VARCHAR"/>
|
||||
<result property="optionType" column="option_type" jdbcType="VARCHAR"/>
|
||||
<result property="optionName" column="option_name" jdbcType="VARCHAR"/>
|
||||
|
@ -24,8 +26,10 @@
|
|||
id
|
||||
,formmain_id
|
||||
,source_name
|
||||
,code
|
||||
,source_data
|
||||
,data_type
|
||||
,code
|
||||
,remark
|
||||
,source_data
|
||||
,option_type
|
||||
,option_name
|
||||
,sorts
|
||||
|
@ -51,7 +55,9 @@
|
|||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="optionName != null and optionName != ''"> and option_name = #{optionName} </if>
|
||||
|
@ -76,7 +82,9 @@
|
|||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="optionName != null and optionName != ''"> and option_name = #{optionName} </if>
|
||||
|
@ -103,7 +111,9 @@
|
|||
<if test="id != null and id != ''"> and id like concat('%',#{id},'%') </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id like concat('%',#{formmainId},'%') </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name like concat('%',#{sourceName},'%') </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type like concat('%',#{dataType},'%') </if>
|
||||
<if test="code != null and code != ''"> and code like concat('%',#{code},'%') </if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data like concat('%',#{sourceData},'%') </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type like concat('%',#{optionType},'%') </if>
|
||||
<if test="optionName != null and optionName != ''"> and option_name like concat('%',#{optionName},'%') </if>
|
||||
|
@ -117,7 +127,7 @@
|
|||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts desc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
|
@ -130,7 +140,9 @@
|
|||
<if test="id != null and id != ''"> or id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> or formmain_id = #{formmainId} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> or source_name = #{sourceName} </if>
|
||||
<if test="dataType != null and dataType != ''"> or data_type = #{dataType} </if>
|
||||
<if test="code != null and code != ''"> or code = #{code} </if>
|
||||
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> or source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> or option_type = #{optionType} </if>
|
||||
<if test="optionName != null and optionName != ''"> or option_name = #{optionName} </if>
|
||||
|
@ -155,7 +167,9 @@
|
|||
<if test="id != null and id != ''"> id , </if>
|
||||
<if test="formmainId != null and formmainId != ''"> formmain_id , </if>
|
||||
<if test="sourceName != null and sourceName != ''"> source_name , </if>
|
||||
<if test="dataType != null and dataType != ''"> data_type , </if>
|
||||
<if test="code != null and code != ''"> code , </if>
|
||||
<if test="remark != null and remark != ''"> remark , </if>
|
||||
<if test="sourceData != null and sourceData != ''"> source_data , </if>
|
||||
<if test="optionType != null and optionType != ''"> option_type , </if>
|
||||
<if test="optionName != null and optionName != ''"> option_name , </if>
|
||||
|
@ -174,7 +188,9 @@
|
|||
<if test="id != null and id != ''"> #{id} ,</if>
|
||||
<if test="formmainId != null and formmainId != ''"> #{formmainId} ,</if>
|
||||
<if test="sourceName != null and sourceName != ''"> #{sourceName} ,</if>
|
||||
<if test="dataType != null and dataType != ''"> #{dataType} ,</if>
|
||||
<if test="code != null and code != ''"> #{code} ,</if>
|
||||
<if test="remark != null and remark != ''"> #{remark} ,</if>
|
||||
<if test="sourceData != null and sourceData != ''"> #{sourceData} ,</if>
|
||||
<if test="optionType != null and optionType != ''"> #{optionType} ,</if>
|
||||
<if test="optionName != null and optionName != ''"> #{optionName} ,</if>
|
||||
|
@ -192,23 +208,25 @@
|
|||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into ${tableName}(formmain_id, source_name, code, source_data, option_type, option_name, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
insert into ${tableName}(formmain_id, source_name,data_type, code,remark, source_data, option_type, option_name, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.sourceName},#{entity.code},#{entity.sourceData},#{entity.optionType},#{entity.optionName},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
(#{entity.formmainId},#{entity.sourceName},#{entity.dataType},#{entity.code},#{entity.remark},#{entity.sourceData},#{entity.optionType},#{entity.optionName},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into ${tableName}(formmain_id, source_name, code, source_data, option_type, option_name, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
insert into ${tableName}(formmain_id, source_name,data_type, code, remark, source_data, option_type, option_name, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.sourceName},#{entity.code},#{entity.sourceData},#{entity.optionType},#{entity.optionName},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
(#{entity.formmainId},#{entity.sourceName},#{entity.dataType},#{entity.code},#{entity.remark},#{entity.sourceData},#{entity.optionType},#{entity.optionName},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
formmain_id = values(formmain_id),
|
||||
source_name = values(source_name),
|
||||
data_type = values(data_type),
|
||||
code = values(code),
|
||||
remark = values(remark),
|
||||
source_data = values(source_data),
|
||||
option_type = values(option_type),
|
||||
option_name = values(option_name),
|
||||
|
@ -225,7 +243,9 @@ update ${tableName} set
|
|||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="formmainId != null and formmainId != ''"> formmain_id = #{formmainId},</if>
|
||||
<if test="sourceName != null and sourceName != ''"> source_name = #{sourceName},</if>
|
||||
<if test="dataType != null and dataType != ''"> data_type = #{dataType},</if>
|
||||
<if test="code != null and code != ''"> code = #{code},</if>
|
||||
<if test="remark != null and remark != ''"> remark = #{remark},</if>
|
||||
<if test="sourceData != null and sourceData != ''"> source_data = #{sourceData},</if>
|
||||
<if test="optionType != null and optionType != ''"> option_type = #{optionType},</if>
|
||||
<if test="optionName != null and optionName != ''"> option_name = #{optionName},</if>
|
||||
|
@ -251,7 +271,9 @@ update ${tableName} set sts= 'N' ,modify_time = #{modify_time},modify_user_id =
|
|||
<if test="id != null and id != ''"> and id = #{id} </if>
|
||||
<if test="formmainId != null and formmainId != ''"> and formmain_id = #{formmainId} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="code != null and code != ''"> and code = #{code} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="optionName != null and optionName != ''"> and option_name = #{optionName} </if>
|
||||
|
|
|
@ -21,11 +21,30 @@ public class MdmModuleSendLogEntity extends BaseEntity {
|
|||
private String targetApi;
|
||||
/** 源数据 */
|
||||
private String sourceData;
|
||||
/** 操作类型 */
|
||||
/** 状态 1、成功2、失败 */
|
||||
private String dataType;
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
/** 操作类型 1新增2、修改3、删除*/
|
||||
private String optionType;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setDataType(String dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getFormmainId() {
|
||||
return formmainId;
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
<result property="targetApi" column="target_api" jdbcType="VARCHAR"/>
|
||||
<result property="sourceData" column="source_data" jdbcType="VARCHAR"/>
|
||||
<result property="optionType" column="option_type" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="dataType" column="data_type" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
|
@ -26,7 +28,9 @@
|
|||
,target_api
|
||||
,source_data
|
||||
,option_type
|
||||
,sorts
|
||||
,remark
|
||||
,data_type
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
,modify_user_id
|
||||
|
@ -53,6 +57,8 @@
|
|||
<if test="targetApi != null and targetApi != ''"> and target_api = #{targetApi} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
|
@ -77,6 +83,8 @@
|
|||
<if test="targetApi != null and targetApi != ''"> and target_api = #{targetApi} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
|
@ -103,6 +111,8 @@
|
|||
<if test="targetApi != null and targetApi != ''"> and target_api like concat('%',#{targetApi},'%') </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data like concat('%',#{sourceData},'%') </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type like concat('%',#{optionType},'%') </if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%',#{remark},'%') </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type like concat('%',#{dataType},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
|
@ -113,7 +123,7 @@
|
|||
<if test="companyId != null and companyId != ''"> and company_id like concat('%',#{companyId},'%') </if>
|
||||
and sts='Y'
|
||||
</trim>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts asc</if>
|
||||
<if test=" sort == null or sort == ''.toString() "> order by sorts desc</if>
|
||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
|
@ -129,6 +139,8 @@
|
|||
<if test="targetApi != null and targetApi != ''"> or target_api = #{targetApi} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> or source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> or option_type = #{optionType} </if>
|
||||
<if test="remark != null and remark != ''"> or remark = #{remark} </if>
|
||||
<if test="dataType != null and dataType != ''"> or data_type = #{dataType} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
|
@ -153,6 +165,8 @@
|
|||
<if test="targetApi != null and targetApi != ''"> target_api , </if>
|
||||
<if test="sourceData != null and sourceData != ''"> source_data , </if>
|
||||
<if test="optionType != null and optionType != ''"> option_type , </if>
|
||||
<if test="remark != null and remark != ''"> remark , </if>
|
||||
<if test="dataType != null and dataType != ''"> data_type , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
|
@ -171,6 +185,8 @@
|
|||
<if test="targetApi != null and targetApi != ''"> #{targetApi} ,</if>
|
||||
<if test="sourceData != null and sourceData != ''"> #{sourceData} ,</if>
|
||||
<if test="optionType != null and optionType != ''"> #{optionType} ,</if>
|
||||
<if test="remark != null and remark != ''"> #{remark} ,</if>
|
||||
<if test="dataType != null and dataType != ''"> #{dataType} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
|
@ -185,18 +201,18 @@
|
|||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into ${tableName}(formmain_id, target_app, target_api, source_data, option_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
insert into ${tableName}(formmain_id, target_app, target_api, source_data, option_type,remark,data_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.targetApp},#{entity.targetApi},#{entity.sourceData},#{entity.optionType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
(#{entity.formmainId},#{entity.targetApp},#{entity.targetApi},#{entity.sourceData},#{entity.optionType},#{entity.remark},#{entity.dataType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into ${tableName}(formmain_id, target_app, target_api, source_data, option_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
insert into ${tableName}(formmain_id, target_app, target_api, source_data, option_type,remark,data_type, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.formmainId},#{entity.targetApp},#{entity.targetApi},#{entity.sourceData},#{entity.optionType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
(#{entity.formmainId},#{entity.targetApp},#{entity.targetApi},#{entity.sourceData},#{entity.optionType},#{entity.remark},#{entity.dataType},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
formmain_id = values(formmain_id),
|
||||
|
@ -204,6 +220,8 @@
|
|||
target_api = values(target_api),
|
||||
source_data = values(source_data),
|
||||
option_type = values(option_type),
|
||||
remark = values(remark),
|
||||
data_type = values(data_type),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
|
@ -220,6 +238,8 @@ update ${tableName} set
|
|||
<if test="targetApi != null and targetApi != ''"> target_api = #{targetApi},</if>
|
||||
<if test="sourceData != null and sourceData != ''"> source_data = #{sourceData},</if>
|
||||
<if test="optionType != null and optionType != ''"> option_type = #{optionType},</if>
|
||||
<if test="remark != null and remark != ''"> remark = #{remark},</if>
|
||||
<if test="dataType != null and dataType != ''"> data_type = #{dataType},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
|
@ -245,6 +265,8 @@ update ${tableName} set sts= 'N' ,modify_time = #{modify_time},modify_user_id =
|
|||
<if test="targetApi != null and targetApi != ''"> and target_api = #{targetApi} </if>
|
||||
<if test="sourceData != null and sourceData != ''"> and source_data = #{sourceData} </if>
|
||||
<if test="optionType != null and optionType != ''"> and option_type = #{optionType} </if>
|
||||
<if test="remark != null and remark != ''"> and remark = #{remark} </if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
|
|
|
@ -9,19 +9,17 @@ import java.util.List;
|
|||
* 主数据数据来源(mdm_module_source: table)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 11:42:56
|
||||
* @since 2024-06-19 09:11:50
|
||||
*/
|
||||
public interface IMdmModuleSourceDao extends IBaseDao<MdmModuleSourceEntity, String> {
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @content 根据数据来源内类型是插件的应用类型做分组
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Param
|
||||
* @Return
|
||||
* @Author hecan
|
||||
* @Date 2024/6/6 10:43
|
||||
* **/
|
||||
List<MdmModuleSourceEntity> MdmModuleSourceentityGroupByType();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -11,10 +11,11 @@ import java.util.List;
|
|||
* 主数据数据来源(MdmModuleSource)表数据库访问层
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 11:42:56
|
||||
* @since 2024-06-19 09:11:50
|
||||
*/
|
||||
@Repository(value = "MdmModuleSourceDaoImpl")
|
||||
public class MdmModuleSourceDaoImpl extends MybatisGenericDao<MdmModuleSourceEntity, String> implements IMdmModuleSourceDao{
|
||||
|
||||
//根据数据来源内类型是插件的应用类型做分组
|
||||
@Override
|
||||
public List<MdmModuleSourceEntity> MdmModuleSourceentityGroupByType() {
|
||||
|
@ -22,7 +23,5 @@ public class MdmModuleSourceDaoImpl extends MybatisGenericDao<MdmModuleSourceEnt
|
|||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.web.entity.BaseEntity;
|
|||
* 主数据数据来源(MdmModuleSource)实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 11:42:57
|
||||
* @since 2024-06-19 09:11:50
|
||||
*/
|
||||
public class MdmModuleSourceEntity extends BaseEntity {
|
||||
|
||||
|
@ -14,13 +14,24 @@ public class MdmModuleSourceEntity extends BaseEntity {
|
|||
private String mdmId;
|
||||
/** 来源类型1、插件2、api */
|
||||
private String sourceType;
|
||||
/** 来源名称 */
|
||||
/** 来源应用 */
|
||||
private String sourceName;
|
||||
/** 触发类型 1、手动 2、自动 */
|
||||
private String triggerType;
|
||||
/** 来源编码 */
|
||||
private String sourceCode;
|
||||
/** 新增接口 */
|
||||
private String addApi;
|
||||
/** 修改接口 */
|
||||
private String updateApi;
|
||||
/** 删除接口 */
|
||||
private String deleteApi;
|
||||
/** 启用停用 0、停用1、启用 */
|
||||
private String enabledState;
|
||||
/** 公司id */
|
||||
private String companyId;
|
||||
private String pluginCode;//插件编码
|
||||
/** 公司id */
|
||||
private String pluginCode;
|
||||
|
||||
public String getPluginCode() {
|
||||
return pluginCode;
|
||||
|
@ -54,6 +65,14 @@ public class MdmModuleSourceEntity extends BaseEntity {
|
|||
this.sourceName = sourceName;
|
||||
}
|
||||
|
||||
public String getTriggerType() {
|
||||
return triggerType;
|
||||
}
|
||||
|
||||
public void setTriggerType(String triggerType) {
|
||||
this.triggerType = triggerType;
|
||||
}
|
||||
|
||||
public String getSourceCode() {
|
||||
return sourceCode;
|
||||
}
|
||||
|
@ -62,6 +81,38 @@ public class MdmModuleSourceEntity extends BaseEntity {
|
|||
this.sourceCode = sourceCode;
|
||||
}
|
||||
|
||||
public String getAddApi() {
|
||||
return addApi;
|
||||
}
|
||||
|
||||
public void setAddApi(String addApi) {
|
||||
this.addApi = addApi;
|
||||
}
|
||||
|
||||
public String getUpdateApi() {
|
||||
return updateApi;
|
||||
}
|
||||
|
||||
public void setUpdateApi(String updateApi) {
|
||||
this.updateApi = updateApi;
|
||||
}
|
||||
|
||||
public String getDeleteApi() {
|
||||
return deleteApi;
|
||||
}
|
||||
|
||||
public void setDeleteApi(String deleteApi) {
|
||||
this.deleteApi = deleteApi;
|
||||
}
|
||||
|
||||
public String getEnabledState() {
|
||||
return enabledState;
|
||||
}
|
||||
|
||||
public void setEnabledState(String enabledState) {
|
||||
this.enabledState = enabledState;
|
||||
}
|
||||
|
||||
public String getCompanyId() {
|
||||
return companyId;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,12 @@
|
|||
<result property="mdmId" column="mdm_id" jdbcType="VARCHAR"/>
|
||||
<result property="sourceType" column="source_type" jdbcType="VARCHAR"/>
|
||||
<result property="sourceName" column="source_name" jdbcType="VARCHAR"/>
|
||||
<result property="triggerType" column="trigger_type" jdbcType="VARCHAR"/>
|
||||
<result property="sourceCode" column="source_code" jdbcType="VARCHAR"/>
|
||||
<result property="addApi" column="add_api" jdbcType="VARCHAR"/>
|
||||
<result property="updateApi" column="update_api" jdbcType="VARCHAR"/>
|
||||
<result property="deleteApi" column="delete_api" jdbcType="VARCHAR"/>
|
||||
<result property="enabledState" column="enabled_state" jdbcType="VARCHAR"/>
|
||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
|
@ -23,7 +28,12 @@
|
|||
,mdm_id
|
||||
,source_type
|
||||
,source_name
|
||||
,trigger_type
|
||||
,source_code
|
||||
,add_api
|
||||
,update_api
|
||||
,delete_api
|
||||
,enabled_state
|
||||
,sorts
|
||||
,create_user_id
|
||||
,create_time
|
||||
|
@ -33,12 +43,13 @@
|
|||
,org_id
|
||||
,company_id
|
||||
</sql>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<!--通过ID获取数据 -->
|
||||
<select id="entity_get" resultMap="get-MdmModuleSourceEntity-result">
|
||||
select
|
||||
<include refid="MdmModuleSourceEntity_Base_Column_List" />
|
||||
from mdm_module_source where sts = 'Y' and id = #{id}
|
||||
from mdm_module_source where id = #{ id } and sts='Y'
|
||||
</select>
|
||||
<!-- 查询 采用==查询 -->
|
||||
<select id="entity_list_base" resultMap="get-MdmModuleSourceEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity">
|
||||
select
|
||||
<include refid="MdmModuleSourceEntity_Base_Column_List" />
|
||||
|
@ -48,7 +59,12 @@
|
|||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||
<if test="sourceType != null and sourceType != ''"> and source_type = #{sourceType} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="triggerType != null and triggerType != ''"> and trigger_type = #{triggerType} </if>
|
||||
<if test="sourceCode != null and sourceCode != ''"> and source_code = #{sourceCode} </if>
|
||||
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
||||
<if test="updateApi != null and updateApi != ''"> and update_api = #{updateApi} </if>
|
||||
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
||||
<if test="enabledState != null and enabledState != ''"> and enabled_state = #{enabledState} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
|
@ -71,7 +87,12 @@
|
|||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||
<if test="sourceType != null and sourceType != ''"> and source_type = #{sourceType} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="triggerType != null and triggerType != ''"> and trigger_type = #{triggerType} </if>
|
||||
<if test="sourceCode != null and sourceCode != ''"> and source_code = #{sourceCode} </if>
|
||||
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
||||
<if test="updateApi != null and updateApi != ''"> and update_api = #{updateApi} </if>
|
||||
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
||||
<if test="enabledState != null and enabledState != ''"> and enabled_state = #{enabledState} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> and create_time = #{create_time} </if>
|
||||
|
@ -96,7 +117,12 @@
|
|||
<if test="mdmId != null and mdmId != ''"> and mdm_id like concat('%',#{mdmId},'%') </if>
|
||||
<if test="sourceType != null and sourceType != ''"> and source_type like concat('%',#{sourceType},'%') </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name like concat('%',#{sourceName},'%') </if>
|
||||
<if test="triggerType != null and triggerType != ''"> and trigger_type like concat('%',#{triggerType},'%') </if>
|
||||
<if test="sourceCode != null and sourceCode != ''"> and source_code like concat('%',#{sourceCode},'%') </if>
|
||||
<if test="addApi != null and addApi != ''"> and add_api like concat('%',#{addApi},'%') </if>
|
||||
<if test="updateApi != null and updateApi != ''"> and update_api like concat('%',#{updateApi},'%') </if>
|
||||
<if test="deleteApi != null and deleteApi != ''"> and delete_api like concat('%',#{deleteApi},'%') </if>
|
||||
<if test="enabledState != null and enabledState != ''"> and enabled_state like concat('%',#{enabledState},'%') </if>
|
||||
<if test="sorts != null"> and sorts like concat('%',#{sorts},'%') </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> and create_user_id like concat('%',#{create_user_id},'%') </if>
|
||||
<if test="create_time != null"> and create_time like concat('%',#{create_time},'%') </if>
|
||||
|
@ -121,7 +147,12 @@
|
|||
<if test="mdmId != null and mdmId != ''"> or mdm_id = #{mdmId} </if>
|
||||
<if test="sourceType != null and sourceType != ''"> or source_type = #{sourceType} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> or source_name = #{sourceName} </if>
|
||||
<if test="triggerType != null and triggerType != ''"> or trigger_type = #{triggerType} </if>
|
||||
<if test="sourceCode != null and sourceCode != ''"> or source_code = #{sourceCode} </if>
|
||||
<if test="addApi != null and addApi != ''"> or add_api = #{addApi} </if>
|
||||
<if test="updateApi != null and updateApi != ''"> or update_api = #{updateApi} </if>
|
||||
<if test="deleteApi != null and deleteApi != ''"> or delete_api = #{deleteApi} </if>
|
||||
<if test="enabledState != null and enabledState != ''"> or enabled_state = #{enabledState} </if>
|
||||
<if test="sorts != null"> or sorts = #{sorts} </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> or create_user_id = #{create_user_id} </if>
|
||||
<if test="create_time != null"> or create_time = #{create_time} </if>
|
||||
|
@ -136,14 +167,6 @@
|
|||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||
</select>
|
||||
|
||||
<!-- 根据数据来源内类型是插件的应用类型做分组 -->
|
||||
<select id="queryMdmModuleSourceentityGroupByType" resultMap="get-MdmModuleSourceEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity">
|
||||
select plugin_code,plugin_name,source_name,source_code
|
||||
from mdm_module_source source
|
||||
left join sys_application_plugin plug on plug.id=source.source_code
|
||||
where source_type='1' and source.sts='Y' and plug.sts='Y'
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity" >
|
||||
insert into mdm_module_source(
|
||||
|
@ -152,7 +175,12 @@
|
|||
<if test="mdmId != null and mdmId != ''"> mdm_id , </if>
|
||||
<if test="sourceType != null and sourceType != ''"> source_type , </if>
|
||||
<if test="sourceName != null and sourceName != ''"> source_name , </if>
|
||||
<if test="triggerType != null and triggerType != ''"> trigger_type , </if>
|
||||
<if test="sourceCode != null and sourceCode != ''"> source_code , </if>
|
||||
<if test="addApi != null and addApi != ''"> add_api , </if>
|
||||
<if test="updateApi != null and updateApi != ''"> update_api , </if>
|
||||
<if test="deleteApi != null and deleteApi != ''"> delete_api , </if>
|
||||
<if test="enabledState != null and enabledState != ''"> enabled_state , </if>
|
||||
<if test="sorts != null"> sorts , </if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id , </if>
|
||||
<if test="create_time != null"> create_time , </if>
|
||||
|
@ -161,6 +189,7 @@
|
|||
<if test="sts != null and sts != ''"> sts , </if>
|
||||
<if test="org_id != null and org_id != ''"> org_id , </if>
|
||||
<if test="companyId != null and companyId != ''"> company_id , </if>
|
||||
<if test="sorts == null ">sorts,</if>
|
||||
<if test="sts == null ">sts,</if>
|
||||
</trim>
|
||||
)values(
|
||||
|
@ -169,7 +198,12 @@
|
|||
<if test="mdmId != null and mdmId != ''"> #{mdmId} ,</if>
|
||||
<if test="sourceType != null and sourceType != ''"> #{sourceType} ,</if>
|
||||
<if test="sourceName != null and sourceName != ''"> #{sourceName} ,</if>
|
||||
<if test="triggerType != null and triggerType != ''"> #{triggerType} ,</if>
|
||||
<if test="sourceCode != null and sourceCode != ''"> #{sourceCode} ,</if>
|
||||
<if test="addApi != null and addApi != ''"> #{addApi} ,</if>
|
||||
<if test="updateApi != null and updateApi != ''"> #{updateApi} ,</if>
|
||||
<if test="deleteApi != null and deleteApi != ''"> #{deleteApi} ,</if>
|
||||
<if test="enabledState != null and enabledState != ''"> #{enabledState} ,</if>
|
||||
<if test="sorts != null"> #{sorts} ,</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> #{create_user_id} ,</if>
|
||||
<if test="create_time != null"> #{create_time} ,</if>
|
||||
|
@ -178,30 +212,36 @@
|
|||
<if test="sts != null and sts != ''"> #{sts} ,</if>
|
||||
<if test="org_id != null and org_id != ''"> #{org_id} ,</if>
|
||||
<if test="companyId != null and companyId != ''"> #{companyId} ,</if>
|
||||
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from mdm_module_source a WHERE a.sts = 'Y' ),</if>
|
||||
<if test="sts == null ">'Y',</if>
|
||||
</trim>
|
||||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into mdm_module_source(mdm_id, source_type, source_name, source_code, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
insert into mdm_module_source(mdm_id, source_type, source_name, trigger_type, source_code, add_api, update_api, delete_api, enabled_state, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.sourceType},#{entity.sourceName},#{entity.sourceCode},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
(#{entity.mdmId},#{entity.sourceType},#{entity.sourceName},#{entity.triggerType},#{entity.sourceCode},#{entity.addApi},#{entity.updateApi},#{entity.deleteApi},#{entity.enabledState},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId}, 'Y')
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into mdm_module_source(mdm_id, source_type, source_name, source_code, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
insert into mdm_module_source(mdm_id, source_type, source_name, trigger_type, source_code, add_api, update_api, delete_api, enabled_state, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.mdmId},#{entity.sourceType},#{entity.sourceName},#{entity.sourceCode},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
(#{entity.mdmId},#{entity.sourceType},#{entity.sourceName},#{entity.triggerType},#{entity.sourceCode},#{entity.addApi},#{entity.updateApi},#{entity.deleteApi},#{entity.enabledState},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
mdm_id = values(mdm_id),
|
||||
source_type = values(source_type),
|
||||
source_name = values(source_name),
|
||||
trigger_type = values(trigger_type),
|
||||
source_code = values(source_code),
|
||||
add_api = values(add_api),
|
||||
update_api = values(update_api),
|
||||
delete_api = values(delete_api),
|
||||
enabled_state = values(enabled_state),
|
||||
create_user_id = values(create_user_id),
|
||||
create_time = values(create_time),
|
||||
modify_user_id = values(modify_user_id),
|
||||
|
@ -216,7 +256,12 @@ update mdm_module_source set
|
|||
<if test="mdmId != null and mdmId != ''"> mdm_id = #{mdmId},</if>
|
||||
<if test="sourceType != null and sourceType != ''"> source_type = #{sourceType},</if>
|
||||
<if test="sourceName != null and sourceName != ''"> source_name = #{sourceName},</if>
|
||||
<if test="triggerType != null and triggerType != ''"> trigger_type = #{triggerType},</if>
|
||||
<if test="sourceCode != null and sourceCode != ''"> source_code = #{sourceCode},</if>
|
||||
<if test="addApi != null and addApi != ''"> add_api = #{addApi},</if>
|
||||
<if test="updateApi != null and updateApi != ''"> update_api = #{updateApi},</if>
|
||||
<if test="deleteApi != null and deleteApi != ''"> delete_api = #{deleteApi},</if>
|
||||
<if test="enabledState != null and enabledState != ''"> enabled_state = #{enabledState},</if>
|
||||
<if test="create_user_id != null and create_user_id != ''"> create_user_id = #{create_user_id},</if>
|
||||
<if test="create_time != null"> create_time = #{create_time},</if>
|
||||
<if test="modify_user_id != null and modify_user_id != ''"> modify_user_id = #{modify_user_id},</if>
|
||||
|
@ -240,7 +285,12 @@ update mdm_module_source set sts= 'N' ,modify_time = #{modify_time},modify_user
|
|||
<if test="mdmId != null and mdmId != ''"> and mdm_id = #{mdmId} </if>
|
||||
<if test="sourceType != null and sourceType != ''"> and source_type = #{sourceType} </if>
|
||||
<if test="sourceName != null and sourceName != ''"> and source_name = #{sourceName} </if>
|
||||
<if test="triggerType != null and triggerType != ''"> and trigger_type = #{triggerType} </if>
|
||||
<if test="sourceCode != null and sourceCode != ''"> and source_code = #{sourceCode} </if>
|
||||
<if test="addApi != null and addApi != ''"> and add_api = #{addApi} </if>
|
||||
<if test="updateApi != null and updateApi != ''"> and update_api = #{updateApi} </if>
|
||||
<if test="deleteApi != null and deleteApi != ''"> and delete_api = #{deleteApi} </if>
|
||||
<if test="enabledState != null and enabledState != ''"> and enabled_state = #{enabledState} </if>
|
||||
<if test="sorts != null"> and sorts = #{sorts} </if>
|
||||
<if test="sts != null and sts != ''"> and sts = #{sts} </if>
|
||||
<if test="companyId != null and companyId != ''"> and company_id = #{companyId} </if>
|
||||
|
@ -251,6 +301,13 @@ update mdm_module_source set sts= 'N' ,modify_time = #{modify_time},modify_user
|
|||
<delete id="entity_delete">
|
||||
delete from mdm_module_source where id = #{id}
|
||||
</delete>
|
||||
<!-- 根据数据来源内类型是插件的应用类型做分组 -->
|
||||
<select id="queryMdmModuleSourceentityGroupByType" resultMap="get-MdmModuleSourceEntity-result" parameterType = "com.hzya.frame.mdm.mdmModuleSource.entity.MdmModuleSourceEntity">
|
||||
select plugin_code,plugin_name,source_name,source_code
|
||||
from mdm_module_source source
|
||||
left join sys_application_plugin plug on plug.id=source.source_code
|
||||
where source_type='1' and source.sts='Y' and plug.sts='Y'
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.hzya.frame.basedao.service.IBaseService;
|
|||
* 主数据数据来源(MdmModuleSource)表服务接口
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 11:42:57
|
||||
* @since 2024-06-19 09:11:50
|
||||
*/
|
||||
public interface IMdmModuleSourceService extends IBaseService<MdmModuleSourceEntity, String>{
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ import com.hzya.frame.basedao.service.impl.BaseService;
|
|||
* 主数据数据来源(MdmModuleSource)表服务实现类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-06-05 11:42:57
|
||||
* @since 2024-06-19 09:11:50
|
||||
*/
|
||||
@Service(value = "mdmModuleSourceService")
|
||||
public class MdmModuleSourceServiceImpl extends BaseService<MdmModuleSourceEntity, String> implements IMdmModuleSourceService {
|
||||
|
|
|
@ -110,14 +110,14 @@ public interface IMdmService {
|
|||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity deleteMdmShowDetailsData(JSONObject jsonObject);
|
||||
///**
|
||||
// * @param jsonObject
|
||||
// * @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
// * @Author lvleigang
|
||||
// * @Description 处理分发数据
|
||||
// * @Date 9:40 上午 2023/10/18
|
||||
// **/
|
||||
//JsonResultEntity doMdmDistribute(JSONObject jsonObject);
|
||||
/**
|
||||
* @param jsonObject
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
* @Author lvleigang
|
||||
* @Description 处理分发数据
|
||||
* @Date 9:40 上午 2023/10/18
|
||||
**/
|
||||
JsonResultEntity doMdmDistribute(JSONObject jsonObject);
|
||||
|
||||
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -161,7 +161,7 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sys.contrastTask.entity.SysContrastTaskEntity"
|
||||
keyProperty="" useGeneratedKeys="true">
|
||||
keyProperty="">
|
||||
insert into sys_contrast_task(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -209,7 +209,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" keyProperty="">
|
||||
insert into sys_contrast_task(id, service_name, left_app_id, left_api_id, right_app_id, right_api_id,
|
||||
task_status, task_msg, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, match_mode,
|
||||
sts)
|
||||
|
@ -220,7 +220,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="">
|
||||
insert into sys_contrast_task(id, service_name, left_app_id, left_api_id, right_app_id, right_api_id,
|
||||
task_status, task_msg, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, match_mode)
|
||||
values
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
'Y'
|
||||
</trim>
|
||||
)
|
||||
<selectKey keyProperty="id" resultType="Long" order="AFTER">
|
||||
<selectKey resultType="Long" order="AFTER">
|
||||
select
|
||||
last_insert_id() as id
|
||||
</selectKey>
|
||||
|
|
|
@ -272,7 +272,7 @@
|
|||
'Y'
|
||||
</trim>
|
||||
)
|
||||
<selectKey keyProperty="id" resultType="Long" order="AFTER">
|
||||
<selectKey resultType="Long" order="AFTER">
|
||||
select
|
||||
last_insert_id() as id
|
||||
</selectKey>
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sys.serviceMethod.entity.SysServiceMethodEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sys.serviceMethod.entity.SysServiceMethodEntity" >
|
||||
insert into sys_service_method(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -156,7 +156,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_service_method(service_key, service_value, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -164,7 +164,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_service_method(service_key, service_value, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -169,8 +169,8 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert"
|
||||
parameterType="com.hzya.frame.sys.templateButton.entity.SysTemplateButtonEntity" keyProperty="id"
|
||||
useGeneratedKeys="true">
|
||||
parameterType="com.hzya.frame.sys.templateButton.entity.SysTemplateButtonEntity"
|
||||
>
|
||||
insert into sys_template_button(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -218,7 +218,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="SysTemplateButtonEntityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="SysTemplateButtonEntityInsertBatch" >
|
||||
insert into sys_template_button(template_id, service_name, table_name, button_type, button_title, button_style,
|
||||
button_sort, button_icon, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
|
@ -228,7 +228,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="SysTemplateButtonEntityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="SysTemplateButtonEntityInsertOrUpdateBatch" >
|
||||
insert into sys_template_button(template_id, service_name, table_name, button_type, button_title, button_style,
|
||||
button_sort, button_icon, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sys.userTemplateButton.entity.SysUserTemplateButtonEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sys.userTemplateButton.entity.SysUserTemplateButtonEntity" >
|
||||
insert into sys_user_template_button(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -164,7 +164,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="SysUserTemplateButtonEntityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="SysUserTemplateButtonEntityInsertBatch" >
|
||||
insert into sys_user_template_button(template_id, service_name, button_id, user_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -172,7 +172,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="SysUserTemplateButtonEntityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="SysUserTemplateButtonEntityInsertOrUpdateBatch" >
|
||||
insert into sys_user_template_button(template_id, service_name, button_id, user_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -2,10 +2,15 @@ package com.hzya.frame.sysnew.application.api.entity;
|
|||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.sys.sysenum.SysEnum;
|
||||
import com.hzya.frame.web.entity.BaseEntity;
|
||||
/**
|
||||
* 应用api(SysApplicationApi)实体类
|
||||
|
@ -14,64 +19,64 @@ import com.hzya.frame.web.entity.BaseEntity;
|
|||
* @since 2023-09-22 16:23:27
|
||||
*/
|
||||
public class SysApplicationApiEntity extends BaseEntity {
|
||||
|
||||
/** 接口编码 */
|
||||
private Long apiCode;
|
||||
/** Api接口地址(固定系统内部外放接口地址) */
|
||||
private String apiPath;
|
||||
/** 1启用2停用 */
|
||||
private String apiStatus;
|
||||
/** api应用 */
|
||||
private String appId;
|
||||
/** api应用名称 */
|
||||
private String appName;
|
||||
/** api应用地址 **/
|
||||
private String appUrl;
|
||||
/** 目录 */
|
||||
private String catalogueId;
|
||||
/** 目录名称 */
|
||||
private String catalogueName;
|
||||
/** api名称 */
|
||||
private String apiName;
|
||||
/** api描述 */
|
||||
private String apiRemark;
|
||||
/** 是否需要登录 1、是 2、否 */
|
||||
private String needLogin;
|
||||
/** 认证接口 */
|
||||
private String authenticationPort;
|
||||
/** 传参方式 1、query 2、data */
|
||||
private String parameterPassingMode;
|
||||
/** 目标地址 */
|
||||
private String destinationAddress;
|
||||
/** 请求编码 1、UTF-8 */
|
||||
private String requestCoding;
|
||||
/** 请求方法 1、POST 2、GET */
|
||||
private String requestMethod;
|
||||
/** 超时时间 6000 ms */
|
||||
private String timeoutPeriod;
|
||||
/** 限流 6000 ms */
|
||||
private String currentLimiting;
|
||||
/** Header入参 JSON */
|
||||
private String headerIn;
|
||||
/** Query入参 JSON */
|
||||
private String queryIn;
|
||||
/** Body 入参类型 1、Application/json */
|
||||
private String bodyInType;
|
||||
/** Body 入参 JSON */
|
||||
private String bodyIn;
|
||||
/** Body 出参 JSON */
|
||||
private String bodyOut;
|
||||
/** bean名称 */
|
||||
private String beanName;
|
||||
/** 方法名称 */
|
||||
private String funName;
|
||||
/** 是否扩展api 1、启用 2、停用*/
|
||||
private String extensionApi;
|
||||
|
||||
/** 返回成功字段 */
|
||||
private String returnSuccessField;
|
||||
/** 返回成功值*/
|
||||
private String returnSuccessValue;
|
||||
/** 接口编码 */
|
||||
private Long apiCode;
|
||||
/** Api接口地址(固定系统内部外放接口地址) */
|
||||
private String apiPath;
|
||||
/** 1启用2停用 */
|
||||
private String apiStatus;
|
||||
/** api应用 */
|
||||
private String appId;
|
||||
/** api应用名称 */
|
||||
private String appName;
|
||||
/** api应用地址 **/
|
||||
private String appUrl;
|
||||
/** 目录 */
|
||||
private String catalogueId;
|
||||
/** 目录名称 */
|
||||
private String catalogueName;
|
||||
/** api名称 */
|
||||
private String apiName;
|
||||
/** api描述 */
|
||||
private String apiRemark;
|
||||
/** 是否需要登录 1、是 2、否 */
|
||||
private String needLogin;
|
||||
/** 认证接口 */
|
||||
private String authenticationPort;
|
||||
/** 传参方式 1、query 2、data */
|
||||
private String parameterPassingMode;
|
||||
/** 目标地址 */
|
||||
private String destinationAddress;
|
||||
/** 请求编码 1、UTF-8 */
|
||||
private String requestCoding;
|
||||
/** 请求方法 1、POST 2、GET */
|
||||
private String requestMethod;
|
||||
/** 超时时间 6000 ms */
|
||||
private String timeoutPeriod;
|
||||
/** 限流 6000 ms */
|
||||
private String currentLimiting;
|
||||
/** Header入参 JSON */
|
||||
private String headerIn;
|
||||
/** Query入参 JSON */
|
||||
private String queryIn;
|
||||
/** Body 入参类型 1、Application/json */
|
||||
private String bodyInType;
|
||||
/** Body 入参 JSON */
|
||||
private String bodyIn;
|
||||
/** Body 出参 JSON */
|
||||
private String bodyOut;
|
||||
/** bean名称 */
|
||||
private String beanName;
|
||||
/** 方法名称 */
|
||||
private String funName;
|
||||
/** 是否扩展api 1、启用 2、停用*/
|
||||
private String extensionApi;
|
||||
|
||||
/** 返回成功字段 */
|
||||
private String returnSuccessField;
|
||||
/** 返回成功值*/
|
||||
private String returnSuccessValue;
|
||||
/** 返回描述字段*/
|
||||
private String returnMsg;
|
||||
|
||||
|
@ -307,37 +312,9 @@ public class SysApplicationApiEntity extends BaseEntity {
|
|||
this.appUrl = appUrl;
|
||||
}
|
||||
|
||||
public List<JSONObject> getHeaderInValue() {
|
||||
List<JSONObject> jsonObjects = new ArrayList<>();
|
||||
if(headerIn != null && !"".equals(headerIn)){
|
||||
JSONArray headers = JSONArray.parseArray(headerIn);
|
||||
if(headers != null && headers.size() > 0){
|
||||
for (int i = 0; i < headers.size(); i++) {
|
||||
JSONObject object = new JSONObject();
|
||||
object.put(headers.getJSONObject(i).getString("parameterName"),headers.getJSONObject(i).getString("example"));
|
||||
jsonObjects.add(object);
|
||||
}
|
||||
}
|
||||
}
|
||||
return jsonObjects;
|
||||
}
|
||||
|
||||
public String getQueryInValue() {
|
||||
StringBuffer jsonObjects = new StringBuffer();
|
||||
if(queryIn != null && !"".equals(queryIn)){
|
||||
JSONArray querys = JSONArray.parseArray(queryIn);
|
||||
if(querys != null && querys.size() > 0){
|
||||
for (int i = 0; i < querys.size(); i++) {
|
||||
if(i != 0){
|
||||
jsonObjects.append("&");
|
||||
}
|
||||
jsonObjects.append(querys.getJSONObject(i).getString("parameterName"));
|
||||
jsonObjects.append("=");
|
||||
jsonObjects.append(querys.getJSONObject(i).getString("example"));
|
||||
}
|
||||
}
|
||||
}
|
||||
return jsonObjects.toString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -354,7 +354,7 @@ WHERE
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.application.api.entity.SysApplicationApiEntity"
|
||||
keyProperty="id" useGeneratedKeys="true">
|
||||
>
|
||||
insert into sys_application_api(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -442,7 +442,7 @@ WHERE
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_application_api(api_status,api_code,api_path, app_id, catalogue_id, api_name, api_remark,
|
||||
need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method,
|
||||
timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out, bean_name,return_msg,return_success_field,return_success_value, fun_name, extension_api, sorts, create_user_id,
|
||||
|
@ -454,7 +454,7 @@ WHERE
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_application_api(api_status,api_code,api_path, app_id, catalogue_id, api_name, api_remark,
|
||||
need_Login, authentication_port, parameter_passing_mode, destination_address, request_coding, request_method,
|
||||
timeout_period, current_limiting, header_in, query_in, body_in_type, body_in, body_out,bean_name,return_msg,return_success_field,return_success_value,fun_name,extension_api, sorts, create_user_id,
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.apiAuth.entity.SysApplicationApiAuthEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.apiAuth.entity.SysApplicationApiAuthEntity" >
|
||||
insert into sys_application_api_auth(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -170,7 +170,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_application_api_auth(app_id, system_status, name, system_address, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -178,7 +178,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_application_api_auth(app_id, system_status, name, system_address, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.apiAythDetail.entity.SysApplicationApiAuthDetailEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.apiAythDetail.entity.SysApplicationApiAuthDetailEntity" >
|
||||
insert into sys_application_api_auth_detail(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -170,7 +170,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_application_api_auth_detail(app_id, catalogue_id, api_id, tripartite_system_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -178,7 +178,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_application_api_auth_detail(app_id, catalogue_id, api_id, tripartite_system_id, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.apiPara.entity.SysApplicationApiParaEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.apiPara.entity.SysApplicationApiParaEntity" >
|
||||
insert into sys_application_api_para(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -170,7 +170,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_application_api_para(app_id, interface_key, interface_value, interface_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -178,7 +178,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_application_api_para(app_id, interface_key, interface_value, interface_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.apiType.entity.SysApplicationApiTypeEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.apiType.entity.SysApplicationApiTypeEntity" >
|
||||
insert into sys_application_api_type(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -172,7 +172,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_application_api_type(app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -180,7 +180,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_application_api_type(app_id, name, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -168,7 +168,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.database.entity.SysApplicationDatabaseEntity" >
|
||||
insert into sys_application_database(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -220,7 +220,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_application_database(app_id, source_code, source_name, source_type, source_ip, source_port, login_name, password, db_name, service_name, db_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -228,7 +228,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_application_database(app_id, source_code, source_name, source_type, source_ip, source_port, login_name, password, db_name, service_name, db_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -222,7 +222,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.entity.SysApplicationEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.entity.SysApplicationEntity" >
|
||||
insert into sys_application(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -292,7 +292,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_application(app_logo, app_status, name, version_number, app_id, system_address, access_mode, affiliation_field, manufacturer, app_introduction, client_path, web_path, program_path, public_key, secret_key, interface_address, interface_status, db_status,app_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -300,7 +300,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_application(app_logo, app_status, name, version_number,app_id,system_address, access_mode, affiliation_field, manufacturer, app_introduction, client_path, web_path, program_path, public_key, secret_key, interface_address, interface_status, db_status,app_type, sorts, org_id, sts, create_time, create_user_id, modify_time, modify_user_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.plugin.entity.SysApplicationPluginEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.application.plugin.entity.SysApplicationPluginEntity" >
|
||||
insert into sys_application_plugin(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -194,7 +194,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_application_plugin(app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -202,7 +202,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_application_plugin(app_id, plugin_name, plugin_code, plugin_version, plugin_remark, release_date, plugin_status, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -11,6 +11,8 @@ import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
|||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||
import com.hzya.frame.mdm.mdmModuleDistribute.dao.IMdmModuleDistributeDao;
|
||||
import com.hzya.frame.mdm.mdmModuleDistribute.entity.MdmModuleDistributeEntity;
|
||||
import com.hzya.frame.serviceUtil.DsDataSourceUtil;
|
||||
import com.hzya.frame.sysnew.application.api.dao.ISysApplicationApiDao;
|
||||
import com.hzya.frame.sysnew.application.api.entity.SysApplicationApiDto;
|
||||
|
@ -104,7 +106,8 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
private ISysMessageManageDao sysMessageManageDao;
|
||||
@Resource
|
||||
private ISysMessageManageDetailDao sysMessageManageDetailDao; //明细表
|
||||
|
||||
@Resource
|
||||
private IMdmModuleDistributeDao mdmModuleDistributeDao;
|
||||
@Resource
|
||||
private IIntegrationTaskCacheableService iIntegrationTaskCacheableService;
|
||||
@Resource
|
||||
|
@ -631,6 +634,8 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
SysApplicationEntity sysApplicationEntity = new SysApplicationEntity();
|
||||
sysApplicationEntity.setId(entity.getId());
|
||||
/** 应用logo(地址或者id) */
|
||||
sysApplicationEntity.setAppType(entity.getAppType());
|
||||
/** 应用logo(地址或者id) */
|
||||
sysApplicationEntity.setAppLogo(entity.getAppLogo());
|
||||
/** 应用是否启用(1、启用 2、停用) */
|
||||
sysApplicationEntity.setAppStatus(entity.getAppStatus());
|
||||
|
@ -1765,6 +1770,7 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
logger.info("invoke开始>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
|
||||
sysExtensionApiEntity = (SysExtensionApiEntity) m.invoke(object, sysExtensionApiEntity);
|
||||
logger.info("invoke结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
|
||||
break;
|
||||
} catch (Exception e) {
|
||||
logger.error("invokeException{}", e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("内部方法执行错误,请联系管理员");
|
||||
|
@ -2046,11 +2052,11 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
* @Date 11:36 上午 2023/10/20
|
||||
**/
|
||||
private SysMessageManageLogEntity saveLog(SysApplicationEntity sendApp, SysApplicationEntity receiveApp, SysApplicationApiEntity receiveApi,
|
||||
String oldbodys,String bodys,
|
||||
Map<String, String> oldheaderMap,Map<String, String> headerMap,
|
||||
Map<String, String> headers,
|
||||
String oldquerys, String querys,
|
||||
String body, boolean flag,String msg) {
|
||||
String oldbodys,String bodys,
|
||||
Map<String, String> oldheaderMap,Map<String, String> headerMap,
|
||||
Map<String, String> headers,
|
||||
String oldquerys, String querys,
|
||||
String body, boolean flag,String msg) {
|
||||
SysMessageManageLogEntity sysMessageManageLogEntity = new SysMessageManageLogEntity();
|
||||
//messageManageId 消息主表主键
|
||||
//theme 消息主题
|
||||
|
@ -2369,6 +2375,14 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
if (entity.getId() == null || "".equals(entity.getId())) {
|
||||
return BaseResult.getFailureMessageEntity("系统错误");
|
||||
}
|
||||
MdmModuleDistributeEntity mdmModuleDistributeEntity = new MdmModuleDistributeEntity();
|
||||
mdmModuleDistributeEntity.setAddScript(entity.getId());
|
||||
mdmModuleDistributeEntity.setUpdateScript(entity.getId());
|
||||
mdmModuleDistributeEntity.setDeleteScript(entity.getId());
|
||||
Integer a = mdmModuleDistributeDao.queryCountUse(mdmModuleDistributeEntity);
|
||||
if(a > 0){
|
||||
return BaseResult.getFailureMessageEntity("脚本已经被使用,请先取消关联");
|
||||
}
|
||||
entity.setUpdate();
|
||||
sysApplicationScriptDao.logicRemoveMultiCondition(entity);
|
||||
return BaseResult.getSuccessMessageEntity("删除脚本成功");
|
||||
|
|
|
@ -61,6 +61,7 @@ public class ComparisonServiceImpl extends BaseService<ComparisonEntity, String>
|
|||
return BaseResult.getFailureMessageEntity("主数据编码为空");
|
||||
}
|
||||
ComparisonEntity comparisonEntity = jsonObject.toJavaObject(ComparisonEntity.class);
|
||||
ComparisonDetailsEntity comparisonDetailsEntity=new ComparisonDetailsEntity();
|
||||
List<ComparisonEntity> comparisonEntities=new ArrayList<>();
|
||||
try {
|
||||
//根据主数据编码查询表名称,字段名称等信息 10001
|
||||
|
@ -85,12 +86,32 @@ public class ComparisonServiceImpl extends BaseService<ComparisonEntity, String>
|
|||
map.remove("appCode");
|
||||
}
|
||||
}
|
||||
if (entity.getDbType().equals("2")) {
|
||||
comparisonDetailsEntity.setDbName(entity.getDbName());
|
||||
}
|
||||
}
|
||||
}
|
||||
comparisonEntity.setMap(map);
|
||||
try {
|
||||
List<JSONObject> list=new ArrayList<>();
|
||||
//查询主表数据
|
||||
List<Map<String,Object>> comparisonEntitiePages = comparisonDao.queryComparisonPage(comparisonEntity);
|
||||
PageInfo pageInfo = new PageInfo(comparisonEntitiePages);
|
||||
if(CollectionUtils.isNotEmpty(comparisonEntitiePages)){
|
||||
for (Map<String, Object> comparisonEntitiePage : comparisonEntitiePages) {
|
||||
JSONObject jsonObjects=new JSONObject();
|
||||
jsonObjects.put(comparisonEntity.getDbName(),comparisonEntitiePage);
|
||||
comparisonDetailsEntity.setFormmainId(String.valueOf(comparisonEntitiePage.get("id")));
|
||||
//查询明细表数据
|
||||
List<Map<String, Object>> maps = comparisonDetailsDao.queryComparisonDetailsPage(comparisonDetailsEntity);
|
||||
if(CollectionUtils.isNotEmpty(maps)){
|
||||
jsonObjects.put(comparisonDetailsEntity.getDbName(),maps);
|
||||
}else {
|
||||
jsonObjects.put(comparisonDetailsEntity.getDbName(),new JSONArray());
|
||||
}
|
||||
list.add(jsonObjects);
|
||||
}
|
||||
}
|
||||
PageInfo pageInfo = new PageInfo(list);
|
||||
return BaseResult.getSuccessMessageEntity("查询成功", pageInfo);
|
||||
} catch (Exception e) {
|
||||
logger.info("查询通用数据错误:{}", e.getMessage());
|
||||
|
@ -137,13 +158,13 @@ public class ComparisonServiceImpl extends BaseService<ComparisonEntity, String>
|
|||
Map<String, Object> map = new HashMap<>();//将主表数据存到map中
|
||||
Map<String, Object> mapDetails = new HashMap<>();//将子表数据存到map中
|
||||
if (comparisonEntities != null && comparisonEntities.size() > 0) {
|
||||
map=spliceMainMap(comparisonEntities,jsonObjectMain,map,comparisonEntity);
|
||||
mapDetails=spliceDetailMap(comparisonEntities,mapDetails,comparisonDetailsEntity,jsonArray);
|
||||
String uuid=null;
|
||||
if(jsonObjectMain.getString("id")==null){
|
||||
map = spliceMainMap(comparisonEntities, jsonObjectMain, map, comparisonEntity);
|
||||
mapDetails = spliceDetailMap(comparisonEntities, mapDetails, comparisonDetailsEntity, jsonArray);
|
||||
String uuid = null;
|
||||
if (jsonObjectMain.getString("id") == null) {
|
||||
uuid = UUIDUtils.getUUID();
|
||||
map.put("id", uuid);
|
||||
}else{
|
||||
} else {
|
||||
uuid = jsonObjectMain.getString("id");
|
||||
map.put("id", jsonObjectMain.getString("id"));
|
||||
}
|
||||
|
@ -153,47 +174,48 @@ public class ComparisonServiceImpl extends BaseService<ComparisonEntity, String>
|
|||
map.put("create_time", new Date());
|
||||
map.put("modify_time", new Date());
|
||||
map.put("sts", "Y");
|
||||
map.put("data_status","Y");//新增状态
|
||||
map.put("add_status","0");//新增状态
|
||||
map.put("update_status","1");//修改状态
|
||||
map.put("delete_status","1");//删除状态
|
||||
map.put("data_status", "Y");//新增状态
|
||||
map.put("add_status", "0");//新增状态
|
||||
map.put("update_status", "1");//修改状态
|
||||
map.put("delete_status", "1");//删除状态
|
||||
ComparisonEntity comparisonEntityRule = comparisonEntities.get(0);
|
||||
//查询单据规则
|
||||
//查询单据规则 只查询主表得,明细表不用
|
||||
try {
|
||||
comparisonEntityRule= comparisonDao.queryComparisonById(comparisonEntityRule);
|
||||
String documentRule =comparisonEntityRule.getDocumentRule();; //"KH-2024-05-30-1";
|
||||
logger.info("通用数据保存接口中根据mId查询出来的单据规则为:{}",documentRule);
|
||||
if(documentRule !=null){
|
||||
ComparisonEntity comparisonEntityRules = comparisonDao.queryComparisonById(comparisonEntityRule);
|
||||
String documentRule = comparisonEntityRules.getDocumentRule();
|
||||
; //"KH-2024-05-30-1";
|
||||
logger.info("通用数据保存接口中根据mId查询出来的单据规则为:{}", documentRule);
|
||||
if (documentRule != null) {
|
||||
//获取规则前缀 CK
|
||||
String rulePrefix=documentRule.substring(0,documentRule.indexOf("-"));
|
||||
String rulePrefix = documentRule.substring(0, documentRule.indexOf("-"));
|
||||
//获取规则中间日期 yyyy-MM-dd
|
||||
String ruleDate = documentRule.substring(documentRule.indexOf("-") + 1, documentRule.lastIndexOf("-"));
|
||||
String ruleMiddle = getRuleDate(ruleDate);
|
||||
//获取规则后缀
|
||||
String ruleSuffixLength= documentRule.substring(documentRule.lastIndexOf("-")+1);
|
||||
String ruleSuffixLength = documentRule.substring(documentRule.lastIndexOf("-") + 1);
|
||||
int ruleSuffix = ruleSuffixLength.length();
|
||||
//生成单据规则
|
||||
comparisonEntity.setRulePrefix(rulePrefix);
|
||||
comparisonEntity.setRuleMiddle(ruleMiddle);
|
||||
comparisonEntity.setRuleSuffix(ruleSuffix);
|
||||
comparisonEntityRule.setRulePrefix(rulePrefix);
|
||||
comparisonEntityRule.setRuleMiddle(ruleMiddle);
|
||||
comparisonEntityRule.setRuleSuffix(ruleSuffix);
|
||||
try {
|
||||
//新生成单据规则保存到数据库
|
||||
comparisonEntityRule = comparisonDao.queryComparisonRule(comparisonEntity);
|
||||
map.put("document_rule", comparisonEntityRule.getDocumentRule());//单据规则
|
||||
map.put("document_rule_num", comparisonEntityRule.getDocumentRuleNum());//单据规则流水号
|
||||
comparisonEntity.setMap(map);
|
||||
ComparisonEntity comparisonEntityRuleGz = comparisonDao.queryComparisonRule(comparisonEntityRule);
|
||||
map.put("document_rule", comparisonEntityRuleGz.getDocumentRule());//单据规则
|
||||
map.put("document_rule_num", comparisonEntityRuleGz.getDocumentRuleNum());//单据规则流水号
|
||||
comparisonEntityRule.setMap(map);
|
||||
} catch (Exception e) {
|
||||
logger.info("保存通用数据时候生成单据规则错误:{}", e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存失败");
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
logger.info("通用数据保存接口中查询单据规则错误:{}",e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.info("通用数据保存接口中查询单据规则错误:{}", e.getMessage());
|
||||
return BaseResult.getFailureMessageEntity("保存失败");
|
||||
}
|
||||
try {
|
||||
//保存主表数据
|
||||
ComparisonEntity comparisonEntityOne = comparisonDao.saveComparison(comparisonEntity);
|
||||
ComparisonEntity comparisonEntityOne = comparisonDao.saveComparison(comparisonEntityRule);
|
||||
//保存子表数据
|
||||
if (mapDetails != null && mapDetails.size() > 0) {
|
||||
String uuidDetail = UUIDUtils.getUUID();
|
||||
|
@ -211,10 +233,10 @@ public class ComparisonServiceImpl extends BaseService<ComparisonEntity, String>
|
|||
//comparisonEntityOne.setComparisonDetailsEntity(comparisonDetailsEntityOne);
|
||||
map.put("details",mapDetails);
|
||||
//保存操作日志
|
||||
controlsLogDaoimpl.saveControlsLog(uuidDetail,jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口新增",jsonObject.getString("optionName"),comparisonDetailsEntity.getDbName()+"_option_log");
|
||||
//controlsLogDaoimpl.saveControlsLog(uuidDetail,jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口新增",jsonObject.getString("optionName"),comparisonDetailsEntity.getDbName()+"_option_log");
|
||||
}
|
||||
//保存操作日志
|
||||
controlsLogDaoimpl.saveControlsLog(uuid,jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口新增",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log");
|
||||
controlsLogDaoimpl.saveControlsLog(uuid,jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口新增",jsonObject.getString("optionName"),comparisonEntityRule.getDbName()+"_option_log");
|
||||
return BaseResult.getSuccessMessageEntity("保存成功", map);
|
||||
} catch (Exception e) {
|
||||
logger.info("保存通用数据时候错误:{}", e.getMessage());
|
||||
|
@ -296,7 +318,7 @@ public class ComparisonServiceImpl extends BaseService<ComparisonEntity, String>
|
|||
comparisonDetailsEntity.setMapDetails(mapDetails);
|
||||
comparisonDetailsDao.updateComparisonDetailsByType(comparisonDetailsEntity);
|
||||
//保存操作日志
|
||||
controlsLogDaoimpl.saveControlsLog(comparisonDetailsEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口更新",jsonObject.getString("optionName"),comparisonDetailsEntity.getDbName()+"_option_log");
|
||||
// controlsLogDaoimpl.saveControlsLog(comparisonDetailsEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口更新",jsonObject.getString("optionName"),comparisonDetailsEntity.getDbName()+"_option_log");
|
||||
}
|
||||
//保存操作日志
|
||||
controlsLogDaoimpl.saveControlsLog(comparisonEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口更新",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log");
|
||||
|
@ -368,7 +390,7 @@ public class ComparisonServiceImpl extends BaseService<ComparisonEntity, String>
|
|||
comparisonDetailsEntity.setFormmainId(jsonObjectMain.getString("id"));
|
||||
comparisonDetailsEntity.setModify_user_id("c796fd9ba4c9f5ff3cc2fa41a040e443");
|
||||
comparisonDetailsDao.deleteComparisonDetails(comparisonDetailsEntity);
|
||||
controlsLogDaoimpl.saveControlsLog(comparisonDetailsEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口删除",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log");
|
||||
// controlsLogDaoimpl.saveControlsLog(comparisonDetailsEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口删除",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log");
|
||||
}
|
||||
controlsLogDaoimpl.saveControlsLog(comparisonEntity.getId(),jsonObject.getString("appName"),jsonObject.getString("appCode"),jsonObject.toJSONString(),"接口删除",jsonObject.getString("optionName"),comparisonEntity.getDbName()+"_option_log");
|
||||
return BaseResult.getSuccessMessageEntity("删除成功",integer);
|
||||
|
|
|
@ -22,5 +22,5 @@ public interface IGroovyIntegrationService {
|
|||
* @param jsonObject 请求参数对象
|
||||
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||
**/
|
||||
SysExtensionApiEntity groovyScriptExecution(JSONObject jsonObject);
|
||||
Object groovyScriptExecution(JSONObject jsonObject);
|
||||
}
|
||||
|
|
|
@ -25,39 +25,84 @@ public class GroovyIntegrationServiceImpl implements IGroovyIntegrationService {
|
|||
|
||||
|
||||
@Override
|
||||
public SysExtensionApiEntity groovyScriptExecution(JSONObject jsonObject) {
|
||||
public Object groovyScriptExecution(JSONObject jsonObject) {
|
||||
Object object = GroovyUtil.execute(jsonObject);
|
||||
return new SysExtensionApiEntity();
|
||||
return object;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
java.lang.String str = "{\"project_org\":\"\",\"modify_time\":\"2024-06-17 16:52:34\",\"project_duty_dept\":null,\"project_name\":\"凯伍德组织档案\",\"document_rule_num\":1,\"add_status\":\"0\",\"delete_status\":\"1\",\"project_dutier\":\"\",\"id\":\"fb12734c8267488b96833633e68a7abc\",\"data_status\":\"F\",\"modify_user_id\":\"c796fd9ba4c9f5ff3cc2fa41a040e443\",\"sorts\":1,\"project_memo\":\"\",\"document_rule\":\"XM-2024-06-17-00001\",\"create_user_id\":\"c796fd9ba4c9f5ff3cc2fa41a040e443\",\"create_time\":\"2024-06-17 16:42:18\",\"company_id\":null,\"project_sh_name\":\"\",\"project_code\":\"01004\",\"project_currtype\":\"\",\"update_status\":\"0\",\"sts\":\"Y\",\"org_id\":\"0\",\"project_parentpro\":\"\",\"project_bill_type\":\"\"}";
|
||||
|
||||
java.lang.String str = "{\"data\":{\"pk_group\":\"00\",\"enablestate\":\"2\",\"code\":\"20240621001\",\"modify_time\":1718935555000,\"document_rule_num\":2,\"mdm_customer_bank\":[],\"add_status\":\"0\",\"custprop\":\"0\",\"delete_status\":\"1\",\"custstate\":\"1\",\"id\":\"d3d20ea680dc4bffaa7e5bf84764d62a\",\"data_status\":\"Y\",\"modify_user_id\":\"1\",\"sorts\":24,\"document_rule\":\"KH-2024-06-21-00002\",\"create_user_id\":\"1\",\"create_time\":1718935555000,\"company_id\":\"Y\",\"pk_country\":\"CN\",\"update_status\":\"1\",\"sts\":\"Y\",\"pk_custclass\":\"K01\",\"org_id\":\"Y\",\"name\":\"测试下发客户\",\"taxpayerid\":\"087982419238904359\"},\"query\":\"[]\",\"header\":\"[{\\\"parameterType\\\":\\\"fundamental\\\",\\\"length\\\":\\\"500\\\",\\\"index\\\":0,\\\"concreteType\\\":\\\"String\\\",\\\"description\\\":\\\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA87rrNR\\\",\\\"id\\\":\\\"421b73f0-5562-4bfe-b770-c8aca8878bfd\\\",\\\"parameterName\\\":\\\"pubKey\\\",\\\"required\\\":true,\\\"example\\\":\\\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA87rrNREgMNeOEOwlvM2iqqEfshDadRHziDSB2PbRnoMqSv1nGr3XBlZuseNj5HmxDEkLhOdfyw0yjzoz3wK7XhFpeN4Iyf7NT7hps5jAQMEpnul9Qwmj5qUr/eK5SaO9H8n7sh9BvCdrX9oRUh+U2/ceA3O+y/MUHk5DRvSadc8FhpqbOaNBbAzPnyYAwpVUPvaJ90jcGN1ZG99HR1GEzC+Cn9s6vgt7dYL6ysMs36bSP47xraDSxpfr0CLwa6JV/9KjLIeqL1ZaMtK0CJ1zJGCBA6O6kgxeE9Ul7q2lSS6mPAEJ78izaTYsrjhLpKT+eTtFBOLFbiCrbLp8tVE5kwIDAQAB\\\"},{\\\"parameterType\\\":\\\"fundamental\\\",\\\"length\\\":\\\"100\\\",\\\"index\\\":1,\\\"concreteType\\\":\\\"String\\\",\\\"description\\\":\\\"OA\\\",\\\"id\\\":\\\"5659424d-261d-43ed-9fff-657bd15c7a64\\\",\\\"parameterName\\\":\\\"client_id\\\",\\\"required\\\":true,\\\"example\\\":\\\"OA\\\"},{\\\"parameterType\\\":\\\"authport\\\",\\\"length\\\":\\\"100\\\",\\\"index\\\":2,\\\"concreteType\\\":\\\"String\\\",\\\"id\\\":\\\"d2c4477e-a0bb-4daa-97b4-3cf0b8445001\\\",\\\"parameterName\\\":\\\"access_token\\\",\\\"required\\\":true,\\\"example\\\":[\\\"attribute\\\",\\\"data\\\",\\\"access_token\\\"]}]\",\"body\":\"[{\\\"index\\\":0,\\\"id\\\":\\\"5ac44a3b-c0d5-4ae9-aec6-af6c4c8f59cc\\\",\\\"parameterName\\\":\\\"body\\\",\\\"first\\\":true}]\"}";
|
||||
java.lang.String str1 = "com.alibaba.fastjson.JSONObject returnObject = new com.alibaba.fastjson.JSONObject();\n" +
|
||||
" com.alibaba.fastjson.JSONObject bodys = new com.alibaba.fastjson.JSONObject();\n" +
|
||||
"\n" +
|
||||
" com.alibaba.fastjson.JSONObject reqData = com.alibaba.fastjson.JSON.parseObject(jsonStr);\n" +
|
||||
" com.alibaba.fastjson.JSONObject data = reqData.getJSONObject(\"data\");\n" +
|
||||
" com.alibaba.fastjson.JSONObject ufinterfaceObject = new com.alibaba.fastjson.JSONObject();\n" +
|
||||
" ufinterfaceObject.put(\"billtype\", \"customer\");\n" +
|
||||
" ufinterfaceObject.put(\"isexchange\", \"Y\");\n" +
|
||||
" ufinterfaceObject.put(\"replace\", \"Y\");\n" +
|
||||
" ufinterfaceObject.put(\"sender\", \"OA\");\n" +
|
||||
" ufinterfaceObject.put(\"account\", \"01\");\n" +
|
||||
" ufinterfaceObject.put(\"groupcode\", \"00\");\n" +
|
||||
" com.alibaba.fastjson.JSONObject billObject = new com.alibaba.fastjson.JSONObject();\n" +
|
||||
" com.alibaba.fastjson.JSONObject billheadObject = new com.alibaba.fastjson.JSONObject();\n" +
|
||||
" billheadObject.put(\"code\", data.get(\"code\"));\n" +
|
||||
" billheadObject.put(\"custprop\", data.get(\"custprop\"));\n" +
|
||||
" billheadObject.put(\"custstate\", data.get(\"custstate\"));\n" +
|
||||
" billheadObject.put(\"pk_custclass\", data.get(\"pk_custclass\"));\n" +
|
||||
" billheadObject.put(\"pk_country\", data.get(\"pk_country\"));\n" +
|
||||
" billheadObject.put(\"pk_timezone\", \"P0800\");\n" +
|
||||
" billheadObject.put(\"pk_format\", \"ZH-CN\");\n" +
|
||||
" billheadObject.put(\"enablestate\", data.get(\"enablestate\"));\n" +
|
||||
" billheadObject.put(\"name\", data.get(\"name\"));\n" +
|
||||
" billheadObject.put(\"pk_group\", data.get(\"pk_group\"));\n" +
|
||||
" billheadObject.put(\"pk_org\", data.get(\"pk_org\"));\n" +
|
||||
" billheadObject.put(\"taxpayerid\", data.get(\"taxpayerid\"));\n" +
|
||||
" billObject.put(\"billhead\", billheadObject);\n" +
|
||||
" ufinterfaceObject.put(\"bill\", billObject);\n" +
|
||||
" bodys.put(\"ufinterface\", ufinterfaceObject);\n" +
|
||||
" returnObject.put(\"bodys\",bodys.toJSONString());\n" +
|
||||
" return returnObject.toJSONString();".trim();
|
||||
String newString =str1.replaceAll("\\s+", "");
|
||||
A88772 s = new A88772();
|
||||
s .execute(str);
|
||||
s.execute(str);
|
||||
}
|
||||
|
||||
static class A88772 {
|
||||
String execute(String jsonStr) {
|
||||
com.alibaba.fastjson.JSONObject reqData = com.alibaba.fastjson.JSON.parseObject(jsonStr);
|
||||
String execute(String jsonStr) {
|
||||
com.alibaba.fastjson.JSONObject returnObject = new com.alibaba.fastjson.JSONObject();
|
||||
com.alibaba.fastjson.JSONObject bodys = new com.alibaba.fastjson.JSONObject();
|
||||
|
||||
com.alibaba.fastjson.JSONObject reqData = com.alibaba.fastjson.JSON.parseObject(jsonStr);
|
||||
com.alibaba.fastjson.JSONObject data = reqData.getJSONObject("data");
|
||||
com.alibaba.fastjson.JSONObject ufinterfaceObject = new com.alibaba.fastjson.JSONObject();
|
||||
ufinterfaceObject.put("billtype", "supplier"); ufinterfaceObject.put("isexchange", "Y");
|
||||
ufinterfaceObject.put("replace", "Y"); ufinterfaceObject.put("sender", "OA");
|
||||
ufinterfaceObject.put("account", "01"); ufinterfaceObject.put("groupcode", "00");
|
||||
ufinterfaceObject.put("billtype", "customer");
|
||||
ufinterfaceObject.put("isexchange", "Y");
|
||||
ufinterfaceObject.put("replace", "Y");
|
||||
ufinterfaceObject.put("sender", "OA");
|
||||
ufinterfaceObject.put("account", "01");
|
||||
ufinterfaceObject.put("groupcode", "00");
|
||||
com.alibaba.fastjson.JSONObject billObject = new com.alibaba.fastjson.JSONObject();
|
||||
com.alibaba.fastjson.JSONObject billheadObject = new com.alibaba.fastjson.JSONObject();
|
||||
billheadObject.put("code", reqData.get("project_code")); billheadObject.put("supprop", "0");
|
||||
billheadObject.put("custstate", "1"); billheadObject.put("pk_supplierclass", "S01");
|
||||
billheadObject.put("pk_country", "CN"); billheadObject.put("pk_timezone", "P0800");
|
||||
billheadObject.put("pk_format", "ZH-CN"); billheadObject.put("enablestate", "2");
|
||||
billheadObject.put("name", reqData.get("project_sh_name")); billheadObject.put("pk_group", "00");
|
||||
billheadObject.put("pk_org", "003"); billheadObject.put("taxpayerid", "087981489021135119");
|
||||
returnObject.put("ufinterface",ufinterfaceObject); billObject.put("billhead", billheadObject); returnObject.put("bill",billObject);
|
||||
System.out.println( returnObject.toJSONString());
|
||||
billheadObject.put("code", data.get("code"));
|
||||
billheadObject.put("custprop", data.get("custprop"));
|
||||
billheadObject.put("custstate", data.get("custstate"));
|
||||
billheadObject.put("pk_custclass", data.get("pk_custclass"));
|
||||
billheadObject.put("pk_country", data.get("pk_country"));
|
||||
billheadObject.put("pk_timezone", "P0800");
|
||||
billheadObject.put("pk_format", "ZH-CN");
|
||||
billheadObject.put("enablestate", data.get("enablestate"));
|
||||
billheadObject.put("name", data.get("name"));
|
||||
billheadObject.put("pk_group", data.get("pk_group"));
|
||||
billheadObject.put("pk_org", data.get("pk_org"));
|
||||
billheadObject.put("taxpayerid", data.get("taxpayerid"));
|
||||
billObject.put("billhead", billheadObject);
|
||||
ufinterfaceObject.put("bill", billObject);
|
||||
bodys.put("ufinterface", ufinterfaceObject);
|
||||
returnObject.put("bodys",bodys.toJSONString());
|
||||
return returnObject.toJSONString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -142,7 +142,7 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.homeComponent.entity.SysHomeComponentEntity"
|
||||
keyProperty="" useGeneratedKeys="true">
|
||||
keyProperty="">
|
||||
insert into sys_home_component(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -184,7 +184,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" keyProperty="">
|
||||
insert into sys_home_component(id, name, code, state, remark, sorts, create_user_id, create_time,
|
||||
modify_user_id, modify_time, sts, org_id, company_id, sts)
|
||||
values
|
||||
|
@ -194,7 +194,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="">
|
||||
insert into sys_home_component(id, name, code, state, remark, sorts, create_user_id, create_time,
|
||||
modify_user_id, modify_time, sts, org_id, company_id)
|
||||
values
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
from sys_integrated_foreground_task where id = #{ id } and sts='Y'
|
||||
</select>
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.integratedForegroundTask.entity.SysIntegratedForegroundTaskEntity" >
|
||||
insert into sys_integrated_foreground_task(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -169,7 +169,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_integrated_foreground_task(workshop_name, plug_id, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -177,7 +177,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_integrated_foreground_task(workshop_name, plug_id, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.integratedForegroundTaskDetail.entity.SysIntegratedForegroundTaskDetailEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.integratedForegroundTaskDetail.entity.SysIntegratedForegroundTaskDetailEntity" >
|
||||
insert into sys_integrated_foreground_task_detail(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -180,7 +180,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_integrated_foreground_task_detail(formmain_id, arg_code, arg_name, arg_type, arg_value, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -188,7 +188,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_integrated_foreground_task_detail(formmain_id, arg_code, arg_name, arg_type, arg_value, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -120,7 +120,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.integratedForegroundTaskParameter.entity.SysIntegratedForegroundTaskParameterEntity" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.integratedForegroundTaskParameter.entity.SysIntegratedForegroundTaskParameterEntity" >
|
||||
insert into sys_integrated_foreground_task_parameter(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -156,7 +156,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_integrated_foreground_task_parameter(formmain_id, in_parameter, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -164,7 +164,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_integrated_foreground_task_parameter(formmain_id, in_parameter, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -172,7 +172,7 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.messageManage.entity.SysMessageManageEntity"
|
||||
keyProperty="id" useGeneratedKeys="true">
|
||||
>
|
||||
insert into sys_message_manage(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -216,7 +216,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_message_manage(theme, code, send_app, send_api, data_type, remark, sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
|
@ -226,7 +226,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_message_manage(theme, code, send_app, send_api, data_type, remark, sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
|
|
|
@ -162,8 +162,8 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert"
|
||||
parameterType="com.hzya.frame.sysnew.messageManageDetail.entity.SysMessageManageDetailEntity" keyProperty="id"
|
||||
useGeneratedKeys="true">
|
||||
parameterType="com.hzya.frame.sysnew.messageManageDetail.entity.SysMessageManageDetailEntity"
|
||||
>
|
||||
insert into sys_message_manage_detail(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -211,7 +211,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_message_manage_detail(formmain_id, receive_name, receive_code, receive_app, receive_api,
|
||||
data_type, return_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
|
@ -221,7 +221,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_message_manage_detail(formmain_id, receive_name, receive_code, receive_app, receive_api,
|
||||
data_type, return_type, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
|
|
|
@ -290,7 +290,7 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.messageManageLog.entity.SysMessageManageLogEntity"
|
||||
keyProperty="id" useGeneratedKeys="true">
|
||||
>
|
||||
insert into
|
||||
<choose>
|
||||
<when test=" status != null and status.trim() != '' and status == 3">
|
||||
|
@ -357,7 +357,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_message_manage_log(message_manage_id, theme, message_code, send_app, send_api, receive_code,
|
||||
receive_app, receive_api, source_data, target_data, return_data, return_type,error_status, status, remark,
|
||||
sorts, create_user_id,
|
||||
|
@ -369,7 +369,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_message_manage_log(message_manage_id, theme, message_code, send_app, send_api, receive_code,
|
||||
receive_app, receive_api, source_data, target_data, return_data, return_type,error_status, status, remark,
|
||||
sorts, create_user_id,
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.messageManageLogBack.detail.entity.SysMessageManageLogDetailBackEntity"
|
||||
keyProperty="id" useGeneratedKeys="true">
|
||||
>
|
||||
insert into sys_message_manage_log_detail_back(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -180,7 +180,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_message_manage_log_detail_back(id,message_manage_id, source_data, target_data, return_data,sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
|
@ -189,7 +189,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_message_manage_log_detail_back(message_manage_id, source_data, target_data, return_data, sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
|
|
|
@ -273,7 +273,7 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.messageManageLogBack.entity.SysMessageManageLogBackEntity"
|
||||
keyProperty="id" useGeneratedKeys="true">
|
||||
>
|
||||
insert into sys_message_manage_log_back(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -335,7 +335,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_message_manage_log_back(id,message_manage_id, theme, message_code, send_app, send_api, receive_code,
|
||||
receive_app, receive_api, source_data, target_data, return_data, return_type,error_status, status, remark, sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id)
|
||||
|
@ -345,7 +345,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_message_manage_log_back(message_manage_id, theme, message_code, send_app, send_api, receive_code,
|
||||
receive_app, receive_api, source_data, target_data, return_data, return_type,error_status, status, remark, sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id)
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.messageManageLogDetail.entity.SysMessageManageLogDetailEntity"
|
||||
keyProperty="id" useGeneratedKeys="true">
|
||||
>
|
||||
insert into sys_message_manage_log_detail(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -176,7 +176,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_message_manage_log_detail(message_manage_id, source_data, target_data, return_data,sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
|
@ -186,7 +186,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_message_manage_log_detail(message_manage_id, source_data, target_data, return_data, sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.plugArg.entity.SysPlugArgEntity" keyProperty="" useGeneratedKeys="true">
|
||||
<insert id="entity_insert" parameterType = "com.hzya.frame.sysnew.plugArg.entity.SysPlugArgEntity" keyProperty="">
|
||||
insert into sys_plug_arg(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''"> id , </if>
|
||||
|
@ -169,7 +169,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" keyProperty="">
|
||||
insert into sys_plug_arg(id, plug_id, plug_code, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
@ -177,7 +177,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="">
|
||||
insert into sys_plug_arg(id, plug_id, plug_code, plug_name, remark, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
|
|
|
@ -142,7 +142,7 @@
|
|||
|
||||
<!--新增所有列-->
|
||||
<insert id="entity_insert" parameterType="com.hzya.frame.sysnew.plugArgDeatil.entity.SysPlugArgDetailEntity"
|
||||
keyProperty="id" useGeneratedKeys="true">
|
||||
>
|
||||
insert into sys_plug_arg_detail(
|
||||
<trim suffix="" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id ,</if>
|
||||
|
@ -184,7 +184,7 @@
|
|||
)
|
||||
</insert>
|
||||
<!-- 批量新增 -->
|
||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertBatch" >
|
||||
insert into sys_plug_arg_detail(formmain_id, arg_code, arg_name, arg_type, remark, sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id, sts)
|
||||
values
|
||||
|
@ -194,7 +194,7 @@
|
|||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量新增或者修改-->
|
||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
<insert id="entityInsertOrUpdateBatch" >
|
||||
insert into sys_plug_arg_detail(formmain_id, arg_code, arg_name, arg_type, remark, sorts, create_user_id,
|
||||
create_time, modify_user_id, modify_time, sts, org_id)
|
||||
values
|
||||
|
|
|
@ -38,7 +38,7 @@ public class AxServiceImpl extends BaseService<ArchivesEntity, String> implement
|
|||
this.axDao = dao;
|
||||
this.dao = dao;
|
||||
}
|
||||
@Value("${ax.url}")
|
||||
@Value("${zt.url}")
|
||||
private String voucherUrl;
|
||||
private final String publicKey = "ZJYAWb7lhAUTYqekPkU+uHJv1/ObJxb7dT7sD8HPRDGAgyhCe7eDIk+3zDUT+v578prj";
|
||||
private final String secretKey = "fviZnLBsQUAGF8w8FSOdJi7XlIm/XAZclMxRagDLfTyJFlvnIBF3w66Hrpfzs8cYj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=";
|
||||
|
|
Loading…
Reference in New Issue