修改打印数据
This commit is contained in:
@@ -100,4 +100,22 @@
|
||||
WHERE
|
||||
duty_id = #{dutyId}
|
||||
</select>
|
||||
|
||||
<select id="selectCetoryBydutyId" resultType="java.util.Map">
|
||||
|
||||
SELECT
|
||||
sum( d.amount ) AS amount,
|
||||
sum( d.num ) AS num,
|
||||
c.`name` AS categoryName
|
||||
FROM
|
||||
tb_shop_user_duty_detail d
|
||||
LEFT JOIN tb_product p ON d.product_id = p.id
|
||||
LEFT JOIN tb_shop_category c ON p.category_id = c.id
|
||||
WHERE
|
||||
d.duty_id = #{dutyId}
|
||||
GROUP BY
|
||||
p.category_id
|
||||
ORDER BY
|
||||
c.sort DESC
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -564,4 +564,8 @@
|
||||
grand_parent_id = #{grandParentId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="selectByCardNo" resultMap="BaseResultMap">
|
||||
select * from tb_user_info where card_no=#{cardNo}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user