debug合伙人

This commit is contained in:
磷叶 2024-11-28 14:12:19 +08:00
parent d74938ad92
commit 523ef6958b
3 changed files with 8 additions and 1 deletions

View File

@ -171,6 +171,7 @@ public class StoreStaffServiceImpl implements StoreStaffService
// 后校验
StoreStaffVO vo = selectStoreStaffByEmployId(employId);
storeStaffValidator.checkRepeatUser(vo.getStoreId(), vo.getUserId(), vo.getEmployId());
storeStaffValidator.checkPoint(vo);
return bind;
});

View File

@ -1,5 +1,6 @@
package com.ruoyi.ss.storeStaff.service.impl;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.ServiceUtil;
import com.ruoyi.common.utils.collection.CollectionUtils;
import com.ruoyi.ss.device.domain.vo.DeviceVO;
@ -52,7 +53,11 @@ public class StoreStaffValidatorImpl implements StoreStaffValidator {
// 校验设备分成
for (DeviceVO device : deviceList) {
deviceValidator.checkBonus(device);
try {
deviceValidator.checkBonus(device);
} catch (Exception e) {
throw new ServiceException("校验分成比例失败:" + e.getMessage() + ",请修改分成比例");
}
}
}

View File

@ -168,6 +168,7 @@ public class UserAssemblerImpl implements UserAssembler {
StoreStaffQuery query = new StoreStaffQuery();
query.setUserIds(CollectionUtils.map(list, SmUserVO::getUserId));
query.setEnabled(true);
List<LongCountVO> counts = storeStaffService.selectCountGroupByUserId(query);
for (SmUserVO user : list) {