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
a852115a
Commit
a852115a
authored
Feb 10, 2022
by
kongfm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特种设备相关BUG修复
parent
33efc059
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
7 deletions
+98
-7
UnitInfoMapper.java
...n/amos/boot/module/tzs/flc/api/mapper/UnitInfoMapper.java
+2
-0
IUnitInfoService.java
...mos/boot/module/tzs/flc/api/service/IUnitInfoService.java
+2
-0
UnitInfoMapper.xml
...dule-tzs-api/src/main/resources/mapper/UnitInfoMapper.xml
+17
-0
AlertCalledController.java
...boot/module/tzs/biz/controller/AlertCalledController.java
+34
-2
UnitInfoController.java
...oot/module/tzs/flc/biz/controller/UnitInfoController.java
+28
-0
UnitInfoServiceImpl.java
.../module/tzs/flc/biz/service/impl/UnitInfoServiceImpl.java
+10
-0
application-jd.properties
...t-system-tzs/src/main/resources/application-jd.properties
+5
-5
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/mapper/UnitInfoMapper.java
View file @
a852115a
...
...
@@ -24,4 +24,6 @@ public interface UnitInfoMapper extends BaseMapper<UnitInfo> {
@Param
(
"address"
)
String
address
,
@Param
(
"orgName"
)
String
orgName
,
@Param
(
"organizationCode"
)
String
organizationCode
);
List
<
UnitInfo
>
getUnitWithoutQrcode
();
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/service/IUnitInfoService.java
View file @
a852115a
...
...
@@ -40,4 +40,6 @@ public interface IUnitInfoService {
List
<
UnitInfoDto
>
getAllUnit
();
List
<
UnitInfoDto
>
getUseUnit
(
String
unitType
,
String
address
,
String
orgName
,
String
organizationCode
);
Boolean
addQRcode
();
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/UnitInfoMapper.xml
View file @
a852115a
...
...
@@ -51,4 +51,21 @@
</select>
<select
id=
"getUnitWithoutQrcode"
resultType=
"com.yeejoin.amos.boot.module.tzs.flc.api.entity.UnitInfo"
>
SELECT
a.*
FROM
tz_flc_unit_info a
LEFT JOIN cb_source_file f on f.source_id = a.sequence_nbr and f.file_category = 'qrCode'
WHERE
a.is_delete = 0
AND (
a.unit_status = '1'
OR a.is_change = 1)
and f.sequence_nbr is null
</select>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/AlertCalledController.java
View file @
a852115a
...
...
@@ -592,7 +592,23 @@ public class AlertCalledController extends BaseController {
updateWrapper
.
set
(
AlertCalled:
:
getForzenResult
,
alertCalledDto
.
getForzenResult
());
updateWrapper
.
set
(
AlertCalled:
:
getAlertStatus
,
true
);
updateWrapper
.
eq
(
AlertCalled:
:
getSequenceNbr
,
alertCalledDto
.
getSequenceNbr
());
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
update
(
updateWrapper
));
Boolean
flag
=
iAlertCalledService
.
update
(
updateWrapper
);
if
(
flag
)
{
AlertCalledDto
alertCalledVo
=
iAlertCalledService
.
queryBySeq
(
alertCalledDto
.
getSequenceNbr
());
try
{
redisUtils
.
del
(
RedisKey
.
TZS_ALERTCALLED_ID
+
alertCalledVo
.
getSequenceNbr
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"删除redis失败:"
+
e
.
getMessage
());
}
try
{
eSAlertCalledService
.
updateEsAlertCalled
(
alertCalledVo
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"更新es失败:"
+
e
.
getMessage
());
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
}
/**
...
...
@@ -612,7 +628,23 @@ public class AlertCalledController extends BaseController {
updateWrapper
.
set
(
AlertCalled:
:
getFinalReason
,
alertCalledDto
.
getFinalReason
());
updateWrapper
.
set
(
AlertCalled:
:
getAlertStatus
,
true
);
updateWrapper
.
eq
(
AlertCalled:
:
getSequenceNbr
,
alertCalledDto
.
getSequenceNbr
());
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
update
(
updateWrapper
));
Boolean
flag
=
iAlertCalledService
.
update
(
updateWrapper
);
if
(
flag
)
{
AlertCalledDto
alertCalledVo
=
iAlertCalledService
.
queryBySeq
(
alertCalledDto
.
getSequenceNbr
());
try
{
redisUtils
.
del
(
RedisKey
.
TZS_ALERTCALLED_ID
+
alertCalledVo
.
getSequenceNbr
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"删除redis失败:"
+
e
.
getMessage
());
}
try
{
eSAlertCalledService
.
updateEsAlertCalled
(
alertCalledVo
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"更新es失败:"
+
e
.
getMessage
());
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
}
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/UnitInfoController.java
View file @
a852115a
...
...
@@ -533,5 +533,33 @@ public class UnitInfoController extends BaseController {
}
/**
* 判断用户号码是否存在
*
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/hasExistPhone/{phone}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断用户号码是否存在"
,
notes
=
"判断用户号码是否存在"
)
public
ResponseModel
<
Boolean
>
hasExistPhone
(
@PathVariable
(
value
=
"phone"
)
String
phone
)
{
Boolean
flag
=
Privilege
.
agencyUserClient
.
checkLoginId
(
phone
).
getResult
();
return
ResponseHelper
.
buildResponse
(
flag
);
}
/**
* 手动生成已通过企业的二维码
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/addQRcode"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"手动生成已通过企业的二维码"
,
notes
=
"手动生成已通过企业的二维码"
)
public
ResponseModel
<
Boolean
>
addQRcode
()
{
Boolean
flag
=
unitInfoServiceImpl
.
addQRcode
();
return
ResponseHelper
.
buildResponse
(
flag
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/UnitInfoServiceImpl.java
View file @
a852115a
...
...
@@ -558,6 +558,16 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
}
@Override
public
Boolean
addQRcode
()
{
// 获取所有已经通过的且没有二维码的企业信息
List
<
UnitInfo
>
list
=
baseMapper
.
getUnitWithoutQrcode
();
list
.
stream
().
forEach
(
t
->
{
this
.
saveUnitInfoQrCode
(
t
);
});
return
true
;
}
@Override
public
List
<
UnitInfoDto
>
getAllUnit
()
{
return
baseMapper
.
getAllUnit
();
}
...
...
amos-boot-system-tzs/src/main/resources/application-jd.properties
View file @
a852115a
...
...
@@ -47,19 +47,19 @@ tzs.cti.secretkey=7bd29115-99ee-4f7d-1fb1-7c4719d5f43a
tzs.cti.url
=
http://36.46.151.113:8000
tzs.wechat.url
=
https://api.weixin.qq.com
tzs.wechat.appid
=
wx
79aca5bb1cb4af92
tzs.wechat.secret
=
f3a12323ba731d282c3d4698c27c3e97
tzs.wechat.appid
=
wx
8918c1aaad956617
tzs.wechat.secret
=
337c3d8f3e749140d4f9aedc8311033b
##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
=
bxchKYhYW7aHbGKM2pVyR_yY2-bG4sRMNU3ZRQbMKYM
tzs.wechat.tempId.kr
=
rjW8x9rRitIpa21Jekyx2nzBzpJy7tycssCXSN4YhWw
tzs.wechat.url.kr
=
tzs.yeeamos.com/persondetail.html
tzs.wechat.tempId.wx
=
rags-expfNSBB-h2WenuBI2c6pCEndH4uwTtOqlHqDM
tzs.wechat.tempId.wx
=
ofBIZS8Bup9s0zKbrGa8BfhVhS18H_hyC_OYXuBN6hI
tzs.wechat.url.wx
=
tzs.yeeamos.com/repairPersondetail.html
tzs.wechat.tempId.ts
=
rags-expfNSBB-h2WenuBI2c6pCEndH4uwTtOqlHqDM
tzs.wechat.tempId.ts
=
Kr7lcV8g4g_lgyW_RpwnNgw_HDxxRuVx759EoFWrIfU
tzs.wechat.url.ts
=
tzs.yeeamos.com/taskComplaintDetail.html
mqtt.topic.task.newtask
=
tzs-task-newtask
...
...
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