|
@@ -1,78 +0,0 @@
|
|
|
-package com.sooka.sponest.mobile.comprehensive.organizationAndInstitutioncontroller;
|
|
|
-
|
|
|
-import com.ruoyi.common.core.constant.HttpStatus;
|
|
|
-import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
-import com.ruoyi.common.core.web.page.PageDomain;
|
|
|
-import com.ruoyi.common.core.web.page.TableDataInfo;
|
|
|
-import com.ruoyi.common.core.web.page.TableSupport;
|
|
|
-import com.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.domain.ComprehensiveNonPublicEconomicOrganizations;
|
|
|
-import com.sooka.sponest.comprehensive.api.comprehensiveOrganizationAndInstitution.service.ComprehensiveNonPublicEconomicOrganizationsService;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
-import javax.annotation.Resource;
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- * @author zhaozhan
|
|
|
- * @date 2023/9/15
|
|
|
- */
|
|
|
-@RestController
|
|
|
-@RequestMapping("/APPComprehensiveNonPublicEconomicOrganizationsController")
|
|
|
-public class APPComprehensiveNonPublicEconomicOrganizationsController {
|
|
|
- @Resource
|
|
|
- private ComprehensiveNonPublicEconomicOrganizationsService comprehensiveNonPublicEconomicOrganizationsService;
|
|
|
- /**
|
|
|
- * 非公有制经济组织列表
|
|
|
- * @param comprehensiveNonPublicEconomicOrganizations
|
|
|
- * @return
|
|
|
- */
|
|
|
- @GetMapping("/ComprehensiveNonPublicEconomicOrganizations/list")
|
|
|
- public AjaxResult list(ComprehensiveNonPublicEconomicOrganizations comprehensiveNonPublicEconomicOrganizations) {
|
|
|
- PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
|
- Integer pageNum = pageDomain.getPageNum();
|
|
|
- Integer pageSize = pageDomain.getPageSize();
|
|
|
- TableDataInfo tableDataInfo = comprehensiveNonPublicEconomicOrganizationsService.list(pageNum, pageSize, comprehensiveNonPublicEconomicOrganizations.getEnterpriseName(), comprehensiveNonPublicEconomicOrganizations.getRegistrationNumbe(), comprehensiveNonPublicEconomicOrganizations.getLegalPersonIdNumber());
|
|
|
- if(HttpStatus.SUCCESS == tableDataInfo.getCode()){
|
|
|
- return AjaxResult.success(tableDataInfo.getRows());
|
|
|
- }else{
|
|
|
- return AjaxResult.error(tableDataInfo.getCode(),tableDataInfo.getMsg());
|
|
|
- }
|
|
|
- }
|
|
|
- /**
|
|
|
- * 非公有制经济组织详情
|
|
|
- * @param id
|
|
|
- * @return
|
|
|
- */
|
|
|
- @GetMapping("/ComprehensiveNonPublicEconomicOrganizations/{id}")
|
|
|
- public AjaxResult getInfo(String id) {
|
|
|
- return AjaxResult.success(comprehensiveNonPublicEconomicOrganizationsService.edit(id));
|
|
|
- }
|
|
|
- /**
|
|
|
- * 非公有制经济组织新增
|
|
|
- * @param json
|
|
|
- * @return AjaxResult
|
|
|
- */
|
|
|
- @PostMapping("/ComprehensiveNonPublicEconomicOrganizations")
|
|
|
- public AjaxResult add(@RequestBody String json) {
|
|
|
- return comprehensiveNonPublicEconomicOrganizationsService.add(json);
|
|
|
- }
|
|
|
- /**
|
|
|
- * 非公有制经济组织修改
|
|
|
- * @param json
|
|
|
- * @return AjaxResult
|
|
|
- */
|
|
|
- @PostMapping("/ComprehensiveNonPublicEconomicOrganizations/put")
|
|
|
- public AjaxResult edit(@RequestBody String json) {
|
|
|
- return comprehensiveNonPublicEconomicOrganizationsService.getInfo(json);
|
|
|
- }
|
|
|
- /**
|
|
|
- * 非公有制经济组织删除
|
|
|
- * @param id
|
|
|
- * @return AjaxResult
|
|
|
- */
|
|
|
- @GetMapping("/ComprehensiveNonPublicEconomicOrganizations/del")
|
|
|
- public AjaxResult remove(@RequestParam("id") List<String> id) {
|
|
|
- return comprehensiveNonPublicEconomicOrganizationsService.remove(id.toArray(new String[0]));
|
|
|
- }
|
|
|
-}
|