|
@@ -166,7 +166,7 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
}
|
|
|
|
|
|
studentDao.lockUser(studentId);
|
|
|
- SysUser student = sysUserFeignService.queryUserById(studentId);
|
|
|
+ SysUser student = studentDao.getUser(studentId);
|
|
|
//如果教务老师为空,代表学员自己创建的订单
|
|
|
if (studentGoodsSell.getTeacherId() == null) {
|
|
|
//获取学生关联的所有教务老师列表
|
|
@@ -187,9 +187,9 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
}
|
|
|
}
|
|
|
List<Integer> goodsIds = goodsSellDtos.stream().map(GoodsSellDto::getGoodsId).collect(Collectors.toList());
|
|
|
- Map<Integer, String> integerStringMap = getMap("goods", "id_", "type_", goodsIds, Integer.class, String.class);
|
|
|
- Map<Integer, BigDecimal> map = getMap("goods", "id_", "discount_price_", goodsIds, Integer.class, BigDecimal.class);
|
|
|
- Map<Integer, BigDecimal> groupPriceMap = getMap("goods", "id_", "group_purchase_price_", goodsIds, Integer.class, BigDecimal.class);
|
|
|
+ Map<Integer, String> integerStringMap = getMap("goods", "id_", "type_", goodsIds,student.getTenantId(), Integer.class, String.class);
|
|
|
+ Map<Integer, BigDecimal> map = getMap("goods", "id_", "discount_price_", goodsIds,student.getTenantId(), Integer.class, BigDecimal.class);
|
|
|
+ Map<Integer, BigDecimal> groupPriceMap = getMap("goods", "id_", "group_purchase_price_", goodsIds,student.getTenantId(), Integer.class, BigDecimal.class);
|
|
|
for (GoodsSellDto goodsSellDto : goodsSellDtos) {
|
|
|
goodsSellDto.setGoodsType(integerStringMap.get(goodsSellDto.getGoodsId()));
|
|
|
if (StringUtils.isNotEmpty(goodsSellDto.getComplementGoodsIdList())) {
|
|
@@ -309,8 +309,8 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
studentDao.lockUser(studentId);
|
|
|
List<GoodsSellDto> goodsSellDtos = JSONObject.parseArray(studentGoodsSell.getGoodsJson(), GoodsSellDto.class);
|
|
|
List<Integer> goodsIds = goodsSellDtos.stream().map(e -> e.getGoodsId()).collect(Collectors.toList());
|
|
|
- Map<Integer, String> integerStringMap = getMap("goods", "id_", "type_", goodsIds, Integer.class, String.class);
|
|
|
- Map<Integer, BigDecimal> map = getMap("goods", "id_", "discount_price_", goodsIds, Integer.class, BigDecimal.class);
|
|
|
+ Map<Integer, String> integerStringMap = getMap("goods", "id_", "type_", goodsIds,studentGoodsSell.getTenantId(), Integer.class, String.class);
|
|
|
+ Map<Integer, BigDecimal> map = getMap("goods", "id_", "discount_price_", goodsIds,studentGoodsSell.getTenantId(), Integer.class, BigDecimal.class);
|
|
|
for (GoodsSellDto goodsSellDto : goodsSellDtos) {
|
|
|
goodsSellDto.setGoodsType(integerStringMap.get(goodsSellDto.getGoodsId()));
|
|
|
if (StringUtils.isNotEmpty(goodsSellDto.getComplementGoodsIdList())) {
|
|
@@ -445,7 +445,7 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
if (studentInstrument != null && studentInstrument.getEndTime() != null && studentInstrument.getEndTime().compareTo(date) > 0) {
|
|
|
repairInfo.setMaintenanceStatus(1);
|
|
|
}
|
|
|
- SysUser student = sysUserFeignService.queryUserById(repairInfo.getStudentId());
|
|
|
+ SysUser student = studentDao.getUser(repairInfo.getStudentId());
|
|
|
repairInfo.setOrganId(student.getOrganId());
|
|
|
|
|
|
BigDecimal amount = repairInfo.getAmount();
|
|
@@ -459,7 +459,7 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
if (StringUtils.isNotEmpty(goodsJson)) {
|
|
|
List<RepairGoodsDto> repairGoodsDtos = JSONObject.parseArray(goodsJson, RepairGoodsDto.class);
|
|
|
List<Integer> goodsIds = repairGoodsDtos.stream().map(e -> e.getId()).collect(Collectors.toList());
|
|
|
- Map<Integer, BigDecimal> map = getMap("goods", "id_", "discount_price_", goodsIds, Integer.class, BigDecimal.class);
|
|
|
+ Map<Integer, BigDecimal> map = getMap("goods", "id_", "discount_price_", goodsIds,student.getTenantId(), Integer.class, BigDecimal.class);
|
|
|
repairGoodsDtos.forEach(e -> {
|
|
|
e.setGroupPurchasePrice(map.get(e.getId()));
|
|
|
});
|