|
|
@@ -2080,13 +2080,12 @@ public class WxxcxIndexController<AesException extends Throwable> {
|
|
|
return r;
|
|
|
}
|
|
|
|
|
|
- // 上传导入表
|
|
|
+ // 查询列表
|
|
|
@PostMapping("/queryList")
|
|
|
- @ApiOperation(value = "上传导入表")
|
|
|
+ @ApiOperation(value = "查询列表")
|
|
|
public R queryList(@RequestBody QueryListParam queryListParam) throws IllegalStateException,
|
|
|
IOException {
|
|
|
|
|
|
-
|
|
|
// 根据queryListParam查询条件是否为空,拼接 jdbc sql
|
|
|
StringBuilder sql = new StringBuilder("SELECT * FROM dev_info WHERE 1=1 ");
|
|
|
StringBuilder countSql = new StringBuilder("SELECT count(*) FROM dev_info WHERE 1=1 ");
|
|
|
@@ -2129,14 +2128,14 @@ public class WxxcxIndexController<AesException extends Throwable> {
|
|
|
|
|
|
// count
|
|
|
// 待确认分享数
|
|
|
- Integer fxqr = baseDAO.getJdbcTemplate().queryForObject(
|
|
|
+ Integer count = baseDAO.getJdbcTemplate().queryForObject(
|
|
|
countSql.toString(), Integer.class);
|
|
|
R r = JSONUtil.getSuccessMsg(null);
|
|
|
- if (fxqr == null || fxqr == 0) {
|
|
|
- r.data.put("fxqr", 0);
|
|
|
+ if (count == null || count == 0) {
|
|
|
+ r.data.put("count", 0);
|
|
|
return r;
|
|
|
} else {
|
|
|
- r.data.put("fxqr", fxqr);
|
|
|
+ r.data.put("count", count);
|
|
|
}
|
|
|
|
|
|
// 分页参数
|