|
|
|
@ -11,6 +11,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import com.glxp.mipsdl.client.CommonHttpClient;
|
|
|
|
|
import com.glxp.mipsdl.client.ptxhyy.entity.OrderUploadResponse;
|
|
|
|
|
import com.glxp.mipsdl.client.ptxhyy.entity.ThrHslbEntity;
|
|
|
|
|
import com.glxp.mipsdl.client.ptxhyy.entity.ThrHslbService;
|
|
|
|
|
import com.glxp.mipsdl.config.ThirdSysConfig;
|
|
|
|
|
import com.glxp.mipsdl.constant.ConstantType;
|
|
|
|
|
import com.glxp.mipsdl.constant.Constants;
|
|
|
|
@ -80,6 +82,8 @@ public class PtxhyyClient extends CommonHttpClient {
|
|
|
|
|
private final IoOrderDetailBizDao orderDetailBizDao;
|
|
|
|
|
private final SubmitOrderUtil submitOrderUtil;
|
|
|
|
|
private final ThrProductsDao thrProductsDao;
|
|
|
|
|
@Resource
|
|
|
|
|
ThrHslbService thrHslbService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse submitOrders(UdiwmsOrderRequest udiwmsOrderRequest) {
|
|
|
|
@ -235,7 +239,13 @@ public class PtxhyyClient extends CommonHttpClient {
|
|
|
|
|
if (invoiceList.get(0).getInvoiceDate() != null)
|
|
|
|
|
fprq = DateUtil.formatDateTime(invoiceList.get(0).getInvoiceDate());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String hsfl = "";
|
|
|
|
|
if (StrUtil.isNotEmpty(i.getCplb())) {
|
|
|
|
|
ThrHslbEntity thrHslbEntity = thrHslbService.getOne(new QueryWrapper<ThrHslbEntity>().eq("hslb", i.getCplb()), false);
|
|
|
|
|
if (thrHslbEntity != null) {
|
|
|
|
|
hsfl = thrHslbEntity.getHsbm();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
BigDecimal wzje = i.getPrice().multiply(BigDecimal.valueOf(i.getCount().intValue()));
|
|
|
|
|
PtxhyyOrderDetailRequest detailRequest = PtxhyyOrderDetailRequest.builder()
|
|
|
|
|
.wzxh(i.getProductId())
|
|
|
|
@ -247,7 +257,7 @@ public class PtxhyyClient extends CommonHttpClient {
|
|
|
|
|
.lsje(wzje)
|
|
|
|
|
.wzje(wzje + "")
|
|
|
|
|
.udim(udim)
|
|
|
|
|
.hsfl(i.getCplb())
|
|
|
|
|
.hsfl(hsfl)
|
|
|
|
|
.wzph(i.getBatchNo())
|
|
|
|
|
.fphm(fphm)
|
|
|
|
|
.fprq(fprq)
|
|
|
|
@ -378,4 +388,12 @@ public class PtxhyyClient extends CommonHttpClient {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// public void getHslb() {
|
|
|
|
|
// String response = httpClient.postJson(thrSystemDetailService.getUrl(null), udiwmsUnitRequest);
|
|
|
|
|
// BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class);
|
|
|
|
|
// return baseResponse;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|