EmployeeConfigInfoController.java
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.bsth.controller.schedule;
import com.bsth.controller.BaseController;
import com.bsth.entity.schedule.EmployeeConfigInfo;
import com.bsth.repository.schedule.EmployeeConfigInfoRepository;
import com.bsth.service.schedule.utils.DataToolsProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by xu on 16/5/10.
*/
@RestController
@RequestMapping("eci")
@EnableConfigurationProperties(DataToolsProperties.class)
public class EmployeeConfigInfoController extends BaseController<EmployeeConfigInfo, Long> {
@Autowired
private DataToolsProperties dataToolsProperties;
@Autowired
private EmployeeConfigInfoRepository employeeConfigInfoRepository;
@Override
protected String getDataImportKtrClasspath() {
return dataToolsProperties.getEmployeesconfigDatainputktr();
}
/**
*
* @Title: list
* @Description: TODO(多条件查询)
* @param @param map
* @throws
*/
@RequestMapping(value = "/alljsy", method = RequestMethod.GET)
public Iterable<Object> alljsy(){
return employeeConfigInfoRepository.findAllJsy();
}
}