p-honggang.li
2 天以前 7c2c6a5e5b3d9f96aef3c67573aa62bbd9a3aa7f
src/main/resources/mapper/UserPointsMapper.xml
@@ -5,7 +5,7 @@
    <!-- 根据用户ID查询积分信息 -->
    <select id="selectByUserId" resultType="com.webmanage.entity.UserPoints">
        SELECT *
        FROM user_points
        FROM tb_user_points
        WHERE user_id = #{userId}
        AND deleted = 0
        LIMIT 1
@@ -14,7 +14,7 @@
    <!-- 根据单位ID查询积分信息 -->
    <select id="selectByUnitId" resultType="com.webmanage.entity.UserPoints">
        SELECT *
        FROM user_points
        FROM tb_user_points
        WHERE unit_id = #{unitId}
        AND deleted = 0
        LIMIT 1