p-honggang.li
5 天以前 cda9decfde8c6b518639c5da506aa293c07f88ff
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