Browse Source

更新维修单

周箭河 5 năm trước cách đây
mục cha
commit
1932b935d9

+ 4 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentRepairServiceImpl.java

@@ -663,8 +663,12 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
     @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
     public void goodsSellOrderCallback(StudentPaymentOrder studentPaymentOrder) {
         Date nowDate = new Date();
+        StudentGoodsSell studentGoodsSell = studentGoodsSellDao.findByOrderNo(studentPaymentOrder.getOrderNo());
         //更新订单信息
         studentPaymentOrder.setUpdateTime(nowDate);
+        if(studentGoodsSell.getCooperationOrganId() !=null){
+            studentPaymentOrder.setMusicGroupId(studentGoodsSell.getCooperationOrganId().toString());
+        }
         int updateCount = studentPaymentOrderService.update(studentPaymentOrder);
         if (updateCount <= 0) {
             throw new BizException("订单更新失败");