Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qianhe-ydsj
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyun
qianhe-ydsj
Commits
f65e38f9
Commit
f65e38f9
authored
Aug 12, 2024
by
tyk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经验交流代码提交
parent
dd1b44b7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
139 additions
and
0 deletions
+139
-0
qianhe-framework/src/main/java/com/qianhe/framework/config/SecurityConfig.java
+1
-0
qianhe-ydsj/src/main/java/com/qianhe/controller/JygxSyController.java
+85
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/JygxWzglMapper.java
+8
-0
qianhe-ydsj/src/main/java/com/qianhe/service/IJygxWzglService.java
+8
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/JygxWzglServiceImpl.java
+12
-0
qianhe-ydsj/src/main/resources/mapper/JygxWzglMapper.xml
+25
-0
No files found.
qianhe-framework/src/main/java/com/qianhe/framework/config/SecurityConfig.java
View file @
f65e38f9
...
@@ -112,6 +112,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
...
@@ -112,6 +112,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.
authorizeRequests
()
.
authorizeRequests
()
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
.
antMatchers
(
"/login"
,
"/register"
,
"/captchaImage"
).
permitAll
()
.
antMatchers
(
"/login"
,
"/register"
,
"/captchaImage"
).
permitAll
()
.
antMatchers
(
"/system/sy/**"
).
permitAll
()
// 静态资源,可匿名访问
// 静态资源,可匿名访问
.
antMatchers
(
HttpMethod
.
GET
,
"/"
,
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
,
"/profile/**"
).
permitAll
()
.
antMatchers
(
HttpMethod
.
GET
,
"/"
,
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
,
"/profile/**"
).
permitAll
()
.
antMatchers
(
"/swagger-ui.html"
,
"/swagger-resources/**"
,
"/webjars/**"
,
"/*/api-docs"
,
"/druid/**"
).
permitAll
()
.
antMatchers
(
"/swagger-ui.html"
,
"/swagger-resources/**"
,
"/webjars/**"
,
"/*/api-docs"
,
"/druid/**"
).
permitAll
()
...
...
qianhe-ydsj/src/main/java/com/qianhe/controller/JygxSyController.java
0 → 100644
View file @
f65e38f9
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
));
}
}
qianhe-ydsj/src/main/java/com/qianhe/mapper/JygxWzglMapper.java
View file @
f65e38f9
...
@@ -32,6 +32,14 @@ public interface JygxWzglMapper
...
@@ -32,6 +32,14 @@ public interface JygxWzglMapper
public
List
<
JygxWzgl
>
selectJygxWzglList
(
JygxWzgl
jygxWzgl
);
public
List
<
JygxWzgl
>
selectJygxWzglList
(
JygxWzgl
jygxWzgl
);
/**
/**
* 查询经验共享-文章管理列表
*
* @param jygxWzgl 经验共享-文章管理
* @return 经验共享-文章管理集合
*/
public
List
<
JygxWzgl
>
selectList
(
JygxWzgl
jygxWzgl
);
/**
* 查询经验共享-首页轮播图新闻
* 查询经验共享-首页轮播图新闻
*
*
* @param jygxWzgl
* @param jygxWzgl
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/IJygxWzglService.java
View file @
f65e38f9
...
@@ -30,6 +30,14 @@ public interface IJygxWzglService
...
@@ -30,6 +30,14 @@ public interface IJygxWzglService
public
List
<
JygxWzgl
>
selectJygxWzglList
(
JygxWzgl
jygxWzgl
);
public
List
<
JygxWzgl
>
selectJygxWzglList
(
JygxWzgl
jygxWzgl
);
/**
/**
* 查询经验共享-文章管理列表
*
* @param jygxWzgl 经验共享-文章管理
* @return 经验共享-文章管理集合
*/
public
List
<
JygxWzgl
>
selectList
(
JygxWzgl
jygxWzgl
);
/**
* 查询经验共享-首页轮播图新闻
* 查询经验共享-首页轮播图新闻
*
*
* @param jygxWzgl
* @param jygxWzgl
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/JygxWzglServiceImpl.java
View file @
f65e38f9
...
@@ -61,6 +61,18 @@ public class JygxWzglServiceImpl implements IJygxWzglService
...
@@ -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
* @param jygxWzgl
...
...
qianhe-ydsj/src/main/resources/mapper/JygxWzglMapper.xml
View file @
f65e38f9
...
@@ -63,6 +63,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -63,6 +63,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ORDER BY ifnull (px,999999), wzsj desc
ORDER BY ifnull (px,999999), wzsj desc
</select>
</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"
>
<select
id=
"selectSylbxwList"
parameterType=
"JygxWzgl"
resultMap=
"JygxWzglResult"
>
<include
refid=
"selectJygxWzglVo"
/>
<include
refid=
"selectJygxWzglVo"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment