|
@@ -816,6 +816,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
params.put("majorname", major.getCategoryName());
|
|
|
params.put("orderno", "");
|
|
|
params.put("gradeUserId", userVo.getId().toString());
|
|
|
+ params.put("year", orderGoods.getSevenYear());
|
|
|
Order order = iOrderService.getOne(new LambdaQueryWrapper<Order>()
|
|
|
.eq(Order::getOrderSn, orderGoods.getOrderSn()));
|
|
|
if(Validator.isNotEmpty(order.getInputOrderSn())){
|
|
@@ -1124,6 +1125,18 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
int index = 1;
|
|
|
String errorMsg = "";
|
|
|
for (ClassGradeUserQueryBo bo : list) {
|
|
|
+ if(Validator.isEmpty(bo.getUserId())||Validator.isEmpty(bo.getOrderGoodsId())){
|
|
|
+ throw new CustomException("参数缺失");
|
|
|
+ }
|
|
|
+ LambdaUpdateWrapper<ClassGradeUser> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
+ objectLambdaUpdateWrapper.eq(ClassGradeUser::getUserId, bo.getUserId());
|
|
|
+ objectLambdaUpdateWrapper.eq(ClassGradeUser::getOrderGoodsId, bo.getOrderGoodsId());
|
|
|
+ objectLambdaUpdateWrapper.eq(ClassGradeUser::getGradeId, bo.getGradeId());
|
|
|
+
|
|
|
+ objectLambdaUpdateWrapper.set(ClassGradeUser::getOfficialStatus, 0);
|
|
|
+ objectLambdaUpdateWrapper.set(ClassGradeUser::getUpdateTime, DateUtils.getNowTime());
|
|
|
+ this.update(null, objectLambdaUpdateWrapper);
|
|
|
+
|
|
|
String msg = pushOfficialInfo(bo);
|
|
|
if (Validator.isNotEmpty(msg)) {
|
|
|
errorMsg += "第" + index + "条错误:" + msg;
|