Commit 232e389a authored by 赵啸非's avatar 赵啸非

添加照片海康下载

parent 7a7e9e0a
...@@ -82,9 +82,9 @@ public class AppealApiController extends AbstractBaseController<PerformReq> { ...@@ -82,9 +82,9 @@ public class AppealApiController extends AbstractBaseController<PerformReq> {
try { try {
//todo 查询当前登录人的绩效分数 //todo 查询当前登录人的绩效分数
AppealStatInfo appealStatInfo = new AppealStatInfo(); AppealStatInfo appealStatInfo = new AppealStatInfo();
appealStatInfo.setTotalScore(new BigDecimal("10.52")); appealStatInfo.setTotalScore(new BigDecimal("10.52").setScale(1,BigDecimal.ROUND_HALF_UP));
appealStatInfo.setTotalTimes(12); appealStatInfo.setTotalTimes(12);
appealStatInfo.setTodayScore(new BigDecimal("2.5")); appealStatInfo.setTodayScore(new BigDecimal("2.5").setScale(1,BigDecimal.ROUND_HALF_UP));
appealStatInfo.setTodayTimes(3); appealStatInfo.setTodayTimes(3);
rest.setData(appealStatInfo); rest.setData(appealStatInfo);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
...@@ -262,7 +262,7 @@ public class AppealApiController extends AbstractBaseController<PerformReq> { ...@@ -262,7 +262,7 @@ public class AppealApiController extends AbstractBaseController<PerformReq> {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println(new BigDecimal(15.52).setScale(1,BigDecimal.ROUND_HALF_UP).toString());
} }
} }
...@@ -89,9 +89,9 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -89,9 +89,9 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
try { try {
//todo //todo
PerformStatInfo performStatInfo = new PerformStatInfo(); PerformStatInfo performStatInfo = new PerformStatInfo();
performStatInfo.setTotalScore(RandomUtil.randomBigDecimal(new BigDecimal("15"),new BigDecimal("45"))); performStatInfo.setTotalScore(RandomUtil.randomBigDecimal(new BigDecimal("15"),new BigDecimal("45")).setScale(1,BigDecimal.ROUND_HALF_UP));
performStatInfo.setTotalTimes(RandomUtil.randomInt(10,40)); performStatInfo.setTotalTimes(RandomUtil.randomInt(10,40));
performStatInfo.setTodayScore(RandomUtil.randomBigDecimal(new BigDecimal("2"),new BigDecimal("10"))); performStatInfo.setTodayScore(RandomUtil.randomBigDecimal(new BigDecimal("2"),new BigDecimal("10")).setScale(1,BigDecimal.ROUND_HALF_UP));
performStatInfo.setTodayTimes(RandomUtil.randomInt(10)); performStatInfo.setTodayTimes(RandomUtil.randomInt(10));
rest.setData(performStatInfo); rest.setData(performStatInfo);
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment