| | |
| | | <?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"> |
| | |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | |
| | | <!-- 修改物品类型信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateResourceStoreTypeInfo" parameterType="Map"> |
| | |
| | | <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> |
| | |
| | | <if test="rstId !=null and rstId != ''"> |
| | | and t.rst_id= #{rstId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询物品类型数量 add by wuxw 2018-07-03 --> |
| | |
| | | <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> |
| | |
| | | <if test="parentId !=null and parentId != ''"> |
| | | and t.parent_id= #{parentId} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |