This website works better with JavaScript.
Home
Explore
Help
Sign In
eln_TD
/
eln_svr
Watch
9
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fix:[模板管理]优化
master
15881625488@163.com
2 months ago
parent
f3bd7ec9b3
commit
36bac9070d
2 changed files
with
1 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-3
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java
+1
-1
hxhq-modules/hxhq-system/src/main/resources/mapper/business/TemplateMapper.xml
+ 0
- 3
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java
View File
@ -44,9 +44,6 @@ public class TemplateServiceImpl extends ServiceImpl
i
if
(
template
.
getDeptId
(
)
!
=
null
&
&
template
.
getDeptId
(
)
.
longValue
(
)
>
0
)
{
queryWrapper
.
eq
(
"t.dept_id"
,
template
.
getDeptId
(
)
)
;
}
if
(
template
.
getNeedPre
(
)
!
=
null
&
&
template
.
getNeedPre
(
)
.
intValue
(
)
>
0
)
{
queryWrapper
.
eq
(
"t.need_pre"
,
template
.
getNeedPre
(
)
)
;
}
if
(
template
.
getStatus
(
)
!
=
null
&
&
template
.
getStatus
(
)
.
intValue
(
)
>
0
)
{
queryWrapper
.
eq
(
"t.status"
,
template
.
getStatus
(
)
)
;
}
+ 1
- 1
hxhq-modules/hxhq-system/src/main/resources/mapper/business/TemplateMapper.xml
View File
@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.hxhq.business.mapper.TemplateMapper"
>
<select
id=
"queryList"
>
SELECT t.
`id`,t.`sn`,t.`show_sn`,t.`name`,t.`dept_id`,t.`status`,t.`need_pre`,t.`type`,d.`dept_name`,t.product
SELECT t.
*
FROM `t_template` t
LEFT JOIN `sys_dept` d ON t.`dept_id`=d.`dept_id`
<if
test=
"ew.sqlSegment != '' and ew.sqlSegment != null"
>
Write
Preview
Loading…
Cancel
Save