|
@@ -3,8 +3,11 @@ package com.rongwei.bscommon.sys.service.impl;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.rongwei.bscommon.sys.dao.ApsProductDetailDao;
|
|
|
import com.rongwei.bscommon.sys.service.ApsProductDetailService;
|
|
|
+import com.rongwei.bscommon.sys.service.SlaveSourceService;
|
|
|
import com.rongwei.bsentity.domain.ApsProductDetailDo;
|
|
|
+import com.rongwei.bsentity.domain.VNcOrderVo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.Map;
|
|
@@ -20,4 +23,24 @@ import java.util.Map;
|
|
|
@Service
|
|
|
public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao, ApsProductDetailDo> implements ApsProductDetailService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SlaveSourceService slaveSourceService;
|
|
|
+
|
|
|
+ /*
|
|
|
+ 获取客户订单
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public R getCustomOrderData(Map<String, Object> params) {
|
|
|
+ R r = new R();
|
|
|
+ String ncOrderNo = params.get("CUSTOMORDERNO").toString();
|
|
|
+ VNcOrderVo vNcOrderVo = slaveSourceService.getVNcOrderVo(ncOrderNo);
|
|
|
+ if (vNcOrderVo == null) {
|
|
|
+ return R.error("客户订单系统没有找到该订单");
|
|
|
+ } else {
|
|
|
+ vNcOrderVo.setVNcOrderDetailVoList(slaveSourceService.getVNcOrderDetailVo(ncOrderNo));
|
|
|
+ r.setCode("200");
|
|
|
+ r.setData(vNcOrderVo);
|
|
|
+ return r;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|