|
@@ -29,7 +29,6 @@ import org.nutz.dao.Sqls;
|
|
|
import org.nutz.dao.pager.Pager;
|
|
|
import org.nutz.dao.sql.Criteria;
|
|
|
import org.nutz.dao.sql.Sql;
|
|
|
-import org.nutz.dao.util.cri.SimpleCriteria;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StopWatch;
|
|
@@ -998,7 +997,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Map<String, List<RoleGameCountryVO>> gameCountryList(GameCountryParamDTO dto) {
|
|
|
+ public Map<String, List<RoleGameCountryVO>> gameCountryDataList(GameCountryParamDTO dto) {
|
|
|
//创建查询条件
|
|
|
Criteria criA = getSqlByQuery(dto);
|
|
|
String gameCountryListSql = getGameCountryListSql(criA);
|
|
@@ -1047,6 +1046,22 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
return new Page<>(list, pager);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<String> gameCountryList() {
|
|
|
+ String countryListSql = getCountryListSql();
|
|
|
+ Sql sql = Sqls.create(countryListSql);
|
|
|
+ sql.setCallback(Sqls.callback.strList());
|
|
|
+ dao.execute(sql);
|
|
|
+ List<String> list = sql.getList(String.class);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ private String getCountryListSql() {
|
|
|
+ return """
|
|
|
+ select country from dm_game_order.t_server_country
|
|
|
+ """;
|
|
|
+ }
|
|
|
+
|
|
|
private String getGameCountryRoleListSql(Criteria criA) {
|
|
|
return """
|
|
|
select a.country as country,a.role_id as roleId,user_id as userId ,role_name as roleName ,role_level as roleLevel ,combat_num as combatNum,
|
|
@@ -1081,7 +1096,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
Criteria criA = Cnd.cri();
|
|
|
//如果帮派为空就取4个帮派
|
|
|
if (CollectionUtils.isEmpty(dto.getGameCountryList())) {
|
|
|
- String countryListSql = getCountryListSql(dto);
|
|
|
+ String countryListSql = getCountryDataListSql(dto);
|
|
|
Sql sql = Sqls.create(countryListSql);
|
|
|
sql.setCallback(Sqls.callback.strList());
|
|
|
dao.execute(sql);
|
|
@@ -1129,7 +1144,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
|
""";
|
|
|
}
|
|
|
|
|
|
- private String getCountryListSql(GameCountryParamDTO dto) {
|
|
|
+ private String getCountryDataListSql(GameCountryParamDTO dto) {
|
|
|
Criteria criA = Cnd.cri();
|
|
|
if (CollectionUtils.isNotEmpty(dto.getGameId())) {
|
|
|
criA.where().andInList("game_id", dto.getGameId());
|