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
f3f2b5ef
Commit
f3f2b5ef
authored
Nov 24, 2022
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改bug
parent
0a860fb3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
396 additions
and
230 deletions
+396
-230
CylinderInfoDto.java
...oin/amos/boot/module/tzs/flc/api/dto/CylinderInfoDto.java
+13
-4
CylinderUnitDto.java
...oin/amos/boot/module/tzs/flc/api/dto/CylinderUnitDto.java
+3
-0
TzCylinderInfoDto.java
...n/amos/boot/module/tzs/flc/api/dto/TzCylinderInfoDto.java
+2
-2
CylinderInfo.java
...oin/amos/boot/module/tzs/flc/api/entity/CylinderInfo.java
+2
-2
CylinderInfoMapper.java
...os/boot/module/tzs/flc/api/mapper/CylinderInfoMapper.java
+5
-0
CylinderInspectionMapper.java
...t/module/tzs/flc/api/mapper/CylinderInspectionMapper.java
+4
-0
CylinderUnitMapper.java
...os/boot/module/tzs/flc/api/mapper/CylinderUnitMapper.java
+2
-0
CylinderFillingCheckMapper.xml
.../src/main/resources/mapper/CylinderFillingCheckMapper.xml
+1
-1
CylinderFillingMapper.xml
...s-api/src/main/resources/mapper/CylinderFillingMapper.xml
+1
-1
CylinderInfoMapper.xml
...-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
+10
-1
CylinderInspectionMapper.xml
...pi/src/main/resources/mapper/CylinderInspectionMapper.xml
+10
-0
CylinderUnitMapper.xml
...-tzs-api/src/main/resources/mapper/CylinderUnitMapper.xml
+4
-0
AmosTzsApplication.java
...iz/src/main/java/com/yeejoin/amos/AmosTzsApplication.java
+0
-16
EquipmentCategoryController.java
...odule/tzs/biz/controller/EquipmentCategoryController.java
+82
-48
WechatController.java
...amos/boot/module/tzs/biz/controller/WechatController.java
+0
-0
TzsJgServiceImpl.java
...os/boot/module/tzs/biz/service/impl/TzsJgServiceImpl.java
+16
-4
CylinderInfoController.java
...module/tzs/flc/biz/controller/CylinderInfoController.java
+0
-0
CylinderUnitController.java
...module/tzs/flc/biz/controller/CylinderUnitController.java
+43
-38
CylinderInfoServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
+0
-0
CylinderInspectionServiceImpl.java
...s/flc/biz/service/impl/CylinderInspectionServiceImpl.java
+31
-18
CylinderUnitServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderUnitServiceImpl.java
+6
-0
TzCylinderServiceImpl.java
...odule/tzs/flc/biz/service/impl/TzCylinderServiceImpl.java
+87
-62
application-dev2.properties
...le-tzs-biz/src/main/resources/application-dev2.properties
+71
-30
application.properties
...-module-tzs-biz/src/main/resources/application.properties
+2
-2
logback-dev2.xml
...s-boot-module-tzs-biz/src/main/resources/logback-dev2.xml
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/CylinderInfoDto.java
View file @
f3f2b5ef
...
@@ -82,10 +82,10 @@ public class CylinderInfoDto extends BaseDto {
...
@@ -82,10 +82,10 @@ public class CylinderInfoDto extends BaseDto {
@ApiModelProperty
(
value
=
"数据完整度"
)
@ApiModelProperty
(
value
=
"数据完整度"
)
private
Double
integrity
;
private
Double
integrity
;
@ApiModelProperty
(
value
=
"
???
"
)
@ApiModelProperty
(
value
=
"
精度
"
)
private
String
longitude
;
private
String
longitude
;
@ApiModelProperty
(
value
=
"
γ?
"
)
@ApiModelProperty
(
value
=
"
纬度
"
)
private
String
latitude
;
private
String
latitude
;
@ApiModelProperty
(
value
=
"统一社会信用代码"
)
@ApiModelProperty
(
value
=
"统一社会信用代码"
)
...
@@ -110,10 +110,10 @@ public class CylinderInfoDto extends BaseDto {
...
@@ -110,10 +110,10 @@ public class CylinderInfoDto extends BaseDto {
private
String
typeExperiments
;
private
String
typeExperiments
;
@ApiModelProperty
(
value
=
"阀门制造单位"
)
@ApiModelProperty
(
value
=
"阀门制造单位"
)
private
Double
valveManufacturUnit
;
private
String
valveManufacturUnit
;
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
private
String
nominalWorkPressure
;
private
Double
nominalWorkPressure
;
@ApiModelProperty
(
value
=
"设备品种名称"
)
@ApiModelProperty
(
value
=
"设备品种名称"
)
private
String
cylinderVarietyName
;
private
String
cylinderVarietyName
;
...
@@ -145,5 +145,14 @@ public class CylinderInfoDto extends BaseDto {
...
@@ -145,5 +145,14 @@ public class CylinderInfoDto extends BaseDto {
* 检验状态(已超期、即将超期)
* 检验状态(已超期、即将超期)
*/
*/
private
String
inspectionStatusDesc
;
private
String
inspectionStatusDesc
;
private
int
isWarn
=
0
;
private
String
qrCode
;
private
String
electronicLabelCode
;
private
String
cylinderStatusStr
;
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/CylinderUnitDto.java
View file @
f3f2b5ef
...
@@ -103,5 +103,8 @@ public class CylinderUnitDto extends BaseDto {
...
@@ -103,5 +103,8 @@ public class CylinderUnitDto extends BaseDto {
* 星级 (写死的★★★★★)
* 星级 (写死的★★★★★)
*/
*/
private
String
evaluate
;
private
String
evaluate
;
private
boolean
outOfDate
=
false
;
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/TzCylinderInfoDto.java
View file @
f3f2b5ef
...
@@ -33,7 +33,7 @@ public class TzCylinderInfoDto {
...
@@ -33,7 +33,7 @@ public class TzCylinderInfoDto {
/**
/**
* 设备品种
* 设备品种
*/
*/
private
Integer
cylinderVariety
;
private
String
cylinderVariety
;
@ApiModelProperty
(
value
=
"产品名称"
)
@ApiModelProperty
(
value
=
"产品名称"
)
/**
/**
...
@@ -75,7 +75,7 @@ public class TzCylinderInfoDto {
...
@@ -75,7 +75,7 @@ public class TzCylinderInfoDto {
/**
/**
* 气瓶状态
* 气瓶状态
*/
*/
private
Integer
cylinderStatus
;
private
String
cylinderStatus
;
@ApiModelProperty
(
value
=
"阀门制造单位"
)
@ApiModelProperty
(
value
=
"阀门制造单位"
)
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/entity/CylinderInfo.java
View file @
f3f2b5ef
...
@@ -109,10 +109,10 @@ public class CylinderInfo extends BaseEntity {
...
@@ -109,10 +109,10 @@ public class CylinderInfo extends BaseEntity {
private
String
typeExperiments
;
private
String
typeExperiments
;
@ApiModelProperty
(
value
=
"阀门制造单位"
)
@ApiModelProperty
(
value
=
"阀门制造单位"
)
private
Double
valveManufacturUnit
;
private
String
valveManufacturUnit
;
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
private
String
nominalWorkPressure
;
private
Double
nominalWorkPressure
;
@ApiModelProperty
(
value
=
"设备品种名称"
)
@ApiModelProperty
(
value
=
"设备品种名称"
)
private
String
cylinderVarietyName
;
private
String
cylinderVarietyName
;
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/mapper/CylinderInfoMapper.java
View file @
f3f2b5ef
...
@@ -23,6 +23,9 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
...
@@ -23,6 +23,9 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
* @return
* @return
*/
*/
Map
<
String
,
String
>
queryNumAndOutOfDateNum
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
);
Map
<
String
,
String
>
queryNumAndOutOfDateNum
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
);
Integer
getMonthInfoTotal
(
@Param
(
"regionCode"
)
String
regionCode
);
/**
/**
* 获取上个月气瓶总量
* 获取上个月气瓶总量
...
@@ -46,7 +49,9 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
...
@@ -46,7 +49,9 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
Double
queryIntegirtyByAppId
(
@Param
(
"appId"
)
String
appId
);
Double
queryIntegirtyByAppId
(
@Param
(
"appId"
)
String
appId
);
Integer
getWarnNum
(
String
code
);
Integer
getWarnNum
(
String
code
);
Integer
getMonthInfoTotalUnit
(
@Param
(
"appId"
)
String
appId
);
/**
/**
* 获取上个月气瓶总量-APPID
* 获取上个月气瓶总量-APPID
* @return
* @return
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/mapper/CylinderInspectionMapper.java
View file @
f3f2b5ef
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInfo
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInspection
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInspection
;
/**
/**
...
@@ -10,5 +12,7 @@ import com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInspection;
...
@@ -10,5 +12,7 @@ import com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInspection;
* @date 2022-03-04
* @date 2022-03-04
*/
*/
public
interface
CylinderInspectionMapper
extends
BaseMapper
<
CylinderInspection
>
{
public
interface
CylinderInspectionMapper
extends
BaseMapper
<
CylinderInspection
>
{
Page
<
CylinderInfo
>
queryOutOfDateCylinder
(
Page
<
CylinderInfo
>
pageBean
,
String
appId
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/mapper/CylinderUnitMapper.java
View file @
f3f2b5ef
...
@@ -32,4 +32,6 @@ public interface CylinderUnitMapper extends BaseMapper<CylinderUnit> {
...
@@ -32,4 +32,6 @@ public interface CylinderUnitMapper extends BaseMapper<CylinderUnit> {
Integer
getUnitTotalByRegionCode
(
@Param
(
"regionCode"
)
String
regionCode
);
Integer
getUnitTotalByRegionCode
(
@Param
(
"regionCode"
)
String
regionCode
);
Integer
getWarnNum
(
String
code
);
Integer
getWarnNum
(
String
code
);
Integer
getWarnNumByAppId
(
String
appId
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderFillingCheckMapper.xml
View file @
f3f2b5ef
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
IFNULL(
IFNULL(
sum(
sum(
case c.within_scope+c.sealed_state+c.defective+c.abnormal_temperature+c.warning_sign
case c.within_scope+c.sealed_state+c.defective+c.abnormal_temperature+c.warning_sign
when
5
then 1
when
15730
then 1
else
else
0 end ), 0) from tz_cylinder_filling_check c where date_format(c.inspection_date,'%Y-%m') = date_format(#{time},'%Y-%m') and app_id = #{appId}
0 end ), 0) from tz_cylinder_filling_check c where date_format(c.inspection_date,'%Y-%m') = date_format(#{time},'%Y-%m') and app_id = #{appId}
</select>
</select>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderFillingMapper.xml
View file @
f3f2b5ef
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
IFNULL(
IFNULL(
sum(
sum(
case f.is_valid+f.same+f.is_regulations+f.is_compliance_withGBT+f.have_still_pressure+f.is_complete+f.have_security_documents
case f.is_valid+f.same+f.is_regulations+f.is_compliance_withGBT+f.have_still_pressure+f.is_complete+f.have_security_documents
when
7
then 1
when
21920
then 1
else
else
0 end ),0) from tz_cylinder_filling f where date_format(f.inspection_date,'%Y-%m') = date_format(#{time},'%Y-%m') and app_id = #{appId}
0 end ),0) from tz_cylinder_filling f where date_format(f.inspection_date,'%Y-%m') = date_format(#{time},'%Y-%m') and app_id = #{appId}
</select>
</select>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
f3f2b5ef
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
<sql
id=
"selectAPPIdByRegionCode"
>
<sql
id=
"selectAPPIdByRegionCode"
>
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
</sql>
</sql>
<select
id=
"getMonthInfoTotal"
resultType=
"java.lang.Integer"
>
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) ,
date_format( sync_date, '%Y%m' ) ) =0 AND app_id in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
</select>
<select
id=
"getLastMonthInfoTotal"
resultType=
"java.lang.Integer"
>
<select
id=
"getLastMonthInfoTotal"
resultType=
"java.lang.Integer"
>
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) ,
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) ,
...
@@ -43,7 +48,11 @@
...
@@ -43,7 +48,11 @@
<select
id=
"getWarnNum"
resultType=
"java.lang.Integer"
>
<select
id=
"getWarnNum"
resultType=
"java.lang.Integer"
>
select count(1) from view_cylider_outofdate v where v.app_id in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
select count(1) from view_cylider_outofdate v where v.app_id in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
</select>
</select>
<select
id=
"getMonthInfoTotalUnit"
resultType=
"java.lang.Integer"
>
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( sync_date, '%Y%m' ) ) =0 AND app_id = #{appId}
</select>
<select
id=
"getLastMonthInfoTotalUnit"
resultType=
"java.lang.Integer"
>
<select
id=
"getLastMonthInfoTotalUnit"
resultType=
"java.lang.Integer"
>
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( sync_date, '%Y%m' ) ) =1 AND app_id = #{appId}
select IFNULL(count(sequence_nbr), 0) from tz_cylinder_info where PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( sync_date, '%Y%m' ) ) =1 AND app_id = #{appId}
</select>
</select>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderInspectionMapper.xml
View file @
f3f2b5ef
...
@@ -2,4 +2,14 @@
...
@@ -2,4 +2,14 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderInspectionMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderInspectionMapper"
>
<select
id=
"queryOutOfDateCylinder"
resultType=
"com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInfo"
>
SELECT
*
FROM
tz_cylinder_info info
LEFT JOIN tz_cylinder_inspection ins ON ins.sequence_code = info.sequence_code
WHERE TO_DAYS(ins.next_inspection_date) - TO_DAYS(NOW())
<
= 20
AND info.app_id = #{appId}
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderUnitMapper.xml
View file @
f3f2b5ef
...
@@ -19,5 +19,9 @@
...
@@ -19,5 +19,9 @@
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
)
)
</select>
</select>
<select
id=
"getWarnNumByAppId"
resultType=
"java.lang.Integer"
>
select count(1) from view_cylider_outofdate v where v.app_id =#{appId}
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/AmosTzsApplication.java
View file @
f3f2b5ef
...
@@ -104,22 +104,6 @@ public class AmosTzsApplication {
...
@@ -104,22 +104,6 @@ public class AmosTzsApplication {
@Bean
@Bean
public
void
initToken
()
{
public
void
initToken
()
{
new
Thread
(
new
Runnable
()
{
@Override
public
void
run
()
{
cylinderInfoServiceImpl
.
synFillingUnloadData
();
cylinderInfoServiceImpl
.
synAreaData
();
cylinderInfoServiceImpl
.
addIntegrityData
();
cylinderInfoServiceImpl
.
getCylinderUnitInfo
();
cylinderInfoServiceImpl
.
getCylinderInfo
();
cylinderInfoServiceImpl
.
synUnitCylinderInfoData
();
cylinderInfoServiceImpl
.
synUnitCylinderFillingData
();
cylinderInfoServiceImpl
.
synUnitCylinderTagsData
();
cylinderInfoServiceImpl
.
synUnitIntegrityData
();
cylinderInfoServiceImpl
.
synUnitFillingCheckData
();
cylinderInfoServiceImpl
.
synFillingUnloadUnitData
();
}
}).
start
();
startPlatformTokenService
.
getToken
();
startPlatformTokenService
.
getToken
();
}
}
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EquipmentCategoryController.java
View file @
f3f2b5ef
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
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.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.utils.Menu
;
import
com.yeejoin.amos.boot.biz.common.utils.TreeParser
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.EquipmentCategoryServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.EquipmentCategoryServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
@@ -12,8 +17,13 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
...
@@ -12,8 +17,13 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EquipmentCategory
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
@@ -28,76 +38,100 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
...
@@ -28,76 +38,100 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
@RequestMapping
(
value
=
"/equipment-category"
)
@RequestMapping
(
value
=
"/equipment-category"
)
public
class
EquipmentCategoryController
extends
BaseController
{
public
class
EquipmentCategoryController
extends
BaseController
{
@Autowired
@Autowired
EquipmentCategoryServiceImpl
equipmentCategoryServiceImpl
;
EquipmentCategoryServiceImpl
equipmentCategoryServiceImpl
;
/**
/**
* 新增装备分类
* 新增装备分类
*
*
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增装备分类"
,
notes
=
"新增装备分类"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增装备分类"
,
notes
=
"新增装备分类"
)
public
ResponseModel
<
EquipmentCategoryDto
>
save
(
@RequestBody
EquipmentCategoryDto
model
)
{
public
ResponseModel
<
EquipmentCategoryDto
>
save
(
@RequestBody
EquipmentCategoryDto
model
)
{
model
=
equipmentCategoryServiceImpl
.
createWithModel
(
model
);
model
=
equipmentCategoryServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
/**
/**
* 根据sequenceNbr删除
* 根据sequenceNbr删除
*
*
* @param sequenceNbr 主键
* @param sequenceNbr 主键
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除装备分类"
,
notes
=
"根据sequenceNbr删除装备分类"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除装备分类"
,
notes
=
"根据sequenceNbr删除装备分类"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
removeById
(
sequenceNbr
));
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
}
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
/**
* 根据sequenceNbr查询
* 根据sequenceNbr查询
*
*
* @param sequenceNbr
主键
* @param sequenceNbr 主键
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个装备分类"
,
notes
=
"根据sequenceNbr查询单个装备分类"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个装备分类"
,
notes
=
"根据sequenceNbr查询单个装备分类"
)
public
ResponseModel
<
EquipmentCategoryDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
EquipmentCategoryDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
queryBySeq
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
}
/**
/**
* 列表分页查询
* 列表分页查询
*
*
* @param current 当前页
* @param current 当前页
* @param current 每页大小
* @param current 每页大小
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备分类分页查询"
,
notes
=
"装备分类分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备分类分页查询"
,
notes
=
"装备分类分页查询"
)
public
ResponseModel
<
Page
<
EquipmentCategoryDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
EquipmentCategoryDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
(
value
=
"size"
)
int
size
)
{
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
EquipmentCategoryDto
>
page
=
new
Page
<
EquipmentCategoryDto
>();
Page
<
EquipmentCategoryDto
>
page
=
new
Page
<
EquipmentCategoryDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
queryForEquipmentCategoryPage
(
page
));
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
queryForEquipmentCategoryPage
(
page
));
}
}
/**
/**
* 列表全部数据查询
* 列表全部数据查询
*
*
* @return
* @return
*/
*/
@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
<
EquipmentCategoryDto
>>
selectForList
()
{
public
ResponseModel
<
List
<
EquipmentCategoryDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
queryForEquipmentCategoryList
());
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
queryForEquipmentCategoryList
());
}
/**
* 树
*
* @return
* @throws Exception
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备分类列表全部数据查询"
,
notes
=
"装备分类列表全部数据查询"
)
@GetMapping
(
value
=
"/tree"
)
public
ResponseModel
<
Object
>
tree
(
@RequestParam
Long
code
)
throws
Exception
{
EquipmentCategory
root
=
equipmentCategoryServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
EquipmentCategory
>().
eq
(
EquipmentCategory:
:
getCode
,
code
));
QueryWrapper
<
EquipmentCategory
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
likeRight
(
"code"
,
code
.
toString
().
replaceAll
(
"0+$"
,
""
));
Collection
<
EquipmentCategory
>
list
=
equipmentCategoryServiceImpl
.
list
(
queryWrapper
);
Menu
menu
=
new
Menu
(
root
.
getId
(),
root
.
getName
(),
0L
,
0
);
List
<
Menu
>
menus
=
TreeParser
.
getTree
(
root
.
getId
(),
list
,
EquipmentCategory
.
class
.
getName
(),
"getId"
,
0
,
"getName"
,
"getParentId"
,
null
,
"getCode"
);
menu
.
setChildren
(
menus
);
List
<
Menu
>
tree
=
new
ArrayList
<>();
tree
.
add
(
menu
);
return
ResponseHelper
.
buildResponse
(
tree
);
}
}
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/WechatController.java
View file @
f3f2b5ef
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/TzsJgServiceImpl.java
View file @
f3f2b5ef
...
@@ -23,6 +23,7 @@ import com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgProduceInfoDto;
...
@@ -23,6 +23,7 @@ import com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgProduceInfoDto;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgRegistrationInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgRegistrationInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgSuperviseInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgSuperviseInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgUseInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TzsJgUseInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.PageParam
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.PageParam
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsJgConstructionInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsJgConstructionInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsJgDesignInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsJgDesignInfo
;
...
@@ -98,6 +99,8 @@ public class TzsJgServiceImpl implements ITzsJgService {
...
@@ -98,6 +99,8 @@ public class TzsJgServiceImpl implements ITzsJgService {
@Autowired
@Autowired
ITzsJgEnclosureInfoService
iTzsJgEnclosureInfoService
;
ITzsJgEnclosureInfoService
iTzsJgEnclosureInfoService
;
@Autowired
EquipmentCategoryServiceImpl
equipmentCategoryServiceImpl
;
/**
/**
* 文件服务器地址
* 文件服务器地址
*/
*/
...
@@ -113,6 +116,15 @@ public class TzsJgServiceImpl implements ITzsJgService {
...
@@ -113,6 +116,15 @@ public class TzsJgServiceImpl implements ITzsJgService {
tzsJgBasicInfoDto
.
setOrgBranchCode
(
result
.
getResult
().
getOrgCode
());
tzsJgBasicInfoDto
.
setOrgBranchCode
(
result
.
getResult
().
getOrgCode
());
}
}
}
}
if
(
tzsJgBasicInfoDto
.
getEquCategory
()
!=
null
)
{
EquipmentCategory
equipmentCategory
=
equipmentCategoryServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
EquipmentCategory
>().
eq
(
EquipmentCategory:
:
getId
,
tzsJgBasicInfoDto
.
getEquCategory
()));
if
(
equipmentCategory
!=
null
)
{
tzsJgBasicInfoDto
.
setEquCategory
(
equipmentCategory
.
getCode
().
toString
().
replaceAll
(
"0+$"
,
""
));
}
}
Page
<
TzsJgBasicInfoDto
>
page
=
new
Page
<>(
pageParam
.
getCurrent
(),
pageParam
.
getSize
());
Page
<
TzsJgBasicInfoDto
>
page
=
new
Page
<>(
pageParam
.
getCurrent
(),
pageParam
.
getSize
());
return
tzsJgMapper
.
page
(
page
,
tzsJgBasicInfoDto
);
return
tzsJgMapper
.
page
(
page
,
tzsJgBasicInfoDto
);
}
}
...
@@ -302,14 +314,14 @@ public class TzsJgServiceImpl implements ITzsJgService {
...
@@ -302,14 +314,14 @@ public class TzsJgServiceImpl implements ITzsJgService {
.
list
(
new
LambdaQueryWrapper
<
TzsJgEnclosureInfo
>().
eq
(
TzsJgEnclosureInfo:
:
getSequenceCode
,
code
));
.
list
(
new
LambdaQueryWrapper
<
TzsJgEnclosureInfo
>().
eq
(
TzsJgEnclosureInfo:
:
getSequenceCode
,
code
));
List
<
TzsJgEnclosureInfoDto
>
enclosureInfoDtoList
=
new
ArrayList
<
TzsJgEnclosureInfoDto
>();
List
<
TzsJgEnclosureInfoDto
>
enclosureInfoDtoList
=
new
ArrayList
<
TzsJgEnclosureInfoDto
>();
if
(!
enclosureInfoList
.
isEmpty
())
{
if
(!
enclosureInfoList
.
isEmpty
())
{
for
(
TzsJgEnclosureInfo
enclosureInfo
:
enclosureInfoList
)
{
for
(
TzsJgEnclosureInfo
enclosureInfo
:
enclosureInfoList
)
{
TzsJgEnclosureInfoDto
enclosureInfoDtoOne
=
new
TzsJgEnclosureInfoDto
();
TzsJgEnclosureInfoDto
enclosureInfoDtoOne
=
new
TzsJgEnclosureInfoDto
();
BeanUtils
.
copyProperties
(
enclosureInfo
,
enclosureInfoDtoOne
);
BeanUtils
.
copyProperties
(
enclosureInfo
,
enclosureInfoDtoOne
);
//repairInform.forEach(e -> e.setFileUrl(fileServerUrl + e.getFileUrl()));
//
repairInform.forEach(e -> e.setFileUrl(fileServerUrl + e.getFileUrl()));
enclosureInfoDtoList
.
add
(
enclosureInfoDtoOne
);
enclosureInfoDtoList
.
add
(
enclosureInfoDtoOne
);
}
}
}
}
dto
.
setSequenceCode
(
code
);
dto
.
setSequenceCode
(
code
);
if
(
superviseInfo
!=
null
)
{
if
(
superviseInfo
!=
null
)
{
dto
.
setSuperviseCode
(
superviseInfo
.
getSuperviseCode
());
dto
.
setSuperviseCode
(
superviseInfo
.
getSuperviseCode
());
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderInfoController.java
View file @
f3f2b5ef
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderUnitController.java
View file @
f3f2b5ef
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderUnitDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderUnitDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderUnit
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderUnit
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderInfoService
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderInfoService
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderUnitService
;
import
com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderUnitServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderUnitServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -36,8 +37,8 @@ import java.util.Map;
...
@@ -36,8 +37,8 @@ import java.util.Map;
@RequestMapping
(
value
=
"/cylinder-unit"
)
@RequestMapping
(
value
=
"/cylinder-unit"
)
public
class
CylinderUnitController
extends
BaseController
{
public
class
CylinderUnitController
extends
BaseController
{
@Autowired
@Autowired
CylinderUnitServiceImpl
cylinderUnitServiceImpl
;
CylinderUnitServiceImpl
cylinderUnitServiceImpl
;
@Autowired
@Autowired
ICylinderInfoService
iCylinderInfoService
;
ICylinderInfoService
iCylinderInfoService
;
...
@@ -50,68 +51,72 @@ public class CylinderUnitController extends BaseController {
...
@@ -50,68 +51,72 @@ public class CylinderUnitController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/queryCylinderUnitList"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/queryCylinderUnitList"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过regionCode查询气瓶企业"
,
notes
=
"通过regionCode查询气瓶企业"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过regionCode查询气瓶企业"
,
notes
=
"通过regionCode查询气瓶企业"
)
public
ResponseModel
<
List
<
CylinderUnitDto
>>
querySpecialEquipmentList
(
@RequestParam
String
regionCode
){
public
ResponseModel
<
List
<
CylinderUnitDto
>>
querySpecialEquipmentList
(
@RequestParam
String
regionCode
)
{
List
<
CylinderUnit
>
unitList
=
cylinderUnitServiceImpl
.
list
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
like
(
CylinderUnit:
:
getRegionCode
,
regionCode
));
List
<
CylinderUnit
>
unitList
=
cylinderUnitServiceImpl
.
list
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
like
(
CylinderUnit:
:
getRegionCode
,
regionCode
));
List
<
CylinderUnitDto
>
result
=
new
ArrayList
<>();
List
<
CylinderUnitDto
>
result
=
new
ArrayList
<>();
unitList
.
stream
().
forEach
(
t
->
{
unitList
.
stream
().
forEach
(
t
->
{
CylinderUnitDto
temp
=
new
CylinderUnitDto
();
CylinderUnitDto
temp
=
new
CylinderUnitDto
();
BeanUtils
.
copyProperties
(
t
,
temp
);
BeanUtils
.
copyProperties
(
t
,
temp
);
// if(t.getFillingPermitDate() != null && t.getFillingPermitDate().getTime() < System.currentTimeMillis()) {
int
num
=
cylinderUnitServiceImpl
.
getWarnNumByAppId
(
t
.
getAppId
());
// temp.setOutOfDate(true);
if
(
num
>
0
)
{
// } else {
temp
.
setOutOfDate
(
true
);
// temp.setOutOfDate(false);
}
else
{
// }
temp
.
setOutOfDate
(
false
);
}
result
.
add
(
temp
);
result
.
add
(
temp
);
});
});
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
/**
/**
* 根据sequenceNbr查询
* 根据sequenceNbr查询
*
*
* @param id
主键
* @param id 主键
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getUnitInfo"
)
@GetMapping
(
value
=
"/getUnitInfo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个气瓶企业信息"
,
notes
=
"根据sequenceNbr查询单个气瓶企业信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个气瓶企业信息"
,
notes
=
"根据sequenceNbr查询单个气瓶企业信息"
)
public
ResponseModel
<
CylinderUnitDto
>
selectOne
(
@RequestParam
Long
id
)
{
public
ResponseModel
<
CylinderUnitDto
>
selectOne
(
@RequestParam
Long
id
)
{
CylinderUnitDto
unit
=
cylinderUnitServiceImpl
.
queryBySeq
(
id
);
CylinderUnitDto
unit
=
cylinderUnitServiceImpl
.
queryBySeq
(
id
);
unit
.
setEvaluate
(
"★★★★★"
);
unit
.
setEvaluate
(
"★★★★★"
);
// 查询气瓶数量以及过期数量
// 查询气瓶数量以及过期数量
Map
<
String
,
String
>
cylinderInfo
=
iCylinderInfoService
.
queryNumAndOutOfDateNum
(
unit
.
getSequenceNbr
());
Map
<
String
,
String
>
cylinderInfo
=
iCylinderInfoService
.
queryNumAndOutOfDateNum
(
unit
.
getSequenceNbr
());
if
(
cylinderInfo
!=
null
)
{
if
(
cylinderInfo
.
get
(
"cylinderNum"
)
!=
null
)
{
int
num
=
cylinderUnitServiceImpl
.
getWarnNumByAppId
(
unit
.
getAppId
());
if
(
cylinderInfo
!=
null
)
{
if
(
cylinderInfo
.
get
(
"cylinderNum"
)
!=
null
)
{
unit
.
setCylinderNumber
(
Integer
.
valueOf
(
String
.
valueOf
(
cylinderInfo
.
get
(
"cylinderNum"
))));
unit
.
setCylinderNumber
(
Integer
.
valueOf
(
String
.
valueOf
(
cylinderInfo
.
get
(
"cylinderNum"
))));
}
}
if
(
cylinderInfo
.
get
(
"outOfDateNum"
)
!=
null
)
{
// if (cylinderInfo.get("outOfDateNum") != null) {
unit
.
setCylinderOutOfDate
(
String
.
valueOf
(
cylinderInfo
.
get
(
"outOfDateNum"
)));
// unit.setCylinderOutOfDate(String.valueOf(cylinderInfo.get("outOfDateNum")));
}
// }
if
(
cylinderInfo
.
get
(
"fillingPermitDate"
)
!=
null
){
unit
.
setCylinderOutOfDate
(
String
.
valueOf
(
num
));
if
(
cylinderInfo
.
get
(
"fillingPermitDate"
)
!=
null
)
{
unit
.
setFillingPermitDate
(
String
.
valueOf
(
cylinderInfo
.
get
(
"fillingPermitDate"
)));
unit
.
setFillingPermitDate
(
String
.
valueOf
(
cylinderInfo
.
get
(
"fillingPermitDate"
)));
}
}
}
}
return
ResponseHelper
.
buildResponse
(
unit
);
return
ResponseHelper
.
buildResponse
(
unit
);
}
}
/**
/**
* 列表分页查询
* 列表分页查询
*
*
* @param current 当前页
* @param current 当前页
* @param current 每页大小
* @param current 每页大小
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"气瓶企业信息分页查询"
,
notes
=
"气瓶企业信息分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"气瓶企业信息分页查询"
,
notes
=
"气瓶企业信息分页查询"
)
public
ResponseModel
<
Page
<
CylinderUnitDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
public
ResponseModel
<
Page
<
CylinderUnitDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
(
value
=
"size"
)
int
size
)
{
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
CylinderUnitDto
>
page
=
new
Page
<
CylinderUnitDto
>();
Page
<
CylinderUnitDto
>
page
=
new
Page
<
CylinderUnitDto
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
cylinderUnitServiceImpl
.
queryForCylinderUnitPage
(
page
));
return
ResponseHelper
.
buildResponse
(
cylinderUnitServiceImpl
.
queryForCylinderUnitPage
(
page
));
}
}
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
View file @
f3f2b5ef
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderInspectionServiceImpl.java
View file @
f3f2b5ef
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
import
java.util.List
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderInspectionDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInfo
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInspection
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInspection
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderInspectionMapper
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderInspectionMapper
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderInspectionService
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderInspectionService
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderInspectionDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
/**
* 气瓶检验信息服务实现类
* 气瓶检验信息服务实现类
...
@@ -16,18 +19,27 @@ import java.util.List;
...
@@ -16,18 +19,27 @@ import java.util.List;
* @date 2022-03-04
* @date 2022-03-04
*/
*/
@Service
@Service
public
class
CylinderInspectionServiceImpl
extends
BaseService
<
CylinderInspectionDto
,
CylinderInspection
,
CylinderInspectionMapper
>
implements
ICylinderInspectionService
{
public
class
CylinderInspectionServiceImpl
/**
extends
BaseService
<
CylinderInspectionDto
,
CylinderInspection
,
CylinderInspectionMapper
>
* 分页查询
implements
ICylinderInspectionService
{
*/
/**
public
Page
<
CylinderInspectionDto
>
queryForCylinderInspectionPage
(
Page
<
CylinderInspectionDto
>
page
)
{
* 分页查询
return
this
.
queryForPage
(
page
,
null
,
false
);
*/
}
public
Page
<
CylinderInspectionDto
>
queryForCylinderInspectionPage
(
Page
<
CylinderInspectionDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
CylinderInspectionDto
>
queryForCylinderInspectionList
()
{
return
this
.
queryForList
(
""
,
false
);
}
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
CylinderInspectionDto
>
queryForCylinderInspectionList
()
{
public
Page
<
CylinderInfo
>
queryOutOfDateCylinder
(
Page
<
CylinderInfo
>
pageBean
,
String
appId
)
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
baseMapper
.
queryOutOfDateCylinder
(
pageBean
,
appId
);
}
}
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/CylinderUnitServiceImpl.java
View file @
f3f2b5ef
...
@@ -61,4 +61,9 @@ public class CylinderUnitServiceImpl extends BaseService<CylinderUnitDto, Cylind
...
@@ -61,4 +61,9 @@ public class CylinderUnitServiceImpl extends BaseService<CylinderUnitDto, Cylind
// return baseMapper.getWarnNum(code);
// return baseMapper.getWarnNum(code);
return
0
;
return
0
;
}
}
public
int
getWarnNumByAppId
(
String
appId
)
{
return
baseMapper
.
getWarnNumByAppId
(
appId
);
}
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/TzCylinderServiceImpl.java
View file @
f3f2b5ef
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/resources/application-dev2.properties
View file @
f3f2b5ef
#DB properties:
#DB properties:
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://172.16.10.90:53306/tzs_amos_tzs_biz?allowMultiQueries=true&serverTimezone=GMT%2B8
\
spring.datasource.url
=
jdbc:mysql://36.46.151.113:23306/per_tzs_amos_tzs_biz?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
spring.datasource.password
=
Yeejoin@2020
##eureka properties:
#eureka properties:
eureka.client.service-url.defaultZone
=
http://172.16.3.99:10001/eureka/
eureka.instance.hostname
=
eureka
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
eureka.client.serviceUrl.defaultZone
=
http://36.46.151.113:10001/eureka/
management.endpoints.web.exposure.include
=
*
eureka.instance.ip-address
=
172.16.3.133
eureka.instance.health-check-url
=
http://172.16.10.90:${server.port}${server.servlet.context-path}/actuator/health
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url
=
http://172.16.10.90:${server.port}${server.servlet.context-path}/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://172.16.10.90:${server.port}${server.servlet.context-path}/swagger-ui.html
## ES properties:
## ES properties:
biz.elasticsearch.address
=
172.16.10.90
biz.elasticsearch.address
=
36.46.151.113
spring.data.elasticsearch.cluster-name
=
elasticsearch
spring.data.elasticsearch.cluster-name
=
docker-cluster
spring.data.elasticsearch.cluster-nodes
=
${biz.elasticsearch.address}:9300
spring.data.elasticsearch.cluster-nodes
=
${biz.elasticsearch.address}:9300
spring.elasticsearch.rest.uris
=
http://${biz.elasticsearch.address}:9200
spring.elasticsearch.rest.uris
=
http://${biz.elasticsearch.address}:9200
elasticsearch.username
=
elastic
elasticsearch.username
=
elastic
elasticsearch.password
=
123456
elasticsearch.password
=
123456
## unit(h)
## unit(h)
alertcall.es.synchrony.time
=
48
alertcall.es.synchrony.time
=
48
fileserver.domain
=
https://rpm.yeeamos.com:8888/
#redis properties:
#redis properties:
spring.redis.database
=
1
spring.redis.database
=
1
spring.redis.host
=
172.16.10.90
spring.redis.host
=
36.46.151.113
spring.redis.port
=
6379
spring.redis.port
=
1
6379
spring.redis.password
=
yeejoin@2020
spring.redis.password
=
yeejoin@2020
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
spring.redis.lettuce.pool.max-wait
=
-1
...
@@ -40,20 +35,67 @@ spring.redis.lettuce.pool.min-idle=0
...
@@ -40,20 +35,67 @@ spring.redis.lettuce.pool.min-idle=0
spring.redis.expire.time
=
300
spring.redis.expire.time
=
300
## emqx properties:
## emqx properties:
emqx.clean-session
=
tru
e
emqx.clean-session
=
fals
e
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.10.90:1883
emqx.broker
=
tcp://36.46.151.113:1883
emqx.user-name
=
admin
emqx.user-name
=
super
emqx.password
=
public
emqx.password
=
123456
emqx.keepAliveInterval
=
1000
tzs.cti.appkey
=
4e805006-3fef-ae43-3915-a153731007c4
tzs.cti.secretkey
=
7bd29115-99ee-4f7d-1fb1-7c4719d5f43a
tzs.cti.url
=
http://36.46.151.113:8000
##wechatToken
tzs.wechat.token
=
yeejoin_2021
##wechatTicketUrl
tzs.wechat.ticketurl
=
https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=
#tzs.wechat.tempId.kr=rjW8x9rRitIpa21Jekyx2nzBzpJy7tycssCXSN4YhWw
tzs.wechat.tempId.kr
=
bxchKYhYW7aHbGKM2pVyR_yY2-bG4sRMNU3ZRQbMKYM
tzs.wechat.url.kr
=
tzs.yeeamos.com/persondetail.html
#tzs.wechat.tempId.wx=ofBIZS8Bup9s0zKbrGa8BfhVhS18H_hyC_OYXuBN6hI
tzs.wechat.tempId.wx
=
rags-expfNSBB-h2WenuBI2c6pCEndH4uwTtOqlHqDM
tzs.wechat.url.wx
=
tzs.yeeamos.com/repairPersondetail.html
#tzs.wechat.tempId.ts=Kr7lcV8g4g_lgyW_RpwnNgw_HDxxRuVx759EoFWrIfU
tzs.wechat.tempId.ts
=
VWqgY-lXFt4dg2EL4pLjfDCBAU49Z0mRxVaQhAMMW8Q
tzs.wechat.url.ts
=
tzs.yeeamos.com/taskComplaintDetail.html
mqtt.topic.task.newtask
=
tzs-task-newtask
mqtt.topic.task.personinfo
=
tzs-task-personinfo
mqtt.topic.elevator.push
=
/tzs/tcb_elevator
mqtt.topic.alertInfo.push
=
/tzs/tcb_alertInfo
mqtt.topic.alertReport.push
=
/tzs/tcb_alertReport
tzs.cti.url
=
http://113.134.211.174:8000
mqtt.topic.alertHeart.push
=
/tzs/tcb_alertHeart
rule.definition.load
=
false
mqtt.topic.alertMatrix.push
=
/tzs/tcb_alertMatrix
rule.definition.model-package
=
com.yeejoin.amos.boot.module.tzs.api.dto
rule.definition.default-agency
=
tzs
#rule.definition.localIp=172.16.3.34
mqtt.topic.cti.push
=
/cti/record
cti.user.name
=
tzs_cti
cti.user.pwd
=
a1234567
flc.sms.tempCode
=
SMS_TZS_0001
## \u9884\u8B66\u901A\u77E5\u6A21\u677Fid
tzs.wechat.tempId.warning
=
-pHsHLIjW8j-_AemoZycf6Dmu6iYc-YWWaJ0cAPGeUY
##\u7763\u67E5\u6574\u6539\u901A\u77E5
tzs.wechat.tempId.supervise
=
P5XGbszS2Pc6kynvGjzPpZ--ikAwDZo6O7WdJ2EUxtE
## \u516C\u4F17\u53F7\u6D4B\u8BD5\u7528\u6237id\uFF08\u5E73\u53F0userId\uFF09
tzs.wechat.test.userId
=
3413513
fileserver.domain
=
https://rpm.yeeamos.com:8888/
org.filter.group.seq
=
1564150103147573249
org.filter.group.seq
=
1564150103147573249
elasticsearch.username
=
elastic
duty.seats.role.ids
=
1585956200472674305,1585956257590706177
elasticsearch.password
=
Yeejoin@2020
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/resources/application.properties
View file @
f3f2b5ef
spring.application.name
=
TZS
spring.application.name
=
TZS
-wj
server.servlet.context-path
=
/tzs
server.servlet.context-path
=
/tzs
server.port
=
11000
server.port
=
11000
spring.profiles.active
=
dev
spring.profiles.active
=
dev
2
spring.jackson.time-zone
=
GMT+8
spring.jackson.time-zone
=
GMT+8
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/resources/logback-dev2.xml
View file @
f3f2b5ef
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<logger
name=
"org.apache.activemq"
level=
"INFO"
/>
<logger
name=
"org.apache.activemq"
level=
"INFO"
/>
<logger
name=
"org.typroject"
level=
"INFO"
/>
<logger
name=
"org.typroject"
level=
"INFO"
/>
<logger
name=
"com.yeejoin"
level=
"INFO"
/>
<logger
name=
"com.yeejoin"
level=
"INFO"
/>
<logger
name=
"org.apache.http"
level=
"ERROR"
/>
<!-- 日志输出级别 -->
<!-- 日志输出级别 -->
<root
level=
"DEBUG"
>
<root
level=
"DEBUG"
>
<!-- <appender-ref ref="FILE" /> -->
<!-- <appender-ref ref="FILE" /> -->
...
...
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