feat:有订单交易记录不能删除

This commit is contained in:
dzc committed 2025-04-07 16:52:49 +08:00
1 parent 406c60f84d
commit dcac429cfa
4 files changed
+29 -7

No files matched your search

@@ -21,8 +21,10 @@ public interface RemoteHardOrderService {
@GetMapping("/hard-order/get-by-ids")
R<List<HardOrderEntity>> getByIds(@RequestParam List<Long> ids);
@PostMapping("/hard-order/page")
R<Page<List<HardOrderEntity>>> getPage(@RequestParam Page page, @RequestBody HardOrderPreferencesDto hardOrderPreferencesDto);
@NoToken
@GetMapping("/hard-order/mch-count-by-id")
R<Long> getMchCountById(@RequestParam Long id);
}
@@ -88,6 +88,16 @@ public class HardOrderController {
dto.setOrderIds(ids);
return R.ok(hardOrderMapper.list(dto));
}
@Inner
@Operation(summary = "app查询订单列表", description = "app查询订单列表")
@GetMapping("/mch-count-by-id")
public R<Long> getMchCountById(@RequestParam Long id) {
LambdaQueryWrapper<HardOrderEntity> query = new LambdaQueryWrapper<HardOrderEntity>().eq(HardOrderEntity::getMerchantId, id);
Long count = hardOrderMapper.selectCount(query);
if (ObjectUtil.isEmpty(count)) count = 0L;
return R.ok(count);
}
/* ************************************* end 远程调用 ************************************* */
/* ************************************* start app start ************************************* */