|
@@ -829,6 +829,10 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
@Override
|
|
@Override
|
|
|
@Transactional
|
|
@Transactional
|
|
|
public R createOrder(long userId, FsStoreOrderCreateParam param) {
|
|
public R createOrder(long userId, FsStoreOrderCreateParam param) {
|
|
|
|
|
+ FsUserScrm fsuser= userService.selectFsUserById(userId);
|
|
|
|
|
+ if(StringUtils.isEmpty(fsuser.getMaOpenId())){
|
|
|
|
|
+ return R.error(401,"请重新授权登录");
|
|
|
|
|
+ }
|
|
|
FsStoreOrderComputedParam computedParam = new FsStoreOrderComputedParam();
|
|
FsStoreOrderComputedParam computedParam = new FsStoreOrderComputedParam();
|
|
|
BeanUtils.copyProperties(param, computedParam);
|
|
BeanUtils.copyProperties(param, computedParam);
|
|
|
//计算金额
|
|
//计算金额
|
|
@@ -868,7 +872,6 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
String json = configService.selectConfigByKey("store.config");
|
|
String json = configService.selectConfigByKey("store.config");
|
|
|
StoreConfig config= JSONUtil.toBean(json, StoreConfig.class);
|
|
StoreConfig config= JSONUtil.toBean(json, StoreConfig.class);
|
|
|
//绑定销售
|
|
//绑定销售
|
|
|
- FsUserScrm fsuser= userService.selectFsUserById(userId);
|
|
|
|
|
if(ObjectUtil.isEmpty(config.getOrderAttribution())
|
|
if(ObjectUtil.isEmpty(config.getOrderAttribution())
|
|
|
||!config.getOrderAttribution().equals(1)){
|
|
||!config.getOrderAttribution().equals(1)){
|
|
|
if(param.getCompanyUserId()!=null){
|
|
if(param.getCompanyUserId()!=null){
|
|
@@ -4193,6 +4196,9 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
FsUserScrm user=userService.selectFsUserById(order.getUserId());
|
|
FsUserScrm user=userService.selectFsUserById(order.getUserId());
|
|
|
|
|
+ if(StringUtils.isEmpty(user.getMaOpenId())){
|
|
|
|
|
+ return R.error(401,"请重新授权登录");
|
|
|
|
|
+ }
|
|
|
if(user!=null){
|
|
if(user!=null){
|
|
|
//已改价处理
|
|
//已改价处理
|
|
|
if(order.getIsEditMoney()!=null&&order.getIsEditMoney()==1){
|
|
if(order.getIsEditMoney()!=null&&order.getIsEditMoney()==1){
|