You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
3.0 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cc.hiver.mall.dao.mapper.WorkerRelaPriceMapper">
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.WorkerRelaPrice">
<id column="id" jdbcType="VARCHAR" property="id"/>
<result column="create_by" jdbcType="VARCHAR" property="createBy"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="del_flag" jdbcType="INTEGER" property="delFlag"/>
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="worker_id" jdbcType="VARCHAR" property="workerId"/>
<result column="get_area_id" jdbcType="VARCHAR" property="getAreaId"/>
<result column="get_area_name" jdbcType="VARCHAR" property="getAreaName"/>
<result column="put_area_id" jdbcType="VARCHAR" property="putAreaId"/>
<result column="put_area_name" jdbcType="VARCHAR" property="putAreaName"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="order_type" jdbcType="INTEGER" property="orderType"/>
<result column="order_bkge" jdbcType="DECIMAL" property="orderBkge"/>
<result column="get_push_order" jdbcType="INTEGER" property="getPushOrder"/>
</resultMap>
<sql id="Base_Column_List">
id, create_by, create_time, del_flag, update_by, update_time, worker_id, get_area_id,
get_area_name, put_area_id, put_area_name, remark, order_type, order_bkge, get_push_order
</sql>
<insert id="insert" parameterType="cc.hiver.mall.entity.ProductGroupBuyPrice">
insert into t_worker_rela_price (id, create_by, create_time,
del_flag, update_by, update_time,
worker_id, get_area_id, get_area_name, put_area_id, put_area_name, remark, order_type, order_bkge, get_push_order)
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
#{workerId,jdbcType=VARCHAR}, #{getAreaId,jdbcType=VARCHAR}, #{getAreaName,jdbcType=VARCHAR},
#{putAreaId,jdbcType=VARCHAR}, #{putAreaName,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{orderType,jdbcType=INTEGER}, #{orderBkge,jdbcType=DECIMAL},
#{getPushOrder,jdbcType=INTEGER})
</insert>
<select id="selectByWorkerId" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from t_worker_rela_price
where worker_id = #{workerId,jdbcType=VARCHAR}
</select>
<delete id="deleteByWorkerId" parameterType="java.lang.String">
delete
from t_worker_rela_price
where worker_id = #{workerId,jdbcType=VARCHAR}
</delete>
</mapper>