feat: 增加发药机的接口对接

Lhxyy
chenhc 3 months ago
parent 100e6c0106
commit b18a57fe98

@ -8,6 +8,9 @@ import com.glxp.mipsdl.req.ctqyy.DlThirdProjectRequest;
import com.glxp.mipsdl.req.ctqyy.FilterThrHslbRequest;
import com.glxp.mipsdl.req.ctqyy.GetSickPrescribeRequest;
import com.glxp.mipsdl.req.ctqyy.GetSickRequest;
import com.glxp.mipsdl.req.drugMachine.PutGoodsA001Request;
import com.glxp.mipsdl.req.drugMachine.PutGoodsB001Request;
import com.glxp.mipsdl.req.drugMachine.SendGoodsB002Request;
import com.glxp.mipsdl.req.post.*;
import com.glxp.mipsdl.res.BaseResponse;
import org.springframework.web.bind.annotation.RequestBody;
@ -296,4 +299,31 @@ public interface BaseHttpClient {
BaseResponse getBuyType();
/**
* A001
* 1
*
* @param putGoodsA001Request
* @return
*/
BaseResponse putGoodsA001(PutGoodsA001Request putGoodsA001Request);
/**
* B001
* 2
*
* @param putGoodsB001Request
* @return
*/
BaseResponse putGoodsB001(PutGoodsB001Request putGoodsB001Request);
/**
* B002
*
*
* @param sendGoodsB002Request
* @return
*/
BaseResponse sendGoodsB002(SendGoodsB002Request sendGoodsB002Request);
}

@ -46,6 +46,9 @@ import com.glxp.mipsdl.entity.thrsys.ThrSystemBusApiEntity;
import com.glxp.mipsdl.http.HttpClient;
import com.glxp.mipsdl.req.base.*;
import com.glxp.mipsdl.req.ctqyy.*;
import com.glxp.mipsdl.req.drugMachine.PutGoodsA001Request;
import com.glxp.mipsdl.req.drugMachine.PutGoodsB001Request;
import com.glxp.mipsdl.req.drugMachine.SendGoodsB002Request;
import com.glxp.mipsdl.req.post.*;
import com.glxp.mipsdl.req.yb.*;
import com.glxp.mipsdl.req.zaxyy.ZaxzyyOrderRequest;
@ -2205,6 +2208,36 @@ public class HlfyyyClient extends CommonHttpClient {
}
@Override
public BaseResponse putGoodsA001(PutGoodsA001Request putGoodsA001Request) {
String httpUrl = "127.0.0.1:10003";
String url = httpUrl + "/****/drugMachine/putGoodsA001";//发药机提供的 A001
// TODO: 2024/12/24 接受来我们自己的现场管理给的参数 去调用 自发药机的 A001 上货接口
return null;
}
@Override
public BaseResponse putGoodsB001(PutGoodsB001Request putGoodsB001Request) {
String httpUrl = "127.0.0.1:10003";
String url = httpUrl + "/wms/drugMachine/putGoodsB001";//我们自己的现场管理提供的 B001
// TODO: 2024/12/24 接受来自发药机给的参数 去调用 我们自己的现场管理 的上货接口
return null;
}
@Override
public BaseResponse sendGoodsB002(SendGoodsB002Request sendGoodsB002Request) {
String httpUrl = "127.0.0.1:10003";
String url = httpUrl + "/wms/drugMachine/sendGoodsB002";//我们自己的现场管理提供的 B002
// TODO: 2024/12/24 接受来自发药机给的参数 去调用 我们自己的现场管理 的发药接口
return null;
}
public void oracleCompatibleCopy(Object source, Object target) {
try {
Class sourceClass = source.getClass();//得到对象的Class

@ -0,0 +1,62 @@
package com.glxp.mipsdl.controller;
import cn.hutool.core.util.StrUtil;
import com.glxp.mipsdl.client.ClientProcessor;
import com.glxp.mipsdl.req.base.UdiwmsQueryUdiInvProductsRequest;
import com.glxp.mipsdl.req.drugMachine.PutGoodsA001Request;
import com.glxp.mipsdl.req.drugMachine.PutGoodsB001Request;
import com.glxp.mipsdl.req.drugMachine.SendGoodsB002Request;
import com.glxp.mipsdl.res.BaseResponse;
import com.glxp.mipsdl.util.ResultVOUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
public class DrugMachineController {
/**
* A001
* 1
*
* @param putGoodsA001Request
* @return
*/
@PostMapping("/drugMachine/putGoods/A001")
public BaseResponse putGoodsA001(@RequestBody PutGoodsA001Request putGoodsA001Request) {
return ClientProcessor.getHttpClient().putGoodsA001(putGoodsA001Request);
}
/**
* B001
* 2
*
* @param putGoodsB001Request
* @return
*/
@PostMapping("/drugMachine/putGoods/B001")
public BaseResponse putGoodsB001(@RequestBody PutGoodsB001Request putGoodsB001Request) {
return ClientProcessor.getHttpClient().putGoodsB001(putGoodsB001Request);
}
/**
* B002
*
*
* @param sendGoodsB002Request
* @return
*/
@PostMapping("/drugMachine/sendGoods/B002")
public BaseResponse sendGoodsB002(@RequestBody SendGoodsB002Request sendGoodsB002Request) {
return ClientProcessor.getHttpClient().sendGoodsB002(sendGoodsB002Request);
}
}

@ -0,0 +1,98 @@
package com.glxp.mipsdl.req.drugMachine;
import lombok.Data;
@Data
public class PutGoodsA001Request {
/**
*
*
*/
private String orderId;
/**
*
*
*/
private String queueCode;
/**
*
*
*/
private String code;
/**
*
*
*/
private String productCode;
/**
*
*
*/
private String productName;
/**
*
*
*/
private String bzgg;
/**
*
*
*/
private String unit;
/**
*
*
*/
private String approvalNum;
/**
*
*
*/
private String prepnUnit;
/**
*
*
*/
private String prepnSpec;
/**
*
*
*/
private Integer count;
/**
* 1
*/
private String remark1;
/**
* 2
*/
private String remark2;
/**
* 3
*/
private String remark3;
/**
* 4
*/
private String remark4;
/**
* 5
*/
private String remark5;
}

@ -0,0 +1,98 @@
package com.glxp.mipsdl.req.drugMachine;
import lombok.Data;
@Data
public class PutGoodsB001Request {
/**
*
*
*/
private String orderId;
/**
*
*
*/
private String queueCode;
/**
*
*
*/
private String code;
/**
*
*
*/
private String productCode;
/**
*
*
*/
private String productName;
/**
*
*
*/
private String bzgg;
/**
*
*
*/
private String unit;
/**
*
*
*/
private String approvalNum;
/**
*
*
*/
private String prepnUnit;
/**
*
*
*/
private String prepnSpec;
/**
*
*
*/
private Integer count;
/**
* 1
*/
private String remark1;
/**
* 2
*/
private String remark2;
/**
* 3
*/
private String remark3;
/**
* 4
*/
private String remark4;
/**
* 5
*/
private String remark5;
}

@ -0,0 +1,105 @@
package com.glxp.mipsdl.req.drugMachine;
import lombok.Data;
@Data
public class SendGoodsB002Request {
/**
*
*
*/
private String orderId;
/**
*
*
*/
private String prescribeNum;
/**
*
*
*/
private String fromCorp;
/**
*
*
*/
private String queueCode;
/**
*
*
*/
private String productCode;
/**
*
*
*/
private String productName;
/**
*
*
*/
private String bzgg;
/**
*
*
*/
private String unit;
/**
*
*
*/
private String approvalNum;
/**
*
*
*/
private String prepnUnit;
/**
*
*
*/
private String prepnSpec;
/**
*
*
*/
private Integer count;
/**
* 1
*/
private String remark1;
/**
* 2
*/
private String remark2;
/**
* 3
*/
private String remark3;
/**
* 4
*/
private String remark4;
/**
* 5
*/
private String remark5;
}
Loading…
Cancel
Save