|
|
|
@@ -48,11 +48,30 @@ |
|
|
|
<include refid="dynamicWhereConditions" /> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="findPressList" parameterType="com.iformall.domain.po.WxOrderPress" resultMap="BaseResultMap"> |
|
|
|
select <include refid="allColumns" /> |
|
|
|
from wx_order_press |
|
|
|
where order_id = #{orderId} |
|
|
|
</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="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`, |
|
|
|
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 cu on cu.id = op.user_id |
|
|
|
where op.`order_id` = #{orderId} |
|
|
|
order by op.`create_date` desc |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|