|
@@ -1,10 +1,12 @@
|
|
package com.yh.saas.plugin.yiliangyiyun.service.impl;
|
|
package com.yh.saas.plugin.yiliangyiyun.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.mapper.EntityWrapper;
|
|
import com.baomidou.mybatisplus.mapper.EntityWrapper;
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.entity.ContractManagementInfo;
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.ContractGoodsInfoMapper;
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.ContractGoodsInfoMapper;
|
|
import com.yh.saas.plugin.yiliangyiyun.service.IContractGoodsInfoService;
|
|
import com.yh.saas.plugin.yiliangyiyun.service.IContractGoodsInfoService;
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.ContractGoodsInfo;
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.ContractGoodsInfo;
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.service.IContractManagementInfoService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -19,14 +21,21 @@ import org.springframework.stereotype.Service;
|
|
@Service
|
|
@Service
|
|
public class ContractGoodsInfoServiceImpl extends ServiceImpl<ContractGoodsInfoMapper, ContractGoodsInfo> implements IContractGoodsInfoService {
|
|
public class ContractGoodsInfoServiceImpl extends ServiceImpl<ContractGoodsInfoMapper, ContractGoodsInfo> implements IContractGoodsInfoService {
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IContractManagementInfoService contractManagementInfoService;
|
|
/**
|
|
/**
|
|
- * 查看
|
|
|
|
|
|
+ * 查看货物信息
|
|
* @param contractId
|
|
* @param contractId
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public ContractGoodsInfo getGoodsName(String contractId){
|
|
|
|
|
|
+ public ContractGoodsInfo getGoodsName(String contractId ,String contractNo){
|
|
|
|
+ //货物信息
|
|
ContractGoodsInfo contractGoodsInfo = this.selectOne(new EntityWrapper<ContractGoodsInfo>().eq(ContractGoodsInfo.QueryFiles.CONTRACT_ID, contractId));
|
|
ContractGoodsInfo contractGoodsInfo = this.selectOne(new EntityWrapper<ContractGoodsInfo>().eq(ContractGoodsInfo.QueryFiles.CONTRACT_ID, contractId));
|
|
|
|
+ //合同信息
|
|
|
|
+ ContractManagementInfo contractManagementInfo = contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>().eq(ContractManagementInfo.QueryFiles.CONTRACT_NO, contractNo));
|
|
|
|
+ contractGoodsInfo.setWeight(contractManagementInfo.getWeight());
|
|
|
|
+ contractGoodsInfo.setUnitContractPrice(contractManagementInfo.getUnitContractPrice());
|
|
return contractGoodsInfo;
|
|
return contractGoodsInfo;
|
|
}
|
|
}
|
|
}
|
|
}
|