Commit f65e38f9 by tyk

经验交流代码提交

parent dd1b44b7
......@@ -112,6 +112,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.authorizeRequests()
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
.antMatchers("/login", "/register", "/captchaImage").permitAll()
.antMatchers("/system/sy/**").permitAll()
// 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
......
package com.qianhe.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.domain.JygxCljwh;
import com.qianhe.domain.JygxWzgl;
import com.qianhe.domain.JygxYyxtwh;
import com.qianhe.service.IJygxBmjjService;
import com.qianhe.service.IJygxCljwhService;
import com.qianhe.service.IJygxWzglService;
import com.qianhe.service.IJygxYyxtwhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 经验共享-应用系统维护Controller
*
* @author qianhe
* @date 2024-07-29
*/
@RestController
@RequestMapping("/system/sy")
public class JygxSyController extends BaseController
{
@Autowired
private IJygxYyxtwhService jygxYyxtwhService;
@Autowired
private IJygxWzglService jygxWzglService;
@Autowired
private IJygxCljwhService jygxCljwhService;
@Autowired
private IJygxBmjjService jygxBmjjService;
/**
* 查询经验共享-文章管理列表
*/
@GetMapping("/wzgllist")
public TableDataInfo list(JygxWzgl jygxWzgl)
{
startPage();
List<JygxWzgl> list = jygxWzglService.selectList(jygxWzgl);
return getDataTable(list);
}
/**
* 查询经验共享-应用系统维护列表
*/
@GetMapping("/yyxtwhlist")
public TableDataInfo list(JygxYyxtwh jygxYyxtwh)
{
startPage();
List<JygxYyxtwh> list = jygxYyxtwhService.selectJygxYyxtwhList(jygxYyxtwh);
return getDataTable(list);
}
/**
* 查询经验共享-超链接维护列表
*/
@GetMapping("/cljwhlist")
public TableDataInfo list(JygxCljwh jygxCljwh)
{
startPage();
List<JygxCljwh> list = jygxCljwhService.selectJygxCljwhList(jygxCljwh);
return getDataTable(list);
}
/**
* 获取经验共享-组织领导详细信息
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(jygxBmjjService.selectJygxBmjjById(id));
}
}
......@@ -32,6 +32,14 @@ public interface JygxWzglMapper
public List<JygxWzgl> selectJygxWzglList(JygxWzgl jygxWzgl);
/**
* 查询经验共享-文章管理列表
*
* @param jygxWzgl 经验共享-文章管理
* @return 经验共享-文章管理集合
*/
public List<JygxWzgl> selectList(JygxWzgl jygxWzgl);
/**
* 查询经验共享-首页轮播图新闻
*
* @param jygxWzgl
......
......@@ -30,6 +30,14 @@ public interface IJygxWzglService
public List<JygxWzgl> selectJygxWzglList(JygxWzgl jygxWzgl);
/**
* 查询经验共享-文章管理列表
*
* @param jygxWzgl 经验共享-文章管理
* @return 经验共享-文章管理集合
*/
public List<JygxWzgl> selectList(JygxWzgl jygxWzgl);
/**
* 查询经验共享-首页轮播图新闻
*
* @param jygxWzgl
......
......@@ -61,6 +61,18 @@ public class JygxWzglServiceImpl implements IJygxWzglService
}
/**
* 查询经验共享-文章管理列表
*
* @param jygxWzgl 经验共享-文章管理
* @return 经验共享-文章管理
*/
@Override
public List<JygxWzgl> selectList(JygxWzgl jygxWzgl)
{
return jygxWzglMapper.selectList(jygxWzgl);
}
/**
* 查询经验共享-首页轮播图新闻
*
* @param jygxWzgl
......
......@@ -63,6 +63,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ORDER BY ifnull (px,999999), wzsj desc
</select>
<select id="selectList" parameterType="JygxWzgl" resultMap="JygxWzglResult">
<include refid="selectJygxWzglVo"/>
<where>
<if test="px != null "> and px = #{px}</if>
<if test="xxly != null and xxly != ''"> and xxly = #{xxly}</if>
<if test="lxmc != null and lxmc != ''"> and lxmc = #{lxmc}</if>
<if test="wznr != null and wznr != ''"> and wznr = #{wznr}</if>
<if test="wzbt != null and wzbt != ''"> and wzbt = #{wzbt}</if>
<if test="shzt != null and shzt != ''"> and shzt = #{shzt}</if>
<if test="fjmc != null and fjmc != ''"> and fjmc = #{fjmc}</if>
<if test="fjdz != null and fjdz != ''"> and fjdz = #{fjdz}</if>
<if test="fjlx != null and fjlx != ''"> and fjlx = #{fjlx}</if>
<if test="wzzz != null and wzzz != ''"> and wzzz = #{wzzz}</if>
<if test="wzsj != null "> and wzsj = #{wzsj}</if>
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
<if test="yl2 != null and yl2 != ''"> and yl2 = #{yl2}</if>
<if test="yl3 != null and yl3 != ''"> and yl3 = #{yl3}</if>
<if test="yl4 != null and yl4 != ''"> and yl4 = #{yl4}</if>
<if test="yl5 != null and yl5 != ''"> and yl5 = #{yl5}</if>
<if test="ydsl != null "> and ydsl = #{ydsl}</if>
and lxmc != "syxw"
</where>
ORDER BY ifnull (px,999999), wzsj desc
</select>
<select id="selectSylbxwList" parameterType="JygxWzgl" resultMap="JygxWzglResult">
<include refid="selectJygxWzglVo"/>
......
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