Commit d73ff068 by 徐高华

Merge branch 'master_xgh_pendingid' into 'developer'

条数限制100

See merge request !334
parents 719f14c0 3c758660
...@@ -91,12 +91,10 @@ public class WelcomeServiceImpl implements WelcomeService { ...@@ -91,12 +91,10 @@ public class WelcomeServiceImpl implements WelcomeService {
@Autowired @Autowired
private WelcomeRelationService welcomeRelationService; private WelcomeRelationService welcomeRelationService;
@Autowired @Autowired
private KeyDataService keyDataService;
@Autowired
private HmLinkService linkService; private HmLinkService linkService;
@Autowired @Autowired
private HmQrcodeService qrcodeService; private HmQrcodeService qrcodeService;
private static final int WELCOME_LIMIT = 50; private static final int WELCOME_LIMIT = 100;
private static final int DEPARTMENT_NUM_LIMIT = 10000; private static final int DEPARTMENT_NUM_LIMIT = 10000;
private static final int STAFF_NUM_LIMIT = 2000; private static final int STAFF_NUM_LIMIT = 2000;
private static final int MEDIA_NUM_LIMIT = 9; private static final int MEDIA_NUM_LIMIT = 9;
...@@ -143,10 +141,10 @@ public class WelcomeServiceImpl implements WelcomeService { ...@@ -143,10 +141,10 @@ public class WelcomeServiceImpl implements WelcomeService {
long count = welcomeMapper.countByWxEnterpriseId(bo.getWxEnterpriseId(), bo.getType()); long count = welcomeMapper.countByWxEnterpriseId(bo.getWxEnterpriseId(), bo.getType());
if (count >= WELCOME_LIMIT) { if (count >= WELCOME_LIMIT) {
if (HmWelcomeType.NORMAL.getCode().equals(bo.getType())){ if (HmWelcomeType.NORMAL.getCode().equals(bo.getType())){
return "普通欢迎语最多可创建50条"; return "普通欢迎语最多可创建"+WELCOME_LIMIT+"条";
} }
if (HmWelcomeType.SPECIAL.getCode().equals(bo.getType())){ if (HmWelcomeType.SPECIAL.getCode().equals(bo.getType())){
return "特殊欢迎语最多可创建50条"; return "特殊欢迎语最多可创建"+WELCOME_LIMIT+"条";
} }
return "欢迎语条目超过限制"; return "欢迎语条目超过限制";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment