钱包类型下拉,取消实时更新正元
This commit is contained in:
1 parent
ee53eb1cc3
commit
4dd31f6734
4 files changed
+9
-8
No files matched your search
+2
-1
@@ -476,7 +476,8 @@ public class HardOrderServiceImpl extends ServiceImpl<HardOrderMapper, HardOrder
|
||||
List<SupermarketSpuUpdateStockReqDTO.Item> list = carList.stream().map(v -> {
|
||||
SupermarketSpuUpdateStockReqDTO.Item item = new SupermarketSpuUpdateStockReqDTO.Item();
|
||||
item.setId(v.getProductId());
|
||||
item.setIncrCount(v.getProductCount() * base);
|
||||
double weight = BigDecimal.valueOf(v.getProductCount()).multiply(BigDecimal.valueOf(base)).setScale(2, RoundingMode.HALF_UP).doubleValue();
|
||||
item.setIncrCount(weight);
|
||||
return item;
|
||||
}).toList();
|
||||
dto.setItems(list);
|
||||
|
||||
+2
-2
@@ -58,10 +58,10 @@ public class WalletTypeController {
|
||||
*/
|
||||
@Operation(summary = "查询下拉", description = "查询下拉")
|
||||
@GetMapping("/select")
|
||||
public R<List<WalletTypeEntity>> walletList() {
|
||||
public R<Page<WalletTypeEntity>> walletList(@ParameterObject Page page) {
|
||||
LambdaQueryWrapper<WalletTypeEntity> wrapper = Wrappers.lambdaQuery();
|
||||
wrapper.orderByDesc(WalletTypeEntity::getCreateTime);
|
||||
return R.ok(walletTypeService.list(wrapper));
|
||||
return R.ok(walletTypeService.page(page, wrapper));
|
||||
}
|
||||
|
||||
|
||||
|
||||
+3
-3
@@ -95,7 +95,7 @@ public class MchManageServiceImpl extends ServiceImpl<MchManageMapper, MchManage
|
||||
e.printStackTrace();
|
||||
log.error("|{}|新增商户,生成收款码错误dto:|{}|error:|{}|", TAG, JSON.toJSONString(dto), e.getMessage());
|
||||
}
|
||||
walletThirdZyService.syncAllMch(dto.getId(), Boolean.FALSE);
|
||||
// walletThirdZyService.syncAllMch(dto.getId(), Boolean.FALSE);
|
||||
return dto.getId();
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ public class MchManageServiceImpl extends ServiceImpl<MchManageMapper, MchManage
|
||||
throw new RuntimeException("商户不存在");
|
||||
}
|
||||
baseMapper.updateById(dto);
|
||||
walletThirdZyService.syncAllMch(dto.getId(), Boolean.FALSE);
|
||||
// walletThirdZyService.syncAllMch(dto.getId(), Boolean.FALSE);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -122,7 +122,7 @@ public class MchManageServiceImpl extends ServiceImpl<MchManageMapper, MchManage
|
||||
// 删除缓存
|
||||
list.forEach(v -> {
|
||||
redisTemplate.opsForValue().getAndDelete(CacheConstants.WALLET_MCH + v);
|
||||
walletThirdZyService.syncAllMch(v, Boolean.TRUE);
|
||||
// walletThirdZyService.syncAllMch(v, Boolean.TRUE);
|
||||
});
|
||||
baseMapper.deleteByIds(list);
|
||||
}
|
||||
|
||||
+2
-2
@@ -434,7 +434,7 @@ public class WalletManageServiceImpl extends ServiceImpl<WalletManageMapper, Wal
|
||||
);
|
||||
}
|
||||
// 同步到正元
|
||||
walletThirdZyService.syncAllUser(userId);
|
||||
// walletThirdZyService.syncAllUser(userId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -443,7 +443,7 @@ public class WalletManageServiceImpl extends ServiceImpl<WalletManageMapper, Wal
|
||||
if (ObjectUtil.isEmpty(deptId)) return;
|
||||
if (ObjectUtil.isEmpty(isDel)) return;
|
||||
// 同步到正元
|
||||
walletThirdZyService.syncAllDept(deptId, isDel);
|
||||
// walletThirdZyService.syncAllDept(deptId, isDel);
|
||||
}
|
||||
|
||||
private void disposeList(List<WalletManageVo> list, WalletManageDto dto) {
|
||||
|
||||
Reference in new issue
Block a user