|
|
|
|
@ -21,22 +21,45 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
|
|
|
|
|
order by code
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findSubSystem" parameterType="com.platform.entities.SystemEntity" resultMap="getEntityByText">
|
|
|
|
|
<select id="findSubSystemByName" parameterType="com.platform.entities.SystemEntity" resultMap="getEntityByText">
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
FROM system_info
|
|
|
|
|
<where>
|
|
|
|
|
<if test="code > 0">
|
|
|
|
|
AND code = #{code}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cityName != null and cityName != ''">
|
|
|
|
|
AND city_name LIKE CONCAT(CONCAT('%', #{cityName}), '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="districtName != null and districtName != ''">
|
|
|
|
|
AND district_name LIKE CONCAT(CONCAT('%', #{districtName}), '%')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by code
|
|
|
|
|
WHERE system_name=#{systemName}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="findSubSystemByCode" parameterType="com.platform.entities.SystemEntity" resultMap="getEntityByText">
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
FROM system_info
|
|
|
|
|
WHERE code=#{code}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findByName" parameterType="java.util.List" resultMap="getEntityByText">
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
FROM system_info
|
|
|
|
|
WHERE system_name in
|
|
|
|
|
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findByCode" parameterType="java.util.List" resultMap="getEntityByText">
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
FROM system_info
|
|
|
|
|
WHERE code in
|
|
|
|
|
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 批量插入 -->
|
|
|
|
|
<select id="insertBatch" parameterType="java.util.List">
|
|
|
|
|
INSERT INTO system_info (system_name)
|
|
|
|
|
VALUES
|
|
|
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
|
|
|
(#{item,jdbcType=VARCHAR})
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|