update 电单车

This commit is contained in:
Guoqs
2024-09-20 14:45:47 +08:00
parent dbc037727e
commit 00b442572a
12 changed files with 74 additions and 34 deletions

View File

@@ -46,7 +46,7 @@ public class OccupyOrderController extends BaseController {
// logger.info("查询站点占桩费率 params:{}", stationId);
RestApiResponse<?> response = null;
try {
BillingTemplateVO vo = pileBillingTemplateService.queryUsedBillingTemplate(stationId);
BillingTemplateVO vo = pileBillingTemplateService.queryUsedBillingTemplateForEV(stationId);
response = new RestApiResponse<>(vo);
} catch (Exception e) {
logger.error("查询站点占桩费率 error,", e);

View File

@@ -3370,12 +3370,12 @@ public class SpringBootTestController {
@Test
public void testGenerateBillingTemplateMsgBody() {
String pileSn = "88000000000001";
String pileSn = "13273881";
// 根据桩号查询计费模板
BillingTemplateVO billingTemplateVO = pileBillingTemplateService.selectBillingTemplateDetailByPileSn(pileSn);
byte[] messageBody = pileBillingTemplateService.generateBillingTemplateMsgBody(pileSn, billingTemplateVO);
System.out.println(BytesUtil.binary(messageBody, 16));
System.out.println(billingTemplateVO);
// byte[] messageBody = pileBillingTemplateService.generateBillingTemplateMsgBody(pileSn, billingTemplateVO);
// System.out.println(BytesUtil.binary(messageBody, 16));
}
@Test