统一下拉选
This commit is contained in:
parent
0ceae5c33b
commit
cce08da6a2
|
|
@ -5,6 +5,7 @@ import com.bonus.sgzb.system.domain.SelectDto;
|
||||||
import com.bonus.sgzb.system.service.SelectService;
|
import com.bonus.sgzb.system.service.SelectService;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
|
@ -23,91 +24,91 @@ public class SelectController {
|
||||||
|
|
||||||
@ApiOperation(value = "往来单位下拉选")
|
@ApiOperation(value = "往来单位下拉选")
|
||||||
@PostMapping("getUnitCbx")
|
@PostMapping("getUnitCbx")
|
||||||
public AjaxResult getUnitData(SelectDto dto) {
|
public AjaxResult getUnitData(@RequestBody SelectDto dto) {
|
||||||
return service.getUnitData(dto);
|
return service.getUnitData(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "工程下拉选")
|
@ApiOperation(value = "工程下拉选")
|
||||||
@PostMapping("getSectionEngineeringCbx")
|
@PostMapping("getSectionEngineeringCbx")
|
||||||
public AjaxResult getProData(SelectDto dto) {
|
public AjaxResult getProData(@RequestBody SelectDto dto) {
|
||||||
return service.getProData(dto);
|
return service.getProData(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "机具类型下拉选")
|
@ApiOperation(value = "机具类型下拉选")
|
||||||
@PostMapping("getMaTypeData")
|
@PostMapping("getMaTypeData")
|
||||||
public AjaxResult getMaTypeData(SelectDto dto){
|
public AjaxResult getMaTypeData(@RequestBody SelectDto dto){
|
||||||
return service.getMaTypeData(dto);
|
return service.getMaTypeData(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "数据字典下拉选")
|
@ApiOperation(value = "数据字典下拉选")
|
||||||
@PostMapping("getDictByPidCbx")
|
@PostMapping("getDictByPidCbx")
|
||||||
public AjaxResult getDictByPidCbx(SelectDto dto){
|
public AjaxResult getDictByPidCbx(@RequestBody SelectDto dto){
|
||||||
return service.getDictByPidCbx(dto);
|
return service.getDictByPidCbx(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "单位树/归属部门/所属上级")
|
@ApiOperation(value = "单位树/归属部门/所属上级")
|
||||||
@PostMapping("getDeptTree")
|
@PostMapping("getDeptTree")
|
||||||
public AjaxResult getDeptTree(SelectDto dto){
|
public AjaxResult getDeptTree(@RequestBody SelectDto dto){
|
||||||
return service.getDeptTree(dto);
|
return service.getDeptTree(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "岗位下拉选")
|
@ApiOperation(value = "岗位下拉选")
|
||||||
@PostMapping("getPostCbx")
|
@PostMapping("getPostCbx")
|
||||||
public AjaxResult getPostCbx(SelectDto dto){
|
public AjaxResult getPostCbx(@RequestBody SelectDto dto){
|
||||||
return service.getPostCbx(dto);
|
return service.getPostCbx(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "角色下拉选")
|
@ApiOperation(value = "角色下拉选")
|
||||||
@PostMapping("getRoleCbx")
|
@PostMapping("getRoleCbx")
|
||||||
public AjaxResult getRoleCbx(SelectDto dto){
|
public AjaxResult getRoleCbx(@RequestBody SelectDto dto){
|
||||||
return service.getRoleCbx(dto);
|
return service.getRoleCbx(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "单位类型下拉选")
|
@ApiOperation(value = "单位类型下拉选")
|
||||||
@PostMapping("getUnitTypeCbx")
|
@PostMapping("getUnitTypeCbx")
|
||||||
public AjaxResult getUnitTypeCbx(SelectDto dto){
|
public AjaxResult getUnitTypeCbx(@RequestBody SelectDto dto){
|
||||||
return service.getUnitTypeCbx(dto);
|
return service.getUnitTypeCbx(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "设备类型树")
|
@ApiOperation(value = "设备类型树")
|
||||||
@PostMapping("getDeviceTypeTree")
|
@PostMapping("getDeviceTypeTree")
|
||||||
public AjaxResult getDeviceTypeTree(SelectDto dto){
|
public AjaxResult getDeviceTypeTree(@RequestBody SelectDto dto){
|
||||||
return service.getDeviceTypeTree(dto);
|
return service.getDeviceTypeTree(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "资产属性")
|
@ApiOperation(value = "资产属性")
|
||||||
@PostMapping("getAssetAttributesCbx")
|
@PostMapping("getAssetAttributesCbx")
|
||||||
public AjaxResult getAssetAttributesCbx(SelectDto dto){
|
public AjaxResult getAssetAttributesCbx(@RequestBody SelectDto dto){
|
||||||
return service.getAssetAttributesCbx(dto);
|
return service.getAssetAttributesCbx(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "机具厂家")
|
@ApiOperation(value = "机具厂家")
|
||||||
@PostMapping("getDeviceFactoryCbx")
|
@PostMapping("getDeviceFactoryCbx")
|
||||||
public AjaxResult getDeviceFactoryCbx(SelectDto dto){
|
public AjaxResult getDeviceFactoryCbx(@RequestBody SelectDto dto){
|
||||||
return service.getDeviceFactoryCbx(dto);
|
return service.getDeviceFactoryCbx(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "工程项目")
|
@ApiOperation(value = "工程项目")
|
||||||
@PostMapping("getProCbx")
|
@PostMapping("getProCbx")
|
||||||
public AjaxResult getProCbx(SelectDto dto){
|
public AjaxResult getProCbx(@RequestBody SelectDto dto){
|
||||||
return service.getProCbx(dto);
|
return service.getProCbx(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "配件所属上级树")
|
@ApiOperation(value = "配件所属上级树")
|
||||||
@PostMapping("getAccessoryTree")
|
@PostMapping("getAccessoryTree")
|
||||||
public AjaxResult getAccessoryTree(SelectDto dto){
|
public AjaxResult getAccessoryTree(@RequestBody SelectDto dto){
|
||||||
return service.getAccessoryTree(dto);
|
return service.getAccessoryTree(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "货架")
|
@ApiOperation(value = "货架")
|
||||||
@PostMapping("getGoodsShelvesCbx")
|
@PostMapping("getGoodsShelvesCbx")
|
||||||
public AjaxResult getGoodsShelvesCbx(SelectDto dto){
|
public AjaxResult getGoodsShelvesCbx(@RequestBody SelectDto dto){
|
||||||
return service.getGoodsShelvesCbx(dto);
|
return service.getGoodsShelvesCbx(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "用户/维修员/库管员/采购员")
|
@ApiOperation(value = "用户/维修员/库管员/采购员")
|
||||||
@PostMapping("getUserByRoleIdCbx")
|
@PostMapping("getUserByRoleIdCbx")
|
||||||
public AjaxResult getUserByRoleIdCbx(SelectDto dto){
|
public AjaxResult getUserByRoleIdCbx(@RequestBody SelectDto dto){
|
||||||
return service.getUserByRoleIdCbx(dto);
|
return service.getUserByRoleIdCbx(dto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue