EmployeeConfigInfoController.java 1.42 KB
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();
    }
}