From d54da4786548ef4c4ea4d62b2754cfed2b24a698 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期四, 10 二月 2022 15:54:18 +0800 Subject: [PATCH] [update][todo 135158] 列出滿意度問卷也需要包含系統滿意度問卷 --- pamapi/src/main/java/com/pollex/pam/web/rest/SatisfactionResource.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/web/rest/SatisfactionResource.java b/pamapi/src/main/java/com/pollex/pam/web/rest/SatisfactionResource.java index 2289880..b4dbfdc 100644 --- a/pamapi/src/main/java/com/pollex/pam/web/rest/SatisfactionResource.java +++ b/pamapi/src/main/java/com/pollex/pam/web/rest/SatisfactionResource.java @@ -45,7 +45,7 @@ if(StringUtils.hasText(SecurityUtils.getAgentNo())) { return satisfactionService.getByAgentNoAndType(SecurityUtils.getAgentNo(), SatisfactionTypeEnum.APPOINTMENT); }else if(SecurityUtils.getCustomerDBId()!=null){ - return satisfactionService.getByCustomerIdAndType(SecurityUtils.getCustomerDBId(), SatisfactionTypeEnum.APPOINTMENT); + return satisfactionService.getByCustomerId(SecurityUtils.getCustomerDBId()); } log.error("Not has agent code and customer id"); throw new IllegalArgumentException("Not has agent code and customer id"); @@ -53,6 +53,6 @@ @PostMapping("/system/score") public Satisfaction createSystemSatisfaction(@RequestBody SatisfactionSystemScoreDTO scoreDTO) { - return satisfactionService.createSystemSatisfaction(scoreDTO); + return satisfactionService.fillSystemSatisfaction(scoreDTO); } } -- Gitblit v1.8.0