//package com.videojet.udisaas.modules.udi.company.controller;
//
//
//import com.alibaba.fastjson.JSONObject;
//import com.fufan.mtsaas.modules.common.bo.request.DataRequest;
//import com.fufan.mtsaas.modules.common.bo.request.DataRequestT;
//import com.fufan.mtsaas.modules.common.bo.request.ResultPack;
//import com.fufan.mtsaas.modules.common.bo.response.RequestPojo;
//import com.fufan.mtsaas.modules.common.bo.response.Result;
//import com.fufan.mtsaas.modules.udi.certificate.dto.TRegistrationCertificateQueryRequest;
//import com.fufan.mtsaas.modules.udi.certificate.dto.TRegistrationCertificateSaveRequest;
//import com.fufan.mtsaas.modules.udi.company.bo.request.CompanyQueryRequest;
//import com.fufan.mtsaas.modules.udi.company.bo.request.CompanySaveRequest;
//import com.fufan.mtsaas.modules.udi.company.bo.response.CompanyDataResponse;
//import com.fufan.mtsaas.modules.udi.company.model.TCompany;
//import com.fufan.mtsaas.modules.udi.company.service.TCompanyPurchaseSvc;
//import com.fufan.mtsaas.modules.udi.company.service.TCompanySvc;
//import com.fufan.mtsaas.util.JSonUtil;
//import com.fufan.mtsaas.util.ParamUtil;
//import io.swagger.annotations.*;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import springfox.documentation.annotations.ApiIgnore;
//
///**
// * <p>
// * 企业信息表
// * </p>
// *
// * @author Liby
// * @since 2022-03-16
// */
//@Api(tags = "企业信息表")
//@RestController
//@RequestMapping("/UDI/Company")
//public class TCompanyPurchaseCtrl {
//    @Autowired
//    private TCompanyPurchaseSvc tCompanyPurchaseSvc;
//
//    /**
//     * 分页查询注册证信息表
//     * */
//    @ApiOperation(value = "分页查询所有注册证信息表，根据需要传入分页参数：pageSize每页数量(默认为10)，currentPage当前页数(默认为1)", httpMethod = "GET", produces = "application/json")
//    @ApiImplicitParams({
//            @ApiImplicitParam(value = "", name = "", dataType = "string", paramType = "query"),
//            @ApiImplicitParam(value = "状态", name = "recStatus", dataType = "string", paramType = "query")
//    })
//    @PostMapping(value ="/doQueryPage")
//    public Result<TRegistrationCertificateSaveRequest> doQueryPage(@RequestBody @ApiIgnore DataRequestT<TRegistrationCertificateQueryRequest> dataRequest, TRegistrationCertificateQueryRequest paramRequest){
//        ResultPack resultPack = new ResultPack();
//        RequestPojo requestPojo = ParamUtil.doChange();
//
//        return resultPack.doResultPack(targetService.doQueryPage(dataRequest.getData().getParam()),requestPojo.getIntfId(),requestPojo.getAppKey());
//    }
//
//    /**
//     * 新增
//     * */
//    @ApiOperation(value = "新增注册证信息表", httpMethod = "POST", produces = "application/json")
//    @ApiResponses({
//            @ApiResponse(code = 4001, message = "参数错误"),
//            @ApiResponse(code = 3002, message = "注册证信息表已存在"),
//            @ApiResponse(code = 3003, message = "新增注册证信息表出错")
//    })
//    @RequestMapping(method = RequestMethod.POST,path = "doSave")
//    public Result<TRegistrationCertificateSaveRequest> doSave(@RequestBody @ApiIgnore DataRequestT<TRegistrationCertificateSaveRequest> dataRequest, TRegistrationCertificateSaveRequest paramRequest){
//        ResultPack resultPack = new ResultPack();
//        RequestPojo requestPojo = ParamUtil.doChange();
//        return resultPack.doResultPack(targetService.doSave(dataRequest.getData().getParam(),requestPojo),requestPojo.getIntfId(),requestPojo.getAppKey());
//    }
//
//    /**
//     * 修改
//     * */
//    @ApiOperation(value = "修改注册证信息表", httpMethod = "PUT", produces = "application/json")
//    @ApiResponses({
//            @ApiResponse(code = 4001, message = "参数错误"),
//            @ApiResponse(code = 3002, message = "注册证信息表已存在"),
//            @ApiResponse(code = 3003, message = "修改注册证信息表出错")
//    })
//    @RequestMapping(method = RequestMethod.PUT,path = "doUpdate")
//    public Result<TRegistrationCertificateSaveRequest> doUpdate(@RequestBody @ApiIgnore DataRequestT<TRegistrationCertificateSaveRequest> dataRequest, TRegistrationCertificateSaveRequest paramRequest){
//        ResultPack resultPack = new ResultPack();
//        RequestPojo requestPojo = ParamUtil.doChange();
//        return resultPack.doResultPack(targetService.doUpdate(dataRequest.getData().getParam(),requestPojo),requestPojo.getIntfId(),requestPojo.getAppKey());
//    }
//
//}
