java110-db/src/main/resources/mapper/store/ResourceStoreTypeV1ServiceDaoImplMapper.xml
@@ -1,19 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="resourceResourceStoreTypeTypeV1ServiceDaoImpl">
    <!-- 保存物品类型信息 add by wuxw 2018-07-03 -->
    <insert id="saveResourceStoreTypeInfo" parameterType="Map">
        insert into resource_store_type(
        rst_id,name,description,store_id,parent_id
        ) values (
        #{rstId},#{name},#{description},#{storeId},#{parentId}
        )
        insert into resource_store_type(rst_id, name, description, store_id, parent_id)
        values (#{rstId}, #{name}, #{description}, #{storeId}, #{parentId})
    </insert>
    <!-- 查询物品类型信息 add by wuxw 2018-07-03 -->
    <select id="getResourceStoreTypeInfo" parameterType="Map" resultType="Map">
@@ -43,9 +37,7 @@
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
    </select>
    <!-- 修改物品类型信息 add by wuxw 2018-07-03 -->
    <update id="updateResourceStoreTypeInfo" parameterType="Map">
@@ -56,9 +48,7 @@
        <if test="name !=null and name != ''">
            , t.name= #{name}
        </if>
        <if test="description !=null and description != ''">
            , t.description= #{description}
        </if>
        , t.description= #{description}
        <if test="storeId !=null and storeId != ''">
            , t.store_id= #{storeId}
        </if>
@@ -69,7 +59,6 @@
        <if test="rstId !=null and rstId != ''">
            and t.rst_id= #{rstId}
        </if>
    </update>
    <!-- 查询物品类型数量 add by wuxw 2018-07-03 -->
@@ -83,9 +72,7 @@
        <if test="name !=null and name != ''">
            and t.name= #{name}
        </if>
        <if test="description !=null and description != ''">
            and t.description= #{description}
        </if>
        and t.description= #{description}
        <if test="statusCd !=null and statusCd != ''">
            and t.status_cd= #{statusCd}
        </if>
@@ -95,8 +82,5 @@
        <if test="parentId !=null and parentId != ''">
            and t.parent_id= #{parentId}
        </if>
    </select>
</mapper>