| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.aps.core.mapper.ApsShopMapper"> |
| | | |
| | | <resultMap type="ApsShop" id="ApsShopResult"> |
| | | <resultMap type="com.aps.core.domain.ApsShop" id="ApsShopResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="shopName" column="shop_name" /> |
| | | <result property="shopCode" column="shop_code" /> |
| | |
| | | select id, shop_name, shop_code, plant_code, status, create_by, create_time, update_by, update_time from aps_shop |
| | | </sql> |
| | | |
| | | <select id="selectApsShopList" parameterType="ApsShop" resultMap="ApsShopResult"> |
| | | <select id="selectApsShopList" parameterType="com.aps.core.domain.ApsShop" resultMap="ApsShopResult"> |
| | | <include refid="selectApsShopVo"/> |
| | | <where> |
| | | <if test="shopName != null and shopName != ''"> and shop_name = #{shopName}</if> |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsShop" parameterType="ApsShop"> |
| | | <insert id="insertApsShop" parameterType="com.aps.core.domain.ApsShop"> |
| | | insert into aps_shop |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsShop" parameterType="ApsShop"> |
| | | <update id="updateApsShop" parameterType="com.aps.core.domain.ApsShop"> |
| | | update aps_shop |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="shopName != null">shop_name = #{shopName},</if> |