匯入專案
gradle.properties 要加入 wk 系統
dep.wk.version = latest-SNAPSHOT
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
之後請
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
加入 DBCSC 資料庫設定
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
參數說明
要提供兩個參數
-
產品別:不可為空
- IA:鋼板W41(鋼板:值要再乘0.99)
- ID:條線W421、W423、W43、W434、W433
- IH:熱軋Y4213、Y4222、Y4224、Y4232、Y4233
- IF:冷軋F10、F30、F40、F50、F60、F66(冷軋:加總之後的值要再乘1.03)
-
日期: 可以是西元6碼格式如201909,或西元8碼格式如20190930,如 日期為空WK自行取當日做為日期
使用範例
import
import com.csc.wk.api.WKProductPlanAPI;
import com.csc.wk.api.model.WKProductPlanDataResult;
private WKProductPlanAPI api;
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
取值
WKProductPlanDataResult plan = new WKProductPlanDataResult();
plan = api.getPlan("IF", "201909");
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
回覆資料內容格式說明
提供計畫接收量 map 跟 json 格式,請您視情況使用
- getRtnCode
回傳執行狀態(空白表示正確, * 表示發生錯誤)
- getRtnMsg
執行訊息
- getPlanDataMap
每日計劃量 Map<String, Object> 格式,呈現如下
- getPlanDataJson
每日計劃量 JSONArray 格式,呈現如下
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →