Commit 68c5947b by 丁伟峰

Merge branch 'feature-dingwf-0715' into develop

2 parents 62852712 ad62fb23
......@@ -63,7 +63,7 @@ public class EngineerUtil {
public Page<EngineerInfoEntity> findEngineersByKeyAndPage(List<String> engineerCodes, String key, Integer page, Integer size) {
Pageable pageable = PageRequest.of(page - 1, size);
return engineerInfoDao.findAllByEngineerCodeIn(engineerCodes, buildSpecification(key), pageable);
return engineerInfoDao.findAllByEngineerCodeIn(buildSpecification(key), engineerCodes, pageable);
}
......
......@@ -6,12 +6,13 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface EngineerInfoDao extends JpaRepository<EngineerInfoEntity, Integer> {
public interface EngineerInfoDao extends JpaRepository<EngineerInfoEntity, Integer>, JpaSpecificationExecutor<EngineerInfoEntity> {
EngineerInfoEntity getByEngineerCode(String engineerCode);
List<EngineerInfoEntity> findByGroupId(String groupId);
......@@ -20,5 +21,5 @@ public interface EngineerInfoDao extends JpaRepository<EngineerInfoEntity, Integ
List<EngineerInfoEntity> findByEngineerCodeIn(List<String> engineerCodes);
Page<EngineerInfoEntity> findAllByEngineerCodeIn(List<String> engineerCodes, Specification<EngineerInfoEntity> engineerInfoEntitySpecification, Pageable pageable);
Page<EngineerInfoEntity> findAllByEngineerCodeIn(Specification<EngineerInfoEntity> engineerInfoEntitySpecification, List<String> engineerCodes, Pageable pageable);
}
......@@ -47,7 +47,7 @@ public class BusinessTeamDetailDTO {
/**
* 网点指派策略
*/
private String assiginStrategy;
private String assignStrategy;
/**
* cutoff时间
*/
......
......@@ -246,7 +246,7 @@ public class BusinessTeamServiceImpl implements BusinessTeamService {
}).collect(Collectors.toList());
rs.setEngineers(engineers);
BusinessTeamDetailDTO.ScheduleConfig config = new BusinessTeamDetailDTO.ScheduleConfig();
config.setAssiginStrategy(teamEntity.getStrategyAppointment())
config.setAssignStrategy(teamEntity.getStrategyAppointment())
.setCutoffTime(teamEntity.getCuteOff())
.setTransportMode(teamEntity.getTransportMode())
.setScheduleStrategy(teamEntity.getStrategySchedule())
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!