first commit
This commit is contained in:
+67
@@ -0,0 +1,67 @@
|
||||
<?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.linke.thirdParty.domain.departInterfaceInfo.repository.mapper.SysDepartInterfaceInfoMapper">
|
||||
<update id="saveOrUpdate">
|
||||
INSERT INTO sys_depart_interface_info (id,sys_org_code,interface_type,interface_type_key,interface_type_value,interface_type_name,create_by,create_time,update_by,update_time) VALUES
|
||||
(
|
||||
#{sysDepartInterfaceInfoVO.id},
|
||||
#{sysDepartInterfaceInfoVO.sysOrgCode},
|
||||
#{sysDepartInterfaceInfoVO.interfaceType},
|
||||
#{sysDepartInterfaceInfoVO.interfaceTypeKey},
|
||||
#{sysDepartInterfaceInfoVO.interfaceTypeValue},
|
||||
#{sysDepartInterfaceInfoVO.interfaceTypeName},
|
||||
#{sysDepartInterfaceInfoVO.interfaceTypeDescription},
|
||||
#{sysDepartInterfaceInfoVO.createBy},
|
||||
#{sysDepartInterfaceInfoVO.createTime},
|
||||
#{sysDepartInterfaceInfoVO.updateBy},
|
||||
#{sysDepartInterfaceInfoVO.updateTime}
|
||||
)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
id = #{sysDepartInterfaceInfoVO.id},
|
||||
sys_org_code = #{sysDepartInterfaceInfoVO.sysOrgCode},
|
||||
interface_type = #{sysDepartInterfaceInfoVO.interfaceType},
|
||||
interface_type_key = #{sysDepartInterfaceInfoVO.interfaceTypeKey},
|
||||
interface_type_value= #{sysDepartInterfaceInfoVO.interfaceTypeValue},
|
||||
interface_type_name = #{sysDepartInterfaceInfoVO.interfaceTypeName},
|
||||
interface_type_description = #{sysDepartInterfaceInfoVO.interfaceTypeDescription},
|
||||
update_by = #{sysDepartInterfaceInfoVO.updateBy},
|
||||
update_time = #{sysDepartInterfaceInfoVO.updateTime}
|
||||
|
||||
</update>
|
||||
<select id="queryList" parameterType="com.mhd.common.core.domain.po.thirdparty.SysDepartInterfaceInfoPo"
|
||||
resultType="com.mhd.common.core.domain.po.thirdparty.SysDepartInterfaceInfoPo">
|
||||
select * from
|
||||
sys_depart_interface_info a
|
||||
where a.del_flag = 1
|
||||
<include refid="common_where"></include>
|
||||
order by a.create_time desc,a.interface_type DESC
|
||||
</select>
|
||||
<select id="queryListBySysOrgCode" resultType="com.mhd.common.core.domain.po.thirdparty.SysDepartInterfaceInfoPo">
|
||||
SELECT a.* FROM sys_depart_interface_info a WHERE
|
||||
a.interface_type = 'networkFreight' and a.sys_org_code = #{sysOrgCode}
|
||||
</select>
|
||||
<sql id="common_where">
|
||||
<if test="sysDepartInterfaceInfoDo.topOrganizationId !=null">
|
||||
and a.top_organization_id = #{sysDepartInterfaceInfoDo.topOrganizationId}
|
||||
</if>
|
||||
<if test="sysDepartInterfaceInfoDo.organizationId !=null">
|
||||
and a.organization_id = #{sysDepartInterfaceInfoDo.organizationId}
|
||||
</if>
|
||||
<if test="sysDepartInterfaceInfoDo.sysDepartInterfaceInfoId !=null">
|
||||
and a.sys_departInterface_info_id = #{sysDepartInterfaceInfoDo.sysDepartInterfaceInfoId}
|
||||
</if>
|
||||
<if test="null != sysDepartInterfaceInfoDo.interfaceType and '' != sysDepartInterfaceInfoDo.interfaceType">
|
||||
and a.interface_type = #{sysDepartInterfaceInfoDo.interfaceType}
|
||||
</if>
|
||||
<if test="null != sysDepartInterfaceInfoDo.interfaceTypeKey and '' != sysDepartInterfaceInfoDo.interfaceTypeKey">
|
||||
and interface_type_key = #{sysDepartInterfaceInfoDo.interfaceTypeKey}
|
||||
</if>
|
||||
<if test="null != sysDepartInterfaceInfoDo.interfaceTypeValue and '' != sysDepartInterfaceInfoDo.interfaceTypeValue">
|
||||
and interface_type_value = #{sysDepartInterfaceInfoDo.interfaceTypeValue}
|
||||
</if>
|
||||
<if test="null != sysDepartInterfaceInfoDo.interfaceTypeName and '' != sysDepartInterfaceInfoDo.interfaceTypeName">
|
||||
and interface_type_name = #{sysDepartInterfaceInfoDo.interfaceTypeName}
|
||||
</if>
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user