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
7467efd4
Commit
7467efd4
authored
Aug 01, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6_temp' of…
Merge branch 'develop_dl_plan6_temp' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6_temp
parents
37ba82a4
6bba4b19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
25 deletions
+33
-25
amos-biz-boot.iml
amos-biz-boot.iml
+8
-7
PointController.java
...join/amos/patrol/business/controller/PointController.java
+14
-7
PointNewVo.java
.../java/com/yeejoin/amos/patrol/business/vo/PointNewVo.java
+0
-0
application-dev.properties
...ystem-equip/src/main/resources/application-dev.properties
+7
-7
application.properties
...ot-system-equip/src/main/resources/application.properties
+2
-2
dbTemplate_check.xml
...-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
+2
-2
No files found.
amos-biz-boot.iml
View file @
7467efd4
...
...
@@ -100,12 +100,6 @@
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter:2.3.11.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot:2.3.11.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-autoconfigure:2.3.11.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-logging:2.3.11.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-classic:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-core:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-api:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:jul-to-slf4j:1.7.30"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jakarta.annotation:jakarta.annotation-api:1.3.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-core:5.2.15.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework:spring-jcl:5.2.15.RELEASE"
level=
"project"
/>
...
...
@@ -144,6 +138,12 @@
<orderEntry
type=
"library"
name=
"Maven: com.esotericsoftware.reflectasm:reflectasm:1.09"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.axet:kaptcha:0.0.9"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.jhlabs:filters:2.0.235"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.boot:spring-boot-starter-logging:2.3.11.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-classic:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: ch.qos.logback:logback-core:1.2.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.apache.logging.log4j:log4j-api:2.17.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.slf4j:jul-to-slf4j:1.7.30"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.yeejoin:amos-component-feign:1.7.8"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.cloud:spring-cloud-starter-openfeign:2.2.5.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.springframework.cloud:spring-cloud-openfeign-core:2.2.5.RELEASE"
level=
"project"
/>
...
...
@@ -220,7 +220,7 @@
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-bean-validators:2.10.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.springfox:springfox-spring-webmvc:2.10.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.github.xiaoymin:knife4j-spring-ui:2.0.7"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.yeejoin:amos-feign-systemctl:1.
6.5
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.yeejoin:amos-feign-systemctl:1.
7.8
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.swagger:swagger-annotations:1.5.13"
level=
"project"
/>
</component>
</module>
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
7467efd4
...
...
@@ -5,7 +5,6 @@ import java.util.*;
import
javax.servlet.http.HttpServletResponse
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.BeanUtils
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.patrol.business.dao.repository.IPointClassifyDao
;
import
com.yeejoin.amos.patrol.business.dao.repository.IPointInputItemDao
;
...
...
@@ -13,10 +12,11 @@ import com.yeejoin.amos.patrol.business.dao.repository.IRoutePointDao;
import
com.yeejoin.amos.patrol.business.dao.repository.IRoutePointItemDao
;
import
com.yeejoin.amos.patrol.business.feign.EquipFeign
;
import
com.yeejoin.amos.patrol.business.feign.JcsFeignClient
;
import
com.yeejoin.amos.patrol.business.vo.
PointInputItemNewVo
;
import
com.yeejoin.amos.patrol.business.vo.
*
;
import
com.yeejoin.amos.patrol.dao.entity.*
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
...
...
@@ -52,9 +52,6 @@ import com.yeejoin.amos.patrol.business.util.CommonResponseUtil;
import
com.yeejoin.amos.patrol.business.util.DaoCriteria
;
import
com.yeejoin.amos.patrol.business.util.FileHelper
;
import
com.yeejoin.amos.patrol.business.util.PointParamUtils
;
import
com.yeejoin.amos.patrol.business.vo.PointClassifyVo
;
import
com.yeejoin.amos.patrol.business.vo.PointInputItemVo
;
import
com.yeejoin.amos.patrol.business.vo.PointVo
;
import
com.yeejoin.amos.patrol.core.async.AsyncTask
;
import
com.yeejoin.amos.patrol.core.common.request.CommonPageable
;
import
com.yeejoin.amos.patrol.core.common.request.CommonRequest
;
...
...
@@ -400,7 +397,11 @@ public class PointController extends AbstractBaseController {
public
CommonResponse
queryPointByIdNew
(
@ApiParam
(
value
=
"巡检点id"
,
required
=
true
)
@RequestParam
String
id
)
{
try
{
Point
point
=
iPointService
.
queryPointById
(
Long
.
valueOf
(
id
));
return
CommonResponseUtil
.
success
(
point
);
PointNewVo
pointNewVo
=
new
PointNewVo
();
BeanUtils
.
copyProperties
(
point
,
pointNewVo
);
pointNewVo
.
setIsIndoor
(
point
.
getIsIndoor
()
==
false
?
"0"
:
"1"
);
pointNewVo
.
setOffline
(
point
.
getOffline
()
==
false
?
"0"
:
"1"
);
return
CommonResponseUtil
.
success
(
pointNewVo
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
(
"查询巡检点失败"
);
...
...
@@ -1340,12 +1341,18 @@ public class PointController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"新增巡检点"
,
notes
=
"新增巡检点"
)
@PostMapping
(
value
=
"/addPointNew"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
AddPointNew
(
@ApiParam
(
value
=
"巡检点"
,
required
=
true
)
@RequestBody
Point
point
){
public
CommonResponse
AddPointNew
(
@ApiParam
(
value
=
"巡检点"
,
required
=
true
)
@RequestBody
Point
NewVo
pointNewVo
){
AgencyUserModel
user
=
getUserInfo
();
if
(
ObjectUtils
.
isEmpty
(
user
))
{
return
CommonResponseUtil
.
failure
(
"用户session过期"
);
}
try
{
Point
point
=
new
Point
();
BeanUtils
.
copyProperties
(
pointNewVo
,
point
);
point
.
setIsIndoor
(
pointNewVo
.
getIsIndoor
().
equals
(
"1"
)
?
true
:
false
);
point
.
setOffline
(
pointNewVo
.
getOffline
().
equals
(
"1"
)
?
true
:
false
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
loginOrgCode
=
getOrgCode
(
reginParams
);
point
.
setOrgCode
(
loginOrgCode
);
//点归属于公司
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/vo/PointNewVo.java
0 → 100644
View file @
7467efd4
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/application-dev.properties
View file @
7467efd4
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://172.16.1
1.201/dl_business_v3.0.1.3
?useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.url
=
jdbc:mysql://172.16.1
0.211/xiy_safety_business_v3.0.1_20100712
?useUnicode=true&allowMultiQueries=true&characterEncoding=utf-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
spring.datasource.type
=
com.zaxxer.hikari.HikariDataSource
...
...
@@ -14,10 +14,10 @@ spring.datasource.hikari.connection-test-query= SELECT 1
# \u6587\u4EF6\u670D\u52A1\u5668\u5730\u5740
fileserver_domain
=
http://172.16.1
1.20
1:9000/
fileserver_domain
=
http://172.16.1
0.21
1:9000/
#eureka.instance.ip-address= 172.16.3.135
eureka.instance.hostname
=
172.16.1
1.20
1
eureka.instance.hostname
=
172.16.1
0.21
1
eureka.instance.prefer-ip-address
=
true
eureka.client.serviceUrl.defaultZone
:
http://${eureka.instance.hostname}:10001/eureka/
...
...
@@ -33,9 +33,9 @@ security.appKeyApp=studio_normalapp_3056965
spring.redis.database
=
1
spring.redis.host
=
172.16.1
1.20
1
spring.redis.host
=
172.16.1
0.21
1
spring.redis.port
=
6379
spring.redis.password
=
123456
0
spring.redis.password
=
yeejoin@202
0
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
spring.redis.lettuce.pool.max-idle
=
10
...
...
@@ -45,10 +45,10 @@ spring.redis.expire.time=30000
## emqx
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.1
1.201:1
883
emqx.broker
=
tcp://172.16.1
0.211:2
883
emqx.user-name
=
admin
emqx.password
=
public
mqtt.scene.host
=
mqtt://172.16.1
1.20
1:8083/mqtt
mqtt.scene.host
=
mqtt://172.16.1
0.21
1:8083/mqtt
mqtt.client.product.id
=
mqtt
mqtt.topic
=
topic_mqtt
spring.mqtt.completionTimeout
=
3000
...
...
amos-boot-system-equip/src/main/resources/application.properties
View file @
7467efd4
spring.application.name
=
AMOS-EQUIPMANAGE
-WJ
spring.application.name
=
AMOS-EQUIPMANAGE
server.servlet.context-path
=
/equip
server.port
=
8100
#server.servlet.context-path=/case
spring.profiles.active
=
dev
2
spring.profiles.active
=
dev
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
#mybatis mapper file
mybatis.mapper-locations
=
classpath:mapper/*.xml
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
7467efd4
...
...
@@ -104,7 +104,7 @@
and FIND_IN_SET(#{dangerId}, t.dangerIds)
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
d.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
and
d.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
</trim>
</select>
...
...
@@ -188,7 +188,7 @@
and FIND_IN_SET(#{dangerId}, t.dangerIds)
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
d.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
and
d.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
</trim>
order by ${orderBy}
...
...
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