From a2edb2c55c3ef6129db84ac92c78970bc8bd27e5 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期一, 14 二月 2022 10:22:39 +0800 Subject: [PATCH] [update] [todo 135313] 客戶填寫滿意度問卷api調整,並增加填寫時的檢核 --- pamapi/src/main/java/com/pollex/pam/web/rest/SatisfactionResource.java | 8 +------- 1 files changed, 1 insertions(+), 7 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..92baf43 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 @@ -3,7 +3,6 @@ import java.util.List; import com.pollex.pam.enums.SatisfactionTypeEnum; -import com.pollex.pam.service.dto.SatisfactionSystemScoreDTO; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -45,14 +44,9 @@ 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"); } - - @PostMapping("/system/score") - public Satisfaction createSystemSatisfaction(@RequestBody SatisfactionSystemScoreDTO scoreDTO) { - return satisfactionService.createSystemSatisfaction(scoreDTO); - } } -- Gitblit v1.8.0