..
This commit is contained in:
+2
-1
@@ -213,7 +213,8 @@ public class WelfareStatisticsController {
|
||||
@Ok("void")
|
||||
@SaCheckPermission("welfare.statistics")
|
||||
public void exportSummary(String projectId, String unionId, HttpServletResponse response) {
|
||||
welfareSingleService.exportSummary(projectId, unionId, response);
|
||||
// welfareSingleService.exportSummary(projectId, unionId, response);
|
||||
welfareStatisticsService.exportSummary(projectId,response);
|
||||
}
|
||||
|
||||
@At
|
||||
|
||||
@@ -39,6 +39,8 @@ import org.nutz.boot.test.junit4.NbJUnit4Runner;
|
||||
import org.nutz.dao.Chain;
|
||||
import org.nutz.dao.Cnd;
|
||||
import org.nutz.dao.Dao;
|
||||
import org.nutz.dao.Sqls;
|
||||
import org.nutz.dao.sql.Sql;
|
||||
import org.nutz.ioc.loader.annotation.Inject;
|
||||
import org.nutz.ioc.loader.annotation.IocBean;
|
||||
import org.nutz.json.Json;
|
||||
@@ -325,11 +327,24 @@ public class JugTest {
|
||||
dao.insert(user_role);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void test00001(){
|
||||
Sql sql = Sqls.create("SELECT id FROM `sys_user` where id not in (select userId from sys_user_role where roleId = '65195ad8f52c4d7d8864624e583b801b')");
|
||||
sql.setCallback(Sqls.callback.strList());
|
||||
dao.execute(sql);
|
||||
List<String> list = sql.getList(String.class);
|
||||
|
||||
|
||||
|
||||
List<Sys_user_role> userRoles = new ArrayList<>();
|
||||
for (String id : list) {
|
||||
Sys_user_role userRole = new Sys_user_role();
|
||||
userRole.setRoleId("65195ad8f52c4d7d8864624e583b801b");
|
||||
userRole.setUserId(id);
|
||||
userRoles.add(userRole);
|
||||
}
|
||||
dao.insert(userRoles);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user