Merge remote-tracking branch 'origin/master'
commit
d58c433293
@ -1,19 +1,17 @@
|
||||
package com.glxp.api.dao.system;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.glxp.api.entity.system.SysMenuHelpEntity;
|
||||
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity;
|
||||
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
|
||||
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SysPdfTemplateRelevanceBizDao extends BaseMapper<SysPdfTemplateRelevanceBizEntity> {
|
||||
|
||||
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
|
||||
|
||||
boolean upInsert(SysPdfTemplateRelevanceBizEntity sysPdfTemplateRelevanceBizEntity);
|
||||
|
||||
boolean insertOrUpdate(SysPdfTemplateRelevanceBizEntity sysPdfTemplateRelevanceBizEntity);
|
||||
}
|
@ -1,16 +1,15 @@
|
||||
package com.glxp.api.dao.system;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
|
||||
import com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
|
||||
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SysPdfTemplateRelevanceLabelDao extends BaseMapper<SysPdfTemplateRelevanceLabelEntity> {
|
||||
|
||||
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
|
||||
|
||||
boolean insertOrUpdate(SysPdfTemplateRelevanceLabelEntity sysPdfTemplateRelevanceLabelEntity);
|
||||
}
|
@ -1,17 +1,16 @@
|
||||
package com.glxp.api.dao.system;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
|
||||
import com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
|
||||
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SysPdfTemplateRelevanceStatemenDao extends BaseMapper<SysPdfTemplateRelevanceStatemenEntity> {
|
||||
|
||||
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
|
||||
|
||||
boolean insertOrUpdate(SysPdfTemplateRelevanceStatemenEntity sysPdfTemplateRelevanceStatemenEntity);
|
||||
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.glxp.api.res.sync;
|
||||
|
||||
import com.glxp.api.entity.basic.BasicBusTypeChangeEntity;
|
||||
import com.glxp.api.entity.basic.BasicBusTypePreEntity;
|
||||
import com.glxp.api.entity.basic.EntrustReceEntity;
|
||||
import com.glxp.api.entity.system.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 同步系统设置数据
|
||||
*/
|
||||
@Data
|
||||
public class SpsSyncSysSettingResponse extends BaseSyncResponse {
|
||||
|
||||
private List<SystemParamConfigEntity> systemParamConfigEntities;
|
||||
|
||||
private List<EntrustReceEntity> entrustReceEntities;
|
||||
|
||||
private List<SystemPDFModuleEntity> systemPDFModuleEntities;
|
||||
|
||||
private List<SystemPDFTemplateEntity> systemPDFTemplateEntities;
|
||||
|
||||
private List<SysPdfTemplateRelevanceCodeEntity> sysPdfTemplateRelevanceCodeEntities;
|
||||
|
||||
private List<SysPdfTemplateRelevanceBizEntity> sysPdfTemplateRelevanceBizEntities;
|
||||
|
||||
private List<SysPdfTemplateRelevanceLabelEntity> sysPdfTemplateRelevanceLabelEntities;
|
||||
|
||||
private List<SysPdfTemplateRelevanceStatemenEntity> sysPdfTemplateRelevanceStatemenEntities;
|
||||
|
||||
private List<BasicBusTypePreEntity> basicBusTypePreEntities;
|
||||
|
||||
private List<BasicBusTypeChangeEntity> basicBusTypeChangeEntities;
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.glxp.api.res.sync;
|
||||
|
||||
import com.glxp.api.entity.thrsys.ThrCorpEntity;
|
||||
import com.glxp.api.entity.thrsys.ThrDeptEntity;
|
||||
import com.glxp.api.entity.thrsys.ThrInvWarehouseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 同步第三方基础数据
|
||||
*/
|
||||
@Data
|
||||
public class SpsSyncThrDataResponse extends BaseSyncResponse {
|
||||
|
||||
/**
|
||||
* 部门信息
|
||||
*/
|
||||
private List<ThrDeptEntity> deptEntities;
|
||||
|
||||
/**
|
||||
* 仓库信息
|
||||
*/
|
||||
private List<ThrInvWarehouseEntity> invWarehouseEntities;
|
||||
|
||||
|
||||
/**
|
||||
* 往来单位信息
|
||||
*/
|
||||
private List<ThrCorpEntity> corpEntities;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.glxp.api.res.sync;
|
||||
|
||||
import com.glxp.api.entity.thrsys.ThrProductsEntity;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 同步第三方产品数据
|
||||
*/
|
||||
@Data
|
||||
public class SpsSyncThrProductsResponse extends BaseSyncResponse {
|
||||
|
||||
/**
|
||||
* 产品信息
|
||||
*/
|
||||
private List<ThrProductsEntity> productsEntities;
|
||||
|
||||
}
|
@ -1,78 +1,139 @@
|
||||
<?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.glxp.api.dao.system.SysPdfTemplateRelevanceBizDao">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_pdf_template_relevance_biz-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="templateId" jdbcType="INTEGER" property="templateId" />
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId" />
|
||||
<result column="adminId" jdbcType="INTEGER" property="adminId" />
|
||||
<result column="moduleId" jdbcType="INTEGER" property="moduleId" />
|
||||
<result column="localAction" jdbcType="VARCHAR" property="localAction" />
|
||||
<result column="remark1" jdbcType="VARCHAR" property="remark1" />
|
||||
<result column="remark2" jdbcType="VARCHAR" property="remark2" />
|
||||
<result column="remark3" jdbcType="VARCHAR" property="remark3" />
|
||||
<result column="printType" jdbcType="TINYINT" property="printType" />
|
||||
<result column="modelKey" jdbcType="VARCHAR" property="modelKey" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
|
||||
printType, modelKey
|
||||
</sql>
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_pdf_template_relevance_biz-->
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="templateId" jdbcType="INTEGER" property="templateId"/>
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId"/>
|
||||
<result column="adminId" jdbcType="INTEGER" property="adminId"/>
|
||||
<result column="moduleId" jdbcType="INTEGER" property="moduleId"/>
|
||||
<result column="localAction" jdbcType="VARCHAR" property="localAction"/>
|
||||
<result column="remark1" jdbcType="VARCHAR" property="remark1"/>
|
||||
<result column="remark2" jdbcType="VARCHAR" property="remark2"/>
|
||||
<result column="remark3" jdbcType="VARCHAR" property="remark3"/>
|
||||
<result column="printType" jdbcType="TINYINT" property="printType"/>
|
||||
<result column="modelKey" jdbcType="VARCHAR" property="modelKey"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id,
|
||||
templateId,
|
||||
customerId,
|
||||
adminId,
|
||||
moduleId,
|
||||
localAction,
|
||||
remark1,
|
||||
remark2,
|
||||
remark3,
|
||||
printType,
|
||||
modelKey
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
|
||||
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
|
||||
SELECT
|
||||
basic_bustype_change.`originName` localActionName,
|
||||
sys_pdf_template_relevance_biz.id,
|
||||
basic_bustype_change.originAction localAction,
|
||||
templateId,
|
||||
moduleId,
|
||||
sys_pdf_template.NAME templateName,
|
||||
sys_pdf_template_relevance_biz.remark1,
|
||||
sys_pdf_template_relevance_biz.remark2,
|
||||
sys_pdf_template_relevance_biz.remark3,
|
||||
printType
|
||||
FROM
|
||||
basic_bustype_change
|
||||
LEFT JOIN sys_pdf_template_relevance_biz ON basic_bustype_change.originAction = sys_pdf_template_relevance_biz.localAction
|
||||
LEFT JOIN sys_pdf_template ON sys_pdf_template_relevance_biz.templateId = sys_pdf_template.id
|
||||
<where>
|
||||
<if test="moduleId != null">
|
||||
AND `moduleId` = #{moduleId}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND sys_pdf_template_relevance_biz.`localAction` = #{localAction}
|
||||
</if>
|
||||
<if test="templateType != null">
|
||||
AND sys_pdf_template_relevance_biz.`templateType` = #{templateType}
|
||||
</if>
|
||||
<if test="modelKey != null">
|
||||
AND sys_pdf_template_relevance_biz.`modelKey` = #{modelKey}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
|
||||
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
|
||||
SELECT basic_bustype_change.`originName` localActionName,
|
||||
sys_pdf_template_relevance_biz.id,
|
||||
basic_bustype_change.originAction localAction,
|
||||
templateId,
|
||||
moduleId,
|
||||
sys_pdf_template.NAME templateName,
|
||||
sys_pdf_template_relevance_biz.remark1,
|
||||
sys_pdf_template_relevance_biz.remark2,
|
||||
sys_pdf_template_relevance_biz.remark3,
|
||||
printType
|
||||
FROM basic_bustype_change
|
||||
LEFT JOIN sys_pdf_template_relevance_biz
|
||||
ON basic_bustype_change.originAction = sys_pdf_template_relevance_biz.localAction
|
||||
LEFT JOIN sys_pdf_template ON sys_pdf_template_relevance_biz.templateId = sys_pdf_template.id
|
||||
<where>
|
||||
<if test="moduleId != null">
|
||||
AND `moduleId` = #{moduleId}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND sys_pdf_template_relevance_biz.`localAction` = #{localAction}
|
||||
</if>
|
||||
<if test="templateType != null">
|
||||
AND sys_pdf_template_relevance_biz.`templateType` = #{templateType}
|
||||
</if>
|
||||
<if test="modelKey != null">
|
||||
AND sys_pdf_template_relevance_biz.`modelKey` = #{modelKey}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="upInsert" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity">
|
||||
insert
|
||||
ignore
|
||||
<insert id="upInsert" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity">
|
||||
insert
|
||||
ignore
|
||||
INTO sys_pdf_template_relevance_biz
|
||||
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3, printType,modelKey)
|
||||
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3, printType, modelKey, updateTime)
|
||||
values (#{templateId},
|
||||
#{customerId},
|
||||
#{adminId},
|
||||
#{moduleId},
|
||||
#{localAction},
|
||||
#{remark1},
|
||||
#{remark2},
|
||||
#{remark3},
|
||||
#{printType},
|
||||
#{modelKey}
|
||||
)
|
||||
</insert>
|
||||
|
||||
#{customerId},
|
||||
#{adminId},
|
||||
#{moduleId},
|
||||
#{localAction},
|
||||
#{remark1},
|
||||
#{remark2},
|
||||
#{remark3},
|
||||
#{printType},
|
||||
#{modelKey},
|
||||
#{updateTime})
|
||||
</insert>
|
||||
|
||||
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
|
||||
parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity" useGeneratedKeys="true">
|
||||
insert into sys_pdf_template_relevance_biz
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
templateId,
|
||||
customerId,
|
||||
adminId,
|
||||
moduleId,
|
||||
localAction,
|
||||
remark1,
|
||||
remark2,
|
||||
remark3,
|
||||
printType,
|
||||
modelKey,
|
||||
updateTime,
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
#{templateId,jdbcType=INTEGER},
|
||||
#{customerId,jdbcType=BIGINT},
|
||||
#{adminId,jdbcType=INTEGER},
|
||||
#{moduleId,jdbcType=INTEGER},
|
||||
#{localAction,jdbcType=VARCHAR},
|
||||
#{remark1,jdbcType=VARCHAR},
|
||||
#{remark2,jdbcType=VARCHAR},
|
||||
#{remark3,jdbcType=VARCHAR},
|
||||
#{printType,jdbcType=TINYINT},
|
||||
#{modelKey,jdbcType=VARCHAR},
|
||||
#{updateTime, jdbcType=DATE},
|
||||
</trim>
|
||||
on duplicate key update
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id = #{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
templateId = #{templateId,jdbcType=INTEGER},
|
||||
customerId = #{customerId,jdbcType=BIGINT},
|
||||
adminId = #{adminId,jdbcType=INTEGER},
|
||||
moduleId = #{moduleId,jdbcType=INTEGER},
|
||||
localAction = #{localAction,jdbcType=VARCHAR},
|
||||
remark1 = #{remark1,jdbcType=VARCHAR},
|
||||
remark2 = #{remark2,jdbcType=VARCHAR},
|
||||
remark3 = #{remark3,jdbcType=VARCHAR},
|
||||
printType = #{printType,jdbcType=TINYINT},
|
||||
modelKey = #{modelKey,jdbcType=VARCHAR},
|
||||
updateTime = #{updateTime,jdbcType=DATE},
|
||||
</trim>
|
||||
</insert>
|
||||
</mapper>
|
@ -1,89 +1,151 @@
|
||||
<?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.glxp.api.dao.system.SysPdfTemplateRelevanceCodeDao">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_pdf_template_relevance_code-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="templateId" jdbcType="INTEGER" property="templateId" />
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId" />
|
||||
<result column="adminId" jdbcType="INTEGER" property="adminId" />
|
||||
<result column="moduleId" jdbcType="INTEGER" property="moduleId" />
|
||||
<result column="localAction" jdbcType="VARCHAR" property="localAction" />
|
||||
<result column="remark1" jdbcType="VARCHAR" property="remark1" />
|
||||
<result column="remark2" jdbcType="VARCHAR" property="remark2" />
|
||||
<result column="remark3" jdbcType="VARCHAR" property="remark3" />
|
||||
<result column="printType" jdbcType="TINYINT" property="printType" />
|
||||
<result column="modelKey" jdbcType="VARCHAR" property="modelKey" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
|
||||
printType, modelKey
|
||||
</sql>
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_pdf_template_relevance_code-->
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="templateId" jdbcType="INTEGER" property="templateId"/>
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId"/>
|
||||
<result column="adminId" jdbcType="INTEGER" property="adminId"/>
|
||||
<result column="moduleId" jdbcType="INTEGER" property="moduleId"/>
|
||||
<result column="localAction" jdbcType="VARCHAR" property="localAction"/>
|
||||
<result column="remark1" jdbcType="VARCHAR" property="remark1"/>
|
||||
<result column="remark2" jdbcType="VARCHAR" property="remark2"/>
|
||||
<result column="remark3" jdbcType="VARCHAR" property="remark3"/>
|
||||
<result column="printType" jdbcType="TINYINT" property="printType"/>
|
||||
<result column="modelKey" jdbcType="VARCHAR" property="modelKey"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id,
|
||||
templateId,
|
||||
customerId,
|
||||
adminId,
|
||||
moduleId,
|
||||
localAction,
|
||||
remark1,
|
||||
remark2,
|
||||
remark3,
|
||||
printType,
|
||||
modelKey
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
|
||||
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
|
||||
select basic_bussiness_type.`name` localActionName,
|
||||
sys_pdf_template_relevance_code.id,
|
||||
basic_bussiness_type.action localAction,
|
||||
templateId,
|
||||
moduleId,
|
||||
sys_pdf_template.name templateName,
|
||||
sys_pdf_template_relevance_code.remark1,
|
||||
sys_pdf_template_relevance_code.remark2,
|
||||
sys_pdf_template_relevance_code.remark3,
|
||||
printType
|
||||
from basic_bussiness_type
|
||||
LEFT JOIN sys_pdf_template_relevance_code on basic_bussiness_type.action = sys_pdf_template_relevance_code.localAction
|
||||
LEFT JOIN sys_pdf_template on sys_pdf_template_relevance_code.templateId = sys_pdf_template.id
|
||||
<where>
|
||||
<if test="moduleId != null">
|
||||
AND `moduleId` = #{moduleId}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND sys_pdf_template_relevance_code.`localAction` = #{localAction}
|
||||
</if>
|
||||
<if test="templateType != null">
|
||||
AND sys_pdf_template_relevance_code.`templateType` = #{templateType}
|
||||
</if>
|
||||
<if test="modelKey != null">
|
||||
AND sys_pdf_template_relevance_code.`modelKey` = #{modelKey}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
|
||||
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
|
||||
select basic_bussiness_type.`name` localActionName,
|
||||
sys_pdf_template_relevance_code.id,
|
||||
basic_bussiness_type.action localAction,
|
||||
templateId,
|
||||
moduleId,
|
||||
sys_pdf_template.name templateName,
|
||||
sys_pdf_template_relevance_code.remark1,
|
||||
sys_pdf_template_relevance_code.remark2,
|
||||
sys_pdf_template_relevance_code.remark3,
|
||||
printType
|
||||
from basic_bussiness_type
|
||||
LEFT JOIN sys_pdf_template_relevance_code
|
||||
on basic_bussiness_type.action = sys_pdf_template_relevance_code.localAction
|
||||
LEFT JOIN sys_pdf_template on sys_pdf_template_relevance_code.templateId = sys_pdf_template.id
|
||||
<where>
|
||||
<if test="moduleId != null">
|
||||
AND `moduleId` = #{moduleId}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND sys_pdf_template_relevance_code.`localAction` = #{localAction}
|
||||
</if>
|
||||
<if test="templateType != null">
|
||||
AND sys_pdf_template_relevance_code.`templateType` = #{templateType}
|
||||
</if>
|
||||
<if test="modelKey != null">
|
||||
AND sys_pdf_template_relevance_code.`modelKey` = #{modelKey}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="upInsert" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
|
||||
insert
|
||||
ignore
|
||||
<insert id="upInsert" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
|
||||
insert
|
||||
ignore
|
||||
INTO sys_pdf_template_relevance_code
|
||||
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3, printType,modelKey)
|
||||
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3, printType, modelKey)
|
||||
values (#{templateId},
|
||||
#{customerId},
|
||||
#{adminId},
|
||||
#{moduleId},
|
||||
#{localAction},
|
||||
#{remark1},
|
||||
#{remark2},
|
||||
#{remark3},
|
||||
#{printType},
|
||||
#{modelKey}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<select id="selectNameAndAction" resultType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
|
||||
SELECT *
|
||||
FROM sys_pdf_template_relevance_code
|
||||
<where>
|
||||
<if test="name != null">
|
||||
AND `modelKey` = #{name}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND `localAction` = #{localAction}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
#{customerId},
|
||||
#{adminId},
|
||||
#{moduleId},
|
||||
#{localAction},
|
||||
#{remark1},
|
||||
#{remark2},
|
||||
#{remark3},
|
||||
#{printType},
|
||||
#{modelKey})
|
||||
</insert>
|
||||
|
||||
<select id="selectNameAndAction" resultType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
|
||||
SELECT *
|
||||
FROM sys_pdf_template_relevance_code
|
||||
<where>
|
||||
<if test="name != null">
|
||||
AND `modelKey` = #{name}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND `localAction` = #{localAction}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
|
||||
parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity" useGeneratedKeys="true">
|
||||
insert into sys_pdf_template_relevance_code
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
templateId,
|
||||
customerId,
|
||||
adminId,
|
||||
moduleId,
|
||||
localAction,
|
||||
remark1,
|
||||
remark2,
|
||||
remark3,
|
||||
printType,
|
||||
modelKey,
|
||||
updateTime,
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
#{templateId,jdbcType=INTEGER},
|
||||
#{customerId,jdbcType=BIGINT},
|
||||
#{adminId,jdbcType=INTEGER},
|
||||
#{moduleId,jdbcType=INTEGER},
|
||||
#{localAction,jdbcType=VARCHAR},
|
||||
#{remark1,jdbcType=VARCHAR},
|
||||
#{remark2,jdbcType=VARCHAR},
|
||||
#{remark3,jdbcType=VARCHAR},
|
||||
#{printType,jdbcType=TINYINT},
|
||||
#{modelKey,jdbcType=VARCHAR},
|
||||
#{updateTime,jdbcType=DATE},
|
||||
</trim>
|
||||
on duplicate key update
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id = #{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
templateId = #{templateId,jdbcType=INTEGER},
|
||||
customerId = #{customerId,jdbcType=BIGINT},
|
||||
adminId = #{adminId,jdbcType=INTEGER},
|
||||
moduleId = #{moduleId,jdbcType=INTEGER},
|
||||
localAction = #{localAction,jdbcType=VARCHAR},
|
||||
remark1 = #{remark1,jdbcType=VARCHAR},
|
||||
remark2 = #{remark2,jdbcType=VARCHAR},
|
||||
remark3 = #{remark3,jdbcType=VARCHAR},
|
||||
printType = #{printType,jdbcType=TINYINT},
|
||||
modelKey = #{modelKey,jdbcType=VARCHAR},
|
||||
updateTime = #{updateTime,jdbcType=DATE},
|
||||
</trim>
|
||||
</insert>
|
||||
</mapper>
|
@ -1,56 +1,117 @@
|
||||
<?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.glxp.api.dao.system.SysPdfTemplateRelevanceLabelDao">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_pdf_template_relevance_label-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="templateId" jdbcType="INTEGER" property="templateId" />
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId" />
|
||||
<result column="adminId" jdbcType="INTEGER" property="adminId" />
|
||||
<result column="moduleId" jdbcType="INTEGER" property="moduleId" />
|
||||
<result column="localAction" jdbcType="VARCHAR" property="localAction" />
|
||||
<result column="remark1" jdbcType="VARCHAR" property="remark1" />
|
||||
<result column="remark2" jdbcType="VARCHAR" property="remark2" />
|
||||
<result column="remark3" jdbcType="VARCHAR" property="remark3" />
|
||||
<result column="printType" jdbcType="TINYINT" property="printType" />
|
||||
<result column="modelKey" jdbcType="VARCHAR" property="modelKey" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
|
||||
printType, modelKey
|
||||
</sql>
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_pdf_template_relevance_label-->
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="templateId" jdbcType="INTEGER" property="templateId"/>
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId"/>
|
||||
<result column="adminId" jdbcType="INTEGER" property="adminId"/>
|
||||
<result column="moduleId" jdbcType="INTEGER" property="moduleId"/>
|
||||
<result column="localAction" jdbcType="VARCHAR" property="localAction"/>
|
||||
<result column="remark1" jdbcType="VARCHAR" property="remark1"/>
|
||||
<result column="remark2" jdbcType="VARCHAR" property="remark2"/>
|
||||
<result column="remark3" jdbcType="VARCHAR" property="remark3"/>
|
||||
<result column="printType" jdbcType="TINYINT" property="printType"/>
|
||||
<result column="modelKey" jdbcType="VARCHAR" property="modelKey"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id,
|
||||
templateId,
|
||||
customerId,
|
||||
adminId,
|
||||
moduleId,
|
||||
localAction,
|
||||
remark1,
|
||||
remark2,
|
||||
remark3,
|
||||
printType,
|
||||
modelKey
|
||||
</sql>
|
||||
|
||||
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
|
||||
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
|
||||
SELECT
|
||||
sys_pdf_template_relevance_label.id,
|
||||
sys_pdf_template_relevance_label.localAction localActionName,
|
||||
templateId,
|
||||
moduleId,
|
||||
sys_pdf_template.NAME templateName,
|
||||
sys_pdf_template_relevance_label.remark1,
|
||||
sys_pdf_template_relevance_label.remark2,
|
||||
sys_pdf_template_relevance_label.remark3,
|
||||
printType
|
||||
FROM
|
||||
sys_pdf_template_relevance_label
|
||||
LEFT JOIN sys_pdf_template ON sys_pdf_template_relevance_label.templateId = sys_pdf_template.id
|
||||
<where>
|
||||
<if test="moduleId != null">
|
||||
AND `moduleId` = #{moduleId}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND sys_pdf_template_relevance_label.`localAction` = #{localAction}
|
||||
</if>
|
||||
<if test="templateType != null">
|
||||
AND sys_pdf_template_relevance_label.`templateType` = #{templateType}
|
||||
</if>
|
||||
<if test="modelKey != null">
|
||||
AND sys_pdf_template_relevance_label.`modelKey` = #{modelKey}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
|
||||
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
|
||||
SELECT sys_pdf_template_relevance_label.id,
|
||||
sys_pdf_template_relevance_label.localAction localActionName,
|
||||
templateId,
|
||||
moduleId,
|
||||
sys_pdf_template.NAME templateName,
|
||||
sys_pdf_template_relevance_label.remark1,
|
||||
sys_pdf_template_relevance_label.remark2,
|
||||
sys_pdf_template_relevance_label.remark3,
|
||||
printType
|
||||
FROM sys_pdf_template_relevance_label
|
||||
LEFT JOIN sys_pdf_template ON sys_pdf_template_relevance_label.templateId = sys_pdf_template.id
|
||||
<where>
|
||||
<if test="moduleId != null">
|
||||
AND `moduleId` = #{moduleId}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND sys_pdf_template_relevance_label.`localAction` = #{localAction}
|
||||
</if>
|
||||
<if test="templateType != null">
|
||||
AND sys_pdf_template_relevance_label.`templateType` = #{templateType}
|
||||
</if>
|
||||
<if test="modelKey != null">
|
||||
AND sys_pdf_template_relevance_label.`modelKey` = #{modelKey}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
|
||||
parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity" useGeneratedKeys="true">
|
||||
insert into sys_pdf_template_relevance_label
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
templateId,
|
||||
customerId,
|
||||
adminId,
|
||||
moduleId,
|
||||
localAction,
|
||||
remark1,
|
||||
remark2,
|
||||
remark3,
|
||||
printType,
|
||||
modelKey,
|
||||
updateTime,
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
#{templateId,jdbcType=INTEGER},
|
||||
#{customerId,jdbcType=BIGINT},
|
||||
#{adminId,jdbcType=INTEGER},
|
||||
#{moduleId,jdbcType=INTEGER},
|
||||
#{localAction,jdbcType=VARCHAR},
|
||||
#{remark1,jdbcType=VARCHAR},
|
||||
#{remark2,jdbcType=VARCHAR},
|
||||
#{remark3,jdbcType=VARCHAR},
|
||||
#{printType,jdbcType=TINYINT},
|
||||
#{modelKey,jdbcType=VARCHAR},
|
||||
#{updateTime, jdbcType=DATE},
|
||||
</trim>
|
||||
on duplicate key update
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id = #{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
templateId = #{templateId,jdbcType=INTEGER},
|
||||
customerId = #{customerId,jdbcType=BIGINT},
|
||||
adminId = #{adminId,jdbcType=INTEGER},
|
||||
moduleId = #{moduleId,jdbcType=INTEGER},
|
||||
localAction = #{localAction,jdbcType=VARCHAR},
|
||||
remark1 = #{remark1,jdbcType=VARCHAR},
|
||||
remark2 = #{remark2,jdbcType=VARCHAR},
|
||||
remark3 = #{remark3,jdbcType=VARCHAR},
|
||||
printType = #{printType,jdbcType=TINYINT},
|
||||
modelKey = #{modelKey,jdbcType=VARCHAR},
|
||||
updateTime = #{updateTime,jdbcType=DATE},
|
||||
</trim>
|
||||
</insert>
|
||||
</mapper>
|
@ -1,57 +1,115 @@
|
||||
<?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.glxp.api.dao.system.SysPdfTemplateRelevanceStatemenDao">
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_pdf_template_relevance_statemen-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="templateId" jdbcType="INTEGER" property="templateId" />
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId" />
|
||||
<result column="adminId" jdbcType="INTEGER" property="adminId" />
|
||||
<result column="moduleId" jdbcType="INTEGER" property="moduleId" />
|
||||
<result column="localAction" jdbcType="VARCHAR" property="localAction" />
|
||||
<result column="remark1" jdbcType="VARCHAR" property="remark1" />
|
||||
<result column="remark2" jdbcType="VARCHAR" property="remark2" />
|
||||
<result column="remark3" jdbcType="VARCHAR" property="remark3" />
|
||||
<result column="printType" jdbcType="TINYINT" property="printType" />
|
||||
<result column="modelKey" jdbcType="VARCHAR" property="modelKey" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
|
||||
printType, modelKey
|
||||
</sql>
|
||||
<resultMap id="BaseResultMap" type="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table sys_pdf_template_relevance_statemen-->
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="templateId" jdbcType="INTEGER" property="templateId"/>
|
||||
<result column="customerId" jdbcType="BIGINT" property="customerId"/>
|
||||
<result column="adminId" jdbcType="INTEGER" property="adminId"/>
|
||||
<result column="moduleId" jdbcType="INTEGER" property="moduleId"/>
|
||||
<result column="localAction" jdbcType="VARCHAR" property="localAction"/>
|
||||
<result column="remark1" jdbcType="VARCHAR" property="remark1"/>
|
||||
<result column="remark2" jdbcType="VARCHAR" property="remark2"/>
|
||||
<result column="remark3" jdbcType="VARCHAR" property="remark3"/>
|
||||
<result column="printType" jdbcType="TINYINT" property="printType"/>
|
||||
<result column="modelKey" jdbcType="VARCHAR" property="modelKey"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id,
|
||||
templateId,
|
||||
customerId,
|
||||
adminId,
|
||||
moduleId,
|
||||
localAction,
|
||||
remark1,
|
||||
remark2,
|
||||
remark3,
|
||||
printType,
|
||||
modelKey
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
|
||||
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
|
||||
SELECT
|
||||
sys_pdf_template_relevance_statemen.id,
|
||||
sys_pdf_template_relevance_statemen.localAction localActionName,
|
||||
templateId,
|
||||
moduleId,
|
||||
sys_pdf_template.NAME templateName,
|
||||
sys_pdf_template_relevance_statemen.remark1,
|
||||
sys_pdf_template_relevance_statemen.remark2,
|
||||
sys_pdf_template_relevance_statemen.remark3,
|
||||
printType
|
||||
FROM
|
||||
sys_pdf_template_relevance_statemen
|
||||
LEFT JOIN sys_pdf_template ON sys_pdf_template_relevance_statemen.templateId = sys_pdf_template.id
|
||||
<where>
|
||||
<if test="moduleId != null">
|
||||
AND `moduleId` = #{moduleId}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND sys_pdf_template_relevance_statemen.`localAction` = #{localAction}
|
||||
</if>
|
||||
<if test="templateType != null">
|
||||
AND sys_pdf_template_relevance_statemen.`templateType` = #{templateType}
|
||||
</if>
|
||||
<if test="modelKey != null">
|
||||
AND sys_pdf_template_relevance_statemen.`modelKey` = #{modelKey}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
|
||||
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
|
||||
SELECT sys_pdf_template_relevance_statemen.id,
|
||||
sys_pdf_template_relevance_statemen.localAction localActionName,
|
||||
templateId,
|
||||
moduleId,
|
||||
sys_pdf_template.NAME templateName,
|
||||
sys_pdf_template_relevance_statemen.remark1,
|
||||
sys_pdf_template_relevance_statemen.remark2,
|
||||
sys_pdf_template_relevance_statemen.remark3,
|
||||
printType
|
||||
FROM sys_pdf_template_relevance_statemen
|
||||
LEFT JOIN sys_pdf_template ON sys_pdf_template_relevance_statemen.templateId = sys_pdf_template.id
|
||||
<where>
|
||||
<if test="moduleId != null">
|
||||
AND `moduleId` = #{moduleId}
|
||||
</if>
|
||||
<if test="localAction != null">
|
||||
AND sys_pdf_template_relevance_statemen.`localAction` = #{localAction}
|
||||
</if>
|
||||
<if test="templateType != null">
|
||||
AND sys_pdf_template_relevance_statemen.`templateType` = #{templateType}
|
||||
</if>
|
||||
<if test="modelKey != null">
|
||||
AND sys_pdf_template_relevance_statemen.`modelKey` = #{modelKey}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id"
|
||||
parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity" useGeneratedKeys="true">
|
||||
insert into sys_pdf_template_relevance_statemen
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
templateId,
|
||||
customerId,
|
||||
adminId,
|
||||
moduleId,
|
||||
localAction,
|
||||
remark1,
|
||||
remark2,
|
||||
remark3,
|
||||
printType,
|
||||
modelKey,
|
||||
</trim>
|
||||
values
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
#{templateId,jdbcType=INTEGER},
|
||||
#{customerId,jdbcType=BIGINT},
|
||||
#{adminId,jdbcType=INTEGER},
|
||||
#{moduleId,jdbcType=INTEGER},
|
||||
#{localAction,jdbcType=VARCHAR},
|
||||
#{remark1,jdbcType=VARCHAR},
|
||||
#{remark2,jdbcType=VARCHAR},
|
||||
#{remark3,jdbcType=VARCHAR},
|
||||
#{printType,jdbcType=TINYINT},
|
||||
#{modelKey,jdbcType=VARCHAR},
|
||||
</trim>
|
||||
on duplicate key update
|
||||
<trim suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id = #{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
templateId = #{templateId,jdbcType=INTEGER},
|
||||
customerId = #{customerId,jdbcType=BIGINT},
|
||||
adminId = #{adminId,jdbcType=INTEGER},
|
||||
moduleId = #{moduleId,jdbcType=INTEGER},
|
||||
localAction = #{localAction,jdbcType=VARCHAR},
|
||||
remark1 = #{remark1,jdbcType=VARCHAR},
|
||||
remark2 = #{remark2,jdbcType=VARCHAR},
|
||||
remark3 = #{remark3,jdbcType=VARCHAR},
|
||||
printType = #{printType,jdbcType=TINYINT},
|
||||
modelKey = #{modelKey,jdbcType=VARCHAR},
|
||||
</trim>
|
||||
</insert>
|
||||
</mapper>
|
Loading…
Reference in New Issue