保誠-保戶業務員媒合平台
wayne
2022-01-03 b84a4c15f8c239a4d555d7a336f3eb665c94d389
pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java
@@ -59,10 +59,10 @@
    @Autowired
    SatisfactionService satisfactionService;
    @Autowired
    ConsultantDTOMapper consultantDTOMapper;
    @Autowired
    ApplicationProperties applicationProperty;
@@ -212,6 +212,10 @@
        customerFavoriteConsultantRepository.saveAll(notViewRelation);
    }
    public Consultant findByAgentNo(String agentNo) {
        return consultantRepository.findOneByAgentNo(agentNo).get();
    }
   public Consultant editConsultant(ConsultantEditDTO editDTO) {
      Consultant consultant = consultantRepository.findOneByAgentNo(editDTO.getAgentNo())
            .orElseThrow(ConsultantNotFoundException::new);