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
3ae1c138
Commit
3ae1c138
authored
Jun 07, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行政区-市配置-序号后台
parent
8730d2a3
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
2465 additions
and
4 deletions
+2465
-4
TCountyLevelRegionController.java
...ong/web/controller/area/TCountyLevelRegionController.java
+97
-0
TTownLevelRegionController.java
...ehong/web/controller/area/TTownLevelRegionController.java
+97
-0
TVillageLevelRegionController.java
...ng/web/controller/area/TVillageLevelRegionController.java
+97
-0
GovernmentSupervisionInfoController.java
...oller/government/GovernmentSupervisionInfoController.java
+69
-0
SysSettingController.java
...om/zehong/web/controller/system/SysSettingController.java
+9
-0
TCountyLevelRegion.java
...ain/java/com/zehong/system/domain/TCountyLevelRegion.java
+93
-0
TSerialNumberInfo.java
...main/java/com/zehong/system/domain/TSerialNumberInfo.java
+124
-0
TTownLevelRegion.java
.../main/java/com/zehong/system/domain/TTownLevelRegion.java
+79
-0
TVillageLevelRegion.java
...in/java/com/zehong/system/domain/TVillageLevelRegion.java
+93
-0
TCountyLevelRegionVo.java
...ava/com/zehong/system/domain/vo/TCountyLevelRegionVo.java
+59
-0
TTownLevelRegionVo.java
.../java/com/zehong/system/domain/vo/TTownLevelRegionVo.java
+48
-0
TVillageLevelRegionVo.java
...va/com/zehong/system/domain/vo/TVillageLevelRegionVo.java
+59
-0
SysSettingMapper.java
.../main/java/com/zehong/system/mapper/SysSettingMapper.java
+5
-0
TCountyLevelRegionMapper.java
...va/com/zehong/system/mapper/TCountyLevelRegionMapper.java
+68
-0
TSerialNumberInfoMapper.java
...ava/com/zehong/system/mapper/TSerialNumberInfoMapper.java
+61
-0
TTownLevelRegionMapper.java
...java/com/zehong/system/mapper/TTownLevelRegionMapper.java
+68
-0
TVillageLevelRegionMapper.java
...a/com/zehong/system/mapper/TVillageLevelRegionMapper.java
+68
-0
GovernmentSupervisionInfoService.java
...hong/system/service/GovernmentSupervisionInfoService.java
+24
-0
ISysSettingService.java
...in/java/com/zehong/system/service/ISysSettingService.java
+5
-0
ITCountyLevelRegionService.java
...com/zehong/system/service/ITCountyLevelRegionService.java
+61
-0
ITSerialNumberInfoService.java
.../com/zehong/system/service/ITSerialNumberInfoService.java
+61
-0
ITTownLevelRegionService.java
...a/com/zehong/system/service/ITTownLevelRegionService.java
+61
-0
ITVillageLevelRegionService.java
...om/zehong/system/service/ITVillageLevelRegionService.java
+61
-0
GovernmentSupervisionInfoServiceImpl.java
...em/service/impl/GovernmentSupervisionInfoServiceImpl.java
+90
-4
SysSettingServiceImpl.java
...com/zehong/system/service/impl/SysSettingServiceImpl.java
+8
-0
TCountyLevelRegionServiceImpl.java
...ng/system/service/impl/TCountyLevelRegionServiceImpl.java
+93
-0
TSerialNumberInfoServiceImpl.java
...ong/system/service/impl/TSerialNumberInfoServiceImpl.java
+95
-0
TTownLevelRegionServiceImpl.java
...hong/system/service/impl/TTownLevelRegionServiceImpl.java
+93
-0
TVillageLevelRegionServiceImpl.java
...g/system/service/impl/TVillageLevelRegionServiceImpl.java
+93
-0
SysSettingMapper.xml
...tem/src/main/resources/mapper/system/SysSettingMapper.xml
+5
-0
TCountyLevelRegionMapper.xml
...main/resources/mapper/system/TCountyLevelRegionMapper.xml
+92
-0
TSerialNumberInfoMapper.xml
.../main/resources/mapper/system/TSerialNumberInfoMapper.xml
+93
-0
TTownLevelRegionMapper.xml
...c/main/resources/mapper/system/TTownLevelRegionMapper.xml
+85
-0
TVillageLevelRegionMapper.xml
...ain/resources/mapper/system/TVillageLevelRegionMapper.xml
+92
-0
city.js
zh-baseversion-web/src/api/area/city.js
+0
-0
county.js
zh-baseversion-web/src/api/area/county.js
+53
-0
town.js
zh-baseversion-web/src/api/area/town.js
+53
-0
village.js
zh-baseversion-web/src/api/area/village.js
+53
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/area/TCountyLevelRegionController.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
web
.
controller
.
area
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TCountyLevelRegion
;
import
com.zehong.system.service.ITCountyLevelRegionService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 县级行政区Controller
*
* @author zehong
* @date 2024-06-06
*/
@RestController
@RequestMapping
(
"/area/county"
)
public
class
TCountyLevelRegionController
extends
BaseController
{
@Autowired
private
ITCountyLevelRegionService
tCountyLevelRegionService
;
/**
* 查询县级行政区列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TCountyLevelRegion
tCountyLevelRegion
)
{
startPage
();
List
<
TCountyLevelRegion
>
list
=
tCountyLevelRegionService
.
selectTCountyLevelRegionList
(
tCountyLevelRegion
);
return
getDataTable
(
list
);
}
/**
* 导出县级行政区列表
*/
@Log
(
title
=
"县级行政区"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TCountyLevelRegion
tCountyLevelRegion
)
{
List
<
TCountyLevelRegion
>
list
=
tCountyLevelRegionService
.
selectTCountyLevelRegionList
(
tCountyLevelRegion
);
ExcelUtil
<
TCountyLevelRegion
>
util
=
new
ExcelUtil
<
TCountyLevelRegion
>(
TCountyLevelRegion
.
class
);
return
util
.
exportExcel
(
list
,
"县级行政区数据"
);
}
/**
* 获取县级行政区详细信息
*/
@GetMapping
(
value
=
"/{fId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fId"
)
Long
fId
)
{
return
AjaxResult
.
success
(
tCountyLevelRegionService
.
selectTCountyLevelRegionById
(
fId
));
}
/**
* 新增县级行政区
*/
@Log
(
title
=
"县级行政区"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TCountyLevelRegion
tCountyLevelRegion
)
{
return
toAjax
(
tCountyLevelRegionService
.
insertTCountyLevelRegion
(
tCountyLevelRegion
));
}
/**
* 修改县级行政区
*/
@Log
(
title
=
"县级行政区"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TCountyLevelRegion
tCountyLevelRegion
)
{
return
toAjax
(
tCountyLevelRegionService
.
updateTCountyLevelRegion
(
tCountyLevelRegion
));
}
/**
* 删除县级行政区
*/
@Log
(
title
=
"县级行政区"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fIds
)
{
return
toAjax
(
tCountyLevelRegionService
.
deleteTCountyLevelRegionByIds
(
fIds
));
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/area/TTownLevelRegionController.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
web
.
controller
.
area
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TTownLevelRegion
;
import
com.zehong.system.service.ITTownLevelRegionService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 乡级行政区Controller
*
* @author zehong
* @date 2024-06-07
*/
@RestController
@RequestMapping
(
"/area/town"
)
public
class
TTownLevelRegionController
extends
BaseController
{
@Autowired
private
ITTownLevelRegionService
tTownLevelRegionService
;
/**
* 查询乡级行政区列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TTownLevelRegion
tTownLevelRegion
)
{
startPage
();
List
<
TTownLevelRegion
>
list
=
tTownLevelRegionService
.
selectTTownLevelRegionList
(
tTownLevelRegion
);
return
getDataTable
(
list
);
}
/**
* 导出乡级行政区列表
*/
@Log
(
title
=
"乡级行政区"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TTownLevelRegion
tTownLevelRegion
)
{
List
<
TTownLevelRegion
>
list
=
tTownLevelRegionService
.
selectTTownLevelRegionList
(
tTownLevelRegion
);
ExcelUtil
<
TTownLevelRegion
>
util
=
new
ExcelUtil
<
TTownLevelRegion
>(
TTownLevelRegion
.
class
);
return
util
.
exportExcel
(
list
,
"乡级行政区数据"
);
}
/**
* 获取乡级行政区详细信息
*/
@GetMapping
(
value
=
"/{fId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fId"
)
Long
fId
)
{
return
AjaxResult
.
success
(
tTownLevelRegionService
.
selectTTownLevelRegionById
(
fId
));
}
/**
* 新增乡级行政区
*/
@Log
(
title
=
"乡级行政区"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TTownLevelRegion
tTownLevelRegion
)
{
return
toAjax
(
tTownLevelRegionService
.
insertTTownLevelRegion
(
tTownLevelRegion
));
}
/**
* 修改乡级行政区
*/
@Log
(
title
=
"乡级行政区"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TTownLevelRegion
tTownLevelRegion
)
{
return
toAjax
(
tTownLevelRegionService
.
updateTTownLevelRegion
(
tTownLevelRegion
));
}
/**
* 删除乡级行政区
*/
@Log
(
title
=
"乡级行政区"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fIds
)
{
return
toAjax
(
tTownLevelRegionService
.
deleteTTownLevelRegionByIds
(
fIds
));
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/area/TVillageLevelRegionController.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
web
.
controller
.
area
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TVillageLevelRegion
;
import
com.zehong.system.service.ITVillageLevelRegionService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 村级行政区Controller
*
* @author zehong
* @date 2024-06-07
*/
@RestController
@RequestMapping
(
"/area/village"
)
public
class
TVillageLevelRegionController
extends
BaseController
{
@Autowired
private
ITVillageLevelRegionService
tVillageLevelRegionService
;
/**
* 查询村级行政区列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TVillageLevelRegion
tVillageLevelRegion
)
{
startPage
();
List
<
TVillageLevelRegion
>
list
=
tVillageLevelRegionService
.
selectTVillageLevelRegionList
(
tVillageLevelRegion
);
return
getDataTable
(
list
);
}
/**
* 导出村级行政区列表
*/
@Log
(
title
=
"村级行政区"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TVillageLevelRegion
tVillageLevelRegion
)
{
List
<
TVillageLevelRegion
>
list
=
tVillageLevelRegionService
.
selectTVillageLevelRegionList
(
tVillageLevelRegion
);
ExcelUtil
<
TVillageLevelRegion
>
util
=
new
ExcelUtil
<
TVillageLevelRegion
>(
TVillageLevelRegion
.
class
);
return
util
.
exportExcel
(
list
,
"村级行政区数据"
);
}
/**
* 获取村级行政区详细信息
*/
@GetMapping
(
value
=
"/{fId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fId"
)
Long
fId
)
{
return
AjaxResult
.
success
(
tVillageLevelRegionService
.
selectTVillageLevelRegionById
(
fId
));
}
/**
* 新增村级行政区
*/
@Log
(
title
=
"村级行政区"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TVillageLevelRegion
tVillageLevelRegion
)
{
return
toAjax
(
tVillageLevelRegionService
.
insertTVillageLevelRegion
(
tVillageLevelRegion
));
}
/**
* 修改村级行政区
*/
@Log
(
title
=
"村级行政区"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TVillageLevelRegion
tVillageLevelRegion
)
{
return
toAjax
(
tVillageLevelRegionService
.
updateTVillageLevelRegion
(
tVillageLevelRegion
));
}
/**
* 删除村级行政区
*/
@Log
(
title
=
"村级行政区"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fIds
)
{
return
toAjax
(
tVillageLevelRegionService
.
deleteTVillageLevelRegionByIds
(
fIds
));
}
}
zh-baseversion-admin/src/main/java/com/zehong/web/controller/government/GovernmentSupervisionInfoController.java
View file @
3ae1c138
...
...
@@ -49,6 +49,75 @@ public class GovernmentSupervisionInfoController {
}
}
/**
* 获取县级行政区
* @param updateTime 大于等于更新时间的数据 yyyy-MM-dd HH:mm:ss
* @param pageIndex 页码
* @param pageSize 每页记录数,取值范围: 1~1000
* @return
*/
@GetMapping
(
value
=
"/getCounty"
)
public
AjaxResult
getCounty
(
@RequestParam
(
value
=
"updateTime"
)
String
updateTime
,
@RequestParam
(
value
=
"pageIndex"
)
Integer
pageIndex
,
@RequestParam
(
value
=
"pageSize"
)
Integer
pageSize
){
try
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"updateTime"
,
updateTime
);
map
.
put
(
"pageIndex"
,
pageIndex
);
map
.
put
(
"pageSize"
,
pageSize
);
JSONObject
json
=
governmentSupervisionInfoService
.
getCounty
(
map
);
return
AjaxResult
.
success
(
json
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取县级行政区失败"
,
e
);
return
AjaxResult
.
error
(
"获取县级行政区失败"
);
}
}
/**
* 获取乡级行政区
* @param updateTime 大于等于更新时间的数据 yyyy-MM-dd HH:mm:ss
* @param pageIndex 页码
* @param pageSize 每页记录数,取值范围: 1~1000
* @return
*/
@GetMapping
(
value
=
"/getTown"
)
public
AjaxResult
getTown
(
@RequestParam
(
value
=
"updateTime"
)
String
updateTime
,
@RequestParam
(
value
=
"pageIndex"
)
Integer
pageIndex
,
@RequestParam
(
value
=
"pageSize"
)
Integer
pageSize
){
try
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"updateTime"
,
updateTime
);
map
.
put
(
"pageIndex"
,
pageIndex
);
map
.
put
(
"pageSize"
,
pageSize
);
JSONObject
json
=
governmentSupervisionInfoService
.
getTown
(
map
);
return
AjaxResult
.
success
(
json
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取乡级行政区失败"
,
e
);
return
AjaxResult
.
error
(
"获取乡级行政区失败"
);
}
}
/**
* 获取村级行政区
* @param updateTime 大于等于更新时间的数据 yyyy-MM-dd HH:mm:ss
* @param pageIndex 页码
* @param pageSize 每页记录数,取值范围: 1~1000
* @return
*/
@GetMapping
(
value
=
"/getVillage"
)
public
AjaxResult
getVillage
(
@RequestParam
(
value
=
"updateTime"
)
String
updateTime
,
@RequestParam
(
value
=
"pageIndex"
)
Integer
pageIndex
,
@RequestParam
(
value
=
"pageSize"
)
Integer
pageSize
){
try
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"updateTime"
,
updateTime
);
map
.
put
(
"pageIndex"
,
pageIndex
);
map
.
put
(
"pageSize"
,
pageSize
);
JSONObject
json
=
governmentSupervisionInfoService
.
getVillage
(
map
);
return
AjaxResult
.
success
(
json
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取村级行政区失败"
,
e
);
return
AjaxResult
.
error
(
"获取村级行政区失败"
);
}
}
/**
* 获取行业专家档案
* @param updateTime 大于等于更新时间的数据 yyyy-MM-dd HH:mm:ss
...
...
zh-baseversion-admin/src/main/java/com/zehong/web/controller/system/SysSettingController.java
View file @
3ae1c138
...
...
@@ -108,4 +108,13 @@ public class SysSettingController extends BaseController
return
AjaxResult
.
success
(
systemSetting
.
getSystemWebSetting
());
}
/**
* 根据systemKey获取value
*/
@GetMapping
(
"/getSystemValueByKey"
)
public
AjaxResult
getSystemValueByKey
(
String
systemKey
){
return
AjaxResult
.
success
(
sysSettingService
.
getSystemValueByKey
(
systemKey
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TCountyLevelRegion.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 县级行政区对象 t_county_level_region
*
* @author zehong
* @date 2024-06-06
*/
public
class
TCountyLevelRegion
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 县级行政区 ID,表主键,非自增 */
private
Long
fId
;
/** 所属市 id */
@Excel
(
name
=
"所属市 id"
)
private
Long
fCityId
;
/** 县(市、区)行政区划编码 */
@Excel
(
name
=
"县"
,
readConverterExp
=
"市=、区"
)
private
String
fCountyCode
;
/** 市名称 */
@Excel
(
name
=
"市名称"
)
private
String
fName
;
/** 0 否,1 是 */
@Excel
(
name
=
"0 否,1 是"
)
private
Long
fIsMajor
;
public
void
setfId
(
Long
fId
)
{
this
.
fId
=
fId
;
}
public
Long
getfId
()
{
return
fId
;
}
public
void
setfCityId
(
Long
fCityId
)
{
this
.
fCityId
=
fCityId
;
}
public
Long
getfCityId
()
{
return
fCityId
;
}
public
void
setfCountyCode
(
String
fCountyCode
)
{
this
.
fCountyCode
=
fCountyCode
;
}
public
String
getfCountyCode
()
{
return
fCountyCode
;
}
public
void
setfName
(
String
fName
)
{
this
.
fName
=
fName
;
}
public
String
getfName
()
{
return
fName
;
}
public
void
setfIsMajor
(
Long
fIsMajor
)
{
this
.
fIsMajor
=
fIsMajor
;
}
public
Long
getfIsMajor
()
{
return
fIsMajor
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fId"
,
getfId
())
.
append
(
"fCityId"
,
getfCityId
())
.
append
(
"fCountyCode"
,
getfCountyCode
())
.
append
(
"fName"
,
getfName
())
.
append
(
"fIsMajor"
,
getfIsMajor
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TSerialNumberInfo.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 序列号对象 t_serial_number_info
*
* @author zehong
* @date 2024-06-07
*/
public
class
TSerialNumberInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 序列号主键 */
private
Long
numberId
;
/** 表类型 */
@Excel
(
name
=
"表类型"
)
private
Long
tableType
;
/** 列名 */
@Excel
(
name
=
"列名"
)
private
Long
columnName
;
/** 最大值 */
@Excel
(
name
=
"最大值"
)
private
String
maxNum
;
/** 序号长度 */
@Excel
(
name
=
"序号长度"
)
private
String
numLength
;
/** 版本号 */
@Excel
(
name
=
"版本号"
)
private
String
version
;
/** 删除状态:0.否 1.是 */
@Excel
(
name
=
"删除状态:0.否 1.是"
)
private
String
isDel
;
public
void
setNumberId
(
Long
numberId
)
{
this
.
numberId
=
numberId
;
}
public
Long
getNumberId
()
{
return
numberId
;
}
public
void
setTableType
(
Long
tableType
)
{
this
.
tableType
=
tableType
;
}
public
Long
getTableType
()
{
return
tableType
;
}
public
void
setColumnName
(
Long
columnName
)
{
this
.
columnName
=
columnName
;
}
public
Long
getColumnName
()
{
return
columnName
;
}
public
void
setMaxNum
(
String
maxNum
)
{
this
.
maxNum
=
maxNum
;
}
public
String
getMaxNum
()
{
return
maxNum
;
}
public
void
setNumLength
(
String
numLength
)
{
this
.
numLength
=
numLength
;
}
public
String
getNumLength
()
{
return
numLength
;
}
public
void
setVersion
(
String
version
)
{
this
.
version
=
version
;
}
public
String
getVersion
()
{
return
version
;
}
public
void
setIsDel
(
String
isDel
)
{
this
.
isDel
=
isDel
;
}
public
String
getIsDel
()
{
return
isDel
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"numberId"
,
getNumberId
())
.
append
(
"tableType"
,
getTableType
())
.
append
(
"columnName"
,
getColumnName
())
.
append
(
"maxNum"
,
getMaxNum
())
.
append
(
"numLength"
,
getNumLength
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"version"
,
getVersion
())
.
append
(
"isDel"
,
getIsDel
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TTownLevelRegion.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 乡级行政区对象 t_town_level_region
*
* @author zehong
* @date 2024-06-07
*/
public
class
TTownLevelRegion
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 乡镇级行政区 ID,表主键,非自 */
private
Long
fId
;
/** 所属县区 i */
@Excel
(
name
=
"所属县区 i"
)
private
Long
fCountyId
;
/** 乡镇行政区划编码 */
@Excel
(
name
=
"乡镇行政区划编码"
)
private
String
fTownCode
;
/** 乡镇名称 */
@Excel
(
name
=
"乡镇名称"
)
private
String
fName
;
public
void
setfId
(
Long
fId
)
{
this
.
fId
=
fId
;
}
public
Long
getfId
()
{
return
fId
;
}
public
void
setfCountyId
(
Long
fCountyId
)
{
this
.
fCountyId
=
fCountyId
;
}
public
Long
getfCountyId
()
{
return
fCountyId
;
}
public
void
setfTownCode
(
String
fTownCode
)
{
this
.
fTownCode
=
fTownCode
;
}
public
String
getfTownCode
()
{
return
fTownCode
;
}
public
void
setfName
(
String
fName
)
{
this
.
fName
=
fName
;
}
public
String
getfName
()
{
return
fName
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fId"
,
getfId
())
.
append
(
"fCountyId"
,
getfCountyId
())
.
append
(
"fTownCode"
,
getfTownCode
())
.
append
(
"fName"
,
getfName
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TVillageLevelRegion.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 村级行政区对象 t_village_level_region
*
* @author zehong
* @date 2024-06-07
*/
public
class
TVillageLevelRegion
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 村级行政区 ID,表主键,非自增 */
private
Long
fId
;
/** 所属乡镇 id */
@Excel
(
name
=
"所属乡镇 id"
)
private
Long
fTownId
;
/** 村行政区划编码 */
@Excel
(
name
=
"村行政区划编码"
)
private
String
fVillageCode
;
/** 村名称 */
@Excel
(
name
=
" 村名称"
)
private
String
fName
;
/** 是否气代煤村,0 否,1 是 */
@Excel
(
name
=
"是否气代煤村,0 否,1 是"
)
private
String
fIsSd
;
public
void
setfId
(
Long
fId
)
{
this
.
fId
=
fId
;
}
public
Long
getfId
()
{
return
fId
;
}
public
void
setfTownId
(
Long
fTownId
)
{
this
.
fTownId
=
fTownId
;
}
public
Long
getfTownId
()
{
return
fTownId
;
}
public
void
setfVillageCode
(
String
fVillageCode
)
{
this
.
fVillageCode
=
fVillageCode
;
}
public
String
getfVillageCode
()
{
return
fVillageCode
;
}
public
void
setfName
(
String
fName
)
{
this
.
fName
=
fName
;
}
public
String
getfName
()
{
return
fName
;
}
public
void
setfIsSd
(
String
fIsSd
)
{
this
.
fIsSd
=
fIsSd
;
}
public
String
getfIsSd
()
{
return
fIsSd
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fId"
,
getfId
())
.
append
(
"fTownId"
,
getfTownId
())
.
append
(
"fVillageCode"
,
getfVillageCode
())
.
append
(
"fName"
,
getfName
())
.
append
(
"fIsSd"
,
getfIsSd
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/vo/TCountyLevelRegionVo.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
domain
.
vo
;
public
class
TCountyLevelRegionVo
{
/** 县级行政区 ID*/
private
Long
id
;
/** 所属市 id*/
private
Long
cityId
;
/** 县(市、区)行政区划编码*/
private
String
countyCode
;
/** 县(市、区)名称*/
private
String
name
;
/** sdd*/
private
Integer
isMajor
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getCityId
()
{
return
cityId
;
}
public
void
setCityId
(
Long
cityId
)
{
this
.
cityId
=
cityId
;
}
public
String
getCountyCode
()
{
return
countyCode
;
}
public
void
setCountyCode
(
String
countyCode
)
{
this
.
countyCode
=
countyCode
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getIsMajor
()
{
return
isMajor
;
}
public
void
setIsMajor
(
Integer
isMajor
)
{
this
.
isMajor
=
isMajor
;
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/vo/TTownLevelRegionVo.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
domain
.
vo
;
public
class
TTownLevelRegionVo
{
/** 乡镇级行政区 ID*/
private
String
id
;
/** 所属县区 id*/
private
String
countyId
;
/** 乡镇行政区划编码*/
private
String
townCode
;
/** 乡镇名称*/
private
String
name
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getCountyId
()
{
return
countyId
;
}
public
void
setCountyId
(
String
countyId
)
{
this
.
countyId
=
countyId
;
}
public
String
getTownCode
()
{
return
townCode
;
}
public
void
setTownCode
(
String
townCode
)
{
this
.
townCode
=
townCode
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/vo/TVillageLevelRegionVo.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
domain
.
vo
;
public
class
TVillageLevelRegionVo
{
/** 村级行政区 ID*/
private
Long
id
;
/** 所属乡镇 id*/
private
Long
townId
;
/** 村行政区划编码*/
private
String
villageCode
;
/** 村名称*/
private
String
name
;
/** 是否气代煤村,0 否,1 是*/
private
Integer
isSd
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getTownId
()
{
return
townId
;
}
public
void
setTownId
(
Long
townId
)
{
this
.
townId
=
townId
;
}
public
String
getVillageCode
()
{
return
villageCode
;
}
public
void
setVillageCode
(
String
villageCode
)
{
this
.
villageCode
=
villageCode
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getIsSd
()
{
return
isSd
;
}
public
void
setIsSd
(
Integer
isSd
)
{
this
.
isSd
=
isSd
;
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/SysSettingMapper.java
View file @
3ae1c138
...
...
@@ -58,4 +58,9 @@ public interface SysSettingMapper
* @return 结果
*/
public
int
deleteSysSettingByIds
(
Integer
[]
systemIds
);
/**
* 根据systemKey获取value
*/
SysSetting
getSystemValueByKey
(
String
systemKey
);
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TCountyLevelRegionMapper.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TCountyLevelRegion
;
/**
* 县级行政区Mapper接口
*
* @author zehong
* @date 2024-06-06
*/
public
interface
TCountyLevelRegionMapper
{
/**
* 查询县级行政区
*
* @param fId 县级行政区ID
* @return 县级行政区
*/
public
TCountyLevelRegion
selectTCountyLevelRegionById
(
Long
fId
);
/**
* 查询县级行政区列表
*
* @param tCountyLevelRegion 县级行政区
* @return 县级行政区集合
*/
public
List
<
TCountyLevelRegion
>
selectTCountyLevelRegionList
(
TCountyLevelRegion
tCountyLevelRegion
);
/**
* 新增县级行政区
*
* @param tCountyLevelRegion 县级行政区
* @return 结果
*/
public
int
insertTCountyLevelRegion
(
TCountyLevelRegion
tCountyLevelRegion
);
/**
* 修改县级行政区
*
* @param tCountyLevelRegion 县级行政区
* @return 结果
*/
public
int
updateTCountyLevelRegion
(
TCountyLevelRegion
tCountyLevelRegion
);
/**
* 删除县级行政区
*
* @param fId 县级行政区ID
* @return 结果
*/
public
int
deleteTCountyLevelRegionById
(
Long
fId
);
/**
* 批量删除县级行政区
*
* @param fIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTCountyLevelRegionByIds
(
Long
[]
fIds
);
/**
* 批量添加
* @param list 批量数据
* @return
*/
int
batchInsertTCountyLevelRegion
(
List
<
TCountyLevelRegion
>
list
);
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TSerialNumberInfoMapper.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TSerialNumberInfo
;
/**
* 序列号Mapper接口
*
* @author zehong
* @date 2024-06-07
*/
public
interface
TSerialNumberInfoMapper
{
/**
* 查询序列号
*
* @param numberId 序列号ID
* @return 序列号
*/
public
TSerialNumberInfo
selectTSerialNumberInfoById
(
Long
numberId
);
/**
* 查询序列号列表
*
* @param tSerialNumberInfo 序列号
* @return 序列号集合
*/
public
List
<
TSerialNumberInfo
>
selectTSerialNumberInfoList
(
TSerialNumberInfo
tSerialNumberInfo
);
/**
* 新增序列号
*
* @param tSerialNumberInfo 序列号
* @return 结果
*/
public
int
insertTSerialNumberInfo
(
TSerialNumberInfo
tSerialNumberInfo
);
/**
* 修改序列号
*
* @param tSerialNumberInfo 序列号
* @return 结果
*/
public
int
updateTSerialNumberInfo
(
TSerialNumberInfo
tSerialNumberInfo
);
/**
* 删除序列号
*
* @param numberId 序列号ID
* @return 结果
*/
public
int
deleteTSerialNumberInfoById
(
Long
numberId
);
/**
* 批量删除序列号
*
* @param numberIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTSerialNumberInfoByIds
(
Long
[]
numberIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TTownLevelRegionMapper.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TTownLevelRegion
;
/**
* 乡级行政区Mapper接口
*
* @author zehong
* @date 2024-06-07
*/
public
interface
TTownLevelRegionMapper
{
/**
* 查询乡级行政区
*
* @param fId 乡级行政区ID
* @return 乡级行政区
*/
public
TTownLevelRegion
selectTTownLevelRegionById
(
Long
fId
);
/**
* 查询乡级行政区列表
*
* @param tTownLevelRegion 乡级行政区
* @return 乡级行政区集合
*/
public
List
<
TTownLevelRegion
>
selectTTownLevelRegionList
(
TTownLevelRegion
tTownLevelRegion
);
/**
* 新增乡级行政区
*
* @param tTownLevelRegion 乡级行政区
* @return 结果
*/
public
int
insertTTownLevelRegion
(
TTownLevelRegion
tTownLevelRegion
);
/**
* 修改乡级行政区
*
* @param tTownLevelRegion 乡级行政区
* @return 结果
*/
public
int
updateTTownLevelRegion
(
TTownLevelRegion
tTownLevelRegion
);
/**
* 删除乡级行政区
*
* @param fId 乡级行政区ID
* @return 结果
*/
public
int
deleteTTownLevelRegionById
(
Long
fId
);
/**
* 批量删除乡级行政区
*
* @param fIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTTownLevelRegionByIds
(
Long
[]
fIds
);
/**
* 批量插入
* @param list 批量数据
* @return
*/
int
batchInsertTTownLevelRegion
(
List
<
TTownLevelRegion
>
list
);
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TVillageLevelRegionMapper.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TVillageLevelRegion
;
/**
* 村级行政区Mapper接口
*
* @author zehong
* @date 2024-06-07
*/
public
interface
TVillageLevelRegionMapper
{
/**
* 查询村级行政区
*
* @param fId 村级行政区ID
* @return 村级行政区
*/
public
TVillageLevelRegion
selectTVillageLevelRegionById
(
Long
fId
);
/**
* 查询村级行政区列表
*
* @param tVillageLevelRegion 村级行政区
* @return 村级行政区集合
*/
public
List
<
TVillageLevelRegion
>
selectTVillageLevelRegionList
(
TVillageLevelRegion
tVillageLevelRegion
);
/**
* 新增村级行政区
*
* @param tVillageLevelRegion 村级行政区
* @return 结果
*/
public
int
insertTVillageLevelRegion
(
TVillageLevelRegion
tVillageLevelRegion
);
/**
* 修改村级行政区
*
* @param tVillageLevelRegion 村级行政区
* @return 结果
*/
public
int
updateTVillageLevelRegion
(
TVillageLevelRegion
tVillageLevelRegion
);
/**
* 删除村级行政区
*
* @param fId 村级行政区ID
* @return 结果
*/
public
int
deleteTVillageLevelRegionById
(
Long
fId
);
/**
* 批量删除村级行政区
*
* @param fIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTVillageLevelRegionByIds
(
Long
[]
fIds
);
/**
* 批量新增
* @param list 批量数据
* @return
*/
int
batchInsertTVillageLevelRegion
(
List
<
TVillageLevelRegion
>
list
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/GovernmentSupervisionInfoService.java
View file @
3ae1c138
...
...
@@ -18,6 +18,30 @@ public interface GovernmentSupervisionInfoService {
*/
JSONObject
getCity
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
/**
* 获取县级行政区
* @param map 入参
* @return
* @throws Exception
*/
JSONObject
getCounty
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
/**
* 获取乡级行政区
* @param map 入参
* @return
* @throws Exception
*/
JSONObject
getTown
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
/**
* 获取村级行政区
* @param map 入参
* @return
* @throws Exception
*/
JSONObject
getVillage
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
/**
* 获取行业专家档案
* @param map 入参
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/ISysSettingService.java
View file @
3ae1c138
...
...
@@ -58,4 +58,9 @@ public interface ISysSettingService
* @return 结果
*/
public
int
deleteSysSettingById
(
Integer
systemId
);
/**
* 根据systemKey获取value
*/
SysSetting
getSystemValueByKey
(
String
systemKey
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITCountyLevelRegionService.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TCountyLevelRegion
;
/**
* 县级行政区Service接口
*
* @author zehong
* @date 2024-06-06
*/
public
interface
ITCountyLevelRegionService
{
/**
* 查询县级行政区
*
* @param fId 县级行政区ID
* @return 县级行政区
*/
public
TCountyLevelRegion
selectTCountyLevelRegionById
(
Long
fId
);
/**
* 查询县级行政区列表
*
* @param tCountyLevelRegion 县级行政区
* @return 县级行政区集合
*/
public
List
<
TCountyLevelRegion
>
selectTCountyLevelRegionList
(
TCountyLevelRegion
tCountyLevelRegion
);
/**
* 新增县级行政区
*
* @param tCountyLevelRegion 县级行政区
* @return 结果
*/
public
int
insertTCountyLevelRegion
(
TCountyLevelRegion
tCountyLevelRegion
);
/**
* 修改县级行政区
*
* @param tCountyLevelRegion 县级行政区
* @return 结果
*/
public
int
updateTCountyLevelRegion
(
TCountyLevelRegion
tCountyLevelRegion
);
/**
* 批量删除县级行政区
*
* @param fIds 需要删除的县级行政区ID
* @return 结果
*/
public
int
deleteTCountyLevelRegionByIds
(
Long
[]
fIds
);
/**
* 删除县级行政区信息
*
* @param fId 县级行政区ID
* @return 结果
*/
public
int
deleteTCountyLevelRegionById
(
Long
fId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITSerialNumberInfoService.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TSerialNumberInfo
;
/**
* 序列号Service接口
*
* @author zehong
* @date 2024-06-07
*/
public
interface
ITSerialNumberInfoService
{
/**
* 查询序列号
*
* @param numberId 序列号ID
* @return 序列号
*/
public
TSerialNumberInfo
selectTSerialNumberInfoById
(
Long
numberId
);
/**
* 查询序列号列表
*
* @param tSerialNumberInfo 序列号
* @return 序列号集合
*/
public
List
<
TSerialNumberInfo
>
selectTSerialNumberInfoList
(
TSerialNumberInfo
tSerialNumberInfo
);
/**
* 新增序列号
*
* @param tSerialNumberInfo 序列号
* @return 结果
*/
public
int
insertTSerialNumberInfo
(
TSerialNumberInfo
tSerialNumberInfo
);
/**
* 修改序列号
*
* @param tSerialNumberInfo 序列号
* @return 结果
*/
public
int
updateTSerialNumberInfo
(
TSerialNumberInfo
tSerialNumberInfo
);
/**
* 批量删除序列号
*
* @param numberIds 需要删除的序列号ID
* @return 结果
*/
public
int
deleteTSerialNumberInfoByIds
(
Long
[]
numberIds
);
/**
* 删除序列号信息
*
* @param numberId 序列号ID
* @return 结果
*/
public
int
deleteTSerialNumberInfoById
(
Long
numberId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITTownLevelRegionService.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TTownLevelRegion
;
/**
* 乡级行政区Service接口
*
* @author zehong
* @date 2024-06-07
*/
public
interface
ITTownLevelRegionService
{
/**
* 查询乡级行政区
*
* @param fId 乡级行政区ID
* @return 乡级行政区
*/
public
TTownLevelRegion
selectTTownLevelRegionById
(
Long
fId
);
/**
* 查询乡级行政区列表
*
* @param tTownLevelRegion 乡级行政区
* @return 乡级行政区集合
*/
public
List
<
TTownLevelRegion
>
selectTTownLevelRegionList
(
TTownLevelRegion
tTownLevelRegion
);
/**
* 新增乡级行政区
*
* @param tTownLevelRegion 乡级行政区
* @return 结果
*/
public
int
insertTTownLevelRegion
(
TTownLevelRegion
tTownLevelRegion
);
/**
* 修改乡级行政区
*
* @param tTownLevelRegion 乡级行政区
* @return 结果
*/
public
int
updateTTownLevelRegion
(
TTownLevelRegion
tTownLevelRegion
);
/**
* 批量删除乡级行政区
*
* @param fIds 需要删除的乡级行政区ID
* @return 结果
*/
public
int
deleteTTownLevelRegionByIds
(
Long
[]
fIds
);
/**
* 删除乡级行政区信息
*
* @param fId 乡级行政区ID
* @return 结果
*/
public
int
deleteTTownLevelRegionById
(
Long
fId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITVillageLevelRegionService.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TVillageLevelRegion
;
/**
* 村级行政区Service接口
*
* @author zehong
* @date 2024-06-07
*/
public
interface
ITVillageLevelRegionService
{
/**
* 查询村级行政区
*
* @param fId 村级行政区ID
* @return 村级行政区
*/
public
TVillageLevelRegion
selectTVillageLevelRegionById
(
Long
fId
);
/**
* 查询村级行政区列表
*
* @param tVillageLevelRegion 村级行政区
* @return 村级行政区集合
*/
public
List
<
TVillageLevelRegion
>
selectTVillageLevelRegionList
(
TVillageLevelRegion
tVillageLevelRegion
);
/**
* 新增村级行政区
*
* @param tVillageLevelRegion 村级行政区
* @return 结果
*/
public
int
insertTVillageLevelRegion
(
TVillageLevelRegion
tVillageLevelRegion
);
/**
* 修改村级行政区
*
* @param tVillageLevelRegion 村级行政区
* @return 结果
*/
public
int
updateTVillageLevelRegion
(
TVillageLevelRegion
tVillageLevelRegion
);
/**
* 批量删除村级行政区
*
* @param fIds 需要删除的村级行政区ID
* @return 结果
*/
public
int
deleteTVillageLevelRegionByIds
(
Long
[]
fIds
);
/**
* 删除村级行政区信息
*
* @param fId 村级行政区ID
* @return 结果
*/
public
int
deleteTVillageLevelRegionById
(
Long
fId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/GovernmentSupervisionInfoServiceImpl.java
View file @
3ae1c138
...
...
@@ -10,10 +10,8 @@ import com.zehong.system.mapper.*;
import
com.zehong.system.service.GovernmentSupervisionInfoService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -58,6 +56,15 @@ public class GovernmentSupervisionInfoServiceImpl implements GovernmentSupervisi
@Resource
private
TCityLevelRegionMapper
tCityLevelRegionMapper
;
@Resource
private
TCountyLevelRegionMapper
tCountyLevelRegionMapper
;
@Resource
private
TTownLevelRegionMapper
tTownLevelRegionMapper
;
@Resource
private
TVillageLevelRegionMapper
tVillageLevelRegionMapper
;
/**
* 获取市级行政区
* @param map 入参
...
...
@@ -74,9 +81,9 @@ public class GovernmentSupervisionInfoServiceImpl implements GovernmentSupervisi
JSONArray
data
=
json
.
getJSONArray
(
"data"
);
List
<
TCityLevelRegion
>
tCityLevelRegionList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
data
.
size
();
i
++){
TCityLevelRegionVo
proAppInforBrowse
Vo
=
JSONObject
.
toJavaObject
(
data
.
getJSONObject
(
i
),
TCityLevelRegionVo
.
class
);
TCityLevelRegionVo
tCityLevelRegion
Vo
=
JSONObject
.
toJavaObject
(
data
.
getJSONObject
(
i
),
TCityLevelRegionVo
.
class
);
TCityLevelRegion
cityLevelRegion
=
new
TCityLevelRegion
();
GovernmentDataCopyUtil
.
copyToLocalData
(
proAppInforBrowse
Vo
,
cityLevelRegion
);
GovernmentDataCopyUtil
.
copyToLocalData
(
tCityLevelRegion
Vo
,
cityLevelRegion
);
tCityLevelRegionList
.
add
(
cityLevelRegion
);
}
tCityLevelRegionMapper
.
batchInsertTCityLevelRegion
(
tCityLevelRegionList
);
...
...
@@ -84,6 +91,85 @@ public class GovernmentSupervisionInfoServiceImpl implements GovernmentSupervisi
return
json
;
}
/**
* 获取县级行政区
* @param map 入参
* @return
* @throws Exception
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
JSONObject
getCounty
(
Map
<
String
,
Object
>
map
)
throws
Exception
{
JSONObject
json
=
governmentDataUtil
.
getInfo
(
"region/county/information"
,
"READ"
,
map
);
log
.
info
(
"获取县级行政区结果========="
+
json
.
toString
());
//结果入库
if
(
null
!=
json
&&
"0"
.
equals
(
json
.
getString
(
"resultCode"
))
&&
null
!=
json
.
getJSONArray
(
"data"
)){
JSONArray
data
=
json
.
getJSONArray
(
"data"
);
List
<
TCountyLevelRegion
>
tCountyLevelRegionList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
data
.
size
();
i
++){
TCountyLevelRegionVo
tCountyLevelRegionVo
=
JSONObject
.
toJavaObject
(
data
.
getJSONObject
(
i
),
TCountyLevelRegionVo
.
class
);
TCountyLevelRegion
countyLevelRegion
=
new
TCountyLevelRegion
();
GovernmentDataCopyUtil
.
copyToLocalData
(
tCountyLevelRegionVo
,
countyLevelRegion
);
tCountyLevelRegionList
.
add
(
countyLevelRegion
);
}
tCountyLevelRegionMapper
.
batchInsertTCountyLevelRegion
(
tCountyLevelRegionList
);
}
return
json
;
}
/**
* 获取乡级行政区
* @param map 入参
* @return
* @throws Exception
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
JSONObject
getTown
(
Map
<
String
,
Object
>
map
)
throws
Exception
{
JSONObject
json
=
governmentDataUtil
.
getInfo
(
"region/town/information"
,
"READ"
,
map
);
log
.
info
(
"获取乡级行政区结果========="
+
json
.
toString
());
//结果入库
if
(
null
!=
json
&&
"0"
.
equals
(
json
.
getString
(
"resultCode"
))
&&
null
!=
json
.
getJSONArray
(
"data"
)){
JSONArray
data
=
json
.
getJSONArray
(
"data"
);
List
<
TTownLevelRegion
>
townLevelRegionList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
data
.
size
();
i
++){
TTownLevelRegionVo
tTownLevelRegionVo
=
JSONObject
.
toJavaObject
(
data
.
getJSONObject
(
i
),
TTownLevelRegionVo
.
class
);
TTownLevelRegion
townLevelRegion
=
new
TTownLevelRegion
();
GovernmentDataCopyUtil
.
copyToLocalData
(
tTownLevelRegionVo
,
townLevelRegion
);
townLevelRegionList
.
add
(
townLevelRegion
);
}
tTownLevelRegionMapper
.
batchInsertTTownLevelRegion
(
townLevelRegionList
);
}
return
json
;
}
/**
* 获取村级行政区
* @param map 入参
* @return
* @throws Exception
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
JSONObject
getVillage
(
Map
<
String
,
Object
>
map
)
throws
Exception
{
JSONObject
json
=
governmentDataUtil
.
getInfo
(
"region/village/information"
,
"READ"
,
map
);
log
.
info
(
"获取村级行政区结果========="
+
json
.
toString
());
//结果入库
if
(
null
!=
json
&&
"0"
.
equals
(
json
.
getString
(
"resultCode"
))
&&
null
!=
json
.
getJSONArray
(
"data"
)){
JSONArray
data
=
json
.
getJSONArray
(
"data"
);
List
<
TVillageLevelRegion
>
villageLevelRegionList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
data
.
size
();
i
++){
TVillageLevelRegionVo
tVillageLevelRegionVo
=
JSONObject
.
toJavaObject
(
data
.
getJSONObject
(
i
),
TVillageLevelRegionVo
.
class
);
TVillageLevelRegion
villageLevelRegion
=
new
TVillageLevelRegion
();
GovernmentDataCopyUtil
.
copyToLocalData
(
tVillageLevelRegionVo
,
villageLevelRegion
);
villageLevelRegionList
.
add
(
villageLevelRegion
);
}
tVillageLevelRegionMapper
.
batchInsertTVillageLevelRegion
(
villageLevelRegionList
);
}
return
json
;
}
/**
* 获取行业专家档案
* @param map 入参
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/SysSettingServiceImpl.java
View file @
3ae1c138
...
...
@@ -93,4 +93,12 @@ public class SysSettingServiceImpl implements ISysSettingService
{
return
sysSettingMapper
.
deleteSysSettingById
(
systemId
);
}
/**
* 根据systemKey获取value
*/
@Override
public
SysSetting
getSystemValueByKey
(
String
systemKey
)
{
return
sysSettingMapper
.
getSystemValueByKey
(
systemKey
);
}
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TCountyLevelRegionServiceImpl.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TCountyLevelRegionMapper
;
import
com.zehong.system.domain.TCountyLevelRegion
;
import
com.zehong.system.service.ITCountyLevelRegionService
;
/**
* 县级行政区Service业务层处理
*
* @author zehong
* @date 2024-06-06
*/
@Service
public
class
TCountyLevelRegionServiceImpl
implements
ITCountyLevelRegionService
{
@Autowired
private
TCountyLevelRegionMapper
tCountyLevelRegionMapper
;
/**
* 查询县级行政区
*
* @param fId 县级行政区ID
* @return 县级行政区
*/
@Override
public
TCountyLevelRegion
selectTCountyLevelRegionById
(
Long
fId
)
{
return
tCountyLevelRegionMapper
.
selectTCountyLevelRegionById
(
fId
);
}
/**
* 查询县级行政区列表
*
* @param tCountyLevelRegion 县级行政区
* @return 县级行政区
*/
@Override
public
List
<
TCountyLevelRegion
>
selectTCountyLevelRegionList
(
TCountyLevelRegion
tCountyLevelRegion
)
{
return
tCountyLevelRegionMapper
.
selectTCountyLevelRegionList
(
tCountyLevelRegion
);
}
/**
* 新增县级行政区
*
* @param tCountyLevelRegion 县级行政区
* @return 结果
*/
@Override
public
int
insertTCountyLevelRegion
(
TCountyLevelRegion
tCountyLevelRegion
)
{
return
tCountyLevelRegionMapper
.
insertTCountyLevelRegion
(
tCountyLevelRegion
);
}
/**
* 修改县级行政区
*
* @param tCountyLevelRegion 县级行政区
* @return 结果
*/
@Override
public
int
updateTCountyLevelRegion
(
TCountyLevelRegion
tCountyLevelRegion
)
{
return
tCountyLevelRegionMapper
.
updateTCountyLevelRegion
(
tCountyLevelRegion
);
}
/**
* 批量删除县级行政区
*
* @param fIds 需要删除的县级行政区ID
* @return 结果
*/
@Override
public
int
deleteTCountyLevelRegionByIds
(
Long
[]
fIds
)
{
return
tCountyLevelRegionMapper
.
deleteTCountyLevelRegionByIds
(
fIds
);
}
/**
* 删除县级行政区信息
*
* @param fId 县级行政区ID
* @return 结果
*/
@Override
public
int
deleteTCountyLevelRegionById
(
Long
fId
)
{
return
tCountyLevelRegionMapper
.
deleteTCountyLevelRegionById
(
fId
);
}
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TSerialNumberInfoServiceImpl.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
com.zehong.common.utils.DateUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TSerialNumberInfoMapper
;
import
com.zehong.system.domain.TSerialNumberInfo
;
import
com.zehong.system.service.ITSerialNumberInfoService
;
/**
* 序列号Service业务层处理
*
* @author zehong
* @date 2024-06-07
*/
@Service
public
class
TSerialNumberInfoServiceImpl
implements
ITSerialNumberInfoService
{
@Autowired
private
TSerialNumberInfoMapper
tSerialNumberInfoMapper
;
/**
* 查询序列号
*
* @param numberId 序列号ID
* @return 序列号
*/
@Override
public
TSerialNumberInfo
selectTSerialNumberInfoById
(
Long
numberId
)
{
return
tSerialNumberInfoMapper
.
selectTSerialNumberInfoById
(
numberId
);
}
/**
* 查询序列号列表
*
* @param tSerialNumberInfo 序列号
* @return 序列号
*/
@Override
public
List
<
TSerialNumberInfo
>
selectTSerialNumberInfoList
(
TSerialNumberInfo
tSerialNumberInfo
)
{
return
tSerialNumberInfoMapper
.
selectTSerialNumberInfoList
(
tSerialNumberInfo
);
}
/**
* 新增序列号
*
* @param tSerialNumberInfo 序列号
* @return 结果
*/
@Override
public
int
insertTSerialNumberInfo
(
TSerialNumberInfo
tSerialNumberInfo
)
{
return
tSerialNumberInfoMapper
.
insertTSerialNumberInfo
(
tSerialNumberInfo
);
}
/**
* 修改序列号
*
* @param tSerialNumberInfo 序列号
* @return 结果
*/
@Override
public
int
updateTSerialNumberInfo
(
TSerialNumberInfo
tSerialNumberInfo
)
{
tSerialNumberInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
tSerialNumberInfoMapper
.
updateTSerialNumberInfo
(
tSerialNumberInfo
);
}
/**
* 批量删除序列号
*
* @param numberIds 需要删除的序列号ID
* @return 结果
*/
@Override
public
int
deleteTSerialNumberInfoByIds
(
Long
[]
numberIds
)
{
return
tSerialNumberInfoMapper
.
deleteTSerialNumberInfoByIds
(
numberIds
);
}
/**
* 删除序列号信息
*
* @param numberId 序列号ID
* @return 结果
*/
@Override
public
int
deleteTSerialNumberInfoById
(
Long
numberId
)
{
return
tSerialNumberInfoMapper
.
deleteTSerialNumberInfoById
(
numberId
);
}
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TTownLevelRegionServiceImpl.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TTownLevelRegionMapper
;
import
com.zehong.system.domain.TTownLevelRegion
;
import
com.zehong.system.service.ITTownLevelRegionService
;
/**
* 乡级行政区Service业务层处理
*
* @author zehong
* @date 2024-06-07
*/
@Service
public
class
TTownLevelRegionServiceImpl
implements
ITTownLevelRegionService
{
@Autowired
private
TTownLevelRegionMapper
tTownLevelRegionMapper
;
/**
* 查询乡级行政区
*
* @param fId 乡级行政区ID
* @return 乡级行政区
*/
@Override
public
TTownLevelRegion
selectTTownLevelRegionById
(
Long
fId
)
{
return
tTownLevelRegionMapper
.
selectTTownLevelRegionById
(
fId
);
}
/**
* 查询乡级行政区列表
*
* @param tTownLevelRegion 乡级行政区
* @return 乡级行政区
*/
@Override
public
List
<
TTownLevelRegion
>
selectTTownLevelRegionList
(
TTownLevelRegion
tTownLevelRegion
)
{
return
tTownLevelRegionMapper
.
selectTTownLevelRegionList
(
tTownLevelRegion
);
}
/**
* 新增乡级行政区
*
* @param tTownLevelRegion 乡级行政区
* @return 结果
*/
@Override
public
int
insertTTownLevelRegion
(
TTownLevelRegion
tTownLevelRegion
)
{
return
tTownLevelRegionMapper
.
insertTTownLevelRegion
(
tTownLevelRegion
);
}
/**
* 修改乡级行政区
*
* @param tTownLevelRegion 乡级行政区
* @return 结果
*/
@Override
public
int
updateTTownLevelRegion
(
TTownLevelRegion
tTownLevelRegion
)
{
return
tTownLevelRegionMapper
.
updateTTownLevelRegion
(
tTownLevelRegion
);
}
/**
* 批量删除乡级行政区
*
* @param fIds 需要删除的乡级行政区ID
* @return 结果
*/
@Override
public
int
deleteTTownLevelRegionByIds
(
Long
[]
fIds
)
{
return
tTownLevelRegionMapper
.
deleteTTownLevelRegionByIds
(
fIds
);
}
/**
* 删除乡级行政区信息
*
* @param fId 乡级行政区ID
* @return 结果
*/
@Override
public
int
deleteTTownLevelRegionById
(
Long
fId
)
{
return
tTownLevelRegionMapper
.
deleteTTownLevelRegionById
(
fId
);
}
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TVillageLevelRegionServiceImpl.java
0 → 100644
View file @
3ae1c138
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TVillageLevelRegionMapper
;
import
com.zehong.system.domain.TVillageLevelRegion
;
import
com.zehong.system.service.ITVillageLevelRegionService
;
/**
* 村级行政区Service业务层处理
*
* @author zehong
* @date 2024-06-07
*/
@Service
public
class
TVillageLevelRegionServiceImpl
implements
ITVillageLevelRegionService
{
@Autowired
private
TVillageLevelRegionMapper
tVillageLevelRegionMapper
;
/**
* 查询村级行政区
*
* @param fId 村级行政区ID
* @return 村级行政区
*/
@Override
public
TVillageLevelRegion
selectTVillageLevelRegionById
(
Long
fId
)
{
return
tVillageLevelRegionMapper
.
selectTVillageLevelRegionById
(
fId
);
}
/**
* 查询村级行政区列表
*
* @param tVillageLevelRegion 村级行政区
* @return 村级行政区
*/
@Override
public
List
<
TVillageLevelRegion
>
selectTVillageLevelRegionList
(
TVillageLevelRegion
tVillageLevelRegion
)
{
return
tVillageLevelRegionMapper
.
selectTVillageLevelRegionList
(
tVillageLevelRegion
);
}
/**
* 新增村级行政区
*
* @param tVillageLevelRegion 村级行政区
* @return 结果
*/
@Override
public
int
insertTVillageLevelRegion
(
TVillageLevelRegion
tVillageLevelRegion
)
{
return
tVillageLevelRegionMapper
.
insertTVillageLevelRegion
(
tVillageLevelRegion
);
}
/**
* 修改村级行政区
*
* @param tVillageLevelRegion 村级行政区
* @return 结果
*/
@Override
public
int
updateTVillageLevelRegion
(
TVillageLevelRegion
tVillageLevelRegion
)
{
return
tVillageLevelRegionMapper
.
updateTVillageLevelRegion
(
tVillageLevelRegion
);
}
/**
* 批量删除村级行政区
*
* @param fIds 需要删除的村级行政区ID
* @return 结果
*/
@Override
public
int
deleteTVillageLevelRegionByIds
(
Long
[]
fIds
)
{
return
tVillageLevelRegionMapper
.
deleteTVillageLevelRegionByIds
(
fIds
);
}
/**
* 删除村级行政区信息
*
* @param fId 村级行政区ID
* @return 结果
*/
@Override
public
int
deleteTVillageLevelRegionById
(
Long
fId
)
{
return
tVillageLevelRegionMapper
.
deleteTVillageLevelRegionById
(
fId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/SysSettingMapper.xml
View file @
3ae1c138
...
...
@@ -89,4 +89,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{systemId}
</foreach>
</delete>
<select
id=
"getSystemValueByKey"
parameterType=
"java.lang.String"
resultMap=
"SysSettingResult"
>
<include
refid=
"selectSysSettingVo"
/>
where system_key = #{systemKey}
</select>
</mapper>
\ No newline at end of file
zh-baseversion-system/src/main/resources/mapper/system/TCountyLevelRegionMapper.xml
0 → 100644
View file @
3ae1c138
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TCountyLevelRegionMapper"
>
<resultMap
type=
"TCountyLevelRegion"
id=
"TCountyLevelRegionResult"
>
<result
property=
"fId"
column=
"f_id"
/>
<result
property=
"fCityId"
column=
"f_city_id"
/>
<result
property=
"fCountyCode"
column=
"f_county_code"
/>
<result
property=
"fName"
column=
"f_name"
/>
<result
property=
"fIsMajor"
column=
"f_is_major"
/>
</resultMap>
<sql
id=
"selectTCountyLevelRegionVo"
>
select f_id, f_city_id, f_county_code, f_name, f_is_major from t_county_level_region
</sql>
<select
id=
"selectTCountyLevelRegionList"
parameterType=
"TCountyLevelRegion"
resultMap=
"TCountyLevelRegionResult"
>
<include
refid=
"selectTCountyLevelRegionVo"
/>
<where>
<if
test=
"fCityId != null "
>
and f_city_id = #{fCityId}
</if>
<if
test=
"fCountyCode != null and fCountyCode != ''"
>
and f_county_code = #{fCountyCode}
</if>
<if
test=
"fName != null and fName != ''"
>
and f_name like concat('%', #{fName}, '%')
</if>
<if
test=
"fIsMajor != null "
>
and f_is_major = #{fIsMajor}
</if>
</where>
</select>
<select
id=
"selectTCountyLevelRegionById"
parameterType=
"Long"
resultMap=
"TCountyLevelRegionResult"
>
<include
refid=
"selectTCountyLevelRegionVo"
/>
where f_id = #{fId}
</select>
<insert
id=
"insertTCountyLevelRegion"
parameterType=
"TCountyLevelRegion"
>
insert into t_county_level_region
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fId != null"
>
f_id,
</if>
<if
test=
"fCityId != null"
>
f_city_id,
</if>
<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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fId != null"
>
#{fId},
</if>
<if
test=
"fCityId != null"
>
#{fCityId},
</if>
<if
test=
"fCountyCode != null and fCountyCode != ''"
>
#{fCountyCode},
</if>
<if
test=
"fName != null and fName != ''"
>
#{fName},
</if>
<if
test=
"fIsMajor != null"
>
#{fIsMajor},
</if>
</trim>
</insert>
<update
id=
"updateTCountyLevelRegion"
parameterType=
"TCountyLevelRegion"
>
update t_county_level_region
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fCityId != null"
>
f_city_id = #{fCityId},
</if>
<if
test=
"fCountyCode != null and fCountyCode != ''"
>
f_county_code = #{fCountyCode},
</if>
<if
test=
"fName != null and fName != ''"
>
f_name = #{fName},
</if>
<if
test=
"fIsMajor != null"
>
f_is_major = #{fIsMajor},
</if>
</trim>
where f_id = #{fId}
</update>
<delete
id=
"deleteTCountyLevelRegionById"
parameterType=
"Long"
>
delete from t_county_level_region where f_id = #{fId}
</delete>
<delete
id=
"deleteTCountyLevelRegionByIds"
parameterType=
"String"
>
delete from t_county_level_region where f_id in
<foreach
item=
"fId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fId}
</foreach>
</delete>
<insert
id=
"batchInsertTCountyLevelRegion"
parameterType=
"TCountyLevelRegion"
>
insert into t_county_level_region(
f_id,
f_city_id,
f_county_code,
f_name,
f_is_major
)VALUES
<foreach
collection=
"list"
separator=
","
item=
"item"
>
(
#{item.fId},
#{item.fCityId},
#{item.fCountyCode},
#{item.fName},
#{item.fIsMajor}
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
zh-baseversion-system/src/main/resources/mapper/system/TSerialNumberInfoMapper.xml
0 → 100644
View file @
3ae1c138
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TSerialNumberInfoMapper"
>
<resultMap
type=
"TSerialNumberInfo"
id=
"TSerialNumberInfoResult"
>
<result
property=
"numberId"
column=
"number_id"
/>
<result
property=
"tableType"
column=
"table_type"
/>
<result
property=
"columnName"
column=
"column_name"
/>
<result
property=
"maxNum"
column=
"max_num"
/>
<result
property=
"numLength"
column=
"num_length"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"version"
column=
"version"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"remark"
column=
"remark"
/>
</resultMap>
<sql
id=
"selectTSerialNumberInfoVo"
>
select number_id, table_type, column_name, max_num, num_length, update_time, update_by, version, is_del, remark from t_serial_number_info
</sql>
<select
id=
"selectTSerialNumberInfoList"
parameterType=
"TSerialNumberInfo"
resultMap=
"TSerialNumberInfoResult"
>
<include
refid=
"selectTSerialNumberInfoVo"
/>
<where>
<if
test=
"tableType != null "
>
and table_type = #{tableType}
</if>
<if
test=
"columnName != null "
>
and column_name like concat('%', #{columnName}, '%')
</if>
<if
test=
"maxNum != null and maxNum != ''"
>
and max_num = #{maxNum}
</if>
<if
test=
"numLength != null and numLength != ''"
>
and num_length = #{numLength}
</if>
<if
test=
"version != null and version != ''"
>
and version = #{version}
</if>
<if
test=
"isDel != null and isDel != ''"
>
and is_del = #{isDel}
</if>
</where>
</select>
<select
id=
"selectTSerialNumberInfoById"
parameterType=
"Long"
resultMap=
"TSerialNumberInfoResult"
>
<include
refid=
"selectTSerialNumberInfoVo"
/>
where number_id = #{numberId}
</select>
<insert
id=
"insertTSerialNumberInfo"
parameterType=
"TSerialNumberInfo"
useGeneratedKeys=
"true"
keyProperty=
"numberId"
>
insert into t_serial_number_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"tableType != null"
>
table_type,
</if>
<if
test=
"columnName != null"
>
column_name,
</if>
<if
test=
"maxNum != null"
>
max_num,
</if>
<if
test=
"numLength != null"
>
num_length,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"version != null"
>
version,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"remark != null"
>
remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"tableType != null"
>
#{tableType},
</if>
<if
test=
"columnName != null"
>
#{columnName},
</if>
<if
test=
"maxNum != null"
>
#{maxNum},
</if>
<if
test=
"numLength != null"
>
#{numLength},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"version != null"
>
#{version},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
</trim>
</insert>
<update
id=
"updateTSerialNumberInfo"
parameterType=
"TSerialNumberInfo"
>
update t_serial_number_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"tableType != null"
>
table_type = #{tableType},
</if>
<if
test=
"columnName != null"
>
column_name = #{columnName},
</if>
<if
test=
"maxNum != null"
>
max_num = #{maxNum},
</if>
<if
test=
"numLength != null"
>
num_length = #{numLength},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"version != null"
>
version = #{version},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
</trim>
where number_id = #{numberId}
</update>
<delete
id=
"deleteTSerialNumberInfoById"
parameterType=
"Long"
>
delete from t_serial_number_info where number_id = #{numberId}
</delete>
<delete
id=
"deleteTSerialNumberInfoByIds"
parameterType=
"String"
>
delete from t_serial_number_info where number_id in
<foreach
item=
"numberId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{numberId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-system/src/main/resources/mapper/system/TTownLevelRegionMapper.xml
0 → 100644
View file @
3ae1c138
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TTownLevelRegionMapper"
>
<resultMap
type=
"TTownLevelRegion"
id=
"TTownLevelRegionResult"
>
<result
property=
"fId"
column=
"f_id"
/>
<result
property=
"fCountyId"
column=
"f_county_id"
/>
<result
property=
"fTownCode"
column=
"f_town_code"
/>
<result
property=
"fName"
column=
"f_name"
/>
</resultMap>
<sql
id=
"selectTTownLevelRegionVo"
>
select f_id, f_county_id, f_town_code, f_name from t_town_level_region
</sql>
<select
id=
"selectTTownLevelRegionList"
parameterType=
"TTownLevelRegion"
resultMap=
"TTownLevelRegionResult"
>
<include
refid=
"selectTTownLevelRegionVo"
/>
<where>
<if
test=
"fCountyId != null "
>
and f_county_id = #{fCountyId}
</if>
<if
test=
"fTownCode != null and fTownCode != ''"
>
and f_town_code = #{fTownCode}
</if>
<if
test=
"fName != null and fName != ''"
>
and f_name like concat('%', #{fName}, '%')
</if>
</where>
</select>
<select
id=
"selectTTownLevelRegionById"
parameterType=
"Long"
resultMap=
"TTownLevelRegionResult"
>
<include
refid=
"selectTTownLevelRegionVo"
/>
where f_id = #{fId}
</select>
<insert
id=
"insertTTownLevelRegion"
parameterType=
"TTownLevelRegion"
>
insert into t_town_level_region
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fId != null"
>
f_id,
</if>
<if
test=
"fCountyId != null"
>
f_county_id,
</if>
<if
test=
"fTownCode != null and fTownCode != ''"
>
f_town_code,
</if>
<if
test=
"fName != null and fName != ''"
>
f_name,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fId != null"
>
#{fId},
</if>
<if
test=
"fCountyId != null"
>
#{fCountyId},
</if>
<if
test=
"fTownCode != null and fTownCode != ''"
>
#{fTownCode},
</if>
<if
test=
"fName != null and fName != ''"
>
#{fName},
</if>
</trim>
</insert>
<update
id=
"updateTTownLevelRegion"
parameterType=
"TTownLevelRegion"
>
update t_town_level_region
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fCountyId != null"
>
f_county_id = #{fCountyId},
</if>
<if
test=
"fTownCode != null and fTownCode != ''"
>
f_town_code = #{fTownCode},
</if>
<if
test=
"fName != null and fName != ''"
>
f_name = #{fName},
</if>
</trim>
where f_id = #{fId}
</update>
<delete
id=
"deleteTTownLevelRegionById"
parameterType=
"Long"
>
delete from t_town_level_region where f_id = #{fId}
</delete>
<delete
id=
"deleteTTownLevelRegionByIds"
parameterType=
"String"
>
delete from t_town_level_region where f_id in
<foreach
item=
"fId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fId}
</foreach>
</delete>
<insert
id=
"batchInsertTTownLevelRegion"
parameterType=
"TTownLevelRegion"
>
insert into t_town_level_region(
f_id,
f_county_id,
f_town_code,
f_name
)VALUES
<foreach
collection=
"list"
separator=
","
item=
"item"
>
(
#{fId},
#{fCountyId},
#{fTownCode},
#{fName}
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
zh-baseversion-system/src/main/resources/mapper/system/TVillageLevelRegionMapper.xml
0 → 100644
View file @
3ae1c138
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TVillageLevelRegionMapper"
>
<resultMap
type=
"TVillageLevelRegion"
id=
"TVillageLevelRegionResult"
>
<result
property=
"fId"
column=
"f_id"
/>
<result
property=
"fTownId"
column=
"f_town_id"
/>
<result
property=
"fVillageCode"
column=
"f_village_code"
/>
<result
property=
"fName"
column=
"f_name"
/>
<result
property=
"fIsSd"
column=
"f_is_sd"
/>
</resultMap>
<sql
id=
"selectTVillageLevelRegionVo"
>
select f_id, f_town_id, f_village_code, f_name, f_is_sd from t_village_level_region
</sql>
<select
id=
"selectTVillageLevelRegionList"
parameterType=
"TVillageLevelRegion"
resultMap=
"TVillageLevelRegionResult"
>
<include
refid=
"selectTVillageLevelRegionVo"
/>
<where>
<if
test=
"fTownId != null "
>
and f_town_id = #{fTownId}
</if>
<if
test=
"fVillageCode != null and fVillageCode != ''"
>
and f_village_code = #{fVillageCode}
</if>
<if
test=
"fName != null and fName != ''"
>
and f_name like concat('%', #{fName}, '%')
</if>
<if
test=
"fIsSd != null and fIsSd != ''"
>
and f_is_sd = #{fIsSd}
</if>
</where>
</select>
<select
id=
"selectTVillageLevelRegionById"
parameterType=
"Long"
resultMap=
"TVillageLevelRegionResult"
>
<include
refid=
"selectTVillageLevelRegionVo"
/>
where f_id = #{fId}
</select>
<insert
id=
"insertTVillageLevelRegion"
parameterType=
"TVillageLevelRegion"
>
insert into t_village_level_region
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fId != null"
>
f_id,
</if>
<if
test=
"fTownId != null"
>
f_town_id,
</if>
<if
test=
"fVillageCode != null and fVillageCode != ''"
>
f_village_code,
</if>
<if
test=
"fName != null and fName != ''"
>
f_name,
</if>
<if
test=
"fIsSd != null and fIsSd != ''"
>
f_is_sd,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fId != null"
>
#{fId},
</if>
<if
test=
"fTownId != null"
>
#{fTownId},
</if>
<if
test=
"fVillageCode != null and fVillageCode != ''"
>
#{fVillageCode},
</if>
<if
test=
"fName != null and fName != ''"
>
#{fName},
</if>
<if
test=
"fIsSd != null and fIsSd != ''"
>
#{fIsSd},
</if>
</trim>
</insert>
<update
id=
"updateTVillageLevelRegion"
parameterType=
"TVillageLevelRegion"
>
update t_village_level_region
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fTownId != null"
>
f_town_id = #{fTownId},
</if>
<if
test=
"fVillageCode != null and fVillageCode != ''"
>
f_village_code = #{fVillageCode},
</if>
<if
test=
"fName != null and fName != ''"
>
f_name = #{fName},
</if>
<if
test=
"fIsSd != null and fIsSd != ''"
>
f_is_sd = #{fIsSd},
</if>
</trim>
where f_id = #{fId}
</update>
<delete
id=
"deleteTVillageLevelRegionById"
parameterType=
"Long"
>
delete from t_village_level_region where f_id = #{fId}
</delete>
<delete
id=
"deleteTVillageLevelRegionByIds"
parameterType=
"String"
>
delete from t_village_level_region where f_id in
<foreach
item=
"fId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fId}
</foreach>
</delete>
<insert
id=
"batchInsertTVillageLevelRegion"
parameterType=
"TVillageLevelRegion"
>
insert into t_village_level_region(
f_id,
f_town_id,
f_village_code,
f_name,
f_is_sd
)VALUES
<foreach
collection=
"list"
separator=
","
item=
"item"
>
(
#{item.fId},
#{item.fTownId},
#{item.fVillageCode},
#{item.fName},
#{item.fIsSd}
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/
views
/area/city.js
→
zh-baseversion-web/src/
api
/area/city.js
View file @
3ae1c138
File moved
zh-baseversion-web/src/api/area/county.js
0 → 100644
View file @
3ae1c138
import
request
from
'@/utils/request'
// 查询县级行政区列表
export
function
listRegion
(
query
)
{
return
request
({
url
:
'/area/county/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询县级行政区详细
export
function
getRegion
(
fId
)
{
return
request
({
url
:
'/area/county/'
+
fId
,
method
:
'get'
})
}
// 新增县级行政区
export
function
addRegion
(
data
)
{
return
request
({
url
:
'/area/county'
,
method
:
'post'
,
data
:
data
})
}
// 修改县级行政区
export
function
updateRegion
(
data
)
{
return
request
({
url
:
'/area/county'
,
method
:
'put'
,
data
:
data
})
}
// 删除县级行政区
export
function
delRegion
(
fId
)
{
return
request
({
url
:
'/area/county/'
+
fId
,
method
:
'delete'
})
}
// 导出县级行政区
export
function
exportRegion
(
query
)
{
return
request
({
url
:
'/area/county/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/api/area/town.js
0 → 100644
View file @
3ae1c138
import
request
from
'@/utils/request'
// 查询乡级行政区列表
export
function
listRegion
(
query
)
{
return
request
({
url
:
'/area/town/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询乡级行政区详细
export
function
getRegion
(
fId
)
{
return
request
({
url
:
'/area/town/'
+
fId
,
method
:
'get'
})
}
// 新增乡级行政区
export
function
addRegion
(
data
)
{
return
request
({
url
:
'/area/town'
,
method
:
'post'
,
data
:
data
})
}
// 修改乡级行政区
export
function
updateRegion
(
data
)
{
return
request
({
url
:
'/area/town'
,
method
:
'put'
,
data
:
data
})
}
// 删除乡级行政区
export
function
delRegion
(
fId
)
{
return
request
({
url
:
'/area/town/'
+
fId
,
method
:
'delete'
})
}
// 导出乡级行政区
export
function
exportRegion
(
query
)
{
return
request
({
url
:
'/area/town/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/api/area/village.js
0 → 100644
View file @
3ae1c138
import
request
from
'@/utils/request'
// 查询村级行政区列表
export
function
listRegion
(
query
)
{
return
request
({
url
:
'/area/village/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询村级行政区详细
export
function
getRegion
(
fId
)
{
return
request
({
url
:
'/area/village/'
+
fId
,
method
:
'get'
})
}
// 新增村级行政区
export
function
addRegion
(
data
)
{
return
request
({
url
:
'/area/village'
,
method
:
'post'
,
data
:
data
})
}
// 修改村级行政区
export
function
updateRegion
(
data
)
{
return
request
({
url
:
'/area/village'
,
method
:
'put'
,
data
:
data
})
}
// 删除村级行政区
export
function
delRegion
(
fId
)
{
return
request
({
url
:
'/area/village/'
+
fId
,
method
:
'delete'
})
}
// 导出村级行政区
export
function
exportRegion
(
query
)
{
return
request
({
url
:
'/area/village/export'
,
method
:
'get'
,
params
:
query
})
}
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