Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydsj_tp
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
ydsj_tp
Commits
0d1c0616
Commit
0d1c0616
authored
Oct 13, 2024
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首次提交
parent
f0a48613
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
73 additions
and
8 deletions
+73
-8
ruoyi-admin/src/main/java/com/ruoyi/system/controller/TpDeptController.java
+8
-0
ruoyi-admin/src/main/java/com/ruoyi/system/controller/TpInfoController.java
+11
-0
ruoyi-admin/src/main/java/com/ruoyi/system/controller/TzController.java
+4
-7
ruoyi-admin/src/main/java/com/ruoyi/system/domain/TpDept.java
+4
-0
ruoyi-admin/src/main/java/com/ruoyi/system/domain/TpInfo.java
+2
-0
ruoyi-admin/src/main/java/com/ruoyi/system/mapper/TpDeptMapper.java
+3
-0
ruoyi-admin/src/main/java/com/ruoyi/system/mapper/TpInfoMapper.java
+3
-0
ruoyi-admin/src/main/java/com/ruoyi/system/service/ITpDeptService.java
+4
-0
ruoyi-admin/src/main/java/com/ruoyi/system/service/ITpInfoService.java
+4
-0
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/TpDeptServiceImpl.java
+5
-0
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/TpInfoServiceImpl.java
+5
-0
ruoyi-admin/src/main/resources/mapper/system/TpDeptMapper.xml
+11
-0
ruoyi-admin/src/main/resources/mapper/system/TpInfoMapper.xml
+8
-0
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
+1
-1
No files found.
ruoyi-admin/src/main/java/com/ruoyi/system/controller/TpDeptController.java
View file @
0d1c0616
...
@@ -46,6 +46,14 @@ public class TpDeptController extends BaseController
...
@@ -46,6 +46,14 @@ public class TpDeptController extends BaseController
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
@GetMapping
(
"/listjg"
)
public
TableDataInfo
listjg
(
TpDept
tpDept
)
{
startPage
();
List
<
TpDept
>
list
=
tpDeptService
.
selectTpDeptListjg
(
tpDept
);
return
getDataTable
(
list
);
}
/**
/**
* 导出投票单位列表
* 导出投票单位列表
*/
*/
...
...
ruoyi-admin/src/main/java/com/ruoyi/system/controller/TpInfoController.java
View file @
0d1c0616
...
@@ -53,6 +53,17 @@ public class TpInfoController extends BaseController
...
@@ -53,6 +53,17 @@ public class TpInfoController extends BaseController
}
}
/**
/**
* 查询投票信息列表
*/
// @PreAuthorize("@ss.hasPermi('system:tpInfo:listjg')")
@GetMapping
(
"/listjg"
)
public
TableDataInfo
listjg
(
TpInfo
tpInfo
)
{
startPage
();
List
<
TpInfo
>
list
=
tpInfoService
.
selectTpInfoListjg
(
tpInfo
);
return
getDataTable
(
list
);
}
/**
* 导出投票信息列表
* 导出投票信息列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:tpInfo:export')"
)
@PreAuthorize
(
"@ss.hasPermi('system:tpInfo:export')"
)
...
...
ruoyi-admin/src/main/java/com/ruoyi/system/controller/TzController.java
View file @
0d1c0616
...
@@ -6,14 +6,11 @@ import org.springframework.web.bind.annotation.GetMapping;
...
@@ -6,14 +6,11 @@ import org.springframework.web.bind.annotation.GetMapping;
@Controller
@Controller
public
class
TzController
{
public
class
TzController
{
private
static
final
String
VUEHOST
=
"http://1
92.168.31.190:1024
"
;
private
static
final
String
VUEHOST
=
"http://1
0.61.1.241:8887
"
;
@GetMapping
(
"/info"
)
public
String
getInfo
(
String
tk
)
{
@GetMapping
(
"/getInfo"
)
return
"redirect:"
+
VUEHOST
+
"/info?tk="
+
tk
;
public
String
login
(
String
tk
)
{
tk
=
"ebd1f17742e2db016d78cce88a6a78ac"
;
return
"redirect:"
+
VUEHOST
+
"/tk?tk="
+
tk
;
}
}
}
}
ruoyi-admin/src/main/java/com/ruoyi/system/domain/TpDept.java
View file @
0d1c0616
package
com
.
ruoyi
.
system
.
domain
;
package
com
.
ruoyi
.
system
.
domain
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.ruoyi.common.annotation.Excel
;
import
com.ruoyi.common.annotation.Excel
;
...
@@ -11,6 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
...
@@ -11,6 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
* @author ruoyi
* @author ruoyi
* @date 2024-10-11
* @date 2024-10-11
*/
*/
@Data
public
class
TpDept
extends
BaseEntity
public
class
TpDept
extends
BaseEntity
{
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -46,6 +48,8 @@ public class TpDept extends BaseEntity
...
@@ -46,6 +48,8 @@ public class TpDept extends BaseEntity
@Excel
(
name
=
"预留5"
)
@Excel
(
name
=
"预留5"
)
private
String
yl5
;
private
String
yl5
;
private
int
sl
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
...
ruoyi-admin/src/main/java/com/ruoyi/system/domain/TpInfo.java
View file @
0d1c0616
...
@@ -56,6 +56,8 @@ public class TpInfo extends BaseEntity
...
@@ -56,6 +56,8 @@ public class TpInfo extends BaseEntity
@Excel
(
name
=
"预留5"
)
@Excel
(
name
=
"预留5"
)
private
String
yl5
;
private
String
yl5
;
private
String
dwmc
;
/** 投票信息从信息 */
/** 投票信息从信息 */
private
List
<
TpInfoCb
>
tpInfoCbList
=
new
ArrayList
<>();
private
List
<
TpInfoCb
>
tpInfoCbList
=
new
ArrayList
<>();
private
List
<
TpInfoCb
>
tpInfoCbListA
;
private
List
<
TpInfoCb
>
tpInfoCbListA
;
...
...
ruoyi-admin/src/main/java/com/ruoyi/system/mapper/TpDeptMapper.java
View file @
0d1c0616
...
@@ -58,4 +58,7 @@ public interface TpDeptMapper
...
@@ -58,4 +58,7 @@ public interface TpDeptMapper
* @return 结果
* @return 结果
*/
*/
public
int
deleteTpDeptByIds
(
Long
[]
ids
);
public
int
deleteTpDeptByIds
(
Long
[]
ids
);
List
<
TpDept
>
selectTpDeptListjg
(
TpDept
tpDept
);
}
}
ruoyi-admin/src/main/java/com/ruoyi/system/mapper/TpInfoMapper.java
View file @
0d1c0616
...
@@ -88,4 +88,7 @@ public interface TpInfoMapper
...
@@ -88,4 +88,7 @@ public interface TpInfoMapper
TpInfo
selectTpInfoByIp
(
String
ip
);
TpInfo
selectTpInfoByIp
(
String
ip
);
List
<
TpInfo
>
selectTpInfoListjg
(
TpInfo
tpInfo
);
}
}
ruoyi-admin/src/main/java/com/ruoyi/system/service/ITpDeptService.java
View file @
0d1c0616
...
@@ -58,4 +58,8 @@ public interface ITpDeptService
...
@@ -58,4 +58,8 @@ public interface ITpDeptService
* @return 结果
* @return 结果
*/
*/
public
int
deleteTpDeptById
(
Long
id
);
public
int
deleteTpDeptById
(
Long
id
);
List
<
TpDept
>
selectTpDeptListjg
(
TpDept
tpDept
);
}
}
ruoyi-admin/src/main/java/com/ruoyi/system/service/ITpInfoService.java
View file @
0d1c0616
...
@@ -61,4 +61,8 @@ public interface ITpInfoService
...
@@ -61,4 +61,8 @@ public interface ITpInfoService
* @return 结果
* @return 结果
*/
*/
public
int
deleteTpInfoById
(
Long
id
);
public
int
deleteTpInfoById
(
Long
id
);
List
<
TpInfo
>
selectTpInfoListjg
(
TpInfo
tpInfo
);
}
}
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/TpDeptServiceImpl.java
View file @
0d1c0616
...
@@ -90,4 +90,9 @@ public class TpDeptServiceImpl implements ITpDeptService
...
@@ -90,4 +90,9 @@ public class TpDeptServiceImpl implements ITpDeptService
{
{
return
tpDeptMapper
.
deleteTpDeptById
(
id
);
return
tpDeptMapper
.
deleteTpDeptById
(
id
);
}
}
@Override
public
List
<
TpDept
>
selectTpDeptListjg
(
TpDept
tpDept
)
{
return
tpDeptMapper
.
selectTpDeptListjg
(
tpDept
);
}
}
}
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/TpInfoServiceImpl.java
View file @
0d1c0616
...
@@ -169,6 +169,11 @@ public class TpInfoServiceImpl implements ITpInfoService
...
@@ -169,6 +169,11 @@ public class TpInfoServiceImpl implements ITpInfoService
return
tpInfoMapper
.
deleteTpInfoById
(
id
);
return
tpInfoMapper
.
deleteTpInfoById
(
id
);
}
}
@Override
public
List
<
TpInfo
>
selectTpInfoListjg
(
TpInfo
tpInfo
)
{
return
tpInfoMapper
.
selectTpInfoListjg
(
tpInfo
);
}
/**
/**
* 新增投票信息从信息
* 新增投票信息从信息
*
*
...
...
ruoyi-admin/src/main/resources/mapper/system/TpDeptMapper.xml
View file @
0d1c0616
...
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"sl"
column=
"sl"
/>
</resultMap>
</resultMap>
<sql
id=
"selectTpDeptVo"
>
<sql
id=
"selectTpDeptVo"
>
...
@@ -37,6 +38,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -37,6 +38,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include
refid=
"selectTpDeptVo"
/>
<include
refid=
"selectTpDeptVo"
/>
where id = #{id}
where id = #{id}
</select>
</select>
<select
id=
"selectTpDeptListjg"
resultMap=
"TpDeptResult"
>
select a.id, a.ssbk,a.dwmc,count(b.id) sl
from tp_dept a
left join tp_info_cb b on a.id = b.dwid
where 1=1
<if
test=
"ssbk != null and ssbk != ''"
>
and a.ssbk = #{ssbk}
</if>
<if
test=
"dwmc != null and dwmc != ''"
>
and a.dwmc like concat('%', #{dwmc}, '%')
</if>
group by a.id
</select>
<insert
id=
"insertTpDept"
parameterType=
"TpDept"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertTpDept"
parameterType=
"TpDept"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into tp_dept
insert into tp_dept
...
...
ruoyi-admin/src/main/resources/mapper/system/TpInfoMapper.xml
View file @
0d1c0616
...
@@ -19,6 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -19,6 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"dwmc"
column=
"dwmc"
/>
</resultMap>
</resultMap>
<resultMap
id=
"TpInfoTpInfoCbResult"
type=
"TpInfo"
extends=
"TpInfoResult"
>
<resultMap
id=
"TpInfoTpInfoCbResult"
type=
"TpInfo"
extends=
"TpInfoResult"
>
...
@@ -67,6 +68,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -67,6 +68,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from tp_info
from tp_info
where ipdz = #{ip}
where ipdz = #{ip}
</select>
</select>
<select
id=
"selectTpInfoListjg"
resultMap=
"TpInfoResult"
>
select a.name,a.ipdz,GROUP_CONCAT(b.dwmc) dwmc from tp_info a left join tp_info_cb b on a.id=b.zbid
where 1=1
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"ipdz != null and ipdz != ''"
>
and ipdz like concat('%', #{ipdz}, '%')
</if>
group by a.id
</select>
<insert
id=
"insertTpInfo"
parameterType=
"TpInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
<insert
id=
"insertTpInfo"
parameterType=
"TpInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into tp_info
insert into tp_info
...
...
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java
View file @
0d1c0616
...
@@ -115,7 +115,7 @@ public class SecurityConfig
...
@@ -115,7 +115,7 @@ public class SecurityConfig
// 静态资源,可匿名访问
// 静态资源,可匿名访问
.
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
()
.
antMatchers
(
"/system/tpInfo/*"
).
permitAll
()
.
antMatchers
(
"/system/tpInfo/*"
,
"/info"
).
permitAll
()
// 除上面外的所有请求全部需要鉴权认证
// 除上面外的所有请求全部需要鉴权认证
.
anyRequest
().
authenticated
();
.
anyRequest
().
authenticated
();
})
})
...
...
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