Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王浩
zh-baseversion-project
Commits
5bddd9d8
Commit
5bddd9d8
authored
Jul 01, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 行政规划接口调整
parent
e044f81a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
3 deletions
+75
-3
DistrictPlanningController.java
...ong/web/controller/common/DistrictPlanningController.java
+12
-0
TCountyLevelRegion.java
...ain/java/com/zehong/system/domain/TCountyLevelRegion.java
+11
-0
IDistrictPlanningService.java
...a/com/zehong/system/service/IDistrictPlanningService.java
+12
-0
DistrictPlanningServiceImpl.java
...hong/system/service/impl/DistrictPlanningServiceImpl.java
+32
-0
TCountyLevelRegionMapper.xml
...main/resources/mapper/system/TCountyLevelRegionMapper.xml
+8
-3
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/common/DistrictPlanningController.java
0 → 100644
View file @
5bddd9d8
package
com
.
zehong
.
web
.
controller
.
common
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 行政区规划controller
*/
@RestController
@RequestMapping
(
"/districtPlanning"
)
public
class
DistrictPlanningController
{
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TCountyLevelRegion.java
View file @
5bddd9d8
...
...
@@ -34,6 +34,9 @@ public class TCountyLevelRegion extends BaseEntity
@Excel
(
name
=
"0 否,1 是"
)
private
Long
fIsMajor
;
// 排序
private
Long
seq
;
public
void
setfId
(
Long
fId
)
{
this
.
fId
=
fId
;
...
...
@@ -80,6 +83,14 @@ public class TCountyLevelRegion extends BaseEntity
return
fIsMajor
;
}
public
Long
getSeq
()
{
return
seq
;
}
public
void
setSeq
(
Long
seq
)
{
this
.
seq
=
seq
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/IDistrictPlanningService.java
0 → 100644
View file @
5bddd9d8
package
com
.
zehong
.
system
.
service
;
/**
* 行政区规划service
*
* @author zehong
* @date 2024-07-01
*/
public
interface
IDistrictPlanningService
{
String
assembleCountyByDict
();
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/DistrictPlanningServiceImpl.java
0 → 100644
View file @
5bddd9d8
package
com
.
zehong
.
system
.
service
.
impl
;
import
com.zehong.system.mapper.TCityLevelRegionMapper
;
import
com.zehong.system.mapper.TCountyLevelRegionMapper
;
import
com.zehong.system.service.IDistrictPlanningService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
* @Author: zehong
* @Date: 2024/7/1 17:44
*/
@Service
public
class
DistrictPlanningServiceImpl
implements
IDistrictPlanningService
{
@Resource
private
TCityLevelRegionMapper
cityLevelRegionMapper
;
@Resource
private
TCountyLevelRegionMapper
countyLevelRegionMapper
;
/**
* 根据配置的 市查询 县-区数据 city_under_admin_plan city_code
* @return r
*/
@Override
public
String
assembleCountyByDict
()
{
return
null
;
}
}
zh-baseversion-system/src/main/resources/mapper/system/TCountyLevelRegionMapper.xml
View file @
5bddd9d8
...
...
@@ -10,10 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"fCountyCode"
column=
"f_county_code"
/>
<result
property=
"fName"
column=
"f_name"
/>
<result
property=
"fIsMajor"
column=
"f_is_major"
/>
<result
property=
"seq"
column=
"f_sql"
/>
</resultMap>
<sql
id=
"selectTCountyLevelRegionVo"
>
select f_id, f_city_id, f_county_code, f_name, f_is_major from t_county_level_region
select f_id, f_city_id, f_county_code, f_name, f_is_major
,f_sql
from t_county_level_region
</sql>
<select
id=
"selectTCountyLevelRegionList"
parameterType=
"TCountyLevelRegion"
resultMap=
"TCountyLevelRegionResult"
>
...
...
@@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fCountyCode != null and fCountyCode != ''"
>
f_county_code,
</if>
<if
test=
"fName != null and fName != ''"
>
f_name,
</if>
<if
test=
"fIsMajor != null"
>
f_is_major,
</if>
<if
test=
"seq != null"
>
f_seq,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fId != null"
>
#{fId},
</if>
...
...
@@ -46,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fCountyCode != null and fCountyCode != ''"
>
#{fCountyCode},
</if>
<if
test=
"fName != null and fName != ''"
>
#{fName},
</if>
<if
test=
"fIsMajor != null"
>
#{fIsMajor},
</if>
<if
test=
"seq != null"
>
#{seq},
</if>
</trim>
</insert>
...
...
@@ -77,7 +80,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
f_city_id,
f_county_code,
f_name,
f_is_major
f_is_major,
f_sql
)VALUES
<foreach
collection=
"list"
separator=
","
item=
"item"
>
(
...
...
@@ -85,7 +89,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item.fCityId},
#{item.fCountyCode},
#{item.fName},
#{item.fIsMajor}
#{item.fIsMajor},
#{item.sql}
)
</foreach>
</insert>
...
...
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