保誠-保戶業務員媒合平台
wayne
2022-02-10 d54da4786548ef4c4ea4d62b2754cfed2b24a698
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);
    }
}