All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.dingtalkmanufacturing_1_0.Client Maven / Gradle / Ivy

There is a newer version: 2.1.67
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkmanufacturing_1_0;

import com.aliyun.tea.*;
import com.aliyun.dingtalkmanufacturing_1_0.models.*;

public class Client extends com.aliyun.teaopenapi.Client {

    public Client(com.aliyun.teaopenapi.models.Config config) throws Exception {
        super(config);
        com.aliyun.gateway.dingtalk.Client gatewayClient = new com.aliyun.gateway.dingtalk.Client();
        this._spi = gatewayClient;
        this._signatureAlgorithm = "v2";
        this._endpointRule = "";
        if (com.aliyun.teautil.Common.empty(_endpoint)) {
            this._endpoint = "api.dingtalk.com";
        }

    }


    /**
     * summary : 
     * 

日清月结-计件报工接口

* * @param request IndustrializeManufactureJobBookRequest * @param headers map * @param runtime runtime options for this request RuntimeOptions * @return IndustrializeManufactureJobBookResponse */ public IndustrializeManufactureJobBookResponse industrializeManufactureJobBookWithOptions(String userId, IndustrializeManufactureJobBookRequest request, java.util.Map headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.corpId)) { body.put("corpId", request.corpId); } if (!com.aliyun.teautil.Common.isUnset(request.extend)) { body.put("extend", request.extend); } if (!com.aliyun.teautil.Common.isUnset(request.instNo)) { body.put("instNo", request.instNo); } if (!com.aliyun.teautil.Common.isUnset(request.isBatchJob)) { body.put("isBatchJob", request.isBatchJob); } if (!com.aliyun.teautil.Common.isUnset(request.manufactureDate)) { body.put("manufactureDate", request.manufactureDate); } if (!com.aliyun.teautil.Common.isUnset(request.mesAppKey)) { body.put("mesAppKey", request.mesAppKey); } if (!com.aliyun.teautil.Common.isUnset(request.processEnName)) { body.put("processEnName", request.processEnName); } if (!com.aliyun.teautil.Common.isUnset(request.processName)) { body.put("processName", request.processName); } if (!com.aliyun.teautil.Common.isUnset(request.productCode)) { body.put("productCode", request.productCode); } if (!com.aliyun.teautil.Common.isUnset(request.productEnName)) { body.put("productEnName", request.productEnName); } if (!com.aliyun.teautil.Common.isUnset(request.productName)) { body.put("productName", request.productName); } if (!com.aliyun.teautil.Common.isUnset(request.productSpecification)) { body.put("productSpecification", request.productSpecification); } if (!com.aliyun.teautil.Common.isUnset(request.qualifiedQuantity)) { body.put("qualifiedQuantity", request.qualifiedQuantity); } if (!com.aliyun.teautil.Common.isUnset(request.reworkableQuantity)) { body.put("reworkableQuantity", request.reworkableQuantity); } if (!com.aliyun.teautil.Common.isUnset(request.scrappedQuantity)) { body.put("scrappedQuantity", request.scrappedQuantity); } if (!com.aliyun.teautil.Common.isUnset(request.unitPrice)) { body.put("unitPrice", request.unitPrice); } if (!com.aliyun.teautil.Common.isUnset(request.userIdList)) { body.put("userIdList", request.userIdList); } if (!com.aliyun.teautil.Common.isUnset(request.userName)) { body.put("userName", request.userName); } if (!com.aliyun.teautil.Common.isUnset(request.userNameList)) { body.put("userNameList", request.userNameList); } if (!com.aliyun.teautil.Common.isUnset(request.uuid)) { body.put("uuid", request.uuid); } com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("headers", headers), new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body)) )); com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap( new TeaPair("action", "IndustrializeManufactureJobBook"), new TeaPair("version", "manufacturing_1.0"), new TeaPair("protocol", "HTTP"), new TeaPair("pathname", "/v1.0/manufacturing/users/" + userId + "/jobs"), new TeaPair("method", "POST"), new TeaPair("authType", "Anonymous"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "none"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.execute(params, req, runtime), new IndustrializeManufactureJobBookResponse()); } /** * summary : *

日清月结-计件报工接口

* * @param request IndustrializeManufactureJobBookRequest * @return IndustrializeManufactureJobBookResponse */ public IndustrializeManufactureJobBookResponse industrializeManufactureJobBook(String userId, IndustrializeManufactureJobBookRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); java.util.Map headers = new java.util.HashMap<>(); return this.industrializeManufactureJobBookWithOptions(userId, request, headers, runtime); } /** * summary : *

日清月结-计件报工查询接口

* * @param request IndustrializeManufactureQueryJobsRequest * @param headers IndustrializeManufactureQueryJobsHeaders * @param runtime runtime options for this request RuntimeOptions * @return IndustrializeManufactureQueryJobsResponse */ public IndustrializeManufactureQueryJobsResponse industrializeManufactureQueryJobsWithOptions(IndustrializeManufactureQueryJobsRequest request, IndustrializeManufactureQueryJobsHeaders headers, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception { com.aliyun.teautil.Common.validateModel(request); java.util.Map body = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(request.currentPage)) { body.put("currentPage", request.currentPage); } if (!com.aliyun.teautil.Common.isUnset(request.instNo)) { body.put("instNo", request.instNo); } if (!com.aliyun.teautil.Common.isUnset(request.manufactureDay)) { body.put("manufactureDay", request.manufactureDay); } if (!com.aliyun.teautil.Common.isUnset(request.mesAppKey)) { body.put("mesAppKey", request.mesAppKey); } if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) { body.put("pageSize", request.pageSize); } if (!com.aliyun.teautil.Common.isUnset(request.processName)) { body.put("processName", request.processName); } if (!com.aliyun.teautil.Common.isUnset(request.productCode)) { body.put("productCode", request.productCode); } if (!com.aliyun.teautil.Common.isUnset(request.productName)) { body.put("productName", request.productName); } if (!com.aliyun.teautil.Common.isUnset(request.productSpecification)) { body.put("productSpecification", request.productSpecification); } if (!com.aliyun.teautil.Common.isUnset(request.qualifiedQuantity)) { body.put("qualifiedQuantity", request.qualifiedQuantity); } if (!com.aliyun.teautil.Common.isUnset(request.unitPrice)) { body.put("unitPrice", request.unitPrice); } if (!com.aliyun.teautil.Common.isUnset(request.userId)) { body.put("userId", request.userId); } if (!com.aliyun.teautil.Common.isUnset(request.userIdList)) { body.put("userIdList", request.userIdList); } if (!com.aliyun.teautil.Common.isUnset(request.userName)) { body.put("userName", request.userName); } if (!com.aliyun.teautil.Common.isUnset(request.uuid)) { body.put("uuid", request.uuid); } java.util.Map realHeaders = new java.util.HashMap<>(); if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken)); } com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap( new TeaPair("headers", realHeaders), new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body)) )); com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap( new TeaPair("action", "IndustrializeManufactureQueryJobs"), new TeaPair("version", "manufacturing_1.0"), new TeaPair("protocol", "HTTP"), new TeaPair("pathname", "/v1.0/manufacturing/users/jobs/query"), new TeaPair("method", "POST"), new TeaPair("authType", "AK"), new TeaPair("style", "ROA"), new TeaPair("reqBodyType", "none"), new TeaPair("bodyType", "json") )); return TeaModel.toModel(this.execute(params, req, runtime), new IndustrializeManufactureQueryJobsResponse()); } /** * summary : *

日清月结-计件报工查询接口

* * @param request IndustrializeManufactureQueryJobsRequest * @return IndustrializeManufactureQueryJobsResponse */ public IndustrializeManufactureQueryJobsResponse industrializeManufactureQueryJobs(IndustrializeManufactureQueryJobsRequest request) throws Exception { com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions(); IndustrializeManufactureQueryJobsHeaders headers = new IndustrializeManufactureQueryJobsHeaders(); return this.industrializeManufactureQueryJobsWithOptions(request, headers, runtime); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy