Browse Source

Merge branch 'dev' into pre-production

master
zhenghaoyu 8 months ago
parent
commit
5943dc63f0
  1. 2
      blade-service-api/logpm-statisticsdata-api/src/main/java/com/logpm/statistics/dto/MerchantStatisticsDTO.java
  2. 25
      blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/controller/MerchantBalanceController.java
  3. 3
      blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/service/IStatisticsBalanceOrderInfoService.java
  4. 8
      blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/service/impl/StatisticsBalanceOrderInfoServiceImpl.java

2
blade-service-api/logpm-statisticsdata-api/src/main/java/com/logpm/statistics/dto/MerchantStatisticsDTO.java

@ -23,4 +23,6 @@ public class MerchantStatisticsDTO implements Serializable {
private List<Long> orderInfoIds; private List<Long> orderInfoIds;
private Long balanceOrderId;
} }

25
blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/controller/MerchantBalanceController.java

@ -155,5 +155,30 @@ public class MerchantBalanceController {
} }
} }
@ResponseBody
@PostMapping("/findBalanceDetail")
@ApiOperationSupport(order = 1)
@ApiOperation(value = "查询异常列表", notes = "传入merchantStatisticsDTO")
public R findBalanceDetail(@RequestBody MerchantStatisticsDTO merchantStatisticsDTO) {
String method = "############findBalanceDetail: ";
log.info(method+"请求参数{}",merchantStatisticsDTO);
try{
Long balanceOrderId = merchantStatisticsDTO.getBalanceOrderId();
if(Objects.isNull(balanceOrderId)){
log.warn(method+"请选择正确的结算单 balanceOrderId={}",balanceOrderId);
return R.fail(405,"请选择正确的结算单");
}
return balanceOrderInfoService.findBalanceDetail(balanceOrderId);
}catch (CustomerException e){
log.error(e.message,e);
return R.fail(e.code,e.message);
}catch (Exception e){
log.error(method+"系统异常",e);
return R.fail(500,"系统异常");
}
}
} }

3
blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/service/IStatisticsBalanceOrderInfoService.java

@ -19,4 +19,7 @@ public interface IStatisticsBalanceOrderInfoService extends BaseService<Statisti
R addBalanceRecord(StatisticsBalanceRecordDTO balanceRecordDTO); R addBalanceRecord(StatisticsBalanceRecordDTO balanceRecordDTO);
R findRecordList(StatisticsBalanceRecordDTO balanceRecordDTO); R findRecordList(StatisticsBalanceRecordDTO balanceRecordDTO);
R findBalanceDetail(Long balanceOrderId);
} }

8
blade-service/logpm-statisticsdata/src/main/java/com/logpm/statistics/service/impl/StatisticsBalanceOrderInfoServiceImpl.java

@ -213,5 +213,13 @@ public class StatisticsBalanceOrderInfoServiceImpl extends BaseServiceImpl<Stati
return R.data(list); return R.data(list);
} }
@Override
public R findBalanceDetail(Long balanceOrderId) {
StatisticsBalanceOrderInfoEntity statisticsBalanceOrderInfoEntity = baseMapper.selectById(balanceOrderId);
return R.data(statisticsBalanceOrderInfoEntity);
}
} }

Loading…
Cancel
Save