Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
fa119eaa
Commit
fa119eaa
authored
Dec 23, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改微型消防站
parent
83c88fc6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
10 deletions
+47
-10
FireStationDto.java
...ejoin/amos/boot/module/common/api/dto/FireStationDto.java
+9
-0
FireStation.java
...ejoin/amos/boot/module/common/api/entity/FireStation.java
+7
-0
FireStationController.java
...t/module/common/biz/controller/FireStationController.java
+25
-4
FireStationServiceImpl.java
...odule/common/biz/service/impl/FireStationServiceImpl.java
+4
-4
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+2
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FireStationDto.java
View file @
fa119eaa
...
@@ -122,4 +122,12 @@ public class FireStationDto extends BaseDto {
...
@@ -122,4 +122,12 @@ public class FireStationDto extends BaseDto {
@ApiModelProperty
(
value
=
"战备车辆数量"
)
@ApiModelProperty
(
value
=
"战备车辆数量"
)
private
Integer
carNum
;
private
Integer
carNum
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"机构/部门名称"
)
private
String
bizOrgName
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"机构编码"
)
private
String
bizOrgCode
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/FireStation.java
View file @
fa119eaa
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
...
@@ -87,4 +88,10 @@ public class FireStation extends BaseEntity {
...
@@ -87,4 +88,10 @@ public class FireStation extends BaseEntity {
@ApiModelProperty
(
value
=
"更新时间"
)
@ApiModelProperty
(
value
=
"更新时间"
)
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@TableField
(
fill
=
FieldFill
.
UPDATE
)
private
Date
updateTime
;
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"机构/部门名称"
)
private
String
bizOrgName
;
@ApiModelProperty
(
value
=
"机构编码"
)
private
String
bizOrgCode
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FireStationController.java
View file @
fa119eaa
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.MenuFrom
;
import
com.yeejoin.amos.boot.biz.common.utils.MenuFrom
;
import
com.yeejoin.amos.boot.module.common.api.dto.FireStationDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FireStationDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgMenuDto
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FireStationServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FireStationServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -41,6 +44,9 @@ public class FireStationController extends BaseController {
...
@@ -41,6 +44,9 @@ public class FireStationController extends BaseController {
@Autowired
@Autowired
FireStationServiceImpl
fireStationServiceImpl
;
FireStationServiceImpl
fireStationServiceImpl
;
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
/**
/**
* 新增微型消防站
* 新增微型消防站
*
*
...
@@ -107,11 +113,11 @@ public class FireStationController extends BaseController {
...
@@ -107,11 +113,11 @@ public class FireStationController extends BaseController {
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"微型消防站分页查询"
,
notes
=
"微型消防站分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"微型消防站分页查询"
,
notes
=
"微型消防站分页查询"
)
public
ResponseModel
<
Page
<
FireStationDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
public
ResponseModel
<
Page
<
FireStationDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
@RequestParam
(
value
=
"size"
)
int
size
,
String
bizOrgCode
)
{
Page
<
FireStationDto
>
page
=
new
Page
<
FireStationDto
>();
Page
<
FireStationDto
>
page
=
new
Page
<
FireStationDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
fireStationServiceImpl
.
queryForFireStationPage
(
page
));
return
ResponseHelper
.
buildResponse
(
fireStationServiceImpl
.
queryForFireStationPage
(
page
,
bizOrgCode
));
}
}
/**
/**
...
@@ -142,8 +148,8 @@ public class FireStationController extends BaseController {
...
@@ -142,8 +148,8 @@ public class FireStationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"微型消防站列表全部数据查询"
,
notes
=
"微型消防站列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"微型消防站列表全部数据查询"
,
notes
=
"微型消防站列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
FireStationDto
>>
selectForList
()
{
public
ResponseModel
<
List
<
FireStationDto
>>
selectForList
(
String
bizOrgCode
)
{
return
ResponseHelper
.
buildResponse
(
fireStationServiceImpl
.
queryForFireStationList
(
false
,
null
,
null
));
return
ResponseHelper
.
buildResponse
(
fireStationServiceImpl
.
queryForFireStationList
(
false
,
null
,
null
,
bizOrgCode
));
}
}
/**
/**
...
@@ -159,4 +165,19 @@ public class FireStationController extends BaseController {
...
@@ -159,4 +165,19 @@ public class FireStationController extends BaseController {
List
<
MenuFrom
>
menus
=
fireStationServiceImpl
.
getCompanyTeamTree
();
List
<
MenuFrom
>
menus
=
fireStationServiceImpl
.
getCompanyTeamTree
();
return
ResponseHelper
.
buildResponse
(
menus
);
return
ResponseHelper
.
buildResponse
(
menus
);
}
}
/**
* 微型消防站单位部门树
*
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/companyTreeByUserAndType"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"微型消防站单位部门树"
,
notes
=
"微型消防站单位部门树"
)
public
ResponseModel
<
List
<
OrgMenuDto
>>
companyTreeByUserAndType
(
@RequestParam
(
required
=
false
)
String
type
)
{
// 获取登陆人角色
ReginParams
reginParams
=
getSelectedOrgInfo
();
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
companyTreeByUserAndType
(
reginParams
,
type
));
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FireStationServiceImpl.java
View file @
fa119eaa
...
@@ -48,15 +48,15 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat
...
@@ -48,15 +48,15 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
FireStationDto
>
queryForFireStationPage
(
Page
<
FireStationDto
>
page
)
{
public
Page
<
FireStationDto
>
queryForFireStationPage
(
Page
<
FireStationDto
>
page
,
String
bizOrgCode
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
return
this
.
queryForPage
(
page
,
null
,
false
,
bizOrgCode
);
}
}
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
FireStationDto
>
queryForFireStationList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
eq
)
Long
bizCompanyId
,
@Condition
(
Operator
.
like
)
String
name
)
{
public
List
<
FireStationDto
>
queryForFireStationList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
eq
)
Long
bizCompanyId
,
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
eq
)
String
bizOrgCode
)
{
return
this
.
queryForList
(
""
,
false
,
isDelete
,
bizCompanyId
,
name
);
return
this
.
queryForList
(
""
,
false
,
isDelete
,
bizCompanyId
,
name
,
bizOrgCode
);
}
}
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
fa119eaa
...
@@ -251,7 +251,7 @@ public class ExcelServiceImpl {
...
@@ -251,7 +251,7 @@ public class ExcelServiceImpl {
nameString
=
par
.
containsKey
(
"name"
)?
par
.
get
(
"name"
).
toString
():
null
;
nameString
=
par
.
containsKey
(
"name"
)?
par
.
get
(
"name"
).
toString
():
null
;
bizCompanyId
=
par
.
containsKey
(
"bizCompanyId"
)?
Long
.
parseLong
(
par
.
get
(
"bizCompanyId"
).
toString
()):
null
;;
bizCompanyId
=
par
.
containsKey
(
"bizCompanyId"
)?
Long
.
parseLong
(
par
.
get
(
"bizCompanyId"
).
toString
()):
null
;;
}
}
List
<
FireStationDto
>
fireStationDtoList
=
fireStationService
.
queryForFireStationList
(
false
,
bizCompanyId
,
nameString
);
List
<
FireStationDto
>
fireStationDtoList
=
fireStationService
.
queryForFireStationList
(
false
,
bizCompanyId
,
nameString
,
null
);
ExcelUtil
.
createTemplate
(
response
,
excelDto
.
getFileName
(),
excelDto
.
getSheetName
(),
fireStationDtoList
,
ExcelUtil
.
createTemplate
(
response
,
excelDto
.
getFileName
(),
excelDto
.
getSheetName
(),
fireStationDtoList
,
FireStationDto
.
class
,
null
,
false
);
FireStationDto
.
class
,
null
,
false
);
break
;
break
;
...
@@ -1637,7 +1637,7 @@ public class ExcelServiceImpl {
...
@@ -1637,7 +1637,7 @@ public class ExcelServiceImpl {
FireTeamDto
.
class
,
dataSourcesImpl
,
false
);
FireTeamDto
.
class
,
dataSourcesImpl
,
false
);
break
;
break
;
case
"WXXFZ"
:
case
"WXXFZ"
:
List
<
FireStationDto
>
fireStationDtoList
=
fireStationService
.
queryForFireStationList
(
false
,
null
,
null
);
List
<
FireStationDto
>
fireStationDtoList
=
fireStationService
.
queryForFireStationList
(
false
,
null
,
null
,
null
);
ExcelUtil
.
createTemplate
(
response
,
excelDto
.
getFileName
(),
excelDto
.
getSheetName
(),
fireStationDtoList
,
ExcelUtil
.
createTemplate
(
response
,
excelDto
.
getFileName
(),
excelDto
.
getSheetName
(),
fireStationDtoList
,
FireStationDto
.
class
,
null
,
false
);
FireStationDto
.
class
,
null
,
false
);
break
;
break
;
...
...
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