修改首页数据接口bug

This commit is contained in:
Guoqs
2024-06-14 15:25:58 +08:00
parent 53d83bf1af
commit f77fcfec80
3 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ public class indexController extends BaseController {
IndexGeneralSituationVO generalSituation = pileBasicInfoService.getGeneralSituation(dto);
response = new RestApiResponse<>(generalSituation);
}catch (Exception e) {
logger.error("首页数据查询错误:{}", e.getMessage());
logger.error("首页数据查询错误", e);
response = new RestApiResponse<>("00200001", "首页基础数据查询错误");
}
logger.info("首页数据查询 result:{}", JSON.toJSONString(response));

View File

@@ -264,11 +264,11 @@ public class SpringBootTestController {
@Test
public void createBalancePaymentRequestTest() {
String outMemberId = "ACM29104861";
String outMemberId = "ACM40782726";
String inMemberId = "0";
String transAmt = "126.55";
String transAmt = "124.72";
String title = "提取余额到自己账户";
String desc = "2024年6月12日14点14分,售后需求:客户需要重新添加结算账户,原账户余额放弃提取";
String desc = "2024年6月14日14点15分,售后需求:客户需要重新添加结算账户,原账户余额放弃提取";
String wechatAppId = wechatAppId1;
adapayService.createBalancePaymentRequest(outMemberId, inMemberId, transAmt, title, desc, wechatAppId);
}

View File

@@ -381,9 +381,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getGeneralSituationInfo" resultType="com.jsowell.pile.vo.web.IndexGeneralSituationVO">
select
sum(t1.total_amount) as totalChargingAmount,
sum(t1.use_electricity) as totalChargingDegree,
sum(t1.charge_num) as totalChargingQuantity
ifnull(sum(t1.total_amount), 0) as totalChargingAmount,
ifnull(sum(t1.use_electricity), 0) as totalChargingDegree,
ifnull(sum(t1.charge_num), 0) as totalChargingQuantity
from
settle_order_report t1
where