demand: TMS系统 - 提成管理 - 销售计提比例配置 - 新增/修改配置规则更改-一个销售支持可以对应多个销售顾问
committer: heyu
This commit is contained in:
parent
fdfbb11b9f
commit
90fb34aaff
@ -156,12 +156,12 @@ public class EmisSalesCommissionRatioServiceImpl implements IEmisSalesCommission
|
|||||||
*/
|
*/
|
||||||
private void validateSalesSupport(EmisSalesCommissionRatio entity) throws EmisBizError {
|
private void validateSalesSupport(EmisSalesCommissionRatio entity) throws EmisBizError {
|
||||||
if (entity.getSalesSupport() != null && !entity.getSalesSupport().trim().isEmpty()) {
|
if (entity.getSalesSupport() != null && !entity.getSalesSupport().trim().isEmpty()) {
|
||||||
// 检查销售支持是否已经对应了其他销售联系人
|
// // 检查销售支持是否已经对应了其他销售联系人
|
||||||
int countSalesmen = emisSalesCommissionRatioMapper.countBySalesSupportAndDifferentSalesmen(entity);
|
// int countSalesmen = emisSalesCommissionRatioMapper.countBySalesSupportAndDifferentSalesmen(entity);
|
||||||
if (countSalesmen > 0) {
|
// if (countSalesmen > 0) {
|
||||||
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR,
|
// throw new EmisBizError(EmisBizErrorType.PARAM_ERROR,
|
||||||
"销售支持[" + entity.getSalesSupport() + "]已经对应了其他销售联系人,一个销售支持只能对应一个销售联系人");
|
// "销售支持[" + entity.getSalesSupport() + "]已经对应了其他销售联系人,一个销售支持只能对应一个销售联系人");
|
||||||
}
|
// }
|
||||||
// 检查销售支持是否已经对应了其他销售主管
|
// 检查销售支持是否已经对应了其他销售主管
|
||||||
int countExecutive = emisSalesCommissionRatioMapper.countBySalesSupportAndDifferentExecutive(entity);
|
int countExecutive = emisSalesCommissionRatioMapper.countBySalesSupportAndDifferentExecutive(entity);
|
||||||
if (countExecutive > 0) {
|
if (countExecutive > 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user