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
55603ab5
Commit
55603ab5
authored
Aug 30, 2021
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
40aacfd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
OrgPersonController.java
...oot/module/common/biz/controller/OrgPersonController.java
+1
-9
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+8
-2
IPointDao.java
...n/amos/supervision/business/dao/repository/IPointDao.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgPersonController.java
View file @
55603ab5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
...
...
@@ -37,10 +38,6 @@ import java.util.Map;
public
class
OrgPersonController
{
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
@Autowired
EmqKeeper
emqKeeper
;
@Value
(
"${jcs.company.topic.delete}"
)
private
String
airportDeleteTopic
;
/**
* 新增人员信息
...
...
@@ -69,11 +66,6 @@ public class OrgPersonController {
// 删除时,只作逻辑删除
iOrgUsrService
.
update
(
new
UpdateWrapper
<
OrgUsr
>().
eq
(
"sequence_nbr"
,
id
).
set
(
"is_delete"
,
CommonConstant
.
IS_DELETE_01
));
try
{
emqKeeper
.
getMqttClient
().
publish
(
airportDeleteTopic
,
String
.
valueOf
(
id
).
getBytes
(),
2
,
true
);
}
catch
(
Exception
e
)
{
e
.
getMessage
();
}
return
ResponseHelper
.
buildResponse
(
null
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
55603ab5
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
@@ -17,7 +18,9 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
...
@@ -44,6 +47,10 @@ public class OrgUsrController extends BaseController {
OrgUsrServiceImpl
iOrgUsrService
;
@Autowired
ESOrgUsrService
eSOrgUsrService
;
@Autowired
EmqKeeper
emqKeeper
;
@Value
(
"${jcs.company.topic.delete}"
)
private
String
airportDeleteTopic
;
/**
...
...
@@ -74,12 +81,11 @@ public class OrgUsrController extends BaseController {
iOrgUsrService
.
update
(
new
UpdateWrapper
<
OrgUsr
>().
eq
(
"sequence_nbr"
,
id
).
set
(
"is_delete"
,
CommonConstant
.
IS_DELETE_01
));
try
{
eSOrgUsrService
.
deleteById
(
id
);
emqKeeper
.
getMqttClient
().
publish
(
airportDeleteTopic
,
JSON
.
toJSONString
(
id
).
getBytes
(),
2
,
false
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
RuntimeException
();
}
return
ResponseHelper
.
buildResponse
(
null
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/dao/repository/IPointDao.java
View file @
55603ab5
...
...
@@ -39,7 +39,7 @@ public interface IPointDao extends BaseDao<Point, Long> {
@Modifying
@Transactional
@Query
(
value
=
"UPDATE p_point SET is_delete = 1 WHERE point_no
IN
(?1)"
,
nativeQuery
=
true
)
@Query
(
value
=
"UPDATE p_point SET is_delete = 1 WHERE point_no
=
(?1)"
,
nativeQuery
=
true
)
void
delPointByPointNo
(
Long
id
);
@Query
(
value
=
"SELECT id FROM p_point p WHERE is_delete = 0 AND p.point_no = (?1)"
,
nativeQuery
=
true
)
...
...
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