You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.9 KiB
XML
40 lines
1.9 KiB
XML
<?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.sale.admin.dao.basic.BasicThirdSysDetailDao">
|
|
|
|
<update id="updateBasicThirdSysDetail" parameterType="com.glxp.sale.admin.entity.basic.BasicThirdSysDetailEntity">
|
|
UPDATE basic_third_sys_detail
|
|
<trim prefix="set" suffixOverrides=",">
|
|
<if test="value != null">value=#{value},</if>
|
|
<if test="enabled != null">enabled=#{enabled},</if>
|
|
<if test="itrCache != null">itrCache=#{itrCache},</if>
|
|
<if test="guideUrl != null">guideUrl=#{guideUrl},</if>
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
<if test="name != null">name=#{name},</if>
|
|
<if test="fromType != null">fromType=#{fromType},</if>
|
|
<if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if>
|
|
</trim>
|
|
WHERE id=#{id}
|
|
</update>
|
|
|
|
<select id="filterBasicThirdSysDetail" parameterType="com.glxp.sale.admin.req.basic.FilterBasicThirdSysRequest"
|
|
resultType="com.glxp.sale.admin.entity.basic.BasicThirdSysDetailEntity">
|
|
SELECT * FROM basic_third_sys_detail
|
|
<where>
|
|
<if test="key != '' and key != null">
|
|
AND basic_third_sys_detail.key = #{key}
|
|
</if>
|
|
<if test="thirdSysFk != '' and thirdSysFk != null">
|
|
AND thirdSysFk = #{thirdSysFk}
|
|
</if>
|
|
</where>
|
|
|
|
</select>
|
|
<select id="selectByKey" parameterType="Map"
|
|
resultType="com.glxp.sale.admin.entity.basic.BasicThirdSysDetailEntity">
|
|
select * FROM basic_third_sys_detail
|
|
inner join basic_third_sys on basic_third_sys_detail.thirdSysFk = basic_third_sys.thirdId
|
|
WHERE basic_third_sys_detail.key = #{key} and basic_third_sys_detail.thirdSysFk = #{thirdSys} and basic_third_sys.enabled = 1
|
|
</select>
|
|
</mapper> |