修改打印数据

This commit is contained in:
韩鹏辉
2024-04-15 15:33:18 +08:00
parent a2432316ea
commit c0f3b445cb
11 changed files with 187 additions and 5 deletions

View File

@@ -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>

View File

@@ -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>