feat:自有店逻辑修改
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package com.cool.store.request;
|
||||
|
||||
import com.cool.store.entity.OrderSysInfoDO;
|
||||
import com.cool.store.enums.JoinModeEnum;
|
||||
import com.cool.store.enums.OrderSysTypeEnum;
|
||||
import com.cool.store.enums.SignTypeEnum;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
@@ -115,13 +117,17 @@ public class OrderSysInfoRequest {
|
||||
|
||||
return orderSysInfoDO;
|
||||
}
|
||||
public Boolean check(){
|
||||
public Boolean check(Integer joinMode){
|
||||
if (Objects.equals(this.type, OrderSysTypeEnum.ORDER_SYS_TYPE_1.getType())){
|
||||
if (StringUtils.isAnyBlank(this.xgjRegionId,this.xgjVicePresident,this.declareGoodsDate,this.declareGoodsLogisticsWarehouse,this.declareGoodsType)){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (Objects.equals(this.type, OrderSysTypeEnum.ORDER_SYS_TYPE_2.getType())){
|
||||
//自由店只需要门店编码
|
||||
if (Objects.equals(joinMode, JoinModeEnum.OWN_STORE.getCode())&&this.shopCode!=null){
|
||||
return true;
|
||||
}
|
||||
if (StringUtils.isAnyBlank(this.receivingFirmName,this.receivingMsBankAccount,this.receivingMsBankBranch,this.bankUnionPayAccount,this.shopCode)){
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user