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
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
285 additions
and
119 deletions
+285
-119
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
+9
-0
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
+43
-9
WechatController.java
...amos/boot/module/tzs/biz/controller/WechatController.java
+0
-0
TzsJgServiceImpl.java
...os/boot/module/tzs/biz/service/impl/TzsJgServiceImpl.java
+14
-2
CylinderInfoController.java
...module/tzs/flc/biz/controller/CylinderInfoController.java
+0
-0
CylinderUnitController.java
...module/tzs/flc/biz/controller/CylinderUnitController.java
+24
-19
CylinderInfoServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
+0
-0
CylinderInspectionServiceImpl.java
...s/flc/biz/service/impl/CylinderInspectionServiceImpl.java
+20
-7
CylinderUnitServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderUnitServiceImpl.java
+6
-0
TzCylinderServiceImpl.java
...odule/tzs/flc/biz/service/impl/TzCylinderServiceImpl.java
+48
-23
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 {
@ApiModelProperty
(
value
=
"数据完整度"
)
private
Double
integrity
;
@ApiModelProperty
(
value
=
"
???
"
)
@ApiModelProperty
(
value
=
"
精度
"
)
private
String
longitude
;
@ApiModelProperty
(
value
=
"
γ?
"
)
@ApiModelProperty
(
value
=
"
纬度
"
)
private
String
latitude
;
@ApiModelProperty
(
value
=
"统一社会信用代码"
)
...
...
@@ -110,10 +110,10 @@ public class CylinderInfoDto extends BaseDto {
private
String
typeExperiments
;
@ApiModelProperty
(
value
=
"阀门制造单位"
)
private
Double
valveManufacturUnit
;
private
String
valveManufacturUnit
;
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
private
String
nominalWorkPressure
;
private
Double
nominalWorkPressure
;
@ApiModelProperty
(
value
=
"设备品种名称"
)
private
String
cylinderVarietyName
;
...
...
@@ -146,4 +146,13 @@ public class CylinderInfoDto extends BaseDto {
*/
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
...
...
@@ -104,4 +104,7 @@ public class CylinderUnitDto extends BaseDto {
*/
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 {
/**
* 设备品种
*/
private
Integer
cylinderVariety
;
private
String
cylinderVariety
;
@ApiModelProperty
(
value
=
"产品名称"
)
/**
...
...
@@ -75,7 +75,7 @@ public class TzCylinderInfoDto {
/**
* 气瓶状态
*/
private
Integer
cylinderStatus
;
private
String
cylinderStatus
;
@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 {
private
String
typeExperiments
;
@ApiModelProperty
(
value
=
"阀门制造单位"
)
private
Double
valveManufacturUnit
;
private
String
valveManufacturUnit
;
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
private
String
nominalWorkPressure
;
private
Double
nominalWorkPressure
;
@ApiModelProperty
(
value
=
"设备品种名称"
)
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
...
...
@@ -24,6 +24,9 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
*/
Map
<
String
,
String
>
queryNumAndOutOfDateNum
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
);
Integer
getMonthInfoTotal
(
@Param
(
"regionCode"
)
String
regionCode
);
/**
* 获取上个月气瓶总量
* @return
...
...
@@ -47,6 +50,8 @@ public interface CylinderInfoMapper extends BaseMapper<CylinderInfo> {
Integer
getWarnNum
(
String
code
);
Integer
getMonthInfoTotalUnit
(
@Param
(
"appId"
)
String
appId
);
/**
* 获取上个月气瓶总量-APPID
* @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
;
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
;
/**
...
...
@@ -11,4 +13,6 @@ import com.yeejoin.amos.boot.module.tzs.flc.api.entity.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> {
Integer
getUnitTotalByRegionCode
(
@Param
(
"regionCode"
)
String
regionCode
);
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 @@
IFNULL(
sum(
case c.within_scope+c.sealed_state+c.defective+c.abnormal_temperature+c.warning_sign
when
5
then 1
when
15730
then 1
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}
</select>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderFillingMapper.xml
View file @
f3f2b5ef
...
...
@@ -15,7 +15,7 @@
IFNULL(
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
when
7
then 1
when
21920
then 1
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}
</select>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
View file @
f3f2b5ef
...
...
@@ -22,6 +22,11 @@
select u.app_id from tz_cylinder_unit u where u.region_code like CONCAT('%',#{regionCode},'%')
</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 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 in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
...
...
@@ -44,6 +49,10 @@
select count(1) from view_cylider_outofdate v where v.app_id in (
<include
refid=
"selectAPPIdByRegionCode"
/>
)
</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 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>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderInspectionMapper.xml
View file @
f3f2b5ef
...
...
@@ -2,4 +2,14 @@
<!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"
>
<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>
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderUnitMapper.xml
View file @
f3f2b5ef
...
...
@@ -20,4 +20,8 @@
)
</select>
<select
id=
"getWarnNumByAppId"
resultType=
"java.lang.Integer"
>
select count(1) from view_cylider_outofdate v where v.app_id =#{appId}
</select>
</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 {
@Bean
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
();
}
}
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
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
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.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
com.yeejoin.amos.boot.module.tzs.biz.service.impl.EquipmentCategoryServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
...
@@ -12,8 +17,13 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
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.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.foundation.enumeration.UserType
;
...
...
@@ -44,7 +54,6 @@ public class EquipmentCategoryController extends BaseController {
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr删除
*
...
...
@@ -54,7 +63,8 @@ public class EquipmentCategoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{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
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
removeById
(
sequenceNbr
));
}
...
...
@@ -66,7 +76,7 @@ public class EquipmentCategoryController extends BaseController {
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个装备分类"
,
notes
=
"根据sequenceNbr查询单个装备分类"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个装备分类"
,
notes
=
"根据sequenceNbr查询单个装备分类"
)
public
ResponseModel
<
EquipmentCategoryDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
...
...
@@ -80,9 +90,9 @@ public class EquipmentCategoryController extends BaseController {
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备分类分页查询"
,
notes
=
"装备分类分页查询"
)
public
ResponseModel
<
Page
<
EquipmentCategoryDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备分类分页查询"
,
notes
=
"装备分类分页查询"
)
public
ResponseModel
<
Page
<
EquipmentCategoryDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
EquipmentCategoryDto
>
page
=
new
Page
<
EquipmentCategoryDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
...
...
@@ -95,9 +105,33 @@ public class EquipmentCategoryController extends BaseController {
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备分类列表全部数据查询"
,
notes
=
"装备分类列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"装备分类列表全部数据查询"
,
notes
=
"装备分类列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
EquipmentCategoryDto
>>
selectForList
()
{
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;
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.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.TzsJgConstructionInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsJgDesignInfo
;
...
...
@@ -98,6 +99,8 @@ public class TzsJgServiceImpl implements ITzsJgService {
@Autowired
ITzsJgEnclosureInfoService
iTzsJgEnclosureInfoService
;
@Autowired
EquipmentCategoryServiceImpl
equipmentCategoryServiceImpl
;
/**
* 文件服务器地址
*/
...
...
@@ -113,6 +116,15 @@ public class TzsJgServiceImpl implements ITzsJgService {
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
());
return
tzsJgMapper
.
page
(
page
,
tzsJgBasicInfoDto
);
}
...
...
@@ -304,8 +316,8 @@ public class TzsJgServiceImpl implements ITzsJgService {
if
(!
enclosureInfoList
.
isEmpty
())
{
for
(
TzsJgEnclosureInfo
enclosureInfo
:
enclosureInfoList
)
{
TzsJgEnclosureInfoDto
enclosureInfoDtoOne
=
new
TzsJgEnclosureInfoDto
();
BeanUtils
.
copyProperties
(
enclosureInfo
,
enclosureInfoDtoOne
);
//repairInform.forEach(e -> e.setFileUrl(fileServerUrl + e.getFileUrl()));
BeanUtils
.
copyProperties
(
enclosureInfo
,
enclosureInfoDtoOne
);
//
repairInform.forEach(e -> e.setFileUrl(fileServerUrl + e.getFileUrl()));
enclosureInfoDtoList
.
add
(
enclosureInfoDtoOne
);
}
}
...
...
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;
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.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
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -50,18 +51,20 @@ public class CylinderUnitController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/queryCylinderUnitList"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过regionCode查询气瓶企业"
,
notes
=
"通过regionCode查询气瓶企业"
)
public
ResponseModel
<
List
<
CylinderUnitDto
>>
querySpecialEquipmentList
(
@RequestParam
String
regionCode
){
List
<
CylinderUnit
>
unitList
=
cylinderUnitServiceImpl
.
list
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
like
(
CylinderUnit:
:
getRegionCode
,
regionCode
));
public
ResponseModel
<
List
<
CylinderUnitDto
>>
querySpecialEquipmentList
(
@RequestParam
String
regionCode
)
{
List
<
CylinderUnit
>
unitList
=
cylinderUnitServiceImpl
.
list
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
like
(
CylinderUnit:
:
getRegionCode
,
regionCode
));
List
<
CylinderUnitDto
>
result
=
new
ArrayList
<>();
unitList
.
stream
().
forEach
(
t
->
{
CylinderUnitDto
temp
=
new
CylinderUnitDto
();
BeanUtils
.
copyProperties
(
t
,
temp
);
// if(t.getFillingPermitDate() != null && t.getFillingPermitDate().getTime() < System.currentTimeMillis()) {
// temp.setOutOfDate(true);
// } else {
// temp.setOutOfDate(false);
// }
BeanUtils
.
copyProperties
(
t
,
temp
);
int
num
=
cylinderUnitServiceImpl
.
getWarnNumByAppId
(
t
.
getAppId
());
if
(
num
>
0
)
{
temp
.
setOutOfDate
(
true
);
}
else
{
temp
.
setOutOfDate
(
false
);
}
result
.
add
(
temp
);
});
return
ResponseHelper
.
buildResponse
(
result
);
...
...
@@ -75,20 +78,23 @@ public class CylinderUnitController extends BaseController {
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getUnitInfo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个气瓶企业信息"
,
notes
=
"根据sequenceNbr查询单个气瓶企业信息"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个气瓶企业信息"
,
notes
=
"根据sequenceNbr查询单个气瓶企业信息"
)
public
ResponseModel
<
CylinderUnitDto
>
selectOne
(
@RequestParam
Long
id
)
{
CylinderUnitDto
unit
=
cylinderUnitServiceImpl
.
queryBySeq
(
id
);
unit
.
setEvaluate
(
"★★★★★"
);
// 查询气瓶数量以及过期数量
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"
))));
}
if
(
cylinderInfo
.
get
(
"outOfDateNum"
)
!=
null
)
{
unit
.
setCylinderOutOfDate
(
String
.
valueOf
(
cylinderInfo
.
get
(
"outOfDateNum"
)));
}
if
(
cylinderInfo
.
get
(
"fillingPermitDate"
)
!=
null
){
// if (cylinderInfo.get("outOfDateNum") != null) {
// unit.setCylinderOutOfDate(String.valueOf(cylinderInfo.get("outOfDateNum")));
// }
unit
.
setCylinderOutOfDate
(
String
.
valueOf
(
num
));
if
(
cylinderInfo
.
get
(
"fillingPermitDate"
)
!=
null
)
{
unit
.
setFillingPermitDate
(
String
.
valueOf
(
cylinderInfo
.
get
(
"fillingPermitDate"
)));
}
}
...
...
@@ -104,14 +110,13 @@ public class CylinderUnitController extends BaseController {
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"气瓶企业信息分页查询"
,
notes
=
"气瓶企业信息分页查询"
)
public
ResponseModel
<
Page
<
CylinderUnitDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"气瓶企业信息分页查询"
,
notes
=
"气瓶企业信息分页查询"
)
public
ResponseModel
<
Page
<
CylinderUnitDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
CylinderUnitDto
>
page
=
new
Page
<
CylinderUnitDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
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
;
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.mapper.CylinderInspectionMapper
;
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,7 +19,9 @@ import java.util.List;
* @date 2022-03-04
*/
@Service
public
class
CylinderInspectionServiceImpl
extends
BaseService
<
CylinderInspectionDto
,
CylinderInspection
,
CylinderInspectionMapper
>
implements
ICylinderInspectionService
{
public
class
CylinderInspectionServiceImpl
extends
BaseService
<
CylinderInspectionDto
,
CylinderInspection
,
CylinderInspectionMapper
>
implements
ICylinderInspectionService
{
/**
* 分页查询
*/
...
...
@@ -28,6 +33,13 @@ public class CylinderInspectionServiceImpl extends BaseService<CylinderInspectio
* 列表查询 示例
*/
public
List
<
CylinderInspectionDto
>
queryForCylinderInspectionList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
/**
* 列表查询 示例
*/
public
Page
<
CylinderInfo
>
queryOutOfDateCylinder
(
Page
<
CylinderInfo
>
pageBean
,
String
appId
)
{
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
// return baseMapper.getWarnNum(code);
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
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.PageParam
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.*
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInfo
;
...
...
@@ -25,15 +28,20 @@ import java.util.Map;
* @date 2022-08-11
*/
@Service
public
class
TzCylinderServiceImpl
extends
BaseService
<
TzCylinderInfoDto
,
CylinderInfo
,
TzCylinderMapper
>
implements
ITzCylinderService
{
public
class
TzCylinderServiceImpl
extends
BaseService
<
TzCylinderInfoDto
,
CylinderInfo
,
TzCylinderMapper
>
implements
ITzCylinderService
{
@Autowired
private
TzCylinderMapper
tzCylinderMapper
;
@Autowired
DataDictionaryServiceImpl
iDataDictionaryService
;
@Override
public
IPage
<
TzCylinderInfoDto
>
getCylinderInfoDtoList
(
PageParam
pageParam
,
TzCylinderInfoDto
tzCylinderInfoDto
,
String
key
)
{
public
IPage
<
TzCylinderInfoDto
>
getCylinderInfoDtoList
(
PageParam
pageParam
,
TzCylinderInfoDto
tzCylinderInfoDto
,
String
key
)
{
Page
<
TzCylinderInfoDto
>
page
=
new
Page
<>(
pageParam
.
getCurrent
(),
pageParam
.
getSize
());
System
.
out
.
println
(
"key有值:"
+
key
);
System
.
out
.
println
(
"key有值:"
+
key
);
String
superviseOrgCode
=
Privilege
.
companyClient
.
seleteOne
(
Long
.
valueOf
(
key
)).
getResult
().
getOrgCode
();
return
tzCylinderMapper
.
getTzCylinderInfoList
(
page
,
tzCylinderInfoDto
,
superviseOrgCode
);
...
...
@@ -44,28 +52,42 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
String
orgCode
=
tzCylinderMapper
.
getSequencCode
(
sequenceNbr
);
TzCylinderProduceDto
tzCylinderProduceDto
=
tzCylinderMapper
.
getTzCylinderProduceDto
(
orgCode
);
TzCylinderInfoDto
tzCylinderInfoDto
=
tzCylinderMapper
.
getTzCylinderInfoDto
(
sequenceNbr
);
DataDictionary
data1
=
iDataDictionaryService
.
getOne
(
new
LambdaQueryWrapper
<
DataDictionary
>()
.
eq
(
DataDictionary:
:
getSequenceNbr
,
tzCylinderInfoDto
.
getCylinderVariety
()));
tzCylinderInfoDto
.
setCylinderVariety
(
data1
!=
null
?
data1
.
getName
()
:
null
);
DataDictionary
data2
=
iDataDictionaryService
.
getOne
(
new
LambdaQueryWrapper
<
DataDictionary
>()
.
eq
(
DataDictionary:
:
getCode
,
tzCylinderInfoDto
.
getFillingMedia
())
.
eq
(
DataDictionary:
:
getType
,
"mediumType"
));
tzCylinderInfoDto
.
setFillingMedia
(
data2
!=
null
?
data2
.
getName
()
:
null
);
DataDictionary
data3
=
iDataDictionaryService
.
getOne
(
new
LambdaQueryWrapper
<
DataDictionary
>()
.
eq
(
DataDictionary:
:
getSequenceNbr
,
tzCylinderInfoDto
.
getCylinderStatus
()));
tzCylinderInfoDto
.
setCylinderStatus
(
data3
!=
null
?
data3
.
getName
()
:
null
);
TzCylinderTagsDto
tzCylinderTagsDto
=
tzCylinderMapper
.
getTzCylinderTagsDto
(
orgCode
);
List
<
TzCylinderInspectionDto
>
tzCylinderInspectionDtoList
=
tzCylinderMapper
.
getTzCylinderInspectionDto
(
orgCode
);
List
<
TzCylinderInspectionDto
>
tzCylinderInspectionDtoList
=
tzCylinderMapper
.
getTzCylinderInspectionDto
(
orgCode
);
List
<
TzCylinderFillingDto
>
tzCylinderFillingDtoList
=
tzCylinderMapper
.
getTzCylinderFillingDto
(
orgCode
);
/**
* 取气瓶追溯详情 充装前检查项 名称和结果列表
*/
List
<
TzCylinderCheckDto
>
tzCylinderCheckDtoList
=
tzCylinderMapper
.
getTzCylinderCheckItem
();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
for
(
TzCylinderCheckDto
tzCylinderCheckDto
:
tzCylinderCheckDtoList
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
for
(
TzCylinderCheckDto
tzCylinderCheckDto
:
tzCylinderCheckDtoList
)
{
map
.
put
(
tzCylinderCheckDto
.
getItem
(),
tzCylinderCheckDto
.
getExplain
());
}
for
(
TzCylinderFillingDto
tzCylinderFillingDto
:
tzCylinderFillingDtoList
){
for
(
TzCylinderFillingDto
tzCylinderFillingDto
:
tzCylinderFillingDtoList
)
{
List
<
TzCylinderCheckDto
>
tzCylinderCheckDtoListResult
=
new
ArrayList
<>();
TzCylinderBeforeCheckDto
tzcylinderBeforeCheckDto
=
tzCylinderMapper
.
getTzCylinderBeforeCheck
(
tzCylinderFillingDto
.
getFillingBeforeId
());
TzCylinderBeforeCheckDto
tzcylinderBeforeCheckDto
=
tzCylinderMapper
.
getTzCylinderBeforeCheck
(
tzCylinderFillingDto
.
getFillingBeforeId
());
JSONObject
obj
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
tzcylinderBeforeCheckDto
));
for
(
String
str
:
obj
.
keySet
())
{
for
(
String
str
:
obj
.
keySet
())
{
String
explain
=
map
.
get
(
str
);
String
value
=
String
.
valueOf
(
obj
.
get
(
str
))
;
TzCylinderCheckDto
tzcylinderCheckDto
=
new
TzCylinderCheckDto
(
str
,
explain
,
value
);
String
value
=
String
.
valueOf
(
obj
.
get
(
str
));
DataDictionary
data
=
iDataDictionaryService
.
getOne
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getSequenceNbr
,
value
));
TzCylinderCheckDto
tzcylinderCheckDto
=
new
TzCylinderCheckDto
(
str
,
explain
,
data
!=
null
?
data
.
getCode
()
:
null
);
tzCylinderCheckDtoListResult
.
add
(
tzcylinderCheckDto
);
}
tzCylinderFillingDto
.
setTzCylinderCheckDtoList
(
tzCylinderCheckDtoListResult
);
...
...
@@ -75,25 +97,28 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
* 取气瓶追溯详情 充装后检查项 名称和结果列表
*/
List
<
TzCylinderCheckDto
>
tzCylinderAfterCheckDtoList
=
tzCylinderMapper
.
getTzCylinderAfterCheckItem
();
Map
<
String
,
String
>
afterMap
=
new
HashMap
<>();
for
(
TzCylinderCheckDto
tzCylinderCheckDto
:
tzCylinderAfterCheckDtoList
)
{
Map
<
String
,
String
>
afterMap
=
new
HashMap
<>();
for
(
TzCylinderCheckDto
tzCylinderCheckDto
:
tzCylinderAfterCheckDtoList
)
{
afterMap
.
put
(
tzCylinderCheckDto
.
getItem
(),
tzCylinderCheckDto
.
getExplain
());
}
for
(
TzCylinderFillingDto
tzCylinderFillingDto
:
tzCylinderFillingDtoList
)
{
for
(
TzCylinderFillingDto
tzCylinderFillingDto
:
tzCylinderFillingDtoList
)
{
List
<
TzCylinderCheckDto
>
tzCylinderAfterCheckDtoListResult
=
new
ArrayList
<>();
TzCylinderAfterCheckDto
tzcylinderAfterCheckDto
=
tzCylinderMapper
.
getTzCylinderAfterCheck
(
tzCylinderFillingDto
.
getFillingCheckId
());
TzCylinderAfterCheckDto
tzcylinderAfterCheckDto
=
tzCylinderMapper
.
getTzCylinderAfterCheck
(
tzCylinderFillingDto
.
getFillingCheckId
());
JSONObject
obj
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
tzcylinderAfterCheckDto
));
for
(
String
str
:
obj
.
keySet
())
{
for
(
String
str
:
obj
.
keySet
())
{
String
explain
=
afterMap
.
get
(
str
);
String
value
=
String
.
valueOf
(
obj
.
get
(
str
))
;
TzCylinderCheckDto
tzcylinderCheckDto
=
new
TzCylinderCheckDto
(
str
,
explain
,
value
);
String
value
=
String
.
valueOf
(
obj
.
get
(
str
));
DataDictionary
data
=
iDataDictionaryService
.
getOne
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getSequenceNbr
,
value
));
TzCylinderCheckDto
tzcylinderCheckDto
=
new
TzCylinderCheckDto
(
str
,
explain
,
data
!=
null
?
data
.
getCode
()
:
null
);
tzCylinderAfterCheckDtoListResult
.
add
(
tzcylinderCheckDto
);
}
tzCylinderFillingDto
.
setTzCylinderAfterCheckDtoList
(
tzCylinderAfterCheckDtoListResult
);
}
return
new
TzCylinderTraceDto
(
tzCylinderProduceDto
,
tzCylinderInfoDto
,
tzCylinderTagsDto
,
tzCylinderInspectionDtoList
,
tzCylinderFillingDtoList
);
return
new
TzCylinderTraceDto
(
tzCylinderProduceDto
,
tzCylinderInfoDto
,
tzCylinderTagsDto
,
tzCylinderInspectionDtoList
,
tzCylinderFillingDtoList
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/resources/application-dev2.properties
View file @
f3f2b5ef
#DB properties:
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
\
&characterEncoding=utf8
spring.datasource.url
=
jdbc:mysql://36.46.151.113:23306/per_tzs_amos_tzs_biz?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
##eureka properties:
eureka.client.service-url.defaultZone
=
http://172.16.3.99:10001/eureka/
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
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
#eureka properties:
eureka.instance.hostname
=
eureka
eureka.instance.prefer-ip-address
=
true
eureka.client.serviceUrl.defaultZone
=
http://36.46.151.113:10001/eureka/
eureka.instance.ip-address
=
172.16.3.133
## ES properties:
biz.elasticsearch.address
=
172.16.10.90
spring.data.elasticsearch.cluster-name
=
elasticsearch
biz.elasticsearch.address
=
36.46.151.113
spring.data.elasticsearch.cluster-name
=
docker-cluster
spring.data.elasticsearch.cluster-nodes
=
${biz.elasticsearch.address}:9300
spring.elasticsearch.rest.uris
=
http://${biz.elasticsearch.address}:9200
elasticsearch.username
=
elastic
elasticsearch.password
=
123456
elasticsearch.username
=
elastic
elasticsearch.password
=
123456
## unit(h)
alertcall.es.synchrony.time
=
48
fileserver.domain
=
https://rpm.yeeamos.com:8888/
#redis properties:
spring.redis.database
=
1
spring.redis.host
=
172.16.10.90
spring.redis.port
=
6379
spring.redis.host
=
36.46.151.113
spring.redis.port
=
1
6379
spring.redis.password
=
yeejoin@2020
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
...
...
@@ -40,20 +35,67 @@ spring.redis.lettuce.pool.min-idle=0
spring.redis.expire.time
=
300
## emqx properties:
emqx.clean-session
=
tru
e
emqx.clean-session
=
fals
e
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.10.90:1883
emqx.user-name
=
admin
emqx.password
=
public
emqx.broker
=
tcp://36.46.151.113:1883
emqx.user-name
=
super
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
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.alertMatrix.push
=
/tzs/tcb_alertMatrix
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
elasticsearch.username
=
elastic
elasticsearch.password
=
Yeejoin@2020
\ No newline at end of file
duty.seats.role.ids
=
1585956200472674305,1585956257590706177
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.port
=
11000
spring.profiles.active
=
dev
spring.profiles.active
=
dev
2
spring.jackson.time-zone
=
GMT+8
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 @@
<logger
name=
"org.apache.activemq"
level=
"INFO"
/>
<logger
name=
"org.typroject"
level=
"INFO"
/>
<logger
name=
"com.yeejoin"
level=
"INFO"
/>
<logger
name=
"org.apache.http"
level=
"ERROR"
/>
<!-- 日志输出级别 -->
<root
level=
"DEBUG"
>
<!-- <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