Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ufo
/
yohoufo-fore
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
caoyan
5 years ago
Commit
ac70ce181a4d5985b68ced810e8b8063ba86dadd
1 parent
5adcf681
寄存转现货
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
dal/src/main/java/com/yohoufo/dal/order/StorageDepositMapper.java
dal/src/main/resources/META-INF/mybatis/order/StorageDepositMapper.xml
order/src/main/java/com/yohoufo/order/service/impl/DepositServiceImpl.java
dal/src/main/java/com/yohoufo/dal/order/StorageDepositMapper.java
View file @
ac70ce1
...
...
@@ -109,4 +109,14 @@ public interface StorageDepositMapper {
int
updateToNotBindShelfCode
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"status"
)
Integer
status
,
@Param
(
"preStatus"
)
Integer
preStatus
);
/**
* 作废寄存转现货再寄存
* @param uid
* @param depositCode
* @param status
* @return
*/
int
updateDepositAgainDelStatus
(
@Param
(
"uid"
)
Integer
uid
,
@Param
(
"depositCode"
)
String
depositCode
,
@Param
(
"status"
)
Integer
status
,
@Param
(
"orderCode"
)
Long
orderCode
);
}
\ No newline at end of file
...
...
dal/src/main/resources/META-INF/mybatis/order/StorageDepositMapper.xml
View file @
ac70ce1
...
...
@@ -307,4 +307,12 @@
where id=#{id} and del_status=1 and status=#{preStatus}
</update>
<update
id=
"updateDepositAgainDelStatus"
>
update storage_deposit
set del_status = 1, order_code=#{orderCode}, update_time = unix_timestamp(now())
where deposit_code = #{depositCode,jdbcType=VARCHAR}
AND del_status = 0 AND owner_uid = #{uid,jdbcType=INTEGER}
AND status = #{status,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
...
...
order/src/main/java/com/yohoufo/order/service/impl/DepositServiceImpl.java
View file @
ac70ce1
...
...
@@ -880,7 +880,7 @@ public class DepositServiceImpl implements DepositService {
LOGGER
.
info
(
"updateDelStatus, uid is {}, depositCode is {}, old depositInfo is {}"
,
uid
,
depositCode
,
deposit
);
//当前记录置为无效
int
num
=
storageDepositMapper
.
updateDe
lStatusByCode
(
uid
,
depositCode
,
deposit
.
getStatus
()
);
int
num
=
storageDepositMapper
.
updateDe
positAgainDelStatus
(
uid
,
depositCode
,
deposit
.
getStatus
(),
deposit
.
getOrderCode
()
*
10
);
//清缓存
clearCache
(
uid
,
deposit
.
getProductId
(),
deposit
.
getStorageId
());
...
...
Please
register
or
login
to post a comment