|
@ -1,6 +1,7 @@ |
|
|
package com.win.web.controller.base; |
|
|
package com.win.web.controller.base; |
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
|
|
|
import com.jcraft.jsch.JSchException; |
|
|
import com.win.common.annotation.Log; |
|
|
import com.win.common.annotation.Log; |
|
|
import com.win.common.constant.HttpStatus; |
|
|
import com.win.common.constant.HttpStatus; |
|
|
import com.win.common.core.domain.AjaxResult; |
|
|
import com.win.common.core.domain.AjaxResult; |
|
@ -76,18 +77,112 @@ public class CommandController { |
|
|
return (AjaxResult) method.invoke(this, body); |
|
|
return (AjaxResult) method.invoke(this, body); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult poreceipt(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "purchaseorder/poreceipt/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult projectdetail(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "project/projectdetail/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult itemmaster(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "items/itemmaster/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult inventorydetail(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "inventory/inventorydetail/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult podetexport(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "puchaseorder/podetexport/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult exportsupplier(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "supplier/exportsupplier/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public AjaxResult discretepo(String body) throws IOException, InterruptedException { |
|
|
public AjaxResult discretepo(String body) throws IOException, InterruptedException { |
|
|
JSONObject jsonObject = JSONObject.parseObject(body); |
|
|
return linuxAccessService.executeCommand(body, "purchaseorder/discretepo/"); |
|
|
jsonObject = JSONObject.parseObject(jsonObject.getString("dsDescreteOrder")); |
|
|
} |
|
|
String domain = jsonObject.getString("domain"); |
|
|
|
|
|
if(domain == null || domain.isEmpty()) { |
|
|
public AjaxResult custrequiredschedule(String body) throws IOException, InterruptedException { |
|
|
return AjaxResult.error(HttpStatus.DOMAIN_ERROR, "域不能为空"); |
|
|
return linuxAccessService.executeCommand(body, "customer/custrequiredschedule/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult qadgrirexport(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "qadgrir/qadgrirexport/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult Unplannedissue(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "transactions/Unplannedissue/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult supplierschedule(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "supplier/supplierschedule/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult bommastr(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "bom/bommastr/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult itemsiteLocdetail(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "items/itemsiteLocdetail/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult backflush(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "workorder/backflush/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult itemsiteplandetail(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "items/itemsiteplandetail/"); |
|
|
} |
|
|
} |
|
|
String companyCode = jsonObject.getString("company_code"); |
|
|
|
|
|
if(companyCode == null || companyCode.isEmpty()) { |
|
|
public AjaxResult supplierasn(String body) throws IOException, InterruptedException { |
|
|
return AjaxResult.error(HttpStatus.COMPANY_CODE_ERROR, "公司编码不能为空"); |
|
|
return linuxAccessService.executeCommand(body, "supplier/supplierasn/"); |
|
|
} |
|
|
} |
|
|
return linuxAccessService.executeCommand(domain, companyCode, "purchaseorder/discretepo/", jsonObject); |
|
|
|
|
|
|
|
|
public AjaxResult supplierinvoicebalance(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "supplier/supplierinvoicebalance/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult createsupplierinvoice(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "supplierinvoice/createsupplierinvoice/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult loadbommstr(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "bommstr/loadbommstr/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult costcenterdetail(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "costcenter/costcenterdetail/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult salesorderexport(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "salesorder/salesorderexport/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult costdetail(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "cost/costdetail/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult exportcustomer(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "customer/exportcustomer/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult routingdetail(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "routing/routingdetail/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult productionschedule(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "production/productionschedule/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult intransfer(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "transactions/intransfer/"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult loadbommastr(String body) throws IOException, InterruptedException { |
|
|
|
|
|
return linuxAccessService.executeCommand(body, "bom/loadbommastr/"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|