biz-customer、kafka-cdnc-server | 修改 | 处理事务不生效问题
mt 2024年12月20日18:09:19
Showing
2 changed files
with
2 additions
and
1 deletions
| ... | @@ -35,6 +35,7 @@ public enum ResponseCode { | ... | @@ -35,6 +35,7 @@ public enum ResponseCode { |
| 35 | MESSAGE_CODE_30015(30015,"business_success_30015"), | 35 | MESSAGE_CODE_30015(30015,"business_success_30015"), |
| 36 | MESSAGE_CODE_30016(30016,"business_exception_30016"), | 36 | MESSAGE_CODE_30016(30016,"business_exception_30016"), |
| 37 | MESSAGE_CODE_30017(30017,"business_exception_30017"), | 37 | MESSAGE_CODE_30017(30017,"business_exception_30017"), |
| 38 | + MESSAGE_CODE_30018(30018,"business_exception_30018"), | ||
| 38 | 39 | ||
| 39 | /******打个样,编写样例*****/ | 40 | /******打个样,编写样例*****/ |
| 40 | // MESSAGE_CODE_30001(30001,"business_exception_30001"), | 41 | // MESSAGE_CODE_30001(30001,"business_exception_30001"), | ... | ... |
| ... | @@ -232,7 +232,7 @@ public class ConsignmentUtil { | ... | @@ -232,7 +232,7 @@ public class ConsignmentUtil { |
| 232 | //增加行级锁 | 232 | //增加行级锁 |
| 233 | consignmentRepository.lockConsignmentRow(consignment.getId()); | 233 | consignmentRepository.lockConsignmentRow(consignment.getId()); |
| 234 | }catch(Exception ex){ | 234 | }catch(Exception ex){ |
| 235 | - responseUtils.fail(ResponseCode.MESSAGE_CODE_30017,ex); | 235 | + responseUtils.fail(ResponseCode.MESSAGE_CODE_30018,ex); |
| 236 | } | 236 | } |
| 237 | } | 237 | } |
| 238 | /** | 238 | /** | ... | ... |
-
Please register or login to post a comment