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
32b386e2
Commit
32b386e2
authored
Feb 24, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_ccs' of
http://172.16.10.76/moa/amos-boot-biz
into develop_ccs
parents
1719e84b
6d579342
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
94 additions
and
40 deletions
+94
-40
KeySiteMapper.xml
...le-common-api/src/main/resources/mapper/KeySiteMapper.xml
+5
-5
FireChemicalServiceImpl.java
...dule/common/biz/service/impl/FireChemicalServiceImpl.java
+13
-1
FireExpertsServiceImpl.java
...odule/common/biz/service/impl/FireExpertsServiceImpl.java
+38
-33
FireStationServiceImpl.java
...odule/common/biz/service/impl/FireStationServiceImpl.java
+7
-1
FireTeamServiceImpl.java
...t/module/common/biz/service/impl/FireTeamServiceImpl.java
+2
-0
LinkageUnitServiceImpl.java
...odule/common/biz/service/impl/LinkageUnitServiceImpl.java
+9
-0
WaterResourceServiceImpl.java
...ule/common/biz/service/impl/WaterResourceServiceImpl.java
+9
-0
AircraftServiceImpl.java
...boot/module/jcs/biz/service/impl/AircraftServiceImpl.java
+11
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/KeySiteMapper.xml
View file @
32b386e2
...
@@ -133,22 +133,22 @@
...
@@ -133,22 +133,22 @@
c.use_nature_name as useNatureName
c.use_nature_name as useNatureName
FROM cb_key_site c
FROM cb_key_site c
where c.is_delete = FALSE
where c.is_delete = FALSE
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''
and name != 'null'
"
>
AND c.`name` like concat('%',#{name}, '%')
AND c.`name` like concat('%',#{name}, '%')
</if>
</if>
<if
test=
"buildingId != null and buildingId != -1"
>
<if
test=
"buildingId != null and buildingId != -1"
>
AND c.`building_id`= #{buildingId}
AND c.`building_id`= #{buildingId}
</if>
</if>
<if
test=
"fireEnduranceRate != null and fireEnduranceRate != ''"
>
<if
test=
"fireEnduranceRate != null and fireEnduranceRate != ''
and fireEnduranceRate != 'null'
"
>
AND c.`fire_endurance_rate`= #{fireEnduranceRate}
AND c.`fire_endurance_rate`= #{fireEnduranceRate}
</if>
</if>
<if
test=
"useNature != null and useNature != ''"
>
<if
test=
"useNature != null and useNature != ''
and useNature != 'null'
"
>
AND c.`use_nature`= #{useNature}
AND c.`use_nature`= #{useNature}
</if>
</if>
<if
test=
"fireFacilitiesInfo != null and fireFacilitiesInfo != ''"
>
<if
test=
"fireFacilitiesInfo != null and fireFacilitiesInfo != ''
and fireFacilitiesInfo != 'null'
"
>
AND c.`fire_facilities_info`= #{fireFacilitiesInfo}
AND c.`fire_facilities_info`= #{fireFacilitiesInfo}
</if>
</if>
<if
test=
"bizOrgCode != null and bizOrgCode!=''"
>
<if
test=
"bizOrgCode != null and bizOrgCode!=''
and bizOrgCode!='null'
"
>
AND c.`biz_org_code` like concat(#{bizOrgCode}, '%')
AND c.`biz_org_code` like concat(#{bizOrgCode}, '%')
</if>
</if>
</select>
</select>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FireChemicalServiceImpl.java
View file @
32b386e2
...
@@ -37,7 +37,19 @@ public class FireChemicalServiceImpl extends BaseService<FireChemicalDto,FireChe
...
@@ -37,7 +37,19 @@ public class FireChemicalServiceImpl extends BaseService<FireChemicalDto,FireChe
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
FireChemicalDto
>
queryForFireChemicalList
(
@Condition
(
Operator
.
like
)
String
casNo
,
@Condition
(
Operator
.
like
)
String
formula
,
@Condition
(
Operator
.
like
)
String
name
,
String
typeCode
,
boolean
isDelete
)
{
public
List
<
FireChemicalDto
>
queryForFireChemicalList
(
@Condition
(
Operator
.
like
)
String
casNo
,
@Condition
(
Operator
.
like
)
String
formula
,
@Condition
(
Operator
.
like
)
String
name
,
String
typeCode
,
boolean
isDelete
)
{
return
this
.
queryForList
(
""
,
false
,
casNo
,
formula
,
name
,
typeCode
,
isDelete
);
if
(
"null"
.
equals
(
casNo
))
{
casNo
=
null
;
}
if
(
"null"
.
equals
(
formula
))
{
formula
=
null
;
}
if
(
"name"
.
equals
(
name
))
{
casNo
=
null
;
}
if
(
"null"
.
equals
(
typeCode
))
{
typeCode
=
null
;
}
return
this
.
queryForList
(
""
,
false
,
casNo
,
formula
,
name
,
typeCode
,
isDelete
);
}
}
/**
/**
* 删除
* 删除
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FireExpertsServiceImpl.java
View file @
32b386e2
...
@@ -14,42 +14,47 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
...
@@ -14,42 +14,47 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
java.util.List
;
import
java.util.List
;
/**
/**
* 服务实现类
* 服务实现类 消防专家
* 消防专家
*
*
* @author system_generator
* @author system_generator
* @date 2021-06-25
* @date 2021-06-25
*/
*/
@Service
@Service
public
class
FireExpertsServiceImpl
extends
BaseService
<
FireExpertsDto
,
FireExperts
,
FireExpertsMapper
>
implements
IFireExpertsService
{
public
class
FireExpertsServiceImpl
extends
BaseService
<
FireExpertsDto
,
FireExperts
,
FireExpertsMapper
>
/**
implements
IFireExpertsService
{
* 分页查询
/**
*/
* 分页查询
@Override
*/
public
Page
<
FireExpertsDto
>
queryForFireExpertsPage1
(
Page
<
FireExpertsDto
>
page
,
@Override
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
public
Page
<
FireExpertsDto
>
queryForFireExpertsPage1
(
Page
<
FireExpertsDto
>
page
,
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
in
)
List
<
String
>
expertCode
)
{
@Condition
(
Operator
.
in
)
List
<
String
>
expertCode
)
{
// 消防专家按时间倒叙排列add rec_date 2021-09-08 by kongfm
// 消防专家按时间倒叙排列add rec_date 2021-09-08 by kongfm
return
this
.
queryForPage
(
page
,
"rec_date"
,
false
,
isDelete
,
name
,
expertCode
);
return
this
.
queryForPage
(
page
,
"rec_date"
,
false
,
isDelete
,
name
,
expertCode
);
}
}
/**
* 分页查询
/**
*/
* 分页查询
@Override
*/
public
Page
<
FireExpertsDto
>
queryForFireExpertsPage
(
Page
<
FireExpertsDto
>
page
,
@Override
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
public
Page
<
FireExpertsDto
>
queryForFireExpertsPage
(
Page
<
FireExpertsDto
>
page
,
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
eq
)
String
expertCode
)
{
@Condition
(
Operator
.
eq
)
String
expertCode
)
{
// 消防专家按时间倒叙排列add rec_date 2021-09-08 by kongfm
// 消防专家按时间倒叙排列add rec_date 2021-09-08 by kongfm
return
this
.
queryForPage
(
page
,
"rec_date"
,
false
,
isDelete
,
name
,
expertCode
);
return
this
.
queryForPage
(
page
,
"rec_date"
,
false
,
isDelete
,
name
,
expertCode
);
}
}
/**
* 列表查询 示例
/**
*/
* 列表查询 示例
public
List
<
FireExpertsDto
>
queryForFireExpertsList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
*/
@Condition
(
Operator
.
like
)
String
name
,
public
List
<
FireExpertsDto
>
queryForFireExpertsList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
eq
)
String
expertCode
)
{
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
eq
)
String
expertCode
)
{
return
this
.
queryForList
(
""
,
false
,
isDelete
,
name
,
expertCode
);
if
(
"null"
.
equals
(
name
))
{
}
name
=
null
;
}
if
(
"null"
.
equals
(
expertCode
))
{
expertCode
=
null
;
}
return
this
.
queryForList
(
""
,
false
,
isDelete
,
name
,
expertCode
);
}
}
}
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 @
32b386e2
...
@@ -70,7 +70,13 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat
...
@@ -70,7 +70,13 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
FireStationDto
>
queryForFireStationList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
eq
)
Long
bizCompanyId
,
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
like
)
String
bizOrgCode
)
{
public
List
<
FireStationDto
>
queryForFireStationList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
eq
)
Long
bizCompanyId
,
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
like
)
String
bizOrgCode
)
{
return
this
.
queryForList
(
""
,
false
,
isDelete
,
bizCompanyId
,
name
,
bizOrgCode
);
if
(
"null"
.
equals
(
bizOrgCode
))
{
bizOrgCode
=
null
;
}
if
(
"null"
.
equals
(
name
))
{
name
=
null
;
}
return
this
.
queryForList
(
""
,
false
,
isDelete
,
bizCompanyId
,
name
,
bizOrgCode
);
}
}
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FireTeamServiceImpl.java
View file @
32b386e2
...
@@ -278,10 +278,12 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
...
@@ -278,10 +278,12 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
i
.
setCompany
(
fireTeam
.
getCompany
());
i
.
setCompany
(
fireTeam
.
getCompany
());
i
.
setCompanyName
(
fireTeam
.
getCompanyName
());
i
.
setCompanyName
(
fireTeam
.
getCompanyName
());
i
.
setCompanyCode
(
fireTeam
.
getCompanyCode
());
i
.
setCompanyCode
(
fireTeam
.
getCompanyCode
());
i
.
setIsDelete
(
false
);
this
.
updateById
(
i
);
this
.
updateById
(
i
);
});
});
}
}
/*如果修改的队伍有下级队伍,所属单位一起修改 2021-10-18 陈召 结束*/
/*如果修改的队伍有下级队伍,所属单位一起修改 2021-10-18 陈召 结束*/
fireTeam
.
setIsDelete
(
false
);
this
.
updateById
(
fireTeam
);
this
.
updateById
(
fireTeam
);
}
}
return
fireTeam
;
return
fireTeam
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/LinkageUnitServiceImpl.java
View file @
32b386e2
...
@@ -307,6 +307,15 @@ public class LinkageUnitServiceImpl extends BaseService<LinkageUnitDto, LinkageU
...
@@ -307,6 +307,15 @@ public class LinkageUnitServiceImpl extends BaseService<LinkageUnitDto, LinkageU
@Override
@Override
public
List
<
LinkageUnitDto
>
exportToExcel
(
String
unitName
,
String
linkageUnitTypeCode
,
String
emergencyLinkageUnitCode
)
{
public
List
<
LinkageUnitDto
>
exportToExcel
(
String
unitName
,
String
linkageUnitTypeCode
,
String
emergencyLinkageUnitCode
)
{
if
(
"null"
.
equals
(
unitName
))
{
unitName
=
null
;
}
if
(
"null"
.
equals
(
linkageUnitTypeCode
))
{
linkageUnitTypeCode
=
null
;
}
if
(
"null"
.
equals
(
emergencyLinkageUnitCode
))
{
emergencyLinkageUnitCode
=
null
;
}
return
linkageUnitMapper
.
exportToExcel
(
unitName
,
linkageUnitTypeCode
,
emergencyLinkageUnitCode
);
return
linkageUnitMapper
.
exportToExcel
(
unitName
,
linkageUnitTypeCode
,
emergencyLinkageUnitCode
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/WaterResourceServiceImpl.java
View file @
32b386e2
...
@@ -191,6 +191,15 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
...
@@ -191,6 +191,15 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
*/
*/
public
List
<
WaterResourceDto
>
exportToExcel
(
Boolean
isDelete
,
String
name
,
public
List
<
WaterResourceDto
>
exportToExcel
(
Boolean
isDelete
,
String
name
,
String
resourceType
,
String
bizOrgCode
)
{
String
resourceType
,
String
bizOrgCode
)
{
if
(
"null"
.
equals
(
name
))
{
name
=
null
;
}
if
(
"null"
.
equals
(
resourceType
))
{
resourceType
=
null
;
}
if
(
"null"
.
equals
(
bizOrgCode
))
{
bizOrgCode
=
null
;
}
return
waterResourceMapper
.
exportToExcel
(
isDelete
,
name
,
resourceType
,
bizOrgCode
);
return
waterResourceMapper
.
exportToExcel
(
isDelete
,
name
,
resourceType
,
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/AircraftServiceImpl.java
View file @
32b386e2
...
@@ -33,6 +33,8 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
...
@@ -33,6 +33,8 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
org.typroject.tyboot.core.restful.exception.instance.DataNotFound
;
import
org.typroject.tyboot.core.restful.exception.instance.DataNotFound
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
static
org
.
hamcrest
.
CoreMatchers
.
nullValue
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -211,6 +213,15 @@ public class AircraftServiceImpl extends BaseService<AircraftDto, Aircraft, Airc
...
@@ -211,6 +213,15 @@ public class AircraftServiceImpl extends BaseService<AircraftDto, Aircraft, Airc
*/
*/
public
List
<
AircraftDto
>
queryAircraftDtoForList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
like
)
String
aircraftModel
,
public
List
<
AircraftDto
>
queryAircraftDtoForList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
like
)
String
aircraftModel
,
String
engineTypeCode
,
String
fuelTypeCode
)
{
String
engineTypeCode
,
String
fuelTypeCode
)
{
if
(
"null"
.
equals
(
aircraftModel
))
{
aircraftModel
=
null
;
}
if
(
"null"
.
equals
(
engineTypeCode
))
{
engineTypeCode
=
null
;
}
if
(
"null"
.
equals
(
fuelTypeCode
))
{
fuelTypeCode
=
null
;
}
return
this
.
queryForList
(
""
,
false
,
isDelete
,
aircraftModel
,
engineTypeCode
,
fuelTypeCode
);
return
this
.
queryForList
(
""
,
false
,
isDelete
,
aircraftModel
,
engineTypeCode
,
fuelTypeCode
);
}
}
...
...
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