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
e91c7cb0
Commit
e91c7cb0
authored
Nov 05, 2024
by
wangqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经验交流
parent
2e614f83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
57 deletions
+74
-57
qianhe-ydsj/src/main/java/com/qianhe/controller/JygxWzglController.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/domain/JygxWzgl.java
+10
-0
qianhe-ydsj/src/main/resources/mapper/JygxWzglMapper.xml
+62
-57
No files found.
qianhe-ydsj/src/main/java/com/qianhe/controller/JygxWzglController.java
View file @
e91c7cb0
...
...
@@ -181,6 +181,7 @@ public class JygxWzglController extends BaseController
/**
*数据置顶
*/
@PreAuthorize
(
"@ss.hasPermi('system:wzgl:getwzzd')"
)
@GetMapping
(
"/getwzzd"
)
public
AjaxResult
getwzzd
(
JygxWzgl
jygxWzgl
)
{
...
...
@@ -191,6 +192,7 @@ public class JygxWzglController extends BaseController
*取消置顶
*/
@GetMapping
(
"/getqxzd"
)
@PreAuthorize
(
"@ss.hasPermi('system:wzgl:getwzzd')"
)
public
AjaxResult
getqxzd
(
JygxWzgl
jygxWzgl
)
{
return
toAjax
(
jygxWzglService
.
updateqxzd
(
jygxWzgl
));
...
...
qianhe-ydsj/src/main/java/com/qianhe/domain/JygxWzgl.java
View file @
e91c7cb0
...
...
@@ -96,6 +96,8 @@ public class JygxWzgl extends BaseEntity
@Excel
(
name
=
"阅读数量"
)
private
Long
ydsl
;
private
String
mkmc
;
/** 文章管理附件 */
@Excel
(
name
=
"文章管理附件"
)
...
...
@@ -310,4 +312,12 @@ public class JygxWzgl extends BaseEntity
.
append
(
"ydsl"
,
getYdsl
())
.
toString
();
}
public
String
getMkmc
()
{
return
mkmc
;
}
public
void
setMkmc
(
String
mkmc
)
{
this
.
mkmc
=
mkmc
;
}
}
qianhe-ydsj/src/main/resources/mapper/JygxWzglMapper.xml
View file @
e91c7cb0
...
...
@@ -29,6 +29,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"ydsl"
column=
"ydsl"
/>
<result
property=
"mkmc"
column=
"mkmc"
/>
</resultMap>
<resultMap
type=
"Ssfl"
id=
"SsflResult"
>
<result
property=
"lxmc"
column=
"lxmc"
/>
...
...
@@ -36,85 +38,88 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql
id=
"selectJygxWzglVo"
>
select wzid, px, xxly, lxid, lxmc, wznr, wzbt, shzt, fjmc, fjdz, fjlx, wzzz, wzsj, dept_id, yl2, yl3, yl4, yl5, create_by, create_time, update_by, update_time, remark, ydsl from jygx_wzgl d
</sql>
select d.wzid, d.px, d.xxly, d.lxid, d.lxmc, d.wznr, d.wzbt, d.shzt, d.fjmc, d.fjdz, d.fjlx, d.wzzz, d.wzsj, d.dept_id,
d.yl2, d.yl3, d.yl4, d.yl5, d.create_by, d.create_time, d.update_by, d.update_time, d.remark, d.ydsl, l.mkmc
from jygx_wzgl d
left join jygx_lxwh l on d.lxmc = l.lxmc
</sql>
<select
id=
"selectJygxWzglList"
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 like concat('%', #{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"
<if
test=
"px != null "
>
and
d.
px = #{px}
</if>
<if
test=
"xxly != null and xxly != ''"
>
and
d.
xxly = #{xxly}
</if>
<if
test=
"lxmc != null and lxmc != ''"
>
and
d.
lxmc = #{lxmc}
</if>
<if
test=
"wznr != null and wznr != ''"
>
and
d.
wznr = #{wznr}
</if>
<if
test=
"wzbt != null and wzbt != ''"
>
and
d.
wzbt like concat('%', #{wzbt}, '%')
</if>
<if
test=
"shzt != null and shzt != ''"
>
and
d.
shzt = #{shzt}
</if>
<if
test=
"fjmc != null and fjmc != ''"
>
and
d.
fjmc = #{fjmc}
</if>
<if
test=
"fjdz != null and fjdz != ''"
>
and
d.
fjdz = #{fjdz}
</if>
<if
test=
"fjlx != null and fjlx != ''"
>
and
d.
fjlx = #{fjlx}
</if>
<if
test=
"wzzz != null and wzzz != ''"
>
and
d.
wzzz = #{wzzz}
</if>
<if
test=
"wzsj != null "
>
and
d.
wzsj = #{wzsj}
</if>
<if
test=
"deptId != null and deptId != ''"
>
and d
.d
ept_id = #{deptId}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and
d.
yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and
d.
yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and
d.
yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and
d.
yl5 = #{yl5}
</if>
<if
test=
"ydsl != null "
>
and
d.
ydsl = #{ydsl}
</if>
and
d.
lxmc != "syxw"
</where>
<!-- 数据范围过滤 -->
${params.dataScope}
ORDER BY ifnull (
px,999999),
wzsj desc
ORDER BY ifnull (
d.px,999999), d.
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"
<if
test=
"xxly != null and xxly != ''"
>
and
d.
xxly = #{xxly}
</if>
<if
test=
"lxmc != null and lxmc != ''"
>
and
d.
lxmc = #{lxmc}
</if>
<if
test=
"wznr != null and wznr != ''"
>
and
d.
wznr = #{wznr}
</if>
<if
test=
"wzbt != null and wzbt != ''"
>
and
d.
wzbt = #{wzbt}
</if>
<if
test=
"shzt != null and shzt != ''"
>
and
d.
shzt = #{shzt}
</if>
<if
test=
"fjmc != null and fjmc != ''"
>
and
d.
fjmc = #{fjmc}
</if>
<if
test=
"fjdz != null and fjdz != ''"
>
and
d.
fjdz = #{fjdz}
</if>
<if
test=
"fjlx != null and fjlx != ''"
>
and
d.
fjlx = #{fjlx}
</if>
<if
test=
"wzzz != null and wzzz != ''"
>
and
d.
wzzz = #{wzzz}
</if>
<if
test=
"wzsj != null "
>
and
d.
wzsj = #{wzsj}
</if>
<if
test=
"deptId != null and deptId != ''"
>
and d
.d
ept_id = #{deptId}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and
d.
yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and
d.
yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and
d.
yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and
d.
yl5 = #{yl5}
</if>
<if
test=
"ydsl != null "
>
and
d.
ydsl = #{ydsl}
</if>
and
d.
lxmc != "syxw"
</where>
ORDER BY ifnull (
px,999999),
wzsj desc
ORDER BY ifnull (
d.px,999999), d.
wzsj desc
</select>
<select
id=
"selectSylbxwList"
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=
"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"
<if
test=
"px != null "
>
and
d.
px = #{px}
</if>
<if
test=
"xxly != null and xxly != ''"
>
and
d.
xxly = #{xxly}
</if>
<if
test=
"wznr != null and wznr != ''"
>
and
d.
wznr = #{wznr}
</if>
<if
test=
"wzbt != null and wzbt != ''"
>
and
d.
wzbt = #{wzbt}
</if>
<if
test=
"shzt != null and shzt != ''"
>
and
d.
shzt = #{shzt}
</if>
<if
test=
"fjmc != null and fjmc != ''"
>
and
d.
fjmc = #{fjmc}
</if>
<if
test=
"fjdz != null and fjdz != ''"
>
and
d.
fjdz = #{fjdz}
</if>
<if
test=
"fjlx != null and fjlx != ''"
>
and
d.
fjlx = #{fjlx}
</if>
<if
test=
"wzzz != null and wzzz != ''"
>
and
d.
wzzz = #{wzzz}
</if>
<if
test=
"wzsj != null "
>
and
d.
wzsj = #{wzsj}
</if>
<if
test=
"deptId != null and deptId != ''"
>
and d
.d
ept_id = #{deptId}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and
d.
yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and
d.
yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and
d.
yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and
d.
yl5 = #{yl5}
</if>
<if
test=
"ydsl != null "
>
and
d.
ydsl = #{ydsl}
</if>
and
d.
lxmc = "syxw"
</where>
ORDER BY ifnull (
px,999999),
wzsj desc
ORDER BY ifnull (
d.px,999999), d.
wzsj desc
</select>
<select
id=
"selectJygxWzglByWzid"
parameterType=
"Long"
resultMap=
"JygxWzglResult"
>
...
...
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