|
@@ -21,7 +21,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectFsPackageCateList" parameterType="FsPackageCate" resultMap="FsPackageCateResult">
|
|
|
<include refid="selectFsPackageCateVo"/>
|
|
|
<where>
|
|
|
- status = 1
|
|
|
<if test="cateCode != null "> and cate_code = #{cateCode}</if>
|
|
|
<if test="type != null "> and type = #{type}</if>
|
|
|
<if test="cateName != null and cateName != ''"> and cate_name like concat('%', #{cateName}, '%')</if>
|
|
@@ -42,6 +41,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectFsPackageCateVo"/>
|
|
|
where cate_id = #{cateId}
|
|
|
</select>
|
|
|
+ <select id="selectFsPackageCateListActive" resultType="com.fs.his.domain.FsPackageCate">
|
|
|
+ <include refid="selectFsPackageCateVo"/>
|
|
|
+ <where>
|
|
|
+ status=1
|
|
|
+ <if test="cateCode != null "> and cate_code = #{cateCode}</if>
|
|
|
+ <if test="type != null "> and type = #{type}</if>
|
|
|
+ <if test="cateName != null and cateName != ''"> and cate_name like concat('%', #{cateName}, '%')</if>
|
|
|
+ <if test="companyPackageCates != null and companyPackageCates != ''">
|
|
|
+ AND cate_code IN
|
|
|
+ <foreach collection="companyPackageCates" item="item" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="status != null "> and status = #{status}</if>
|
|
|
+ <if test="imgUrl != null and imgUrl != ''"> and img_url = #{imgUrl}</if>
|
|
|
+ <if test="sort != null "> and sort = #{sort}</if>
|
|
|
+ </where>
|
|
|
+ order by sort,cate_id desc
|
|
|
+ </select>
|
|
|
|
|
|
<insert id="insertFsPackageCate" parameterType="FsPackageCate" useGeneratedKeys="true" keyProperty="cateId">
|
|
|
insert into fs_package_cate
|