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
62650e3b
Commit
62650e3b
authored
Jul 12, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.pom修改
parent
0a4a58f3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
163 additions
and
101 deletions
+163
-101
pom.xml
...amos-boot-module-96333/amos-boot-module-96333-api/pom.xml
+13
-1
pom.xml
...amos-boot-module-96333/amos-boot-module-96333-biz/pom.xml
+5
-0
pom.xml
...oot-module-cylinder/amos-boot-module-cylinder-api/pom.xml
+2
-3
pom.xml
...oot-module-cylinder/amos-boot-module-cylinder-biz/pom.xml
+5
-0
pom.xml
...s/amos-boot-module-jczs/amos-boot-module-jczs-api/pom.xml
+13
-1
pom.xml
...s/amos-boot-module-jczs/amos-boot-module-jczs-biz/pom.xml
+5
-0
pom.xml
...tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/pom.xml
+13
-1
ElevatorInsureDto.java
...ejoin/amos/boot/module/ymt/api/dto/ElevatorInsureDto.java
+5
-4
pom.xml
...tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/pom.xml
+5
-0
AmosYmtApplication.java
...iz/src/main/java/com/yeejoin/amos/AmosYmtApplication.java
+46
-41
AlertCalledController.java
...boot/module/ymt/biz/controller/AlertCalledController.java
+0
-0
AlertFormController.java
...s/boot/module/ymt/biz/controller/AlertFormController.java
+1
-2
BaseUnitLicenceController.java
.../module/ymt/biz/controller/BaseUnitLicenceController.java
+21
-20
ElevatorStatusController.java
...t/module/ymt/biz/controller/ElevatorStatusController.java
+4
-8
BaseUnitLicenceServiceImpl.java
...dule/ymt/biz/service/impl/BaseUnitLicenceServiceImpl.java
+13
-10
ElevatorStatusServiceImpl.java
...odule/ymt/biz/service/impl/ElevatorStatusServiceImpl.java
+12
-10
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/pom.xml
View file @
62650e3b
...
@@ -10,6 +10,17 @@
...
@@ -10,6 +10,17 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
<artifactId>
amos-boot-module-96333-api
</artifactId>
<artifactId>
amos-boot-module-96333-api
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-elasticsearch
</artifactId>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</project>
</project>
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/pom.xml
View file @
62650e3b
...
@@ -16,6 +16,11 @@
...
@@ -16,6 +16,11 @@
<artifactId>
amos-boot-module-96333-api
</artifactId>
<artifactId>
amos-boot-module-96333-api
</artifactId>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-biz
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-api/pom.xml
View file @
62650e3b
...
@@ -19,9 +19,8 @@
...
@@ -19,9 +19,8 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-tzs-api
</artifactId>
<artifactId>
amos-boot-module-common-api
</artifactId>
<version>
1.0.0
</version>
<version>
${amos-biz-boot.version}
</version>
<scope>
compile
</scope>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/pom.xml
View file @
62650e3b
...
@@ -16,6 +16,11 @@
...
@@ -16,6 +16,11 @@
<artifactId>
amos-boot-module-cylinder-api
</artifactId>
<artifactId>
amos-boot-module-cylinder-api
</artifactId>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-biz
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
...
...
amos-boot-system-tzs/amos-boot-module-jczs/amos-boot-module-jczs-api/pom.xml
View file @
62650e3b
...
@@ -10,6 +10,17 @@
...
@@ -10,6 +10,17 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
<artifactId>
amos-boot-module-jczs-api
</artifactId>
<artifactId>
amos-boot-module-jczs-api
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-elasticsearch
</artifactId>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</project>
</project>
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-jczs/amos-boot-module-jczs-biz/pom.xml
View file @
62650e3b
...
@@ -16,6 +16,11 @@
...
@@ -16,6 +16,11 @@
<artifactId>
amos-boot-module-jczs-api
</artifactId>
<artifactId>
amos-boot-module-jczs-api
</artifactId>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-biz
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/pom.xml
View file @
62650e3b
...
@@ -10,6 +10,17 @@
...
@@ -10,6 +10,17 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
<artifactId>
amos-boot-module-ymt-api
</artifactId>
<artifactId>
amos-boot-module-ymt-api
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-elasticsearch
</artifactId>
<scope>
compile
</scope>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</project>
</project>
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/dto/ElevatorInsureDto.java
View file @
62650e3b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -17,10 +18,10 @@ import java.util.List;
...
@@ -17,10 +18,10 @@ import java.util.List;
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"ElevatorInsureDto"
,
description
=
"保险信息"
)
@ApiModel
(
value
=
"ElevatorInsureDto"
,
description
=
"保险信息"
)
public
class
ElevatorInsureDto
extends
BaseDto
{
public
class
ElevatorInsureDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"承保单位"
)
@ApiModelProperty
(
value
=
"承保单位"
)
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/pom.xml
View file @
62650e3b
...
@@ -16,6 +16,11 @@
...
@@ -16,6 +16,11 @@
<artifactId>
amos-boot-module-ymt-api
</artifactId>
<artifactId>
amos-boot-module-ymt-api
</artifactId>
<version>
1.0.0
</version>
<version>
1.0.0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-common-biz
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/AmosYmtApplication.java
View file @
62650e3b
package
com
.
yeejoin
.
amos
;
package
com
.
yeejoin
.
amos
;
import
com.yeejoin.amos.boot.biz.common.utils.oConvertUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.oConvertUtils
;
import
com.yeejoin.amos.boot.module.ymt.biz.listener.*
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.StartPlatformTokenService
;
import
com.yeejoin.amos.boot.module.ymt.flc.api.service.ICylinderInfoService
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
...
@@ -13,6 +17,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
...
@@ -13,6 +17,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.env.Environment
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableAsync
;
...
@@ -45,32 +50,32 @@ import java.net.UnknownHostException;
...
@@ -45,32 +50,32 @@ import java.net.UnknownHostException;
@ComponentScan
(
basePackages
=
{
"org.typroject"
,
"com.yeejoin.amos"
})
@ComponentScan
(
basePackages
=
{
"org.typroject"
,
"com.yeejoin.amos"
})
public
class
AmosYmtApplication
{
public
class
AmosYmtApplication
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmosYmtApplication
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmosYmtApplication
.
class
);
//
@Autowired
@Autowired
//
private EmqKeeper emqKeeper;
private
EmqKeeper
emqKeeper
;
//
//
@Autowired
@Autowired
//
private CarcylUnitInspectMqTtlListener carcylUnitInspectMqTtlListener;
private
CarcylUnitInspectMqTtlListener
carcylUnitInspectMqTtlListener
;
//
//
@Autowired
@Autowired
//
private BaseEnterpriseMqTtlListener baseEnterpriseMqTtlListener;
private
BaseEnterpriseMqTtlListener
baseEnterpriseMqTtlListener
;
//
//
@Autowired
@Autowired
//
private StartPlatformTokenService startPlatformTokenService;
private
StartPlatformTokenService
startPlatformTokenService
;
//
//
@Autowired
@Autowired
//
private PrivilegeCompanyUpdateAddListener privilegeCompanyUpdateAddListener;
private
PrivilegeCompanyUpdateAddListener
privilegeCompanyUpdateAddListener
;
//
//
@Autowired
@Autowired
//
private PrivilegeCompanyDeleteListener privilegeCompanyDeleteListener;
private
PrivilegeCompanyDeleteListener
privilegeCompanyDeleteListener
;
//
//
@Autowired
@Autowired
//
private FillingRecordSyncListener fillingRecordSyncListener;
private
FillingRecordSyncListener
fillingRecordSyncListener
;
//
//
@Autowired
@Autowired
//
private AmosMqttListener amosMqTtlListener;
private
AmosMqttListener
amosMqTtlListener
;
//
//
@Autowired
@Autowired
//
ICylinderInfoService cylinderInfoServiceImpl;
ICylinderInfoService
cylinderInfoServiceImpl
;
public
static
void
main
(
String
[]
args
)
throws
UnknownHostException
{
public
static
void
main
(
String
[]
args
)
throws
UnknownHostException
{
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
AmosYmtApplication
.
class
,
args
);
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
AmosYmtApplication
.
class
,
args
);
...
@@ -89,20 +94,20 @@ public class AmosYmtApplication {
...
@@ -89,20 +94,20 @@ public class AmosYmtApplication {
*
*
* @throws MqttException
* @throws MqttException
*/
*/
//
@Bean
@Bean
//
public void initMqtt() throws Exception {
public
void
initMqtt
()
throws
Exception
{
//
emqKeeper.subscript("/idx/idx_biz_carcyl_unit_inspect", 2, carcylUnitInspectMqTtlListener);
emqKeeper
.
subscript
(
"/idx/idx_biz_carcyl_unit_inspect"
,
2
,
carcylUnitInspectMqTtlListener
);
//
emqKeeper.subscript("/tm/tz_base_enterprise_info", 2, baseEnterpriseMqTtlListener);
emqKeeper
.
subscript
(
"/tm/tz_base_enterprise_info"
,
2
,
baseEnterpriseMqTtlListener
);
//
emqKeeper.subscript("/tz/privilege_company_add_update", 2, privilegeCompanyUpdateAddListener);
emqKeeper
.
subscript
(
"/tz/privilege_company_add_update"
,
2
,
privilegeCompanyUpdateAddListener
);
//
emqKeeper.subscript("/tz/privilege_company_delete", 2, privilegeCompanyDeleteListener);
emqKeeper
.
subscript
(
"/tz/privilege_company_delete"
,
2
,
privilegeCompanyDeleteListener
);
//
emqKeeper.subscript("/tzs/sync/fillingRecord", 2, fillingRecordSyncListener);
emqKeeper
.
subscript
(
"/tzs/sync/fillingRecord"
,
2
,
fillingRecordSyncListener
);
//
emqKeeper.subscript("tzs/oneCodePass/deviceSave", 2, amosMqTtlListener);
emqKeeper
.
subscript
(
"tzs/oneCodePass/deviceSave"
,
2
,
amosMqTtlListener
);
//
//
emqKeeper.getMqttClient().subscribe("topic_mqtt_exam", 1, examMqTtlListener);
// emqKeeper.getMqttClient().subscribe("topic_mqtt_exam", 1, examMqTtlListener);
//
//
emqKeeper.getMqttClient().subscribe("topic_mqtt_exam_record", 1, examMqTtRecordListener);
// emqKeeper.getMqttClient().subscribe("topic_mqtt_exam_record", 1, examMqTtRecordListener);
//
}
}
//
@Bean
@Bean
//
public void initToken() {
public
void
initToken
()
{
//
startPlatformTokenService.getToken();
startPlatformTokenService
.
getToken
();
//
}
}
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/controller/AlertCalledController.java
View file @
62650e3b
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/controller/AlertFormController.java
View file @
62650e3b
...
@@ -8,8 +8,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
...
@@ -8,8 +8,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertFormInitDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.AlertForm
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertForm
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.AlertFormServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.AlertFormServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/controller/BaseUnitLicenceController.java
View file @
62650e3b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
biz
.
controller
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.BaseUnitLicenceDto
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.BaseUnitLicenceServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.BaseUnitLicenceServiceImpl
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
java.util.List
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.BaseUnitLicenceDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
/**
* 单位注册许可信息表
* 单位注册许可信息表
...
@@ -30,15 +31,15 @@ public class BaseUnitLicenceController extends BaseController {
...
@@ -30,15 +31,15 @@ public class BaseUnitLicenceController extends BaseController {
@Autowired
@Autowired
BaseUnitLicenceServiceImpl
baseUnitLicenceServiceImpl
;
BaseUnitLicenceServiceImpl
baseUnitLicenceServiceImpl
;
/**
/**
* 列表全部数据查询
* 列表全部数据查询
*
*
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"单位注册许可信息表列表全部数据查询"
,
notes
=
"单位注册许可信息表列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"单位注册许可信息表列表全部数据查询"
,
notes
=
"单位注册许可信息表列表全部数据查询"
)
@GetMapping
(
value
=
"/{unitCode}/list"
)
@GetMapping
(
value
=
"/{unitCode}/list"
)
public
ResponseModel
<
List
<
BaseUnitLicenceDto
>>
selectForList
(
@PathVariable
String
unitCode
)
{
public
ResponseModel
<
List
<
BaseUnitLicenceDto
>>
selectForList
(
@PathVariable
String
unitCode
)
{
return
ResponseHelper
.
buildResponse
(
baseUnitLicenceServiceImpl
.
queryForBaseUnitLicenceList
(
unitCode
));
return
ResponseHelper
.
buildResponse
(
baseUnitLicenceServiceImpl
.
queryForBaseUnitLicenceList
(
unitCode
));
}
}
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/controller/ElevatorStatusController.java
View file @
62650e3b
...
@@ -2,14 +2,9 @@ package com.yeejoin.amos.boot.module.ymt.biz.controller;
...
@@ -2,14 +2,9 @@ package com.yeejoin.amos.boot.module.ymt.biz.controller;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorStatusHandleDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.ElevatorStatusHandleDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorStatus
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.ElevatorStatus
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftBitStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.*
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftDirectionEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftDoorStatusEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftIszoneEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftServiceModelEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.LiftStatusEnum
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.ElevatorStatusServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.ElevatorStatusServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -23,6 +18,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...
@@ -23,6 +18,7 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/BaseUnitLicenceServiceImpl.java
View file @
62650e3b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.BaseUnitLicence
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.BaseUnitLicenceMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IBaseUnitLicenceService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.BaseUnitLicenceDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.BaseUnitLicenceDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.BaseUnitLicence
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.BaseUnitLicenceMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.service.IBaseUnitLicenceService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -16,19 +17,20 @@ import java.util.List;
...
@@ -16,19 +17,20 @@ import java.util.List;
* @date 2022-08-09
* @date 2022-08-09
*/
*/
@Service
@Service
public
class
BaseUnitLicenceServiceImpl
extends
BaseService
<
BaseUnitLicenceDto
,
BaseUnitLicence
,
BaseUnitLicenceMapper
>
implements
IBaseUnitLicenceService
{
public
class
BaseUnitLicenceServiceImpl
extends
BaseService
<
BaseUnitLicenceDto
,
BaseUnitLicence
,
BaseUnitLicenceMapper
>
implements
IBaseUnitLicenceService
{
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
BaseUnitLicenceDto
>
queryForBaseUnitLicencePage
(
Page
<
BaseUnitLicenceDto
>
page
)
{
public
Page
<
BaseUnitLicenceDto
>
queryForBaseUnitLicencePage
(
Page
<
BaseUnitLicenceDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
return
this
.
queryForPage
(
page
,
null
,
false
);
}
}
/**
/**
* 列表查询
* 列表查询
*
* @param unitCode 单位编号
* @param unitCode 单位编号
*/
*/
public
List
<
BaseUnitLicenceDto
>
queryForBaseUnitLicenceList
(
String
unitCode
)
{
public
List
<
BaseUnitLicenceDto
>
queryForBaseUnitLicenceList
(
String
unitCode
)
{
return
this
.
queryForList
(
""
,
false
,
unitCode
);
return
this
.
queryForList
(
""
,
false
,
unitCode
);
}
}
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/ElevatorStatusServiceImpl.java
View file @
62650e3b
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.ElevatorStatus
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorStatusMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IElevatorStatusService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorStatusDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.ElevatorStatusDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.ElevatorStatus
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.ElevatorStatusMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.service.IElevatorStatusService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -16,18 +17,18 @@ import java.util.List;
...
@@ -16,18 +17,18 @@ import java.util.List;
* @date 2021-09-28
* @date 2021-09-28
*/
*/
@Service
@Service
public
class
ElevatorStatusServiceImpl
extends
BaseService
<
ElevatorStatusDto
,
ElevatorStatus
,
ElevatorStatusMapper
>
implements
IElevatorStatusService
{
public
class
ElevatorStatusServiceImpl
extends
BaseService
<
ElevatorStatusDto
,
ElevatorStatus
,
ElevatorStatusMapper
>
implements
IElevatorStatusService
{
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
ElevatorStatusDto
>
queryForElevatorStatusPage
(
Page
<
ElevatorStatusDto
>
page
)
{
public
Page
<
ElevatorStatusDto
>
queryForElevatorStatusPage
(
Page
<
ElevatorStatusDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
return
this
.
queryForPage
(
page
,
null
,
false
);
}
}
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
ElevatorStatusDto
>
queryForElevatorStatusList
()
{
public
List
<
ElevatorStatusDto
>
queryForElevatorStatusList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
}
}
\ No newline at end of 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