Commit 622b463d by 吴迪

【新增】修改sql

parent 05281c68
...@@ -597,7 +597,7 @@ public class NewsController extends AbstractController { ...@@ -597,7 +597,7 @@ public class NewsController extends AbstractController {
//首页商品二维码在零售领域的应用 //首页商品二维码在零售领域的应用
@Login @Login
@PostMapping("/api/retailCodeList") @PostMapping("/api/retailCodeList")
// @RequiresPermissions("manage:news:list") // @RequiresPermissions("manage:news:list")
public R retailCodeTop6List(@RequestBody Map<String, String> params) { public R retailCodeTop6List(@RequestBody Map<String, String> params) {
QueryWrapper<NewsEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<NewsEntity> queryWrapper = new QueryWrapper<>();
......
...@@ -4,8 +4,8 @@ spring: ...@@ -4,8 +4,8 @@ spring:
druid: druid:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://192.168.0.77:1433;DatabaseName=gs108 url: jdbc:sqlserver://192.168.0.77:1433;DatabaseName=gs108
username: test username: test1
password: test password: test1
initial-size: 10 initial-size: 10
max-active: 100 max-active: 100
min-idle: 10 min-idle: 10
......
...@@ -214,6 +214,7 @@ ...@@ -214,6 +214,7 @@
and t.levels > 0 and t.levels > 0
and t.status = '1' and t.status = '1'
and t1.classid = #{newsParams.classId} and t1.classid = #{newsParams.classId}
where t.id IS not null
order by t.levels desc,releasedate DESC order by t.levels desc,releasedate DESC
</select> </select>
......
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