Commit e5db668a authored by KeYong's avatar KeYong

岗位枚举

parent 57e829ac
package com.yeejoin.amos.boot.module.common.biz.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yeejoin.amos.boot.biz.common.feign.AmosFeignService;
import com.yeejoin.amos.boot.module.common.api.entity.DutyPersonShift;
import com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
......@@ -35,6 +38,8 @@ public class DutyPersonShiftController extends BaseController {
@Autowired
DutyPersonShiftServiceImpl dutyPersonShiftServiceImpl;
@Autowired
AmosFeignService amosFeignService;
/**
* 新增值班人员日期关联关系表
......@@ -120,4 +125,23 @@ public class DutyPersonShiftController extends BaseController {
{
return ResponseHelper.buildResponse(dutyPersonShiftServiceImpl.queryForDutyPersonShiftList());
}
/**
* <pre>
* @Description:
* </pre>
*
* @MethodName:
* @Param:
* @Return:
* @Throws
* @Author keyong
* @Date 2021/7/7 19:34
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET",value = "岗位枚举数据查询", notes = "岗位枚举数据查询")
@GetMapping(value = "/list/station")
public ResponseModel<List<DictionarieValueModel>> selectStationList() throws Exception {
return ResponseHelper.buildResponse(amosFeignService.listDictionaryByDictCode("POST_TYPE"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment