package com.dk.mdm.controller.common; import com.dk.common.controller.BaseController; import com.dk.common.model.pojo.PageList; import com.dk.common.response.ResponseResultVO; import com.dk.common.service.BaseService; import com.dk.mdm.model.query.wxapi.basic.WxCommonQuery; import com.dk.mdm.service.common.CommonService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; 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 java.util.List; import java.util.Map; /** * @author : 周兴 * @desc : 控件数据源API * @date : 2023/1/3 17:21 */ @Api(tags = "控件数据源API") @RestController @RequestMapping("/mst/common") public class CommonController extends BaseController> { @Override public BaseService> getService() { return commonService; } @Autowired private CommonService commonService; /** * @desc : 登录后获取信息 * @author : 周兴 * @date : 2024/3/4 12:47 */ @ApiOperation( value = "登录后获取信息", notes = "登录后获取信息" ) @PostMapping("get_info_after_login") public ResponseResultVO>>> getInfoAfterLogin(@RequestBody Map param) { return commonService.getInfoAfterLogin(param); } /** * @desc : 获取数据字典项目 * @author : 王英杰 * @date : 2023/1/6 12:47 */ @ApiOperation( value = "获取数据字典项目", notes = "获取数据字典项目" ) @PostMapping("get_dictionary_item_data") public ResponseResultVO>> getDictionaryItemData(@RequestBody Map param) { return commonService.getDictionaryItemData(param); } /** * @desc : 刷新基础数据 * @author : 周兴 * @date : 2023/5/11 10:20 */ @ApiOperation( value = "刷新基础数据", notes = "刷新基础数据" ) @PostMapping("refresh_basic_data") public ResponseResultVO refreshBasicData(@RequestBody Map param) { return commonService.refreshBasicData(param); } /** * @desc : 获取系统表数据种类 * @author : 周兴 * @date : 2023/1/6 12:47 */ @ApiOperation( value = "获取系统表数据种类", notes = "获取系统表数据种类" ) @PostMapping("get_data_kind") public ResponseResultVO>> getDataKind(@RequestBody Map param) { return commonService.getDataKind(param); } /** * @desc : 获取组织部门 * @author : 姜宁 * @date : 2023/1/9 13:50 */ @ApiOperation( value = "获取组织部门", notes = "获取组织部门" ) @PostMapping("get_org") public ResponseResultVO>> getOrg(@RequestBody Map param) { return commonService.getOrg(param); } /** * @desc : 获取组织部门(分页) * @author : 姜宁 * @date : 2023/1/29 16:52 */ @ApiOperation(value = "获取员工分页查询", notes = "获取员工分页查询") @PostMapping({"get_org_by_page"}) public ResponseResultVO>> getOrgByPage(@RequestBody Map param) { return commonService.getOrgByPage(param); } /** * @desc : 获取产品品牌 * @author : 夏常明 * @date : 2023/1/10 13:53 */ @ApiOperation( value = "获取产品品牌", notes = "获取产品品牌" ) @PostMapping("get_brand") public ResponseResultVO>> getBrand(@RequestBody Map param) { return commonService.getBrand(param); } /** * @desc : 获取角色 * @author : 姜宁 * @date : 2023/1/29 14:26 */ @ApiOperation( value = "获取角色", notes = "获取角色" ) @PostMapping("get_role") public ResponseResultVO>> getRole(@RequestBody Map param) { return commonService.getRole(param); } /** * @desc : 获取员工 * @author : 姜宁 * @date : 2023/1/29 16:52 */ @ApiOperation(value = "获取员工", notes = "获取员工") @PostMapping({"get_staff"}) public ResponseResultVO>> getStaff(@RequestBody Map param) { return commonService.getStaff(param); } /** * @desc : 获取员工(分页) * @author : 姜宁 * @date : 2023/1/29 16:52 */ @ApiOperation(value = "获取员工分页查询", notes = "获取员工分页查询") @PostMapping({"get_staff_by_page"}) public ResponseResultVO>> getStaffByPage(@RequestBody Map param) { return commonService.getStaffByPage(param); } /** * @desc : 获取系统参数 * @author : 周兴 * @date : 2023/1/10 13:53 */ @ApiOperation( value = "获取系统参数", notes = "获取系统参数" ) @PostMapping("get_setting_value") public ResponseResultVO getSettingValue(@RequestBody Map param) { return commonService.getSettingValue(param); } /** * @desc : 查询系统参数种类 * @author : 夏常明 * @date : 2023/1/29 17:06 */ @ApiOperation( value = "查询系统参数种类", notes = "查询系统参数种类" ) @PostMapping("get_setting_kind") public ResponseResultVO>> getSettingKind(@RequestBody Map param) { return commonService.getSettingKind(param); } /** * @desc : 获取组织部门 * @author : 姜宁 * @date : 2023/2/1 14:12 */ @ApiOperation(value = "获取组织部门分页查询", notes = "获取组织部门分页查询") @PostMapping({"get_organization_by_page"}) public ResponseResultVO>> getOrganizationByPage(@RequestBody Map param) { return commonService.getOrganizationByPage(param); } /** * @desc : 获取数据字典 * @author : 姜宁 * @date : 2023/2/7 14:48 */ @ApiOperation( value = "获取数据字典", notes = "获取数据字典" ) @PostMapping("get_dictionary_data") public ResponseResultVO>> getDictionaryData(@RequestBody Map param) { return commonService.getDictionaryData(param); } /** * @desc : 获取用户表格设置 * @author : 周兴 * @date : 2023/4/4 15:11 */ @ApiOperation( value = "获取用户表格设置", notes = "获取用户表格设置" ) @PostMapping("get_user_table_info") public ResponseResultVO>> getUserTableInfo(@RequestBody Map param) { return commonService.getUserTableInfo(param); } /** * @desc : 获取用户功能 * @author : 周兴 * @date : 2023/4/4 15:11 */ @ApiOperation( value = "获取用户功能", notes = "获取用户功能" ) @PostMapping("get_user_function") public ResponseResultVO>> getUserFunction(@RequestBody Map param) { return commonService.getUserFunction(param); } /** * @desc : 查导航菜单(自定义报表用) * @author : 周兴 * @date : 2023/4/4 15:11 */ @ApiOperation( value = "查导航菜单(自定义报表用)", notes = "查导航菜单(自定义报表用)" ) @PostMapping("get_menu_navigation") public ResponseResultVO>> getMenuNavigation(@RequestBody Map param) { return commonService.getMenuNavigation(param); } /** * @desc : 获取数据类型 * @author : 周兴 * @date : 2023/6/2 11:02 */ @ApiOperation(value = "获取数据类型", notes = "获取数据类型") @PostMapping({"get_value_kind"}) public ResponseResultVO>> getValueKind(@RequestBody Map param) { return commonService.getValueKind(param); } /** * @desc : 获取应用 * @author : 洪旭东 * @date : 2023-06-30 14:56 */ @ApiOperation( value = "获取应用", notes = "获取应用" ) @PostMapping("get_application") public ResponseResultVO>> getApplication() { return commonService.getApplication(); } /** * @desc : 获取单据 * @author : 周兴 * @date : 2023-08-09 14:32 */ @ApiOperation( value = "获取单据", notes = "获取单据" ) @PostMapping("get_doc") public ResponseResultVO>> getDoc(@RequestBody Map param) { return commonService.getDoc(param); } /** * @desc : 获取商品 * @author : 姜宁 * @date : 2023/1/9 13:50 */ @ApiOperation( value = "获取商品", notes = "获取商品" ) @PostMapping("get_goods") public ResponseResultVO>> getGoods(@RequestBody Map param) { return commonService.getGoods(param); } /** * @desc : 获取商品(分页) * @author : 姜宁 * @date : 2023/1/29 16:52 */ @ApiOperation(value = "获取商品分页查询", notes = "获取商品分页查询") @PostMapping({"get_goods_by_page"}) public ResponseResultVO>> getGoodsPage(@RequestBody Map param) { return commonService.getGoodsPage(param); } /** * @desc : 获取商品(销售订单开单用) * @author : 付斌 * @date : 2024-03-09 9:54 */ @PostMapping("get_goods_for_order") public ResponseResultVO>> getGoodsForOrder(@RequestBody Map param) { return commonService.getGoodsForOrder(param); } /** * @desc : 获取商品(销售订单开单用)(分页) * @author : 付斌 * @date : 2024-03-09 9:55 */ @PostMapping({"get_goods_for_order_by_page"}) public ResponseResultVO>> getGoodsForOrderByPage(@RequestBody Map param) { return commonService.getGoodsForOrderByPage(param); } /** * @desc : 获取商品(采购订单开单用) * @author : 常皓宁 * @date : 2024/3/9 10:08 */ @PostMapping("get_goods_for_purchase") public ResponseResultVO>> getGoodsForPurchase(@RequestBody Map param) { return commonService.getGoodsForPurchase(param); } /** * @desc : 获取商品(采购订单开单用)(分页) * @author : 常皓宁 * @date : 2024/3/9 10:08 */ @PostMapping({"get_goods_for_purchase_by_page"}) public ResponseResultVO>> getGoodsForPurchaseByPage(@RequestBody Map param) { return commonService.getGoodsForPurchaseByPage(param); } /** * @desc : 获取客户 * @author : 付斌 * @date : 2024-03-09 9:55 */ @ApiOperation( value = "获取客户", notes = "获取客户" ) @PostMapping("get_customer") public ResponseResultVO>> getCustomer(@RequestBody Map param) { return commonService.getCustomer(param); } /** * @desc : 获取客户(分页) * @author : 付斌 * @date : 2024-03-09 9:55 */ @ApiOperation(value = "获取客户分页查询", notes = "获取客户分页查询") @PostMapping({"get_customer_by_page"}) public ResponseResultVO>> GetCustomerByPage(@RequestBody Map param) { return commonService.GetCustomerByPage(param); } /** * @desc : 获取供应商 * @author : 常皓宁 * @date : 2024/3/1 9:19 */ @ApiOperation( value = "获取供应商", notes = "获取供应商" ) @PostMapping("get_supplier") public ResponseResultVO>> getSupplier(@RequestBody Map param) { return commonService.getSupplier(param); } /** * @desc : 获取供应商分页 * @author : 常皓宁 * @date : 2024/3/1 9:19 */ @ApiOperation( value = "获取供应商(分页)", notes = "获取供应商(分页)" ) @PostMapping("get_supplier_by_page") public ResponseResultVO>> getSupplierByPage(@RequestBody Map param) { return commonService.getSupplierByPage(param); } /** * @desc : 获取渠道 * @author : 付斌 * @date : 2024-03-02 10:18 */ @ApiOperation(value = "获取渠道", notes = "获取渠道") @PostMapping({"get_channel"}) public ResponseResultVO>> getChannel(@RequestBody Map param) { return commonService.getChannel(param); } /** * @desc : 商品品牌查询 * @author : 王英杰 * @date : 2024/2/26 10:36 */ @ApiOperation(value = "分页、关联、条件查询", notes = "分页、关联、条件查询") @PostMapping({"goods_brand_list_by"}) public ResponseResultVO>> goodsBrandListBy(@RequestBody Map param) { return commonService.goodsBrandListBy(param); } /** * @desc : 商品种类查询 * @author : 王英杰 * @date : 2024/2/26 10:36 */ @ApiOperation(value = "分页、关联、条件查询", notes = "分页、关联、条件查询") @PostMapping({"goods_category_list_by"}) public ResponseResultVO>> goodsCategoryListBy(@RequestBody Map param) { return commonService.goodsCategoryListBy(param); } /** * @desc : 商品系列查询 * @author : 王英杰 * @date : 2024/2/26 10:36 */ @ApiOperation(value = "分页、关联、条件查询", notes = "分页、关联、条件查询") @PostMapping({"goods_Series_list_by"}) public ResponseResultVO>> goodsSeriesListBy(@RequestBody Map param) { return commonService.goodsSeriesListBy(param); } /** * @desc : 计量单位查询 * @author : 王英杰 * @date : 2024/2/26 10:36 */ @ApiOperation(value = "分页、关联、条件查询", notes = "分页、关联、条件查询") @PostMapping({"unit_list_by"}) public ResponseResultVO>> unitListBy(@RequestBody Map param) { return commonService.unitListBy(param); } /** * @desc : 获取仓库 * @author : 王英杰 * @date : 2024/2/26 10:36 */ @ApiOperation( value = "获取仓库档案", notes = "获取仓库档案" ) @PostMapping("get_warehouse_by_page") public ResponseResultVO>> getWarehouseByPage(@RequestBody Map param) { return commonService.getWarehouseByPage(param); } /** * @desc : 获取仓库 * @author : 常皓宁 * @date : 2024/3/4 10:49 */ @ApiOperation( value = "获取仓库", notes = "获取仓库" ) @PostMapping("get_warehouse") public ResponseResultVO>> getWarehouse(@RequestBody Map param) { return commonService.getWarehouse(param); } /** * @desc : 查询库存 * @author : 付斌 * @date : 2024-03-05 10:50 */ @ApiOperation( value = "获取商品", notes = "获取商品" ) @PostMapping("get_inventory") public ResponseResultVO>> getInventory(@RequestBody Map param) { return commonService.getInventory(param); } /** * @desc : 查询库存(分页) * @author : 付斌 * @date : 2024-03-05 10:50 */ @ApiOperation(value = "获取商品分页查询", notes = "获取商品分页查询") @PostMapping({"get_inventory_by_page"}) public ResponseResultVO>> getInventoryByPage(@RequestBody Map param) { return commonService.getInventoryByPage(param); } /** * @desc : 供应商类别 * @author : 宋扬 * @date : 2024/3/6 10:28 */ @ApiOperation(value = "获取供应商类别", notes = "获取供应商类别") @PostMapping({"get_supType"}) public ResponseResultVO>> getSupType(@RequestBody Map param) { return commonService.getSupType(param); } /** * @desc : 供应商服务类别 * @author : 宋扬 * @date : 2024/3/6 10:29 */ @ApiOperation(value = "获取供应商服务类别", notes = "获取供应商服务类别") @PostMapping({"get_serviceCategories"}) public ResponseResultVO>> getServiceCategories(@RequestBody Map param) { return commonService.getServiceCategories(param); } /** * @desc : 获取页面数据源集合 (小程序用) * @author : 于继渤 * @date : 2024/2/26 10:36 */ @ApiOperation( value = "获取页面初始加载数据", notes = "获取页面初始加载数据" ) @PostMapping("get_init_data") public ResponseResultVO getInitData(@RequestBody Map param) { return commonService.getInitData(param); } }