From 543e645dc289b79d2ebe443b9d3fcbcde89dccdd Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Thu, 22 Aug 2024 10:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/SelectController.java | 252 +++++++++--------- 1 file changed, 126 insertions(+), 126 deletions(-) diff --git a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SelectController.java b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SelectController.java index e70ae20..736c8f6 100644 --- a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SelectController.java +++ b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SelectController.java @@ -1,126 +1,126 @@ -package com.bonus.sgzb.system.controller; - -import com.bonus.sgzb.common.core.web.domain.AjaxResult; -import com.bonus.sgzb.system.domain.SelectDto; -import com.bonus.sgzb.system.service.SelectService; -import io.swagger.annotations.ApiOperation; -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.RestController; - -import javax.annotation.Resource; - -/** - * @author 10488 - * 统一下拉选 - */ -@RestController -@RequestMapping("/select/") -public class SelectController { - - @Resource(name = "SelectService") - private SelectService service; - - @ApiOperation(value = "往来单位下拉选") - @PostMapping("getUnitCbx") - public AjaxResult getUnitData(@RequestBody SelectDto dto) { - return service.getUnitData(dto); - } - - @ApiOperation(value = "工程下拉选") - @PostMapping("getSectionEngineeringCbx") - public AjaxResult getProData(@RequestBody SelectDto dto) { - return service.getProData(dto); - } - - @ApiOperation(value = "机具类型下拉选") - @PostMapping("getMaTypeData") - public AjaxResult getMaTypeData(@RequestBody SelectDto dto){ - return service.getMaTypeData(dto); - } - - @ApiOperation(value = "数据字典下拉选") - @PostMapping("getDictByPidCbx") - public AjaxResult getDictByPidCbx(@RequestBody SelectDto dto){ - return service.getDictByPidCbx(dto); - } - - @ApiOperation(value = "单位树/归属部门/所属上级") - @PostMapping("getDeptTree") - public AjaxResult getDeptTree(@RequestBody SelectDto dto){ - return service.getDeptTree(dto); - } - - @ApiOperation(value = "岗位下拉选") - @PostMapping("getPostCbx") - public AjaxResult getPostCbx(@RequestBody SelectDto dto){ - return service.getPostCbx(dto); - } - - @ApiOperation(value = "角色下拉选") - @PostMapping("getRoleCbx") - public AjaxResult getRoleCbx(@RequestBody SelectDto dto){ - return service.getRoleCbx(dto); - } - - @ApiOperation(value = "单位类型下拉选") - @PostMapping("getUnitTypeCbx") - public AjaxResult getUnitTypeCbx(@RequestBody SelectDto dto){ - return service.getUnitTypeCbx(dto); - } - - @ApiOperation(value = "设备类型树") - @PostMapping("getDeviceTypeTree") - public AjaxResult getDeviceTypeTree(@RequestBody SelectDto dto){ - return service.getDeviceTypeTree(dto); - } - - @ApiOperation(value = "资产属性") - @PostMapping("getAssetAttributesCbx") - public AjaxResult getAssetAttributesCbx(@RequestBody SelectDto dto){ - return service.getAssetAttributesCbx(dto); - } - - @ApiOperation(value = "机具厂家") - @PostMapping("getDeviceFactoryCbx") - public AjaxResult getDeviceFactoryCbx(@RequestBody SelectDto dto){ - return service.getDeviceFactoryCbx(dto); - } - - @ApiOperation(value = "工程项目") - @PostMapping("getProCbx") - public AjaxResult getProCbx(@RequestBody SelectDto dto){ - return service.getProCbx(dto); - } - - @ApiOperation(value = "配件所属上级树") - @PostMapping("getAccessoryTree") - public AjaxResult getAccessoryTree(){ - return service.getAccessoryTree(); - } - - @ApiOperation(value = "配件所属上级树") - @PostMapping("getPartTree") - public AjaxResult getPartTree(@RequestBody SelectDto dto){ - return service.getPartTree(dto); - } - - @ApiOperation(value = "货架") - @PostMapping("getGoodsShelvesCbx") - public AjaxResult getGoodsShelvesCbx(@RequestBody SelectDto dto){ - return service.getGoodsShelvesCbx(dto); - } - - @ApiOperation(value = "用户/维修员/库管员/采购员") - @PostMapping("getUserByRoleIdCbx") - public AjaxResult getUserByRoleIdCbx(@RequestBody SelectDto dto){ - return service.getUserByRoleIdCbx(dto); - } - - @ApiOperation(value = "往来单位id和标段工程id获取协议信息") - @PostMapping("getAgreementInfoById") - public AjaxResult getAgreementInfoById(@RequestBody SelectDto dto){ - return service.getAgreementInfoById(dto); - } -} +//package com.bonus.sgzb.system.controller; +// +//import com.bonus.sgzb.common.core.web.domain.AjaxResult; +//import com.bonus.sgzb.system.domain.SelectDto; +//import com.bonus.sgzb.system.service.SelectService; +//import io.swagger.annotations.ApiOperation; +//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.RestController; +// +//import javax.annotation.Resource; +// +///** +// * @author 10488 +// * 统一下拉选 +// */ +//@RestController +//@RequestMapping("/select/") +//public class SelectController { +// +// @Resource(name = "SelectService") +// private SelectService service; +// +// @ApiOperation(value = "往来单位下拉选") +// @PostMapping("getUnitCbx") +// public AjaxResult getUnitData(@RequestBody SelectDto dto) { +// return service.getUnitData(dto); +// } +// +// @ApiOperation(value = "工程下拉选") +// @PostMapping("getSectionEngineeringCbx") +// public AjaxResult getProData(@RequestBody SelectDto dto) { +// return service.getProData(dto); +// } +// +// @ApiOperation(value = "机具类型下拉选") +// @PostMapping("getMaTypeData") +// public AjaxResult getMaTypeData(@RequestBody SelectDto dto){ +// return service.getMaTypeData(dto); +// } +// +// @ApiOperation(value = "数据字典下拉选") +// @PostMapping("getDictByPidCbx") +// public AjaxResult getDictByPidCbx(@RequestBody SelectDto dto){ +// return service.getDictByPidCbx(dto); +// } +// +// @ApiOperation(value = "单位树/归属部门/所属上级") +// @PostMapping("getDeptTree") +// public AjaxResult getDeptTree(@RequestBody SelectDto dto){ +// return service.getDeptTree(dto); +// } +// +// @ApiOperation(value = "岗位下拉选") +// @PostMapping("getPostCbx") +// public AjaxResult getPostCbx(@RequestBody SelectDto dto){ +// return service.getPostCbx(dto); +// } +// +// @ApiOperation(value = "角色下拉选") +// @PostMapping("getRoleCbx") +// public AjaxResult getRoleCbx(@RequestBody SelectDto dto){ +// return service.getRoleCbx(dto); +// } +// +// @ApiOperation(value = "单位类型下拉选") +// @PostMapping("getUnitTypeCbx") +// public AjaxResult getUnitTypeCbx(@RequestBody SelectDto dto){ +// return service.getUnitTypeCbx(dto); +// } +// +// @ApiOperation(value = "设备类型树") +// @PostMapping("getDeviceTypeTree") +// public AjaxResult getDeviceTypeTree(@RequestBody SelectDto dto){ +// return service.getDeviceTypeTree(dto); +// } +// +// @ApiOperation(value = "资产属性") +// @PostMapping("getAssetAttributesCbx") +// public AjaxResult getAssetAttributesCbx(@RequestBody SelectDto dto){ +// return service.getAssetAttributesCbx(dto); +// } +// +// @ApiOperation(value = "机具厂家") +// @PostMapping("getDeviceFactoryCbx") +// public AjaxResult getDeviceFactoryCbx(@RequestBody SelectDto dto){ +// return service.getDeviceFactoryCbx(dto); +// } +// +// @ApiOperation(value = "工程项目") +// @PostMapping("getProCbx") +// public AjaxResult getProCbx(@RequestBody SelectDto dto){ +// return service.getProCbx(dto); +// } +// +// @ApiOperation(value = "配件所属上级树") +// @PostMapping("getAccessoryTree") +// public AjaxResult getAccessoryTree(){ +// return service.getAccessoryTree(); +// } +// +// @ApiOperation(value = "配件所属上级树") +// @PostMapping("getPartTree") +// public AjaxResult getPartTree(@RequestBody SelectDto dto){ +// return service.getPartTree(dto); +// } +// +// @ApiOperation(value = "货架") +// @PostMapping("getGoodsShelvesCbx") +// public AjaxResult getGoodsShelvesCbx(@RequestBody SelectDto dto){ +// return service.getGoodsShelvesCbx(dto); +// } +// +// @ApiOperation(value = "用户/维修员/库管员/采购员") +// @PostMapping("getUserByRoleIdCbx") +// public AjaxResult getUserByRoleIdCbx(@RequestBody SelectDto dto){ +// return service.getUserByRoleIdCbx(dto); +// } +// +// @ApiOperation(value = "往来单位id和标段工程id获取协议信息") +// @PostMapping("getAgreementInfoById") +// public AjaxResult getAgreementInfoById(@RequestBody SelectDto dto){ +// return service.getAgreementInfoById(dto); +// } +//}