Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
05869e56
提交
05869e56
authored
6月 05, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加代购商品的物流状态
上级
ffe92945
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
181 行增加
和
132 行删除
+181
-132
TbCfPlatformOrderEntity.java
...ain/java/com/platform/entity/TbCfPlatformOrderEntity.java
+62
-32
TbCfOrderServiceImpl.java
.../java/com/platform/service/impl/TbCfOrderServiceImpl.java
+1
-0
PlatformOrderVo.java
...-admin/src/main/java/com/platform/vo/PlatformOrderVo.java
+13
-0
TbCfPlatformOrderDao.xml
.../main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
+93
-88
platform.properties
platform-admin/src/main/resources/dev/platform.properties
+6
-6
platform.properties
platform-admin/src/main/resources/prod/platform.properties
+6
-6
没有找到文件。
platform-admin/src/main/java/com/platform/entity/TbCfPlatformOrderEntity.java
浏览文件 @
05869e56
...
...
@@ -9,7 +9,7 @@ import java.util.Date;
* 表名 tb_cf_platform_order
*
* @author lipengjun
* @date 20
19-09-20 11:03:37
* @date 20
20-06-05 11:22:12
*/
public
class
TbCfPlatformOrderEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -26,6 +26,10 @@ public class TbCfPlatformOrderEntity implements Serializable {
* 第三方订单id
*/
private
String
pOrderId
;
/**
* 商品ID
*/
private
String
itemId
;
/**
* 第三方平台名
*/
...
...
@@ -41,16 +45,11 @@ public class TbCfPlatformOrderEntity implements Serializable {
/**
* 代购人
*/
private
String
agent
Name
;
private
String
user
Name
;
/**
* 代购人id
*/
private
String
agentId
;
/**
* 商品品名
*/
private
String
descripitionName
;
private
String
userId
;
/**
* 创建时间
*/
...
...
@@ -58,26 +57,19 @@ public class TbCfPlatformOrderEntity implements Serializable {
/**
* 实际付款
*/
private
BigDecimal
realPay
;
private
BigDecimal
real
ity
Pay
;
/**
* 第三方快递单号
*/
private
String
pExpressNumber
;
/**
*
设置:商品品名
*
商品品名id
*/
public
String
setDescripitionName
()
{
return
descripitionName
;
}
private
String
descripitionId
;
/**
*
获取:商品品名
*
物流状态 10:无 20:有
*/
public
String
getDescripitionName
()
{
this
.
descripitionName
=
descripitionName
;
return
descripitionName
;
}
private
Integer
logisticsStatus
;
/**
* 设置:对应id
...
...
@@ -118,6 +110,19 @@ public class TbCfPlatformOrderEntity implements Serializable {
public
String
getPOrderId
()
{
return
pOrderId
;
}
/**
* 设置:商品ID
*/
public
void
setItemId
(
String
itemId
)
{
this
.
itemId
=
itemId
;
}
/**
* 获取:商品ID
*/
public
String
getItemId
()
{
return
itemId
;
}
/**
* 设置:第三方平台名
*/
...
...
@@ -160,28 +165,28 @@ public class TbCfPlatformOrderEntity implements Serializable {
/**
* 设置:代购人
*/
public
void
set
AgentName
(
String
agent
Name
)
{
this
.
agentName
=
agent
Name
;
public
void
set
UserName
(
String
user
Name
)
{
this
.
userName
=
user
Name
;
}
/**
* 获取:代购人
*/
public
String
get
Agent
Name
()
{
return
agent
Name
;
public
String
get
User
Name
()
{
return
user
Name
;
}
/**
* 设置:代购人id
*/
public
void
set
AgentId
(
String
agent
Id
)
{
this
.
agentId
=
agent
Id
;
public
void
set
UserId
(
String
user
Id
)
{
this
.
userId
=
user
Id
;
}
/**
* 获取:代购人id
*/
public
String
get
Agent
Id
()
{
return
agent
Id
;
public
String
get
User
Id
()
{
return
user
Id
;
}
/**
* 设置:创建时间
...
...
@@ -199,15 +204,15 @@ public class TbCfPlatformOrderEntity implements Serializable {
/**
* 设置:实际付款
*/
public
void
setReal
Pay
(
BigDecimal
real
Pay
)
{
this
.
real
Pay
=
real
Pay
;
public
void
setReal
ityPay
(
BigDecimal
reality
Pay
)
{
this
.
real
ityPay
=
reality
Pay
;
}
/**
* 获取:实际付款
*/
public
BigDecimal
getRealPay
()
{
return
realPay
;
public
BigDecimal
getReal
ity
Pay
()
{
return
real
ity
Pay
;
}
/**
* 设置:第三方快递单号
...
...
@@ -222,5 +227,30 @@ public class TbCfPlatformOrderEntity implements Serializable {
public
String
getPExpressNumber
()
{
return
pExpressNumber
;
}
/**
* 设置:商品品名id
*/
public
void
setDescripitionId
(
String
descripitionId
)
{
this
.
descripitionId
=
descripitionId
;
}
/**
* 获取:商品品名id
*/
public
String
getDescripitionId
()
{
return
descripitionId
;
}
/**
* 设置:物流状态 10:无 20:有
*/
public
void
setLogisticsStatus
(
Integer
logisticsStatus
)
{
this
.
logisticsStatus
=
logisticsStatus
;
}
/**
* 获取:物流状态 10:无 20:有
*/
public
Integer
getLogisticsStatus
()
{
return
logisticsStatus
;
}
}
platform-admin/src/main/java/com/platform/service/impl/TbCfOrderServiceImpl.java
浏览文件 @
05869e56
...
...
@@ -98,6 +98,7 @@ public class TbCfOrderServiceImpl implements TbCfOrderService {
tbCfPlatformOrder
.
setUserName
(
sysUserDao
.
queryById
(
userId
));
res
=
tbCfPlatformOrderDao
.
updates
(
tbCfPlatformOrder
);
}
else
{
tbCfPlatformOrder
.
setLogisticsStatus
(
10
);
tbCfPlatformOrder
.
setRelativeId
(
tbCfPlatformOrder
.
getOrdersId
());
tbCfPlatformOrder
.
setOrderId
(
tbCfItemOrderRDao
.
getOrderId
(
tbCfPlatformOrder
.
getOrdersId
()));
tbCfPlatformOrder
.
setCreateTime
(
new
Date
());
...
...
platform-admin/src/main/java/com/platform/vo/PlatformOrderVo.java
浏览文件 @
05869e56
...
...
@@ -52,6 +52,19 @@ public class PlatformOrderVo implements Serializable{
*/
private
String
pExpressNumber
;
/**
* 物流状态 10:无 20:有
*/
private
Integer
logisticsStatus
;
public
Integer
getLogisticsStatus
()
{
return
logisticsStatus
;
}
public
void
setLogisticsStatus
(
Integer
logisticsStatus
)
{
this
.
logisticsStatus
=
logisticsStatus
;
}
private
String
userId
;
private
String
userName
;
...
...
platform-admin/src/main/resources/com/platform/dao/TbCfPlatformOrderDao.xml
浏览文件 @
05869e56
...
...
@@ -5,20 +5,19 @@
<resultMap
type=
"com.platform.vo.PlatformOrderVo"
id=
"tbCfPlatformOrderMap"
>
<result
property=
"relativeId"
column=
"relative_id"
/>
<result
property=
"ordersId"
column=
"ordersId"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"pOrderId"
column=
"p_order_id"
/>
<result
property=
"itemId"
column=
"item_id"
/>
<result
property=
"platformName"
column=
"platform_name"
/>
<result
property=
"platformCode"
column=
"platform_code"
/>
<result
property=
"pDeliveryAddress"
column=
"p_delivery_address"
/>
<result
property=
"descripitionId"
column=
"descripition_id"
/>
<result
property=
"templateId"
column=
"template_id"
/>
<result
property=
"templateTitle"
column=
"template_title"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"realityPay"
column=
"reality_pay"
/>
<result
property=
"pExpressNumber"
column=
"p_express_number"
/>
<result
property=
"descripitionId"
column=
"descripition_id"
/>
<result
property=
"logisticsStatus"
column=
"logistics_status"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.vo.PlatformOrderVo"
>
...
...
@@ -73,7 +72,7 @@
</if>
</select>-->
<!--
<!--
<select id="queryTotal" resultType="int">
select count(*) from tb_cf_platform_order
WHERE 1=1
...
...
@@ -81,7 +80,7 @@
AND name LIKE concat('%',#{name},'%')
</if>
</select>
-->
-->
<insert
id=
"save"
parameterType=
"com.platform.vo.PlatformOrderVo"
>
insert into tb_cf_platform_order(
...
...
@@ -96,7 +95,8 @@
`create_time`,
`reality_pay`,
`p_express_number`,
`descripition_id`)
`descripition_id`,
`logistics_status`)
values(
#{relativeId},
#{orderId},
...
...
@@ -109,39 +109,44 @@
#{createTime},
#{realityPay},
#{pExpressNumber},
#{descripitionId})
#{descripitionId},
#{logisticsStatus})
</insert>
<!--<update id="update" parameterType="com.platform.vo.PlatformOrderVo">
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfItemOrderREntity"
>
update tb_cf_platform_order
<set>
<if test="orderId != null">`order_id` = #{orderId}, </if>
<if test="pOrderId != null">`p_order_id` = #{pOrderId}, </if>
<if test="platformName != null">`platform_name` = #{platformName}, </if>
<if test="platformCode != null">`platform_code` = #{platformCode}, </if>
<if test="pDeliveryAddress != null">`p_delivery_address` = #{pDeliveryAddress}, </if>
<if test="userName != null">`user_name` = #{userName}, </if>
<if test="userId != null">`user_id` = #{userId}, </if>
<if test="createTime != null">`create_time` = #{createTime}, </if>
<if test="realityPay != null">`reality_pay` = #{realityPay}, </if>
<if test="pExpressNumber != null">`p_express_number` = #{pExpressNumber}</if>
<if
test=
"orderId != null"
>
`order_id` = #{orderId},
</if>
<if
test=
"pOrderId != null"
>
`p_order_id` = #{pOrderId},
</if>
<if
test=
"itemId != null"
>
`item_id` = #{itemId},
</if>
<if
test=
"platformName != null"
>
`platform_name` = #{platformName},
</if>
<if
test=
"platformCode != null"
>
`platform_code` = #{platformCode},
</if>
<if
test=
"pDeliveryAddress != null"
>
`p_delivery_address` = #{pDeliveryAddress},
</if>
<if
test=
"userName != null"
>
`user_name` = #{userName},
</if>
<if
test=
"userId != null"
>
`user_id` = #{userId},
</if>
<if
test=
"createTime != null"
>
`create_time` = #{createTime},
</if>
<if
test=
"realityPay != null"
>
`reality_pay` = #{realityPay},
</if>
<if
test=
"pExpressNumber != null"
>
`p_express_number` = #{pExpressNumber},
</if>
<if
test=
"descripitionId != null"
>
`descripition_id` = #{descripitionId},
</if>
<if
test=
"logisticsStatus != null"
>
`logistics_status` = #{logisticsStatus}
</if>
</set>
where relative_id = #{relativeId}
</update>-->
<update
id=
"updates"
parameterType=
"com.platform.vo.PlatformOrderVo"
>
</update>
<update
id=
"updates"
parameterType=
"com.platform.vo.PlatformOrderVo"
>
update tb_cf_platform_order p left join tb_cf_express_template e on e.template_id=p.descripition_id
left join tb_cf_item_order_r i on i.order_id=p.order_id
<set>
<if
test=
"orderId != null"
>
p.order_id = #{orderId},
</if>
<if
test=
"pOrderId != null"
>
p.p_order_id = #{pOrderId},
</if>
<if
test=
"platformName != null"
>
p.platform_name = #{platformName},
</if>
<if
test=
"platformCode != null"
>
p.platform_code = #{platformCode},
</if>
<if
test=
"pDeliveryAddress != null"
>
p.p_delivery_address = #{pDeliveryAddress},
</if>
<if
test=
"createTime != null"
>
p.create_time = #{createTime},
</if>
<if
test=
"realityPay != null"
>
p.reality_pay = #{realityPay},
</if>
<if
test=
"orderId != null"
>
p.order_id = #{orderId},
</if>
<if
test=
"pOrderId != null"
>
p.p_order_id = #{pOrderId},
</if>
<if
test=
"platformName != null"
>
p.platform_name = #{platformName},
</if>
<if
test=
"platformCode != null"
>
p.platform_code = #{platformCode},
</if>
<if
test=
"pDeliveryAddress != null"
>
p.p_delivery_address = #{pDeliveryAddress},
</if>
<if
test=
"createTime != null"
>
p.create_time = #{createTime},
</if>
<if
test=
"realityPay != null"
>
p.reality_pay = #{realityPay},
</if>
<if
test=
"pExpressNumber != null"
>
p.p_express_number = #{pExpressNumber},
</if>
<if
test=
"descripitionId != null"
>
p.descripition_id = #{descripitionId}
</if>
<if
test=
"descripitionId != null"
>
p.descripition_id = #{descripitionId},
</if>
<if
test=
"logisticsStatus != null"
>
`logistics_status` = #{logisticsStatus}
</if>
</set>
where p.relative_id = #{relativeId}
</update>
...
...
platform-admin/src/main/resources/dev/platform.properties
浏览文件 @
05869e56
...
...
@@ -2,13 +2,13 @@
#jdbc.username=root
#jdbc.password=root
#
jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=root
#
jdbc.password=diaoyun666
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
diaoyun666
jdbc.url
:
jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username
:
root
jdbc.password
:
Diaoyunnuli.8
#
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
#
jdbc.username: root
#
jdbc.password: Diaoyunnuli.8
jdbc.initialSize
=
5
jdbc.maxActive
=
30
...
...
platform-admin/src/main/resources/prod/platform.properties
浏览文件 @
05869e56
...
...
@@ -2,13 +2,13 @@
#jdbc.username=root
#jdbc.password=root
#
jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#
jdbc.username=root
#
jdbc.password=diaoyun666
jdbc.url
=
jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
diaoyun666
jdbc.url
:
jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username
:
root
jdbc.password
:
Diaoyunnuli.8
#
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
#
jdbc.username: root
#
jdbc.password: Diaoyunnuli.8
jdbc.initialSize
=
5
jdbc.maxActive
=
30
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论