保誠-保戶業務員媒合平台
pamapi/src/main/java/com/pollex/pam/web/rest/SatisfactionResource.java
@@ -2,8 +2,9 @@
import java.util.List;
import com.pollex.pam.aop.logging.audit.AuditLoggingInject;
import com.pollex.pam.aop.logging.audit.AuditLoggingType;
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;
@@ -30,12 +31,14 @@
   @Autowired
   SatisfactionService satisfactionService;
    @AuditLoggingInject(type = AuditLoggingType.CUSTOMER_FILL_SATISFACTION)
   @PostMapping("/score")
   public Satisfaction scorefaction(@RequestBody SatisfactionCustomerScoreDTO scoreDTO) {
      return satisfactionService.scorefaction(scoreDTO);
   }
   @PostMapping("/score/all")
    @AuditLoggingInject(type = AuditLoggingType.CUSTOMER_FILL_SATISFACTION)
    @PostMapping("/score/all")
   public List<Satisfaction> scoreAllfaction(@RequestBody List<SatisfactionCustomerScoreDTO> scoreDTO) {
      return satisfactionService.scoreAllfaction(scoreDTO);
   }
@@ -50,9 +53,4 @@
      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.fillSystemSatisfaction(scoreDTO);
    }
}