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.
udiwms-java/api-admin/src/main/resources/mybatis/mapper/basic/BasicThirdSysDao.xml

50 lines
2.6 KiB
XML

4 years ago
<?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.admin.dao.basic.BasicThirdSysDao">
<update id="updateBasicThiSys" parameterType="com.glxp.api.admin.entity.basic.BasicThirdSysEntity">
UPDATE basic_third_sys
<set>
<if test="thirdId != null">thirdId=#{thirdId},</if>
<if test="thirdName != null">thirdName=#{thirdName},</if>
<if test="piQueryUrl != null">piQueryUrl=#{piQueryUrl},</if>
<if test="piQueryEnabled != null">piQueryEnabled=#{piQueryEnabled},</if>
<if test="orderQueryUrl != null">orderQueryUrl=#{orderQueryUrl},</if>
<if test="orderQueryEnabled != null">orderQueryEnabled=#{orderQueryEnabled},</if>
<if test="orderAddUrl != null">orderAddUrl=#{orderAddUrl},</if>
<if test="orderAddEnabled != null">orderAddEnabled=#{orderAddEnabled},</if>
<if test="orderDeleteUrl != null">orderDeleteUrl=#{orderDeleteUrl},</if>
<if test="orderDeleteEnabled != null">orderDeleteEnabled=#{orderDeleteEnabled},</if>
<if test="orderModifyUrl != null">orderModifyUrl=#{orderModifyUrl},</if>
<if test="orderModifyEnabled != null">orderModifyEnabled=#{orderModifyEnabled},</if>
<if test="invPiUrl != null">invPiUrl=#{invPiUrl},</if>
<if test="invPiEnabled != null">invPiEnabled=#{invPiEnabled},</if>
<if test="corpUrl != null">corpUrl=#{corpUrl},</if>
<if test="corpEnabled != null">corpEnabled=#{corpEnabled},</if>
<if test="remark != null">remark=#{remark},</if>
<if test="enabled != null">enabled=#{enabled},</if>
</set>
WHERE id=#{id}
</update>
<select id="filterBasicThiSys" parameterType="com.glxp.api.admin.req.basic.FilterBasicThirdSysRequest"
resultType="com.glxp.api.admin.entity.basic.BasicThirdSysEntity">
SELECT * FROM basic_third_sys
<where>
<if test="thirdId != '' and thirdId != null">
AND thirdId = #{thirdId}
</if>
<if test="thirdName != '' and thirdName != null">
AND thirdName = #{thirdName}
</if>
<if test="enabled != '' and enabled != null">
AND enabled = #{enabled}
</if>
</where>
</select>
<select id="selectByThirdId" parameterType="Map" resultType="com.glxp.api.admin.entity.basic.BasicThirdSysEntity">
select * FROM basic_third_sys WHERE thirdId = #{thirdId}
</select>
</mapper>