|
|
@@ -47,40 +47,12 @@ |
|
|
<if test=" null != sortColumns"> order by ${sortColumns} </if> |
|
|
<if test=" null != sortColumns"> order by ${sortColumns} </if> |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectById" parameterType="java.util.HashMap" resultMap="BaseResultMap"> |
|
|
|
|
|
select <include refid="allColumns" /> from wx_order_press where id = #{id} and tenant_id = #{tenantId} |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxOrderPress" resultMap="BaseResultMap"> |
|
|
<select id="findList" parameterType="com.iformall.domain.po.WxOrderPress" resultMap="BaseResultMap"> |
|
|
select <include refid="allColumns" /> from wx_order_press |
|
|
select <include refid="allColumns" /> from wx_order_press |
|
|
<include refid="dynamicWhereConditions" /> |
|
|
<include refid="dynamicWhereConditions" /> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<resultMap id="VoBaseResultMap" type="com.iformall.domain.vo.WxOrderPressVo"> |
|
|
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
|
|
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> |
|
|
|
|
|
<result column="order_id" jdbcType="BIGINT" property="orderId" /> |
|
|
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
|
|
<result column="press_value" jdbcType="INTEGER" property="pressValue" /> |
|
|
|
|
|
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> |
|
|
|
|
|
<result column="first" jdbcType="SMALLINT" property="first" /> |
|
|
|
|
|
|
|
|
|
|
|
<result column="nick_name" jdbcType="VARCHAR" property="nickName"/> |
|
|
|
|
|
<result column="avatar_url" jdbcType="VARCHAR" property="avatarUrl"/> |
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="allVoColumns"> |
|
|
|
|
|
op.`id`,op.`order_id`,op.`user_id`,op.`press_value`,op.`create_date`,op.`first`, |
|
|
|
|
|
cu.`nick_name`, cu.`avatar_url` |
|
|
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<select id="findPressList" parameterType="com.iformall.domain.vo.WxOrderPressVo" resultMap="VoBaseResultMap"> |
|
|
|
|
|
select <include refid="allVoColumns" /> |
|
|
|
|
|
from wx_order_press op |
|
|
|
|
|
left join wx_c_user_basic_info cu on cu.id = op.user_id |
|
|
|
|
|
where op.`order_id` = #{orderId} |
|
|
|
|
|
order by op.`create_date` desc |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |