|
@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsIntegralOrderVo">
|
|
|
- select order_id, order_code, user_id,bar_code, user_name, user_phone, user_address, item_json, integral, status, delivery_code, delivery_name, delivery_sn, delivery_time, create_time, remark from fs_integral_order
|
|
|
+ select order_id, order_code, user_id,bar_code, user_name, user_phone, user_address, item_json, integral, status, delivery_code, delivery_name, delivery_sn, delivery_time, create_time,qw_user_id,company_user_id,company_id,remark from fs_integral_order
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsIntegralOrderList" parameterType="FsIntegralOrder" resultMap="FsIntegralOrderResult">
|
|
@@ -36,6 +36,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="integral != null and integral != ''"> and integral = #{integral}</if>
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
<if test="deliverySn != null and deliverySn != ''"> and delivery_sn like concat('%', #{deliverySn}, '%')</if>
|
|
|
+ <if test="qwUserId != null and qwUserId != ''"> and qw_user_id = #{qwUserId}</if>
|
|
|
+ <if test="companyUserId != null and companyUserId != ''"> and company_user_id = #{companyUserId}</if>
|
|
|
+ <if test="companyId != null and companyId != ''"> and company_id = #{companyId}</if>
|
|
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -63,6 +66,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="barCode != null">bar_code,</if>
|
|
|
+ <if test="qwUserId != null">qw_user_id,</if>
|
|
|
+ <if test="companyUserId != null">company_user_id,</if>
|
|
|
+ <if test="companyId != null">company_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderId != null">#{orderId},</if>
|
|
@@ -81,6 +87,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="barCode != null">#{barCode},</if>
|
|
|
+ <if test="qwUserId != null">#{qwUserId},</if>
|
|
|
+ <if test="companyUserId != null">#{companyUserId},</if>
|
|
|
+ <if test="companyId != null">#{companyId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|