Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
75ce0f2b
Commit
75ce0f2b
authored
Jul 22, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增授权藏家直接发货的功能,藏家可以直接看到用户的收货信息,依然有中转单,但是中转单的地址直接为用户收货地址,不再是平台的收货地址
parent
a6328afc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
189 additions
and
15 deletions
+189
-15
ch-dao/src/main/java/com/wwdz/ch/db/domain/CollectorWhiteList.java
...c/main/java/com/wwdz/ch/db/domain/CollectorWhiteList.java
+12
-3
ch-dao/src/main/java/com/wwdz/ch/db/domain/CollectorWhiteListExample.java
...java/com/wwdz/ch/db/domain/CollectorWhiteListExample.java
+132
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/CollectorWhiteListMapper.xml
...ources/com/wwdz/ch/db/mapper/CollectorWhiteListMapper.xml
+23
-8
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
...ch/wx/impl/distribution/DistributionOrderServiceImpl.java
+9
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributorShareRecordServiceImpl.java
.../impl/distribution/DistributorShareRecordServiceImpl.java
+0
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/LogisticsServiceImpl.java
...om/wwdz/ch/wx/impl/distribution/LogisticsServiceImpl.java
+13
-1
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/domain/CollectorWhiteList.java
View file @
75ce0f2b
...
@@ -11,7 +11,7 @@ import lombok.Data;
...
@@ -11,7 +11,7 @@ import lombok.Data;
/**
/**
* @author shiyu
* @author shiyu
* @date 2024/0
6/18
* @date 2024/0
7/22
*/
*/
@Data
@Data
public
class
CollectorWhiteList
implements
Entity
{
public
class
CollectorWhiteList
implements
Entity
{
...
@@ -37,6 +37,11 @@ public class CollectorWhiteList implements Entity {
...
@@ -37,6 +37,11 @@ public class CollectorWhiteList implements Entity {
*/
*/
private
Boolean
isValid
;
private
Boolean
isValid
;
/**
* 直接发货权限1可以0不可以
*/
private
Integer
deliveryAuth
;
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
@Override
...
@@ -50,6 +55,7 @@ public class CollectorWhiteList implements Entity {
...
@@ -50,6 +55,7 @@ public class CollectorWhiteList implements Entity {
sb
.
append
(
", channelCostRebate="
).
append
(
channelCostRebate
);
sb
.
append
(
", channelCostRebate="
).
append
(
channelCostRebate
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", isValid="
).
append
(
isValid
);
sb
.
append
(
", deliveryAuth="
).
append
(
deliveryAuth
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
...
@@ -71,7 +77,8 @@ public class CollectorWhiteList implements Entity {
...
@@ -71,7 +77,8 @@ public class CollectorWhiteList implements Entity {
&&
(
this
.
getCollectorId
()
==
null
?
other
.
getCollectorId
()
==
null
:
this
.
getCollectorId
().
equals
(
other
.
getCollectorId
()))
&&
(
this
.
getCollectorId
()
==
null
?
other
.
getCollectorId
()
==
null
:
this
.
getCollectorId
().
equals
(
other
.
getCollectorId
()))
&&
(
this
.
getChannelCostRebate
()
==
null
?
other
.
getChannelCostRebate
()
==
null
:
this
.
getChannelCostRebate
().
equals
(
other
.
getChannelCostRebate
()))
&&
(
this
.
getChannelCostRebate
()
==
null
?
other
.
getChannelCostRebate
()
==
null
:
this
.
getChannelCostRebate
().
equals
(
other
.
getChannelCostRebate
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()));
&&
(
this
.
getIsValid
()
==
null
?
other
.
getIsValid
()
==
null
:
this
.
getIsValid
().
equals
(
other
.
getIsValid
()))
&&
(
this
.
getDeliveryAuth
()
==
null
?
other
.
getDeliveryAuth
()
==
null
:
this
.
getDeliveryAuth
().
equals
(
other
.
getDeliveryAuth
()));
}
}
@Override
@Override
...
@@ -83,6 +90,7 @@ public class CollectorWhiteList implements Entity {
...
@@ -83,6 +90,7 @@ public class CollectorWhiteList implements Entity {
result
=
prime
*
result
+
((
getChannelCostRebate
()
==
null
)
?
0
:
getChannelCostRebate
().
hashCode
());
result
=
prime
*
result
+
((
getChannelCostRebate
()
==
null
)
?
0
:
getChannelCostRebate
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
result
=
prime
*
result
+
((
getIsValid
()
==
null
)
?
0
:
getIsValid
().
hashCode
());
result
=
prime
*
result
+
((
getDeliveryAuth
()
==
null
)
?
0
:
getDeliveryAuth
().
hashCode
());
return
result
;
return
result
;
}
}
...
@@ -98,7 +106,8 @@ public class CollectorWhiteList implements Entity {
...
@@ -98,7 +106,8 @@ public class CollectorWhiteList implements Entity {
collectorId
(
"collector_id"
,
"collectorId"
,
"BIGINT"
,
false
),
collectorId
(
"collector_id"
,
"collectorId"
,
"BIGINT"
,
false
),
channelCostRebate
(
"channel_cost_rebate"
,
"channelCostRebate"
,
"DECIMAL"
,
false
),
channelCostRebate
(
"channel_cost_rebate"
,
"channelCostRebate"
,
"DECIMAL"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
);
isValid
(
"is_valid"
,
"isValid"
,
"BIT"
,
false
),
deliveryAuth
(
"delivery_auth"
,
"deliveryAuth"
,
"INTEGER"
,
false
);
/**
/**
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/CollectorWhiteListExample.java
View file @
75ce0f2b
...
@@ -808,6 +808,138 @@ public class CollectorWhiteListExample {
...
@@ -808,6 +808,138 @@ public class CollectorWhiteListExample {
addCriterion
(
"is_valid not between"
,
value1
,
value2
,
"isValid"
);
addCriterion
(
"is_valid not between"
,
value1
,
value2
,
"isValid"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andDeliveryAuthIsNull
()
{
addCriterion
(
"delivery_auth is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthIsNotNull
()
{
addCriterion
(
"delivery_auth is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthEqualTo
(
Integer
value
)
{
addCriterion
(
"delivery_auth ="
,
value
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeliveryAuthEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"delivery_auth = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthNotEqualTo
(
Integer
value
)
{
addCriterion
(
"delivery_auth <>"
,
value
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeliveryAuthNotEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"delivery_auth <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthGreaterThan
(
Integer
value
)
{
addCriterion
(
"delivery_auth >"
,
value
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeliveryAuthGreaterThanColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"delivery_auth > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"delivery_auth >="
,
value
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeliveryAuthGreaterThanOrEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"delivery_auth >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthLessThan
(
Integer
value
)
{
addCriterion
(
"delivery_auth <"
,
value
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeliveryAuthLessThanColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"delivery_auth < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"delivery_auth <="
,
value
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table collector_white_list
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andDeliveryAuthLessThanOrEqualToColumn
(
CollectorWhiteList
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"delivery_auth <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"delivery_auth in"
,
values
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"delivery_auth not in"
,
values
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"delivery_auth between"
,
value1
,
value2
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
public
Criteria
andDeliveryAuthNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"delivery_auth not between"
,
value1
,
value2
,
"deliveryAuth"
);
return
(
Criteria
)
this
;
}
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
public
static
class
Criteria
extends
GeneratedCriteria
{
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/CollectorWhiteListMapper.xml
View file @
75ce0f2b
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<result
column=
"channel_cost_rebate"
jdbcType=
"DECIMAL"
property=
"channelCostRebate"
/>
<result
column=
"channel_cost_rebate"
jdbcType=
"DECIMAL"
property=
"channelCostRebate"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
<result
column=
"is_valid"
jdbcType=
"BIT"
property=
"isValid"
/>
<result
column=
"delivery_auth"
jdbcType=
"INTEGER"
property=
"deliveryAuth"
/>
</resultMap>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<sql
id=
"Example_Where_Clause"
>
<where>
<where>
...
@@ -67,7 +68,7 @@
...
@@ -67,7 +68,7 @@
</where>
</where>
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, collector_id, channel_cost_rebate, create_time, is_valid
id, collector_id, channel_cost_rebate, create_time, is_valid
, delivery_auth
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultMap=
"BaseResultMap"
>
select
select
...
@@ -102,7 +103,7 @@
...
@@ -102,7 +103,7 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, collector_id, channel_cost_rebate, create_time, is_valid
id, collector_id, channel_cost_rebate, create_time, is_valid
, delivery_auth
</otherwise>
</otherwise>
</choose>
</choose>
from collector_white_list
from collector_white_list
...
@@ -133,7 +134,7 @@
...
@@ -133,7 +134,7 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, collector_id, channel_cost_rebate, create_time, is_valid
id, collector_id, channel_cost_rebate, create_time, is_valid
, delivery_auth
</otherwise>
</otherwise>
</choose>
</choose>
from collector_white_list
from collector_white_list
...
@@ -154,9 +155,9 @@
...
@@ -154,9 +155,9 @@
SELECT LAST_INSERT_ID()
SELECT LAST_INSERT_ID()
</selectKey>
</selectKey>
insert into collector_white_list (collector_id, channel_cost_rebate, create_time,
insert into collector_white_list (collector_id, channel_cost_rebate, create_time,
is_valid)
is_valid
, delivery_auth
)
values (#{collectorId,jdbcType=BIGINT}, #{channelCostRebate,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP},
values (#{collectorId,jdbcType=BIGINT}, #{channelCostRebate,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP},
#{isValid,jdbcType=BIT})
#{isValid,jdbcType=BIT}
, #{deliveryAuth,jdbcType=INTEGER}
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteList"
>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteList"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
...
@@ -176,6 +177,9 @@
...
@@ -176,6 +177,9 @@
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid,
is_valid,
</if>
</if>
<if
test=
"deliveryAuth != null"
>
delivery_auth,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"collectorId != null"
>
<if
test=
"collectorId != null"
>
...
@@ -190,6 +194,9 @@
...
@@ -190,6 +194,9 @@
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
#{isValid,jdbcType=BIT},
#{isValid,jdbcType=BIT},
</if>
</if>
<if
test=
"deliveryAuth != null"
>
#{deliveryAuth,jdbcType=INTEGER},
</if>
</trim>
</trim>
</insert>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultType=
"java.lang.Long"
>
...
@@ -216,6 +223,9 @@
...
@@ -216,6 +223,9 @@
<if
test=
"record.isValid != null"
>
<if
test=
"record.isValid != null"
>
is_valid = #{record.isValid,jdbcType=BIT},
is_valid = #{record.isValid,jdbcType=BIT},
</if>
</if>
<if
test=
"record.deliveryAuth != null"
>
delivery_auth = #{record.deliveryAuth,jdbcType=INTEGER},
</if>
</set>
</set>
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -227,7 +237,8 @@
...
@@ -227,7 +237,8 @@
collector_id = #{record.collectorId,jdbcType=BIGINT},
collector_id = #{record.collectorId,jdbcType=BIGINT},
channel_cost_rebate = #{record.channelCostRebate,jdbcType=DECIMAL},
channel_cost_rebate = #{record.channelCostRebate,jdbcType=DECIMAL},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
is_valid = #{record.isValid,jdbcType=BIT}
is_valid = #{record.isValid,jdbcType=BIT},
delivery_auth = #{record.deliveryAuth,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
...
@@ -247,6 +258,9 @@
...
@@ -247,6 +258,9 @@
<if
test=
"isValid != null"
>
<if
test=
"isValid != null"
>
is_valid = #{isValid,jdbcType=BIT},
is_valid = #{isValid,jdbcType=BIT},
</if>
</if>
<if
test=
"deliveryAuth != null"
>
delivery_auth = #{deliveryAuth,jdbcType=INTEGER},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
@@ -255,7 +269,8 @@
...
@@ -255,7 +269,8 @@
set collector_id = #{collectorId,jdbcType=BIGINT},
set collector_id = #{collectorId,jdbcType=BIGINT},
channel_cost_rebate = #{channelCostRebate,jdbcType=DECIMAL},
channel_cost_rebate = #{channelCostRebate,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
is_valid = #{isValid,jdbcType=BIT}
is_valid = #{isValid,jdbcType=BIT},
delivery_auth = #{deliveryAuth,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.CollectorWhiteListExample"
resultMap=
"BaseResultMap"
>
...
@@ -291,7 +306,7 @@
...
@@ -291,7 +306,7 @@
</foreach>
</foreach>
</when>
</when>
<otherwise>
<otherwise>
id, collector_id, channel_cost_rebate, create_time, is_valid
id, collector_id, channel_cost_rebate, create_time, is_valid
, delivery_auth
</otherwise>
</otherwise>
</choose>
</choose>
from collector_white_list
from collector_white_list
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributionOrderServiceImpl.java
View file @
75ce0f2b
...
@@ -1070,7 +1070,15 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
...
@@ -1070,7 +1070,15 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
distributionOrderDetailVo
.
setIntroduceRebate
(
PriceUtil
.
convertPriceFromStr
(
String
.
valueOf
(
rebate
)).
toString
());
distributionOrderDetailVo
.
setIntroduceRebate
(
PriceUtil
.
convertPriceFromStr
(
String
.
valueOf
(
rebate
)).
toString
());
distributionOrderDetailVo
.
setProfit
(
PriceUtil
.
convertPriceFenToYuan
(
distributorProfit
.
getProfit
()));
distributionOrderDetailVo
.
setProfit
(
PriceUtil
.
convertPriceFenToYuan
(
distributorProfit
.
getProfit
()));
}
}
distributionOrderDetailVo
.
setChannelReceiveAddress
(
CommConsts
.
SYSTEM_DEFAULT_ADDRESS
);
//查询藏家是否具有直接发货给买家的权限
CollectorWhiteList
collectorWhiteList
=
collectorWhiteListDao
.
findById
(
distributionOrder
.
getSellerId
());
if
(
collectorWhiteList
!=
null
&&
1
==
collectorWhiteList
.
getDeliveryAuth
())
{
String
addressInfo
=
distributionOrder
.
getReceiverName
()
+
","
+
distributionOrder
.
getReceiverPhone
()
+
","
+
distributionOrder
.
getReceiverAddress
();
distributionOrderDetailVo
.
setChannelReceiveAddress
(
addressInfo
);
}
else
{
distributionOrderDetailVo
.
setChannelReceiveAddress
(
CommConsts
.
SYSTEM_DEFAULT_ADDRESS
);
}
//查询对应鉴定单状态
//查询对应鉴定单状态
IdentifyOrder
identifyOrder
=
identifyOrderDao
.
findByDistributionOrderId
(
dto
.
getDistributionOrderId
());
IdentifyOrder
identifyOrder
=
identifyOrderDao
.
findByDistributionOrderId
(
dto
.
getDistributionOrderId
());
if
(
identifyOrder
!=
null
)
{
if
(
identifyOrder
!=
null
)
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/DistributorShareRecordServiceImpl.java
View file @
75ce0f2b
...
@@ -25,8 +25,6 @@ import org.springframework.stereotype.Service;
...
@@ -25,8 +25,6 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.Duration
;
import
java.time.Instant
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/LogisticsServiceImpl.java
View file @
75ce0f2b
...
@@ -5,8 +5,10 @@ import com.wwdz.ch.core.consts.CommonEnum;
...
@@ -5,8 +5,10 @@ import com.wwdz.ch.core.consts.CommonEnum;
import
com.wwdz.ch.core.entity.LogisticsInfo
;
import
com.wwdz.ch.core.entity.LogisticsInfo
;
import
com.wwdz.ch.core.entity.LogisticsRequestDto
;
import
com.wwdz.ch.core.entity.LogisticsRequestDto
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dao.CollectorWhiteListDao
;
import
com.wwdz.ch.db.dao.distribution.DistributionOrderDao
;
import
com.wwdz.ch.db.dao.distribution.DistributionOrderDao
;
import
com.wwdz.ch.db.dao.distribution.IdentifyOrderDao
;
import
com.wwdz.ch.db.dao.distribution.IdentifyOrderDao
;
import
com.wwdz.ch.db.domain.CollectorWhiteList
;
import
com.wwdz.ch.db.domain.distribution.DistributionOrder
;
import
com.wwdz.ch.db.domain.distribution.DistributionOrder
;
import
com.wwdz.ch.db.domain.distribution.IdentifyOrder
;
import
com.wwdz.ch.db.domain.distribution.IdentifyOrder
;
import
com.wwdz.ch.core.api.LogisticsApi
;
import
com.wwdz.ch.core.api.LogisticsApi
;
...
@@ -31,6 +33,9 @@ public class LogisticsServiceImpl implements LogisticsService {
...
@@ -31,6 +33,9 @@ public class LogisticsServiceImpl implements LogisticsService {
@Autowired
@Autowired
IdentifyOrderDao
identifyOrderDao
;
IdentifyOrderDao
identifyOrderDao
;
@Autowired
CollectorWhiteListDao
collectorWhiteListDao
;
@Override
@Override
public
Result
findLogisticsInfo
(
String
orderId
)
{
public
Result
findLogisticsInfo
(
String
orderId
)
{
try
{
try
{
...
@@ -73,7 +78,14 @@ public class LogisticsServiceImpl implements LogisticsService {
...
@@ -73,7 +78,14 @@ public class LogisticsServiceImpl implements LogisticsService {
IdentifyOrder
identifyOrder
=
identifyOrderDao
.
findByDistributionOrderId
(
dto
.
getDistributionOrderId
());
IdentifyOrder
identifyOrder
=
identifyOrderDao
.
findByDistributionOrderId
(
dto
.
getDistributionOrderId
());
logisticsCode
=
identifyOrder
.
getFromLogisticsCode
();
logisticsCode
=
identifyOrder
.
getFromLogisticsCode
();
waybill
=
identifyOrder
.
getFromWaybill
();
waybill
=
identifyOrder
.
getFromWaybill
();
receiverInfo
=
CommConsts
.
SYSTEM_DEFAULT_ADDRESS
;
DistributionOrder
distributionOrder
=
distributionOrderDao
.
findById
(
dto
.
getDistributionOrderId
());
//查询藏家是否具有直接发货给买家的权限
CollectorWhiteList
collectorWhiteList
=
collectorWhiteListDao
.
findById
(
distributionOrder
.
getSellerId
());
if
(
collectorWhiteList
!=
null
&&
1
==
collectorWhiteList
.
getDeliveryAuth
())
{
receiverInfo
=
distributionOrder
.
getReceiverName
()
+
","
+
distributionOrder
.
getReceiverPhone
()
+
","
+
distributionOrder
.
getReceiverAddress
();
}
else
{
receiverInfo
=
CommConsts
.
SYSTEM_DEFAULT_ADDRESS
;
}
}
else
if
(
type
==
CommonEnum
.
LogisticsTypeEnum
.
DELIVERY
.
getCode
())
{
}
else
if
(
type
==
CommonEnum
.
LogisticsTypeEnum
.
DELIVERY
.
getCode
())
{
DistributionOrder
distributionOrder
=
distributionOrderDao
.
findById
(
dto
.
getDistributionOrderId
());
DistributionOrder
distributionOrder
=
distributionOrderDao
.
findById
(
dto
.
getDistributionOrderId
());
logisticsCode
=
distributionOrder
.
getLogisticsCode
();
logisticsCode
=
distributionOrder
.
getLogisticsCode
();
...
...
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