Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
ims-ci-test
Commits
7c0e08d1
提交
7c0e08d1
authored
9月 01, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
service(update)
上级
ce959360
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
98 行增加
和
7 行删除
+98
-7
RequirementsDao.java
...rc/main/java/com/mmc/csf/release/dao/RequirementsDao.java
+2
-0
RequirementsServiceImpl.java
...mmc/csf/release/service/impl/RequirementsServiceImpl.java
+43
-2
RequirementsDao.xml
...rc/main/resources/mapper/requirements/RequirementsDao.xml
+53
-5
没有找到文件。
release-service/src/main/java/com/mmc/csf/release/dao/RequirementsDao.java
浏览文件 @
7c0e08d1
...
@@ -118,6 +118,8 @@ public interface RequirementsDao {
...
@@ -118,6 +118,8 @@ public interface RequirementsDao {
RequirementsInfoDO
publisherCancel
(
Integer
requirementsInfoId
,
Integer
userAccountId
);
RequirementsInfoDO
publisherCancel
(
Integer
requirementsInfoId
,
Integer
userAccountId
);
RequirementsInfoDO
publisherCancelFlyer
(
Integer
requirementsInfoId
);
RequirementsInfoDO
publisherOrderNumber
(
String
publisherNumber
);
RequirementsInfoDO
publisherOrderNumber
(
String
publisherNumber
);
List
<
FlowDictionaryDO
>
flowDictionary
();
List
<
FlowDictionaryDO
>
flowDictionary
();
...
...
release-service/src/main/java/com/mmc/csf/release/service/impl/RequirementsServiceImpl.java
浏览文件 @
7c0e08d1
...
@@ -717,6 +717,7 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -717,6 +717,7 @@ public class RequirementsServiceImpl implements RequirementsService {
@Override
@Override
public
ResultBody
droneFlyerCancel
(
Integer
requirementsInfoId
,
Integer
userAccountId
,
HttpServletRequest
request
)
{
public
ResultBody
droneFlyerCancel
(
Integer
requirementsInfoId
,
Integer
userAccountId
,
HttpServletRequest
request
)
{
RequirementsInfoDO
infoDO
=
requirementsDao
.
publisherCancelFlyer
(
requirementsInfoId
);
RequirementsServiceDO
requirementsServiceDO
=
requirementsDao
.
droneFlyerCancel
(
requirementsInfoId
,
userAccountId
);
RequirementsServiceDO
requirementsServiceDO
=
requirementsDao
.
droneFlyerCancel
(
requirementsInfoId
,
userAccountId
);
IsNullConvertZeroUtil
.
checkIsNull
(
requirementsServiceDO
);
IsNullConvertZeroUtil
.
checkIsNull
(
requirementsServiceDO
);
Integer
serviceFlowId
=
requirementsServiceDO
.
getServiceFlowId
();
Integer
serviceFlowId
=
requirementsServiceDO
.
getServiceFlowId
();
...
@@ -733,15 +734,55 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -733,15 +734,55 @@ public class RequirementsServiceImpl implements RequirementsService {
IsNullConvertZeroUtil
.
checkIsNull
(
flyerWalletFlowVO
);
IsNullConvertZeroUtil
.
checkIsNull
(
flyerWalletFlowVO
);
IsNullConvertZeroUtil
.
checkIsNull
(
walletFlowVO
);
IsNullConvertZeroUtil
.
checkIsNull
(
walletFlowVO
);
PublisherWalletFlowVO
publisherWalletFlowVO
=
new
PublisherWalletFlowVO
();
PublisherWalletFlowVO
publisherWalletFlowVO
=
new
PublisherWalletFlowVO
();
IsNullConvertZeroUtil
.
checkIsNull
(
publisherWalletFlowVO
);
IsNullConvertZeroUtil
.
checkIsNull
(
walletFlowVO
);
IsNullConvertZeroUtil
.
checkIsNull
(
walletFlowVO
);
flyerWalletFlowVO
.
setModeOfPayment
(
600
);
flyerWalletFlowVO
.
setModeOfPayment
(
600
);
flyerWalletFlowVO
.
setPercentagePenaltyOfOrder
(
percentagePenaltyOfOrder
);
flyerWalletFlowVO
.
setPercentagePenaltyOfOrder
(
percentagePenaltyOfOrder
.
negate
()
);
flyerWalletFlowVO
.
setUserAccountId
(
userAccountId
);
flyerWalletFlowVO
.
setUserAccountId
(
userAccountId
);
flyerWalletFlowVO
.
setOperateUserAccountId
(
userAccountId
);
flyerWalletFlowVO
.
setOperateUserAccountId
(
userAccountId
);
//如果微信里面的钱大于需要扣除的钱
/* if (requirementsServiceDO.getWeChat().compareTo(preemptTotalAmount) == 1 ||
requirementsServiceDO.getWeChat().compareTo(preemptTotalAmount) == 0) {
//
}*/
//如果微信里面的钱小于需要扣除的金额
if
(
requirementsServiceDO
.
getWeChat
().
compareTo
(
preemptTotalAmount
)
==
-
1
)
{
//优先扣除微信的钱
BigDecimal
subtract
=
preemptTotalAmount
.
subtract
(
requirementsServiceDO
.
getWeChat
());
if
(
requirementsServiceDO
.
getSalaryAmount
().
compareTo
(
subtract
)
==
-
1
)
{
BigDecimal
sub2
=
subtract
.
subtract
(
requirementsServiceDO
.
getSalaryAmount
());
flyerWalletFlowVO
.
setSalaryCashPledge
(
requirementsServiceDO
.
getSalaryAmount
());
if
(
sub2
.
compareTo
(
requirementsServiceDO
.
getCashAmount
())
==
0
||
sub2
.
compareTo
(
requirementsServiceDO
.
getCashAmount
())
==
-
1
)
{
//云享金扣除违约多少
flyerWalletFlowVO
.
setYxjCashPledge
(
sub2
);
}
}
else
if
(
requirementsServiceDO
.
getSalaryAmount
().
compareTo
(
subtract
)
==
1
||
requirementsServiceDO
.
getSalaryAmount
().
compareTo
(
subtract
)
==
0
)
{
flyerWalletFlowVO
.
setSalaryCashPledge
(
subtract
);
}
}
walletFlowVO
.
setFlyerWalletFlowVO
(
flyerWalletFlowVO
);
walletFlowVO
.
setFlyerWalletFlowVO
(
flyerWalletFlowVO
);
publisherWalletFlowVO
.
setUserAccountId
(
requirementsServiceDO
.
getUserAccountId
());
//给发布者退钱
publisherWalletFlowVO
.
setUserAccountId
(
infoDO
.
getUserAccountId
());
publisherWalletFlowVO
.
setModeOfPayment
(
600
);
publisherWalletFlowVO
.
setModeOfPayment
(
600
);
publisherWalletFlowVO
.
setOperateUserAccountId
(
userAccountId
);
publisherWalletFlowVO
.
setSalaryAmount
(
infoDO
.
getSalaryAmount
());
publisherWalletFlowVO
.
setCashAmount
(
infoDO
.
getCashAmount
());
walletFlowVO
.
setPublisherWalletFlowVO
(
publisherWalletFlowVO
);
walletFlowVO
.
setPublisherWalletFlowVO
(
publisherWalletFlowVO
);
//给发布者微信退钱
String
wechatPayOrderNumber
=
infoDO
.
getWechatPayOrderNumber
();
if
(
wechatPayOrderNumber
!=
null
)
{
ApplyRefundVO
applyRefundVO
=
new
ApplyRefundVO
();
applyRefundVO
.
setRefund
(
infoDO
.
getWeChat
().
multiply
(
new
BigDecimal
(
100
)).
longValue
());
applyRefundVO
.
setReason
(
"退回微信支付金额"
);
applyRefundVO
.
setOutTradeNo
(
infoDO
.
getWechatPayOrderNumber
());
applyRefund
(
applyRefundVO
,
request
.
getHeader
(
"token"
));
}
IsNullConvertZeroUtil
.
checkIsNull
(
infoDO
);
//任务佣金
//任务佣金
requirementsServiceDO
.
setPercentagePenaltyOfOrder
(
percentagePenaltyOfOrder
);
requirementsServiceDO
.
setPercentagePenaltyOfOrder
(
percentagePenaltyOfOrder
);
//飞手单方面取消将20之二十退回到发布者佣金里面
//飞手单方面取消将20之二十退回到发布者佣金里面
...
...
release-service/src/main/resources/mapper/requirements/RequirementsDao.xml
浏览文件 @
7c0e08d1
...
@@ -802,9 +802,9 @@
...
@@ -802,9 +802,9 @@
sf.order_status,
sf.order_status,
ri.publish,
ri.publish,
rs.preempt_total_amount,
rs.preempt_total_amount,
r
a
.cash_amount,
r
s
.cash_amount,
r
a
.we_chat,
r
s
.we_chat,
r
a
.salary_amount,
r
s
.salary_amount,
rs.wechat_pay_order_number,
rs.wechat_pay_order_number,
rs.preempt_total_amount,
rs.preempt_total_amount,
rs.service_flow_id,
rs.service_flow_id,
...
@@ -812,8 +812,7 @@
...
@@ -812,8 +812,7 @@
ri.openid,
ri.openid,
ra.order_earnings
ra.order_earnings
FROM requirements_info ri
FROM requirements_info ri
LEFT JOIN requirements_type rt
LEFT JOIN requirements_type rt ON rt.id = ri.requirement_type_id
ON rt.id = ri.requirement_type_id
LEFT JOIN service_flow sf ON sf.id = ri.service_flow_id
LEFT JOIN service_flow sf ON sf.id = ri.service_flow_id
LEFT JOIN requirements_amount ra ON ra.requirements_info_id = ri.id
LEFT JOIN requirements_amount ra ON ra.requirements_info_id = ri.id
INNER JOIN requirements_service rs ON ri.id = rs.requirements_info_id
INNER JOIN requirements_service rs ON ri.id = rs.requirements_info_id
...
@@ -871,6 +870,55 @@
...
@@ -871,6 +870,55 @@
AND ri.id = #{requirementsInfoId}
AND ri.id = #{requirementsInfoId}
</select>
</select>
<select
id=
"publisherCancelFlyer"
resultType=
"com.mmc.csf.release.entity.requirements.RequirementsInfoDO"
>
SELECT ri.id,
ri.task_title,
ri.task_start_time,
ri.task_end_time,
ri.task_address,
ri.longitude,
ri.latitude,
ri.require_url,
ri.require_description,
ri.requirement_type_id,
ri.user_account_id,
rt.type_name AS requirementTypeName,
ri.publish_phone,
ri.publisher_number,
ri.service_id,
ra.total_amount,
ri.insurance,
ra.order_level,
ra.order_amount,
sf.doing,
sf.waiting,
sf.user_port,
sf.flyer_port,
sf.order_status,
ri.publish,
ra.order_amount,
ra.we_chat,
ra.salary_amount,
ra.cash_amount,
ra.level_cash_amount,
ra.level_salary_amount,
ra.level_we_chat_amount,
ra.wechat_pay_order_number,
ri.service_flow_id,
rs.pilot_certification_user_id,
rs.openid as flyerOpenid,
ri.create_time,
ra.order_level_amount,
ra.order_earnings
FROM requirements_info ri
LEFT JOIN requirements_type rt
ON rt.id = ri.requirement_type_id
LEFT JOIN service_flow sf ON sf.id = ri.service_flow_id
LEFT JOIN requirements_amount ra ON ra.requirements_info_id = ri.id
LEFT JOIN requirements_service rs ON rs.requirements_info_id = ri.id
WHERE ri.id = #{requirementsInfoId}
</select>
<select
id=
"publisherOrderNumber"
resultType=
"com.mmc.csf.release.entity.requirements.RequirementsInfoDO"
>
<select
id=
"publisherOrderNumber"
resultType=
"com.mmc.csf.release.entity.requirements.RequirementsInfoDO"
>
SELECT ri.id,
SELECT ri.id,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论