|
@@ -9,6 +9,7 @@ import com.yh.saas.plugin.yiliangyiyun.entity.AgentCargoOwnerInfo;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.CargoOwnerCompInfo;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.CargoOwnerInfo;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.CompanyInfo;
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.entity.view.GoodsSourceView;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.mapper.CargoOwnerCompInfoMapper;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.service.IAgentCargoOwnerInfoService;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.service.ICargoOwnerCompInfoService;
|
|
@@ -18,7 +19,9 @@ import com.yh.saas.plugin.yiliangyiyun.service.ICompanyInfoService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -188,4 +191,27 @@ public class CargoOwnerCompInfoServiceImpl extends ServiceImpl<CargoOwnerCompInf
|
|
|
}
|
|
|
return "NG";
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发布任务货主列表
|
|
|
+ * @param commonId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public GoodsSourceView cargoOwnerList (String commonId){
|
|
|
+ //查询货主所属公司
|
|
|
+ List<CargoOwnerCompInfo> cargoOwnerCompInfos = this.selectList(new EntityWrapper<CargoOwnerCompInfo>()
|
|
|
+ .eq("common_id",commonId).eq("status_key","9").eq("delete_flag","0"));
|
|
|
+ //查询认证企业
|
|
|
+ List<CompanyInfo> companyInfos = companyInfoService.selectList(new EntityWrapper<CompanyInfo>().eq("common_id",commonId)
|
|
|
+ .eq("status_key","5").eq("delete_flag","0"));
|
|
|
+ GoodsSourceView goodsSourceView1 = new GoodsSourceView();
|
|
|
+ if (!CollectionUtils.isEmpty(cargoOwnerCompInfos)){
|
|
|
+ goodsSourceView1.setCargoOwnerCompInfoList(cargoOwnerCompInfos);
|
|
|
+ }
|
|
|
+ if (!CollectionUtils.isEmpty(companyInfos)){
|
|
|
+ goodsSourceView1.setCompanyInfoList(companyInfos);
|
|
|
+ }
|
|
|
+ return goodsSourceView1;
|
|
|
+ }
|
|
|
}
|