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
0612f6a2
Commit
0612f6a2
authored
Apr 24, 2023
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整页面为树+卡片列表后修改后端接口
parent
8d31b903
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
14 deletions
+43
-14
PersonAccountDto.java
...join/amos/boot/module/jxiop/api/dto/PersonAccountDto.java
+0
-4
StationBasicDto.java
...ejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
+6
-0
StationBasic.java
...ejoin/amos/boot/module/jxiop/api/entity/StationBasic.java
+3
-2
StationBasicMapper.java
...amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
+6
-3
PersonBasicMapper.xml
...jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
+6
-0
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+9
-0
StationBasicController.java
...t/module/jxiop/biz/controller/StationBasicController.java
+5
-2
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+8
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/PersonAccountDto.java
View file @
0612f6a2
...
...
@@ -52,10 +52,6 @@ public class PersonAccountDto extends BaseDto {
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
stationWorkTime
;
@ApiModelProperty
(
value
=
"岗位"
)
private
String
postName
;
@ApiModelProperty
(
value
=
"姓名"
)
private
String
name
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
View file @
0612f6a2
...
...
@@ -74,6 +74,12 @@ public class StationBasicDto extends BaseDto {
@ApiModelProperty
(
value
=
"所属地区名称"
)
private
String
areaName
;
@ApiModelProperty
(
value
=
"组织机构"
)
private
String
orgCode
;
@ApiModelProperty
(
value
=
"岗位"
)
private
String
postName
;
private
List
<
StationCoordinateDto
>
stationCoordinate
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/StationBasic.java
View file @
0612f6a2
...
...
@@ -123,8 +123,9 @@ public class StationBasic extends BaseEntity {
@TableField
(
"area"
)
private
String
area
;
@TableField
(
"org_code"
)
private
String
orgCode
;
@TableField
(
exist
=
false
)
private
List
<
StationCoordinate
>
stationCoordinate
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
View file @
0612f6a2
...
...
@@ -19,18 +19,21 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
List
<
StationBasicDto
>
queryPage
(
Long
current
,
Long
size
,
String
stationMasterName
,
String
stationName
,
String
stationType
);
String
stationType
,
String
orgCode
);
//统计
List
<
StationBasicDto
>
queryPagecount
(
String
stationMasterName
,
String
stationName
,
String
stationType
);
String
stationType
,
String
orgCode
);
//删除
int
deleteList
(
String
[]
ids
);
//导出
List
<
ExStationBasicDto
>
getExStationBasicDto
(
String
stationMasterName
,
String
stationName
,
String
stationType
);
String
stationType
,
String
orgCode
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
View file @
0612f6a2
...
...
@@ -21,6 +21,9 @@
<where>
person_basic.is_delete=0
<if
test=
"name != null and name != ''"
>
AND person_basic.org_code like concat('%',#{orgCode},'%')
</if>
<if
test=
"name != null and name != ''"
>
AND person_basic.name like concat('%',#{name},'%')
</if>
<if
test=
"accountName != null and accountName != ''"
>
...
...
@@ -44,6 +47,9 @@
<where>
person_basic.is_delete=0
<if
test=
"name != null and name != ''"
>
AND person_basic.org_code like concat('%',#{orgCode},'%')
</if>
<if
test=
"name != null and name != ''"
>
AND person_basic.name like concat('%',#{name},'%')
</if>
<if
test=
"accountName != null and accountName != ''"
>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
0612f6a2
...
...
@@ -26,6 +26,9 @@
<if
test=
"stationType != null and stationType != ''"
>
AND station_basic.station_type = #{stationType}
</if>
<if
test=
"orgCoce != null and orgCoce != ''"
>
AND station_basic.org_code like concat('%',#{orgCoce},'%')
</if>
</where>
ORDER BY station_basic.rec_date DESC
limit #{current},#{size}
...
...
@@ -47,6 +50,9 @@
<if
test=
"stationType != null and stationType != ''"
>
AND station_basic.station_type = #{stationType}
</if>
<if
test=
"orgCoce != null and orgCoce != ''"
>
AND station_basic.org_code like concat('%',#{orgCoce},'%')
</if>
</where>
</select>
...
...
@@ -90,6 +96,9 @@
<if
test=
"stationType != null and stationType != ''"
>
AND station_basic.station_type = #{stationType}
</if>
<if
test=
"orgCoce != null and orgCoce != ''"
>
AND station_basic.org_code like concat('%',#{orgCoce},'%')
</if>
</where>
ORDER BY station_basic.rec_date DESC
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/StationBasicController.java
View file @
0612f6a2
...
...
@@ -105,7 +105,8 @@ public class StationBasicController extends BaseController {
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"stationMasterName"
,
required
=
false
)
String
stationMasterName
,
@RequestParam
(
value
=
"stationName"
,
required
=
false
)
String
stationName
,
@RequestParam
(
value
=
"stationType"
,
required
=
false
)
String
stationType
@RequestParam
(
value
=
"stationType"
,
required
=
false
)
String
stationType
,
@RequestParam
(
value
=
"orgCode"
,
required
=
false
)
String
orgCode
)
{
Page
<
StationBasicDto
>
page
=
new
Page
<
StationBasicDto
>();
...
...
@@ -113,7 +114,9 @@ public class StationBasicController extends BaseController {
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
stationBasicServiceImpl
.
queryPage
(
page
,
stationMasterName
,
stationName
,
stationType
));
stationType
,
orgCode
));
}
/**
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationBasicServiceImpl.java
View file @
0612f6a2
...
...
@@ -50,13 +50,16 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
public
Page
<
StationBasicDto
>
queryPage
(
Page
<
StationBasicDto
>
page
,
String
stationMasterName
,
String
stationName
,
String
stationType
)
{
String
stationType
,
String
orgCode
)
{
List
<
StationBasicDto
>
list
=
stationBasicMapper
.
queryPage
((
page
.
getCurrent
()-
1
)
*
page
.
getSize
(),
page
.
getSize
(),
stationMasterName
,
stationName
,
stationType
);
stationType
,
orgCode
);
List
<
StationBasicDto
>
listcount
=
stationBasicMapper
.
queryPagecount
(
stationMasterName
,
stationName
,
stationType
);
stationType
,
orgCode
);
page
.
setTotal
(
listcount
.
size
());
page
.
setRecords
(
list
);
return
page
;
...
...
@@ -85,6 +88,7 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
//单位
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
stationBasic
.
getArea
()));
stationBasic
.
setAreaName
(
companyModel
.
getCompanyName
());
stationBasic
.
setOrgCode
(
companyModel
.
getOrgCode
());
//场站基本信息
this
.
save
(
stationBasic
);
...
...
@@ -111,6 +115,7 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
//单位
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
stationBasic
.
getArea
()));
stationBasic
.
setAreaName
(
companyModel
.
getCompanyName
());
stationBasic
.
setOrgCode
(
companyModel
.
getOrgCode
());
//场站基本信息
stationBasicMapper
.
updateById
(
stationBasic
);
...
...
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