Browse Source

用户签到bug修改

feature/syp_points
songyunpeng 5 years ago
parent
commit
fb876d0e7e
  1. 2
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml
  2. 2
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserSignDao.xml

2
esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml

@ -29,7 +29,7 @@
ELSE
IFNULL(FLOOR(IFNULL(eu.POINTS_TOTLE,0) / IFNULL(g.POINTS,0) * IFNULL(g.GRADE,0)),0)
END grade,
date_format(eus.LAST_SIGN_TIME,'%y-%m-%d') = CURDATE() as isSignUp
date_format(eus.LAST_SIGN_TIME,'%Y-%m-%d') = CURDATE() as isSignUp
FROM
epdc_user eu
Left Join (select * from epdc_user_grid_relation where USER_ID = #{id} order by UPDATED_TIME desc limit 0,1) eugr

2
esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserSignDao.xml

@ -16,7 +16,7 @@
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<select id="selectUserSignInfoByUserId" resultType="com.elink.esua.epdc.dto.UserSignDTO">
select ID,USER_ID,CONSEQUENT_SIGN_DAYS,LAST_SIGN_TIME from epdc_user_sign where DEL_FLAG = '0'
select ID,USER_ID,CONSEQUENT_SIGN_DAYS,LAST_SIGN_TIME from epdc_user_sign where DEL_FLAG = '0' and USER_ID = #{userId}
</select>

Loading…
Cancel
Save