src/main/java/cc/mrbird/febs/mall/mapper/MallOrderItemMapper.java | ●●●●● patch | view | raw | blame | history | |
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallTeamLeaderServiceImpl.java | ●●●●● patch | view | raw | blame | history | |
src/main/resources/application-dev.yml | ●●●●● patch | view | raw | blame | history | |
src/main/resources/application-prod.yml | ●●●●● patch | view | raw | blame | history | |
src/main/resources/application-test.yml | ●●●●● patch | view | raw | blame | history | |
src/main/resources/mapper/modules/MallOrderItemMapper.xml | ●●●●● patch | view | raw | blame | history |
src/main/java/cc/mrbird/febs/mall/mapper/MallOrderItemMapper.java
@@ -9,4 +9,6 @@ public interface MallOrderItemMapper extends BaseMapper<MallOrderItem> { List<MallOrderItem> selectItemByGoodsIdUnCancel(@Param("goodsId") Long goodsId, @Param("memberId") Long memberId); List<MallOrderItem> selectListByStateAndOrderId(@Param("state")Integer i, @Param("orderId")Long orderId); } src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallTeamLeaderServiceImpl.java
@@ -324,6 +324,13 @@ mallRefundEntity.setState(1); mallRefundMapper.updateById(mallRefundEntity); mallMoneyFlowService.addMoneyFlow(mallOrderInfo.getMemberId(), refundAmount, MoneyFlowTypeEnum.REFUND.getValue(), mallOrderInfo.getOrderNo(), FlowTypeEnum.BALANCE.getValue()); List<MallOrderItem> mallOrderItemList = mallOrderItemMapper.selectListByStateAndOrderId(1,orderId); if(CollUtil.isNotEmpty(mallOrderItemList)){ MallOrderInfo mallOrderRefund = mallOrderInfoMapper.selectById(orderId); mallOrderRefund.setStatus(6); mallOrderInfoMapper.updateById(mallOrderRefund); } }else{ mallRefundEntity.setState(2); mallRefundMapper.updateById(mallRefundEntity); src/main/resources/application-dev.yml
@@ -65,10 +65,10 @@ xcx: wechar_login_url: https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code xcx_appid: wx5cc58f796224af61 xcx_secret: 71403646f666f9b9dca308d4f357765c debug: true xcx_appid: wx0b515f652282158e xcx_secret: 8d3d3c14221f7dc37650b861dc0fc570 debug: false wecharPaynotifyUrl: http://groupbuy.csxuncong.com/api/xcxPay/wxpayCallback certLocalPath: /home/xuncongCert/apiclient_cert.p12 wecharpayMchid: 1605533690 wecharpaySecret: CSxc168888CSxc168888CSxc168888xc certLocalPath: /home/yyscCert/apiclient_cert.p12 wecharpayMchid: 1631084809 wecharpaySecret: YYSC13875978057YYSC13875978057SH src/main/resources/application-prod.yml
@@ -61,10 +61,10 @@ xcx: wechar_login_url: https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code xcx_appid: wx5cc58f796224af61 xcx_secret: 71403646f666f9b9dca308d4f357765c debug: true xcx_appid: wx0b515f652282158e xcx_secret: 8d3d3c14221f7dc37650b861dc0fc570 debug: false wecharPaynotifyUrl: http://groupbuy.csxuncong.com/api/xcxPay/wxpayCallback certLocalPath: /home/xuncongCert/apiclient_cert.p12 wecharpayMchid: 1605533690 wecharpaySecret: CSxc168888CSxc168888CSxc168888xc certLocalPath: /home/yyscCert/apiclient_cert.p12 wecharpayMchid: 1631084809 wecharpaySecret: YYSC13875978057YYSC13875978057SH src/main/resources/application-test.yml
@@ -59,12 +59,21 @@ noticeUrl: http://120.27.238.55:8801/api/pay/aliCallBack domain: https://openapi.alipaydev.com/gateway.do #xcx: # wechar_login_url: https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code # xcx_appid: wx5cc58f796224af61 # xcx_secret: 71403646f666f9b9dca308d4f357765c # debug: true # wecharPaynotifyUrl: http://groupbuy.csxuncong.com/api/xcxPay/wxpayCallback # certLocalPath: /home/xuncongCert/apiclient_cert.p12 # wecharpayMchid: 1605533690 # wecharpaySecret: CSxc168888CSxc168888CSxc168888xc xcx: wechar_login_url: https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code xcx_appid: wx5cc58f796224af61 xcx_secret: 71403646f666f9b9dca308d4f357765c debug: true xcx_appid: wx0b515f652282158e xcx_secret: 8d3d3c14221f7dc37650b861dc0fc570 debug: false wecharPaynotifyUrl: http://groupbuy.csxuncong.com/api/xcxPay/wxpayCallback certLocalPath: /home/xuncongCert/apiclient_cert.p12 wecharpayMchid: 1605533690 wecharpaySecret: CSxc168888CSxc168888CSxc168888xc certLocalPath: /home/yyscCert/apiclient_cert.p12 wecharpayMchid: 1631084809 wecharpaySecret: YYSC13875978057YYSC13875978057SH src/main/resources/mapper/modules/MallOrderItemMapper.xml
@@ -8,4 +8,9 @@ where a.goods_id=#{goodsId} and b.member_id=#{memberId} </select> <select id="selectListByStateAndOrderId" resultType="cc.mrbird.febs.mall.entity.MallOrderItem"> select a.* from mall_order_item a where a.state=#{state} and b.order_id=#{orderId} </select> </mapper>