Browse Source

积分登记向下取整

feature/syp_points
zhangyongzhangyong 6 years ago
parent
commit
81eaeff890
  1. 2
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/UserDao.xml

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

@ -24,7 +24,7 @@
CASE CASE
WHEN IFNULL(eu.POINTS_TOTLE,0) <= 0 THEN 0 WHEN IFNULL(eu.POINTS_TOTLE,0) <= 0 THEN 0
ELSE ELSE
IFNULL(ROUND(IFNULL(eu.POINTS_TOTLE,0) / IFNULL(g.POINTS,0) * IFNULL(g.GRADE,0),0),0) IFNULL(FLOOR(IFNULL(eu.POINTS_TOTLE,0) / IFNULL(g.POINTS,0) * IFNULL(g.GRADE,0)),0)
END grade END grade
FROM FROM
epdc_user eu epdc_user eu

Loading…
Cancel
Save