Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
62c647a0
Commit
62c647a0
authored
Jun 06, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控货
parent
72976dc8
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
284 additions
and
14 deletions
+284
-14
CustomerDO.java
...o/module/customer/dal/dataobject/customer/CustomerDO.java
+28
-0
CustomerLineMapper.java
...odule/customer/dal/mysql/customer/CustomerLineMapper.java
+23
-1
CustomerMapper.java
...ao/module/customer/dal/mysql/customer/CustomerMapper.java
+5
-1
CustomerLineService.java
...e/customer/service/customer/line/CustomerLineService.java
+2
-5
CustomerLineServiceImpl.java
...stomer/service/customer/line/CustomerLineServiceImpl.java
+5
-4
CustomerLineDetailVO.java
...odule/customer/vo/customer/line/CustomerLineDetailVO.java
+23
-0
CustomerCreateReqVO.java
...o/module/customer/vo/customer/vo/CustomerCreateReqVO.java
+31
-0
CustomerDetailRespVO.java
.../module/customer/vo/customer/vo/CustomerDetailRespVO.java
+61
-0
CustomerUpdateReqVO.java
...o/module/customer/vo/customer/vo/CustomerUpdateReqVO.java
+36
-0
CustomerOfferBackVo.java
...odule/customer/vo/customerDetail/CustomerOfferBackVo.java
+3
-0
CustomerDetailMapper.xml
...c/main/resources/mapper/customer/CustomerDetailMapper.xml
+4
-1
CustomerController.java
...ustomer/controller/admin/customer/CustomerController.java
+35
-0
OrderBackPageVO.java
.../iocoder/yudao/module/order/vo/order/OrderBackPageVO.java
+19
-1
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+9
-1
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/dataobject/customer/CustomerDO.java
View file @
62c647a0
...
...
@@ -366,6 +366,34 @@ public class CustomerDO extends BaseDO {
@ApiModelProperty
(
"延期申请次数"
)
private
int
delayApprovalNum
;
/**
* 年度发货量
*/
private
Integer
annualShipmentAmount
;
/**
* 年度发货次数
*/
private
Integer
annualShipmentNum
;
/**
* 竞争对手
*/
private
String
competitor
;
/**
* 首次成交时间
*/
private
Date
firstDate
;
/**
* 获取获取方式
*/
private
int
getWay
;
/**
* 创建入口
*/
private
int
createEntrance
;
/**
* vip等级-中文
*/
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/mysql/customer/CustomerLineMapper.java
View file @
62c647a0
...
...
@@ -4,9 +4,13 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult;
import
cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX
;
import
cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.line.CustomerLineDO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineDetailVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineExportReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLinePageReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.vo.UserVo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.ResultType
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
...
...
@@ -37,5 +41,23 @@ public interface CustomerLineMapper extends BaseMapperX<CustomerLineDO> {
.
betweenIfPresent
(
CustomerLineDO:
:
getCreateTime
,
reqVO
.
getBeginCreateTime
(),
reqVO
.
getEndCreateTime
())
.
orderByDesc
(
CustomerLineDO:
:
getId
));
}
@ResultType
(
CustomerLineDetailVO
.
class
)
@Select
(
"SELECT "
+
"l.*, "
+
" dep.title_zh as departureNameZh ,"
+
" dep.title_en as departureNameEn ,"
+
"GROUP_CONCAT(obje.title_zh) as objectiveNameZh,"
+
"GROUP_CONCAT(obje.title_en) as objectiveNameEn "
+
""
+
"FROM "
+
"ecw_customer_line l "
+
"LEFT JOIN ecw_warehouse dep ON dep.id = l.departure_id AND dep.deleted = 0 "
+
" LEFT JOIN ecw_warehouse obje ON FIND_IN_SET(obje.id,l.objective_ids) AND obje.deleted = 0 "
+
"WHERE "
+
"l.customer_id = #{customerId} "
+
" AND l.deleted = 0 "
+
""
+
"GROUP BY l.id"
+
""
)
List
<
CustomerLineDetailVO
>
getCustomerLineDataListByCustomerId
(
Long
customerId
);
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/mysql/customer/CustomerMapper.java
View file @
62c647a0
...
...
@@ -72,7 +72,9 @@ public interface CustomerMapper extends BaseMapperX<CustomerDO> {
"n.title_zh as pickup_point_name_zh, n.title_en as pickup_point_name_en,"
,
""
,
"c.customer_service,"
,
"u.nickname as customer_service_name"
,
"u.nickname as customer_service_name,"
,
"dict.label as resourceTypeName , "
,
"u2.nickname as updaterName"
,
""
,
"from ecw_customer c"
,
"left join ecw_customer_level cl on c.level = cl.id"
,
...
...
@@ -82,6 +84,8 @@ public interface CustomerMapper extends BaseMapperX<CustomerDO> {
"left join ecw_product p on c.product_id = p.id"
,
"left join ecw_node n on c.pickup_point = n.id"
,
"left join system_user u on c.customer_service = u.id"
,
"left join system_user u2 on c.updater = u2.id"
,
"left join system_dict_data dict ON c.resource_type =dict.value and dict.dict_type = 'customer_resource_type' "
,
"where c.id = #{id}"
,
"</script>"
})
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/line/CustomerLineService.java
View file @
62c647a0
...
...
@@ -3,10 +3,7 @@ package cn.iocoder.yudao.module.customer.service.customer.line;
import
cn.iocoder.yudao.framework.common.pojo.PageResult
;
import
cn.iocoder.yudao.framework.mybatis.core.service.IService
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.line.CustomerLineDO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineCreateReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineExportReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLinePageReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineUpdateReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.*
;
import
cn.iocoder.yudao.module.customer.vo.zhongPao.CustomerZhongPaoQueryVO
;
import
javax.validation.Valid
;
...
...
@@ -73,5 +70,5 @@ public interface CustomerLineService extends IService<CustomerLineDO> {
*/
List
<
CustomerLineDO
>
getCustomerLineList
(
CustomerLineExportReqVO
exportReqVO
);
List
<
CustomerLineDetailVO
>
getCustomerLineDataListByCustomerId
(
Long
customerId
)
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/line/CustomerLineServiceImpl.java
View file @
62c647a0
...
...
@@ -7,10 +7,7 @@ import cn.iocoder.yudao.framework.mybatis.core.service.AbstractService;
import
cn.iocoder.yudao.module.customer.convert.customer.line.CustomerLineConvert
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.line.CustomerLineDO
;
import
cn.iocoder.yudao.module.customer.dal.mysql.customer.CustomerLineMapper
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineCreateReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineExportReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLinePageReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineUpdateReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.*
;
import
cn.iocoder.yudao.module.customer.vo.zhongPao.CustomerZhongPaoQueryVO
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
org.springframework.stereotype.Service
;
...
...
@@ -93,4 +90,8 @@ public class CustomerLineServiceImpl extends AbstractService<CustomerLineMapper,
return
customerLineMapper
.
selectList
(
exportReqVO
);
}
@Override
public
List
<
CustomerLineDetailVO
>
getCustomerLineDataListByCustomerId
(
Long
customerId
)
{
return
customerLineMapper
.
getCustomerLineDataListByCustomerId
(
customerId
);
}
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/line/CustomerLineDetailVO.java
0 → 100644
View file @
62c647a0
package
cn
.
iocoder
.
yudao
.
module
.
customer
.
vo
.
customer
.
line
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.line.CustomerLineDO
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
@ApiModel
(
"管理后台 - 客户线路 Response VO"
)
@Data
public
class
CustomerLineDetailVO
extends
CustomerLineDO
{
@ApiModelProperty
(
value
=
"指定路线始发港"
)
private
String
departureNameZh
;
private
String
departureNameEn
;
@ApiModelProperty
(
value
=
"指定路线目的地"
)
private
String
objectiveNameZh
;
private
String
objectiveNameEn
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/vo/CustomerCreateReqVO.java
View file @
62c647a0
...
...
@@ -191,5 +191,36 @@ public class CustomerCreateReqVO extends CustomerBaseVO {
*/
private
Boolean
isPotential
=
false
;
/**
* 年度发货量
*/
private
Integer
annualShipmentAmount
;
/**
* 年度发货次数
*/
private
Integer
annualShipmentNum
;
/**
* 竞争对手
*/
private
String
competitor
;
private
Boolean
defaultPay
=
false
;
/**
* 控货无收货人,1-是,0-否
*/
private
Boolean
noConsignee
=
false
;
/**
* 首次成交时间
*/
private
Date
firstDate
;
/**
* 获取获取方式
*/
private
int
getWay
;
/**
* 创建入口
*/
private
int
createEntrance
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/vo/CustomerDetailRespVO.java
View file @
62c647a0
...
...
@@ -32,6 +32,9 @@ public class CustomerDetailRespVO extends CustomerBaseVO {
@ApiModelProperty
(
value
=
"客户资源类型"
,
notes
=
"参见customer_resource_type数据字典"
)
private
Integer
resourceType
;
@ApiModelProperty
(
value
=
"客户资源类型"
,
notes
=
"参见customer_resource_type数据字典"
)
private
String
resourceTypeName
;
@ApiModelProperty
(
value
=
"是否在公海"
)
private
Boolean
isInOpenSea
;
...
...
@@ -132,9 +135,21 @@ public class CustomerDetailRespVO extends CustomerBaseVO {
@ApiModelProperty
(
value
=
"重货标准(CBM)"
)
private
BigDecimal
weightUnit
;
@ApiModelProperty
(
value
=
"重货标准-指定路线始发港"
)
private
String
weightDepartureName
;
@ApiModelProperty
(
value
=
"重货标准-指定路线目的地"
)
private
String
weightObjectiveName
;
@ApiModelProperty
(
value
=
"泡货标准(CBM)"
)
private
BigDecimal
lightUnit
;
@ApiModelProperty
(
value
=
"泡货标准-指定路线始发港"
)
private
String
lightDepartureName
;
@ApiModelProperty
(
value
=
"泡货标准-指定路线目的地"
)
private
String
lightObjectiveName
;
@ApiModelProperty
(
value
=
"询价详情"
)
private
String
enquiryInfo
;
...
...
@@ -203,4 +218,50 @@ public class CustomerDetailRespVO extends CustomerBaseVO {
@ApiModelProperty
(
value
=
"付款人姓名"
)
private
String
payerName
;
@ApiModelProperty
(
value
=
"更新人id"
)
private
Long
updater
;
@ApiModelProperty
(
value
=
"更新人姓名"
)
private
String
updaterName
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
/**
* 年度发货量
*/
@ApiModelProperty
(
value
=
"年度发货量"
)
private
Integer
annualShipmentAmount
;
/**
* 年度发货次数
*/
@ApiModelProperty
(
value
=
"年度发货次数"
)
private
Integer
annualShipmentNum
;
/**
* 竞争对手
*/
@ApiModelProperty
(
value
=
"竞争对手"
)
private
String
competitor
;
private
Boolean
defaultPay
;
/**
* 控货无收货人,1-是,0-否
*/
private
Boolean
noConsignee
;
/**
* 首次成交时间
*/
private
Date
firstDate
;
/**
* 获取获取方式
*/
private
int
getWay
;
/**
* 创建入口
*/
private
int
createEntrance
;
@ApiModelProperty
(
value
=
"归属时间"
)
private
Date
ownershipTime
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/vo/CustomerUpdateReqVO.java
View file @
62c647a0
...
...
@@ -181,4 +181,40 @@ public class CustomerUpdateReqVO extends CustomerBaseVO {
@ApiModelProperty
(
value
=
"是否潜在客户"
)
private
Boolean
isPotential
=
false
;
/**
* 年度发货量
*/
@ApiModelProperty
(
value
=
"年度发货量"
)
private
Integer
annualShipmentAmount
;
/**
* 年度发货次数
*/
@ApiModelProperty
(
value
=
"年度发货次数"
)
private
Integer
annualShipmentNum
;
/**
* 竞争对手
*/
@ApiModelProperty
(
value
=
"竞争对手"
)
private
String
competitor
;
private
Boolean
defaultPay
=
false
;
/**
* 控货无收货人,1-是,0-否
*/
private
Boolean
noConsignee
=
false
;
/**
* 首次成交时间
*/
private
Date
firstDate
;
/**
* 获取获取方式
*/
private
int
getWay
;
/**
* 创建入口
*/
private
int
createEntrance
;
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customerDetail/CustomerOfferBackVo.java
View file @
62c647a0
...
...
@@ -21,6 +21,9 @@ public class CustomerOfferBackVo {
@ApiModelProperty
(
value
=
"客户名称"
)
private
String
consignorName
;
@ApiModelProperty
(
value
=
"联系方式"
)
private
String
phone
;
@ApiModelProperty
(
value
=
"目的地中文"
)
private
String
objectiveName
;
...
...
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerDetailMapper.xml
View file @
62c647a0
...
...
@@ -19,11 +19,14 @@
s.title_en as objective_name_en,
t.status as status,
t.stop_time as stop_time,
u.nickname as business_manager_name
u.nickname as business_manager_name ,
ecc.name as consignorName ,
concat(ecc.area_code, ecc.phone_new, '') as phone
from ecw_offer t
left join ecw_region s
on t.objective_id = s.id
left join system_user u on t.follow_up_salesman_id = u.id
left join ecw_customer_contacts ecc on ecc.customer_id = t.relation_id and ecc.deleted = 0
${ew.customSqlSegment}
</select>
<select
id=
"selectCustomerFollowPage"
...
...
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customer/CustomerController.java
View file @
62c647a0
...
...
@@ -26,6 +26,7 @@ import cn.iocoder.yudao.module.customer.dto.CustomerHandoverApprovalInfoDto;
import
cn.iocoder.yudao.module.customer.dto.CustomerPageReqDTO
;
import
cn.iocoder.yudao.module.customer.service.customer.CustomerService
;
import
cn.iocoder.yudao.module.customer.service.customer.commission.CustomerCommissionService
;
import
cn.iocoder.yudao.module.customer.service.customer.line.CustomerLineService
;
import
cn.iocoder.yudao.module.customer.service.customerBank.CustomerBankService
;
import
cn.iocoder.yudao.module.customer.service.customerContacts.CustomerContactsService
;
import
cn.iocoder.yudao.module.customer.service.customerCredit.CustomerCreditService
;
...
...
@@ -34,6 +35,7 @@ import cn.iocoder.yudao.module.customer.service.customerPublicCatchLog.CustomerP
import
cn.iocoder.yudao.module.customer.service.zhongPao.ZhongPaoService
;
import
cn.iocoder.yudao.module.customer.vo.customer.customerContacts.CustomerContactsCreateReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.customerContacts.CustomerContactsUpdateReqVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.line.CustomerLineDetailVO
;
import
cn.iocoder.yudao.module.customer.vo.customer.vo.*
;
import
cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankBackVO
;
import
cn.iocoder.yudao.module.customer.vo.customerBank.CustomerBankQueryVO
;
...
...
@@ -93,6 +95,9 @@ public class CustomerController {
@Resource
private
CustomerBankService
customerBankService
;
@Resource
private
CustomerLineService
customerLineService
;
@Resource
private
CustomerPublicCatchLogService
publicCatchLogService
;
...
...
@@ -352,6 +357,36 @@ public class CustomerController {
.
stream
().
sorted
(
Comparator
.
comparing
(
CustomerBankBackVO:
:
getId
)).
collect
(
Collectors
.
toList
());
respVO
.
setCustomerBankBackVOList
(
customerBankBackVOS
);
//重泡货标准-指定线路
// List<CustomerLineDO> customerLineDOS = customerLineService.selectList(CustomerLineDO::getCustomerId, respVO.getId());
List
<
CustomerLineDetailVO
>
customerLineDOS
=
customerLineService
.
getCustomerLineDataListByCustomerId
(
respVO
.
getId
())
;
if
(
CollectionUtil
.
isNotEmpty
(
customerLineDOS
)){
CustomerLineDetailVO
zhongLineDO
=
customerLineDOS
.
stream
().
filter
(
l
->
l
.
getZhongPaoType
().
equals
(
"1"
)
||
l
.
getZhongPaoType
()==
1
).
findFirst
().
orElse
(
null
);
if
(
Objects
.
nonNull
(
zhongLineDO
)
){
//始发港
if
(
Objects
.
nonNull
(
zhongLineDO
.
getDepartureId
())
&&
zhongLineDO
.
getDepartureId
()>
0
&&
StringUtils
.
isNotEmpty
(
zhongLineDO
.
getDepartureNameZh
())){
respVO
.
setWeightDepartureName
(
zhongLineDO
.
getDepartureNameZh
())
;
}
//目的港
if
(
Objects
.
nonNull
(
zhongLineDO
.
getObjectiveIds
())
&&
StringUtils
.
isNotEmpty
(
zhongLineDO
.
getObjectiveIds
())
&&
StringUtils
.
isNotEmpty
(
zhongLineDO
.
getObjectiveNameZh
())){
respVO
.
setWeightObjectiveName
(
zhongLineDO
.
getObjectiveNameZh
())
;
}
}
CustomerLineDetailVO
paoLineDO
=
customerLineDOS
.
stream
().
filter
(
l
->
l
.
getZhongPaoType
().
equals
(
"2"
)
||
l
.
getZhongPaoType
()==
2
).
findFirst
().
orElse
(
null
);
if
(
Objects
.
nonNull
(
paoLineDO
)){
//始发港
if
(
Objects
.
nonNull
(
paoLineDO
.
getDepartureId
())
&&
paoLineDO
.
getDepartureId
()>
0
&&
StringUtils
.
isNotEmpty
(
paoLineDO
.
getDepartureNameZh
())){
respVO
.
setLightDepartureName
(
paoLineDO
.
getDepartureNameZh
())
;
}
//目的港
if
(
Objects
.
nonNull
(
paoLineDO
.
getObjectiveIds
())
&&
StringUtils
.
isNotEmpty
(
paoLineDO
.
getObjectiveIds
())
&&
StringUtils
.
isNotEmpty
(
paoLineDO
.
getObjectiveNameZh
())){
respVO
.
setLightObjectiveName
(
paoLineDO
.
getObjectiveNameZh
())
;
}
}
}
return
success
(
respVO
);
}
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderBackPageVO.java
View file @
62c647a0
...
...
@@ -159,6 +159,8 @@ public class OrderBackPageVO {
@ApiModelProperty
(
value
=
"下单的客户id"
,
required
=
true
)
private
Long
customerId
;
@ApiModelProperty
(
value
=
"业绩归属客户方"
)
private
String
customerName
;
/**
* 完成入仓的入仓体积
*/
...
...
@@ -381,6 +383,9 @@ public class OrderBackPageVO {
*/
@ApiModelProperty
(
value
=
"报价单ID"
)
private
Long
offerId
;
@ApiModelProperty
(
value
=
"报价单编号"
)
private
String
offerNo
;
/**
* 报价单状态
*/
...
...
@@ -451,7 +456,7 @@ public class OrderBackPageVO {
private
Boolean
isReleaseAfterGoods
;
/**
* 端口
{@link UserTypeEnum}
* 端口
UserTypeEnum
*/
@ApiModelProperty
(
value
=
"端口(默认管理端)"
)
private
Integer
userType
=
2
;
...
...
@@ -459,6 +464,19 @@ public class OrderBackPageVO {
@ApiModelProperty
(
value
=
"语言"
)
private
Integer
lang
;
private
Data
unloadTime
;
@ApiModelProperty
(
value
=
"入库总箱数"
)
private
int
chargeQuantity
;
@ApiModelProperty
(
value
=
"提货数"
)
private
int
pickNum
;
/*
提货率
*/
@ApiModelProperty
(
value
=
"提货率"
)
private
String
thL
;
public
void
setGuanLianOrderStatus
(
String
guanLianOrderStatus
)
{
this
.
guanLianOrderStatus
=
guanLianOrderStatus
;
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
62c647a0
...
...
@@ -1005,8 +1005,11 @@
o.exception_reason,
o.is_exception,
o.create_time,
o.customer_id ,
o.load_time,
o.unload_time ,
(select su.nickname from system_user su where su.deleted = 0 and su.id = o.salesman_id) as salesman_name,
ecu.name as customer_name,
(select min(wi.`in_time`) from ecw_order_warehouse_in wi where wi.deleted = 0 and wi.order_id = o.order_id ) as
in_time,
if(#{query.userType} = 1, 1, 2) as user_type,
...
...
@@ -1020,7 +1023,10 @@
nee.country_code as consignee_country_code,
if(#{query.lang} = 0, channel.name_zh, channel.name_en) as channel_name,
o.update_time,
#{query.lang} as lang
#{query.lang} as lang ,
offer.offer_id as offerId ,
offer.number as offerNo
from ecw_order o
left join (
SELECT
...
...
@@ -1040,6 +1046,8 @@
left join ecw_order_consignor nor on nor.order_id = o.order_id
left join ecw_order_consignee nee on nee.order_id = o.order_id
left join ecw_channel channel on channel.channel_id = o.channel_id
left join ecw_offer offer on offer.order_id = o.order_id and offer.deleted = 0
left join ecw_customer ecu on ecu.id = o.customer_id and ecu.deleted = 0
where o.deleted = 0 and o.in_warehouse_state != 211 and o.in_warehouse_state != 208 and o.status != 10
<if
test=
"query.deptId != null "
>
AND o.dept_id = #{query.deptId}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment