|
@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
|
-import com.usoftchina.inquiry.api.PublicProductApi;
|
|
|
|
|
import com.usoftchina.saas.account.api.AccountApi;
|
|
import com.usoftchina.saas.account.api.AccountApi;
|
|
|
import com.usoftchina.saas.account.api.CompanyApi;
|
|
import com.usoftchina.saas.account.api.CompanyApi;
|
|
|
import com.usoftchina.saas.base.Result;
|
|
import com.usoftchina.saas.base.Result;
|
|
@@ -27,10 +26,7 @@ import com.usoftchina.saas.document.mapper.*;
|
|
|
import com.usoftchina.saas.document.service.*;
|
|
import com.usoftchina.saas.document.service.*;
|
|
|
import com.usoftchina.saas.exception.BizException;
|
|
import com.usoftchina.saas.exception.BizException;
|
|
|
import com.usoftchina.saas.page.PageRequest;
|
|
import com.usoftchina.saas.page.PageRequest;
|
|
|
-import com.usoftchina.saas.transfers.api.SendMessageApi;
|
|
|
|
|
-import com.usoftchina.saas.transfers.dto.MessageInfo;
|
|
|
|
|
import com.usoftchina.saas.utils.CollectionUtils;
|
|
import com.usoftchina.saas.utils.CollectionUtils;
|
|
|
-import com.usoftchina.saas.utils.JsonUtils;
|
|
|
|
|
import com.usoftchina.saas.utils.ObjectUtils;
|
|
import com.usoftchina.saas.utils.ObjectUtils;
|
|
|
import com.usoftchina.saas.utils.RegexpUtils;
|
|
import com.usoftchina.saas.utils.RegexpUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -61,10 +57,10 @@ public class ProductServiceImpl extends CommonBaseServiceImpl<ProductMapper, Pro
|
|
|
private ProductunitService productunitService;
|
|
private ProductunitService productunitService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ProducttypeService producttypeService;
|
|
private ProducttypeService producttypeService;
|
|
|
- @Autowired
|
|
|
|
|
- private SendMessageApi sendMessageApi;
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private PublicProductApi publicProductApi;
|
|
|
|
|
|
|
+ /*@Autowired
|
|
|
|
|
+ private SendMessageApi sendMessageApi;*/
|
|
|
|
|
+ /*@Autowired
|
|
|
|
|
+ private PublicProductApi publicProductApi;*/
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private CompanyApi companyApi;
|
|
private CompanyApi companyApi;
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -753,8 +749,8 @@ public class ProductServiceImpl extends CommonBaseServiceImpl<ProductMapper, Pro
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public void uploadToB2B() {
|
|
public void uploadToB2B() {
|
|
|
- MessageInfo messageInfo = new MessageInfo(BaseContextHolder.getUserId(), BillCodeSeq.PRODUCT.name(), "", BaseContextHolder.getCompanyId());
|
|
|
|
|
- sendMessageApi.sendMsg(messageInfo);
|
|
|
|
|
|
|
+ /*MessageInfo messageInfo = new MessageInfo(BaseContextHolder.getUserId(), BillCodeSeq.PRODUCT.name(), "", BaseContextHolder.getCompanyId());
|
|
|
|
|
+ sendMessageApi.sendMsg(messageInfo);*/
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -800,7 +796,7 @@ public class ProductServiceImpl extends CommonBaseServiceImpl<ProductMapper, Pro
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public void createProdSaler(ProductSalerDTO productSalerDTO){
|
|
public void createProdSaler(ProductSalerDTO productSalerDTO){
|
|
|
- Long enUU = companyApi.getCompanyById(BaseContextHolder.getCompanyId()).getData().getUu();
|
|
|
|
|
|
|
+ /*Long enUU = companyApi.getCompanyById(BaseContextHolder.getCompanyId()).getData().getUu();
|
|
|
Long userUU = accountApi.getAccountById(BaseContextHolder.getUserId()).getData().getUu();
|
|
Long userUU = accountApi.getAccountById(BaseContextHolder.getUserId()).getData().getUu();
|
|
|
ProductSalerUploadDTO productSalerUploadDTO = new ProductSalerUploadDTO(productSalerDTO.getProdId(), productSalerDTO.getProdCode(), enUU, userUU);
|
|
ProductSalerUploadDTO productSalerUploadDTO = new ProductSalerUploadDTO(productSalerDTO.getProdId(), productSalerDTO.getProdCode(), enUU, userUU);
|
|
|
if (productSalerDTO.getOperate() == 0){
|
|
if (productSalerDTO.getOperate() == 0){
|
|
@@ -811,7 +807,7 @@ public class ProductServiceImpl extends CommonBaseServiceImpl<ProductMapper, Pro
|
|
|
//绑定
|
|
//绑定
|
|
|
publicProductApi.updateProdSaler(JsonUtils.toJsonString(productSalerDTO));
|
|
publicProductApi.updateProdSaler(JsonUtils.toJsonString(productSalerDTO));
|
|
|
productSalerMapper.bind(productSalerDTO.getProdId(), BaseContextHolder.getUserId(), BaseContextHolder.getCompanyId());
|
|
productSalerMapper.bind(productSalerDTO.getProdId(), BaseContextHolder.getUserId(), BaseContextHolder.getCompanyId());
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private List<ProductReserveCostDTO> geReserveCost(ListReqDTO listReqDTO) {
|
|
private List<ProductReserveCostDTO> geReserveCost(ListReqDTO listReqDTO) {
|