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
ff9f804a
Commit
ff9f804a
authored
Feb 17, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of 172.16.10.76:moa/amos-boot-biz into developer
parents
48ec731f
65534e57
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
145 additions
and
99 deletions
+145
-99
MqttEventReceiveServiceImpl.java
...equipmanage/service/impl/MqttEventReceiveServiceImpl.java
+12
-1
EquipmentController.java
...ot/module/tzs/flc/biz/controller/EquipmentController.java
+7
-2
EquipmentInformController.java
...ule/tzs/flc/biz/controller/EquipmentInformController.java
+17
-19
UnitInfoController.java
...oot/module/tzs/flc/biz/controller/UnitInfoController.java
+45
-17
UnitInfoServiceImpl.java
.../module/tzs/flc/biz/service/impl/UnitInfoServiceImpl.java
+9
-0
view_all.sql
...stem-equip/src/main/resources/changelog/init/view_all.sql
+27
-21
AnalysisReportMonthMapper.xml
...p/src/main/resources/mapper/AnalysisReportMonthMapper.xml
+1
-1
ConfirmAlarmMapper.xml
...em-equip/src/main/resources/mapper/ConfirmAlarmMapper.xml
+2
-9
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+7
-13
dbTemplate_fmea_equipment_point.xml
...n/resources/db/mapper/dbTemplate_fmea_equipment_point.xml
+9
-8
dbTemplate_fmea_point_inputitem.xml
...n/resources/db/mapper/dbTemplate_fmea_point_inputitem.xml
+9
-8
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttEventReceiveServiceImpl.java
View file @
ff9f804a
package
com
.
yeejoin
.
equipmanage
.
service
.
impl
;
package
com
.
yeejoin
.
equipmanage
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.equipmanage.common.entity.dto.MonitorEventDto
;
import
com.yeejoin.equipmanage.common.entity.dto.MonitorEventDto
;
import
com.yeejoin.equipmanage.common.enums.VideoEventEnum
;
import
com.yeejoin.equipmanage.common.enums.VideoEventEnum
;
import
com.yeejoin.equipmanage.service.MqttEventReceiveService
;
import
com.yeejoin.equipmanage.service.MqttEventReceiveService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -13,6 +17,7 @@ import java.util.ArrayList;
...
@@ -13,6 +17,7 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
@Slf4j
@Service
@Service
public
class
MqttEventReceiveServiceImpl
implements
MqttEventReceiveService
{
public
class
MqttEventReceiveServiceImpl
implements
MqttEventReceiveService
{
...
@@ -23,8 +28,9 @@ public class MqttEventReceiveServiceImpl implements MqttEventReceiveService {
...
@@ -23,8 +28,9 @@ public class MqttEventReceiveServiceImpl implements MqttEventReceiveService {
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
handlerMqttIncrementMessage
(
String
topic
,
String
message
)
{
public
void
handlerMqttIncrementMessage
(
String
topic
,
String
message
)
{
JSONObject
json
=
JSONObject
.
parseObject
(
message
);
try
{
try
{
log
.
debug
(
message
);
JSONObject
json
=
JSON
.
parseObject
(
message
);
String
deviceCode
=
json
.
getString
(
"deviceCode"
);
String
deviceCode
=
json
.
getString
(
"deviceCode"
);
String
event
=
json
.
getString
(
"event"
);
String
event
=
json
.
getString
(
"event"
);
JSONObject
eventJson
=
JSONObject
.
parseObject
(
event
);
JSONObject
eventJson
=
JSONObject
.
parseObject
(
event
);
...
@@ -60,4 +66,9 @@ public class MqttEventReceiveServiceImpl implements MqttEventReceiveService {
...
@@ -60,4 +66,9 @@ public class MqttEventReceiveServiceImpl implements MqttEventReceiveService {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
// public static void main(String[] args) {
// MqttEventReceiveServiceImpl m = new MqttEventReceiveServiceImpl();
// m.handlerMqttIncrementMessage("", "{\"deviceCode\":\"13485741871310161013\",\"traceId\":\"-1202608724639988142\",\"event\":{\"pic\":\"upload/iot/1433672253282881537/752F8D2FCC745F218EE936C673DAB.jpg\",\"eventContent\":\"人数变化事件 \",\"eventType\":15}}");
// }
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/EquipmentController.java
View file @
ff9f804a
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.EquipmentDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.EquipmentDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.EquipmentIndexDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.EquipmentIndexDto
;
...
@@ -77,11 +78,15 @@ public class EquipmentController extends BaseController {
...
@@ -77,11 +78,15 @@ public class EquipmentController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增装备信息表"
,
notes
=
"新增装备信息表"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增装备信息表"
,
notes
=
"新增装备信息表"
)
public
ResponseModel
<
EquipmentDto
>
save
(
@RequestBody
EquipmentDto
model
)
{
public
ResponseModel
save
(
@RequestBody
EquipmentDto
model
)
{
try
{
model
=
equipmentServiceImpl
.
createEquipment
(
model
);
model
=
equipmentServiceImpl
.
createEquipment
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
return
CommonResponseUtil
.
success
(
model
);
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
"该手机号已经注册"
);
}
}
}
/**
/**
* 根据sequenceNbr查询
* 根据sequenceNbr查询
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/EquipmentInformController.java
View file @
ff9f804a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
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.
baomidou.mybatisplus.core.metadata.IPage
;
import
com.
yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
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.workflow.feign.WorkflowFeignService
;
import
com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledQueryDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.EquipmentInformDto
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.InformEquipmentDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.EquipmentInform
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.EquipmentInform
;
import
com.yeejoin.amos.boot.module.tzs.flc.
api.entity.UnitInfo
;
import
com.yeejoin.amos.boot.module.tzs.flc.
biz.service.impl.EquipmentInformServiceImpl
;
import
feign.Response
;
import
feign.Response
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
io.swagger.annotations.Api
;
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
com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.EquipmentInformServiceImpl
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
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
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.EquipmentInformDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
/**
* 设备告知单
* 设备告知单
...
...
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 @
ff9f804a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
controller
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
@@ -10,9 +9,10 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
...
@@ -10,9 +9,10 @@ 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.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.
tzs.api.enums.TzsCommonParam
;
import
com.yeejoin.amos.boot.module.
common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzsAuthServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzsAuthServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.EquipmentInformDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitInfoApproveDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitInfoApproveDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.UnitInfo
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.UnitInfo
;
...
@@ -157,7 +157,8 @@ public class UnitInfoController extends BaseController {
...
@@ -157,7 +157,8 @@ public class UnitInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断组织机构是否存在"
,
notes
=
"判断组织机构是否存在"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断组织机构是否存在"
,
notes
=
"判断组织机构是否存在"
)
public
ResponseModel
<
Boolean
>
hasExistUnit
(
@PathVariable
(
value
=
"organizationCode"
)
String
organizationCode
)
{
public
ResponseModel
<
Boolean
>
hasExistUnit
(
@PathVariable
(
value
=
"organizationCode"
)
String
organizationCode
)
{
Boolean
flag
=
false
;
Boolean
flag
=
false
;
UnitInfo
temp
=
unitInfoServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
UnitInfo
>().
eq
(
UnitInfo:
:
getIsDelete
,
false
).
eq
(
UnitInfo:
:
getOrganizationCode
,
organizationCode
));
UnitInfo
temp
=
unitInfoServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
UnitInfo
>().
eq
(
UnitInfo:
:
getIsDelete
,
false
).
eq
(
UnitInfo:
:
getOrganizationCode
,
organizationCode
).
eq
(
UnitInfo:
:
getUnitStatus
,
"1"
).
or
().
eq
(
UnitInfo:
:
getIsChange
,
true
).
eq
(
UnitInfo:
:
getOrganizationCode
,
organizationCode
));
if
(
temp
!=
null
)
{
if
(
temp
!=
null
)
{
flag
=
true
;
flag
=
true
;
}
}
...
@@ -174,7 +175,7 @@ public class UnitInfoController extends BaseController {
...
@@ -174,7 +175,7 @@ public class UnitInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断组织机构是否存在-更新"
,
notes
=
"判断组织机构是否存在-更新"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断组织机构是否存在-更新"
,
notes
=
"判断组织机构是否存在-更新"
)
public
ResponseModel
<
Boolean
>
hasExistUnitWithId
(
@PathVariable
(
value
=
"unitId"
)
Long
unitId
,
@PathVariable
(
value
=
"organizationCode"
)
String
organizationCode
)
{
public
ResponseModel
<
Boolean
>
hasExistUnitWithId
(
@PathVariable
(
value
=
"unitId"
)
Long
unitId
,
@PathVariable
(
value
=
"organizationCode"
)
String
organizationCode
)
{
Boolean
flag
=
false
;
Boolean
flag
=
false
;
UnitInfo
temp
=
unitInfoServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
UnitInfo
>().
eq
(
UnitInfo:
:
getIsDelete
,
false
).
eq
(
UnitInfo:
:
getOrganizationCode
,
organizationCode
).
ne
(
UnitInfo:
:
getSequenceNbr
,
unitId
));
UnitInfo
temp
=
unitInfoServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
UnitInfo
>().
eq
(
UnitInfo:
:
getIsDelete
,
false
).
eq
(
UnitInfo:
:
getOrganizationCode
,
organizationCode
).
ne
(
UnitInfo:
:
getSequenceNbr
,
unitId
)
.
eq
(
UnitInfo:
:
getUnitStatus
,
"1"
).
or
().
eq
(
UnitInfo:
:
getIsChange
,
true
)
);
if
(
temp
!=
null
)
{
if
(
temp
!=
null
)
{
flag
=
true
;
flag
=
true
;
}
}
...
@@ -386,7 +387,6 @@ public class UnitInfoController extends BaseController {
...
@@ -386,7 +387,6 @@ public class UnitInfoController extends BaseController {
}
}
/**
/**
* 审批企业注册
* 审批企业注册
*
*
...
@@ -395,12 +395,16 @@ public class UnitInfoController extends BaseController {
...
@@ -395,12 +395,16 @@ public class UnitInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/approve"
)
@PostMapping
(
value
=
"/approve"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"审批企业注册"
,
notes
=
"审批企业注册"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"审批企业注册"
,
notes
=
"审批企业注册"
)
public
ResponseModel
<
UnitInfoDto
>
approve
(
@RequestBody
UnitInfoApproveDto
approveDto
)
{
public
ResponseModel
approve
(
@RequestBody
UnitInfoApproveDto
approveDto
)
{
if
(
ValidationUtil
.
isEmpty
(
approveDto
.
getUnitId
())
||
ValidationUtil
.
isEmpty
(
approveDto
.
getApproveStatus
()))
{
if
(
ValidationUtil
.
isEmpty
(
approveDto
.
getUnitId
())
||
ValidationUtil
.
isEmpty
(
approveDto
.
getApproveStatus
()))
{
throw
new
BadRequest
(
"参数校验失败."
);
throw
new
BadRequest
(
"参数校验失败."
);
}
}
try
{
UnitInfoDto
model
=
unitInfoServiceImpl
.
approve
(
approveDto
);
UnitInfoDto
model
=
unitInfoServiceImpl
.
approve
(
approveDto
);
return
ResponseHelper
.
buildResponse
(
model
);
return
CommonResponseUtil
.
success
(
model
);
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
e
.
getMessage
());
}
}
}
...
@@ -431,10 +435,6 @@ public class UnitInfoController extends BaseController {
...
@@ -431,10 +435,6 @@ public class UnitInfoController extends BaseController {
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
/**
/**
* 变更企业表
* 变更企业表
*
*
...
@@ -444,9 +444,12 @@ public class UnitInfoController extends BaseController {
...
@@ -444,9 +444,12 @@ public class UnitInfoController extends BaseController {
@PostMapping
(
value
=
"/change"
)
@PostMapping
(
value
=
"/change"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"变更企业表"
,
notes
=
"变更企业表"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"变更企业表"
,
notes
=
"变更企业表"
)
public
ResponseModel
<
UnitInfoDto
>
change
(
@RequestBody
UnitInfoDto
model
)
{
public
ResponseModel
<
UnitInfoDto
>
change
(
@RequestBody
UnitInfoDto
model
)
{
try
{
model
=
unitInfoServiceImpl
.
changeUnInfo
(
model
);
model
=
unitInfoServiceImpl
.
changeUnInfo
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
return
CommonResponseUtil
.
success
(
model
);
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
e
.
getMessage
());
}
}
}
/**
/**
...
@@ -532,7 +535,6 @@ public class UnitInfoController extends BaseController {
...
@@ -532,7 +535,6 @@ public class UnitInfoController extends BaseController {
return
ResponseHelper
.
buildResponse
(
unitInfoVoIPage
);
return
ResponseHelper
.
buildResponse
(
unitInfoVoIPage
);
}
}
/**
/**
* 判断用户号码是否存在
* 判断用户号码是否存在
*
*
...
@@ -541,9 +543,12 @@ public class UnitInfoController extends BaseController {
...
@@ -541,9 +543,12 @@ public class UnitInfoController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/hasExistPhone/{phone}"
)
@GetMapping
(
value
=
"/hasExistPhone/{phone}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断用户号码是否存在"
,
notes
=
"判断用户号码是否存在"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断用户号码是否存在"
,
notes
=
"判断用户号码是否存在"
)
public
ResponseModel
<
Boolean
>
hasExistPhone
(
@PathVariable
(
value
=
"phone"
)
String
phone
)
{
public
ResponseModel
hasExistPhone
(
@PathVariable
(
value
=
"phone"
)
String
phone
)
{
Boolean
flag
=
Privilege
.
agencyUserClient
.
checkLoginId
(
phone
).
getResult
();
try
{
return
ResponseHelper
.
buildResponse
(
flag
);
return
CommonResponseUtil
.
success
(
Privilege
.
agencyUserClient
.
checkLoginId
(
phone
).
getResult
());
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
"该手机号已经注册"
);
}
}
}
...
@@ -562,4 +567,27 @@ public class UnitInfoController extends BaseController {
...
@@ -562,4 +567,27 @@ public class UnitInfoController extends BaseController {
/**
* 根据当前登录人获取企业信息--编辑
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getUserUnitEdit"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据当前登录人获取企业信息--编辑"
,
notes
=
"根据当前登录人获取企业信息--编辑"
)
public
ResponseModel
<
UnitInfoDto
>
getUserUnitEdit
()
{
AgencyUserModel
user
=
Privilege
.
agencyUserClient
.
getme
().
getResult
();
List
<
CompanyModel
>
companys
=
user
.
getCompanys
();
UnitInfoDto
result
=
new
UnitInfoDto
();
for
(
CompanyModel
c
:
companys
)
{
OrgUsr
temp
=
iOrgUsrService
.
getOne
(
new
LambdaQueryWrapper
<
OrgUsr
>().
eq
(
OrgUsr:
:
getIsDelete
,
false
).
eq
(
OrgUsr:
:
getAmosOrgId
,
c
.
getSequenceNbr
()));
if
(
temp
!=
null
)
{
// 企业信息查看判断是否变更 如果变更信息则返回变更中信息
result
=
unitInfoServiceImpl
.
getDtoByOrgId
(
temp
.
getSequenceNbr
());
return
ResponseHelper
.
buildResponse
(
result
);
}
}
return
ResponseHelper
.
buildResponse
(
result
);
}
}
}
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 @
ff9f804a
...
@@ -142,6 +142,15 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
...
@@ -142,6 +142,15 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
}
}
Integer
approveStatus
=
approveDto
.
getApproveStatus
();
// 0通过 1驳回
Integer
approveStatus
=
approveDto
.
getApproveStatus
();
// 0通过 1驳回
Boolean
changeFlag
=
false
;
Boolean
changeFlag
=
false
;
UnitInfo
temp
=
this
.
getOne
(
new
LambdaQueryWrapper
<
UnitInfo
>().
eq
(
UnitInfo:
:
getIsDelete
,
false
).
eq
(
UnitInfo:
:
getOrganizationCode
,
sourceUnit
.
getOrganizationCode
()).
eq
(
UnitInfo:
:
getUnitStatus
,
"1"
).
ne
(
UnitInfo:
:
getSequenceNbr
,
sourceUnit
.
getSequenceNbr
()).
or
().
eq
(
UnitInfo:
:
getIsChange
,
true
).
eq
(
UnitInfo:
:
getOrganizationCode
,
sourceUnit
.
getOrganizationCode
()).
ne
(
UnitInfo:
:
getSequenceNbr
,
approveDto
.
getSequenceNbr
()));
if
(
temp
!=
null
)
{
throw
new
BadRequest
(
"单位组织编码已存在请确认"
);
}
if
(
changeUnit
!=
null
)
{
if
(
changeUnit
!=
null
)
{
changeFlag
=
true
;
changeFlag
=
true
;
approveDto
.
setUnitId
(
changeUnit
.
getSequenceNbr
());
approveDto
.
setUnitId
(
changeUnit
.
getSequenceNbr
());
...
...
amos-boot-system-equip/src/main/resources/changelog/init/view_all.sql
View file @
ff9f804a
...
@@ -4757,10 +4757,11 @@ FROM
...
@@ -4757,10 +4757,11 @@ FROM
(
(
(
(
SELECT
SELECT
`a`
.
`value`
AS
`yhxfscyw`
,
ifnull
(
sum
(
`a`
.
`value`
),
0
)
AS
`yhxfscyw`
,
ifnull
(
(
(
CASE
CASE
WHEN
(
`a`
.
`value`
IS
NULL
)
THEN
WHEN
(
`a`
.
`value`
=
NULL
)
THEN
0
0
WHEN
(
WHEN
(
(
`a`
.
`value`
<>
''
)
(
`a`
.
`value`
<>
''
)
...
@@ -4772,12 +4773,14 @@ FROM
...
@@ -4772,12 +4773,14 @@ FROM
),
),
2
2
)
)
WHEN
(
`b`
.
`height`
IS
NULL
)
THEN
WHEN
(
`b`
.
`height`
=
NULL
)
THEN
0
0
END
END
),
0
)
AS
`yhxfscyl`
,
)
AS
`yhxfscyl`
,
`b`
.
`waterStorage`
AS
`yhxfsccs`
,
ifnull
(
`b`
.
`waterStorage`
,
0
)
AS
`yhxfsccs`
,
`b`
.
`height`
AS
`yhxfscg`
ifnull
(
`b`
.
`height`
,
0
)
AS
`yhxfscg`
FROM
FROM
(
(
(
(
...
@@ -4794,7 +4797,7 @@ FROM
...
@@ -4794,7 +4797,7 @@ FROM
`si`
.
`equipment_index_key`
=
'FHS_FirePoolDevice_WaterLevel'
`si`
.
`equipment_index_key`
=
'FHS_FirePoolDevice_WaterLevel'
)
)
AND
(
AND
(
`s`
.
`code`
=
'1HXFSCCJZZ100000'
--1号消防水池装置code
`s`
.
`code`
=
'1HXFSCCJZZ100000'
)
)
AND
(
AND
(
`si`
.
`equipment_specific_id`
=
`s`
.
`id`
`si`
.
`equipment_specific_id`
=
`s`
.
`id`
...
@@ -4841,7 +4844,7 @@ FROM
...
@@ -4841,7 +4844,7 @@ FROM
(
(
(
`i`
.
`field_name`
=
'code'
)
(
`i`
.
`field_name`
=
'code'
)
AND
(
AND
(
`i`
.
`field_value`
=
'SC10
5035'
--1号消防水池(建筑或者房间类型)code
`i`
.
`field_value`
=
'SC10
6268'
)
)
)
)
LIMIT
1
LIMIT
1
...
@@ -4851,12 +4854,13 @@ FROM
...
@@ -4851,12 +4854,13 @@ FROM
)
`b`
)
`b`
)
)
)
`yh`
)
`yh`
JOIN
(
LEFT
JOIN
(
SELECT
SELECT
`a`
.
`value`
AS
`ehxfscyw`
,
ifnull
(
sum
(
`a`
.
`value`
),
0
)
AS
`ehxfscyw`
,
ifnull
(
(
(
CASE
CASE
WHEN
(
`a`
.
`value`
IS
NULL
)
THEN
WHEN
(
`a`
.
`value`
=
NULL
)
THEN
0
0
WHEN
(
WHEN
(
(
`a`
.
`value`
<>
''
)
(
`a`
.
`value`
<>
''
)
...
@@ -4868,12 +4872,14 @@ FROM
...
@@ -4868,12 +4872,14 @@ FROM
),
),
2
2
)
)
WHEN
(
`b`
.
`height`
IS
NULL
)
THEN
WHEN
(
`b`
.
`height`
=
NULL
)
THEN
0
0
END
END
),
0
)
AS
`ehxfscyl`
,
)
AS
`ehxfscyl`
,
`b`
.
`waterStorage`
AS
`ehxfsccs`
,
ifnull
(
`b`
.
`waterStorage`
,
0
)
AS
`ehxfsccs`
,
`b`
.
`height`
AS
`ehxfscg`
ifnull
(
`b`
.
`height`
,
0
)
AS
`ehxfscg`
FROM
FROM
(
(
(
(
...
@@ -4890,7 +4896,7 @@ FROM
...
@@ -4890,7 +4896,7 @@ FROM
`si`
.
`equipment_index_key`
=
'FHS_FirePoolDevice_WaterLevel'
`si`
.
`equipment_index_key`
=
'FHS_FirePoolDevice_WaterLevel'
)
)
AND
(
AND
(
`s`
.
`code`
=
'1HXFSCCJZZ10000
1'
--2号消防水池装置code
`s`
.
`code`
=
'1HXFSCCJZZ10000
0'
)
)
AND
(
AND
(
`si`
.
`equipment_specific_id`
=
`s`
.
`id`
`si`
.
`equipment_specific_id`
=
`s`
.
`id`
...
@@ -4937,7 +4943,7 @@ FROM
...
@@ -4937,7 +4943,7 @@ FROM
(
(
(
`i`
.
`field_name`
=
'code'
)
(
`i`
.
`field_name`
=
'code'
)
AND
(
AND
(
`i`
.
`field_value`
=
'SC10
3119'
--2号消防水池(建筑或者房间类型)code
`i`
.
`field_value`
=
'SC10
6268'
)
)
)
)
LIMIT
1
LIMIT
1
...
@@ -4946,8 +4952,8 @@ FROM
...
@@ -4946,8 +4952,8 @@ FROM
)
)
)
`b`
)
`b`
)
)
)
`eh`
)
`eh`
ON
((
1
=
1
))
);
);
-- 泡沫灭火3小
-- 泡沫灭火3小
DROP
VIEW
IF
EXISTS
`v_fire_equip_ffs_num`
;
DROP
VIEW
IF
EXISTS
`v_fire_equip_ffs_num`
;
CREATE
ALGORITHM
=
UNDEFINED
DEFINER
=
`root`
@
`%`
SQL
SECURITY
DEFINER
VIEW
`v_fire_equip_ffs_num`
AS
CREATE
ALGORITHM
=
UNDEFINED
DEFINER
=
`root`
@
`%`
SQL
SECURITY
DEFINER
VIEW
`v_fire_equip_ffs_num`
AS
...
@@ -5040,10 +5046,10 @@ SELECT
...
@@ -5040,10 +5046,10 @@ SELECT
(
d
.
jygdqdpqd
+
d
.
jyddqdpqd
+
d
.
jegdqdpqd
+
d
.
jeddqdpqd
)
AS
qdpqd
,
(
d
.
jygdqdpqd
+
d
.
jyddqdpqd
+
d
.
jegdqdpqd
+
d
.
jeddqdpqd
)
AS
qdpqd
,
(
d
.
jygdqdpgz
+
d
.
jyddqdpgz
+
d
.
jegdqdpgz
+
d
.
jeddqdpgz
)
AS
qdpgz
,
(
d
.
jygdqdpgz
+
d
.
jyddqdpgz
+
d
.
jegdqdpgz
+
d
.
jeddqdpgz
)
AS
qdpgz
,
(
d
.
jygdqdppb
+
d
.
jyddqdppb
+
d
.
jegdqdppb
+
d
.
jeddqdppb
)
AS
qdppb
,
(
d
.
jygdqdppb
+
d
.
jyddqdppb
+
d
.
jegdqdppb
+
d
.
jeddqdppb
)
AS
qdppb
,
(
d
.
j
edddlq
+
d
.
jedddlq
+
d
.
jed
ddlq
+
d
.
jedddlq
)
AS
dlqzs
,
(
d
.
j
ygddlq
+
d
.
jydddlq
+
d
.
jeg
ddlq
+
d
.
jedddlq
)
AS
dlqzs
,
(
d
.
j
edddlqdl
+
d
.
jedddlqdl
+
d
.
jed
ddlqdl
+
d
.
jedddlqdl
)
AS
dlqqd
,
(
d
.
j
ygddlqdl
+
d
.
jydddlqdl
+
d
.
jeg
ddlqdl
+
d
.
jedddlqdl
)
AS
dlqqd
,
(
d
.
j
edddlqgz
+
d
.
jedddlqgz
+
d
.
jed
ddlqgz
+
d
.
jedddlqgz
)
AS
dlqgz
,
(
d
.
j
ygddlqgz
+
d
.
jydddlqgz
+
d
.
jeg
ddlqgz
+
d
.
jedddlqgz
)
AS
dlqgz
,
(
d
.
j
edddlqpb
+
d
.
jedddlqpb
+
d
.
jed
ddlqpb
+
d
.
jedddlqpb
)
AS
dlqpb
,
(
d
.
j
ygddlqpb
+
d
.
jydddlqpb
+
d
.
jeg
ddlqpb
+
d
.
jedddlqpb
)
AS
dlqpb
,
ABS
(
d
.
jygddlq
-
d
.
jygddlqdl
+
d
.
jydddlq
-
d
.
jydddlqdl
+
d
.
jegddlq
-
d
.
jegddlqdl
+
d
.
jedddlq
-
d
.
jedddlqdl
)
AS
dlqjt
ABS
(
d
.
jygddlq
-
d
.
jygddlqdl
+
d
.
jydddlq
-
d
.
jydddlqdl
+
d
.
jegddlq
-
d
.
jegddlqdl
+
d
.
jedddlq
-
d
.
jedddlqdl
)
AS
dlqjt
FROM
FROM
(
(
...
...
amos-boot-system-equip/src/main/resources/mapper/AnalysisReportMonthMapper.xml
View file @
ff9f804a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
)
)
select
select
a1.*,
a1.*,
DATE_FORMAT(
NOW(
),'%Y-%m')
DATE_FORMAT(
DATE_SUB(NOW(),INTERVAL 1 day
),'%Y-%m')
from
from
(SELECT
(SELECT
system_id,
system_id,
...
...
amos-boot-system-equip/src/main/resources/mapper/ConfirmAlarmMapper.xml
View file @
ff9f804a
...
@@ -19,15 +19,7 @@
...
@@ -19,15 +19,7 @@
ala.equipment_specific_index_name,
ala.equipment_specific_index_name,
ala.type as equipment_specific_index_key,
ala.type as equipment_specific_index_key,
concat(ala.equipment_specific_name,ala.equipment_specific_index_name) as alarmContent,
concat(ala.equipment_specific_name,ala.equipment_specific_index_name) as alarmContent,
(
ala.location AS alarmPlace,
SELECT
ws.full_name
FROM
wl_warehouse_structure ws,wl_stock_detail sd
WHERE
ws.id = sd.warehouse_structure_id
and sd.equipment_specific_id = ala.equipment_specific_id
) AS alarmPlace,
ala.create_date as create_date,
ala.create_date as create_date,
ala.location as location,
ala.location as location,
if(spe.code is null,ala.equipment_specific_name,concat(ala.equipment_specific_name,'(',spe.code,')')) as equipmentName,
if(spe.code is null,ala.equipment_specific_name,concat(ala.equipment_specific_name,'(',spe.code,')')) as equipmentName,
...
@@ -54,6 +46,7 @@
...
@@ -54,6 +46,7 @@
<choose>
<choose>
<when
test=
"equipId != null and equipId != ''"
>
<when
test=
"equipId != null and equipId != ''"
>
ala.equipment_specific_id =#{equipId}
ala.equipment_specific_id =#{equipId}
order by ala.create_date desc limit 1
</when>
</when>
<otherwise>
<otherwise>
ala.id =#{id} limit 1
ala.id =#{id} limit 1
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
ff9f804a
...
@@ -199,7 +199,7 @@
...
@@ -199,7 +199,7 @@
AS fireEquipmentPointValue,
AS fireEquipmentPointValue,
wlesal.type AS type,
wlesal.type AS type,
wlesal.create_date AS createDate,
wlesal.create_date AS createDate,
CONCAT_WS(' ',ware.full_name,wsd.description,wled.area)
AS warehouseStructureName,
wlesal.location
AS warehouseStructureName,
(select
(select
group_concat(fet.`name`)
group_concat(fet.`name`)
from f_equipment_fire_equipment as fefe
from f_equipment_fire_equipment as fefe
...
@@ -209,7 +209,6 @@
...
@@ -209,7 +209,6 @@
FROM wl_equipment_specific_alarm_log wlesal
FROM wl_equipment_specific_alarm_log wlesal
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
left join wl_stock_detail as wsd on wsd.equipment_specific_id = wlesal.equipment_specific_id
left join wl_stock_detail as wsd on wsd.equipment_specific_id = wlesal.equipment_specific_id
left join wl_warehouse_structure as ware on wsd.warehouse_structure_id = ware.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment we ON wled.equipment_id = we.id
LEFT JOIN wl_equipment we ON wled.equipment_id = we.id
) d
) d
...
@@ -266,11 +265,9 @@
...
@@ -266,11 +265,9 @@
wlesa.equipment_specific_index_name AS fireEquipmentSpecificIndexName,
wlesa.equipment_specific_index_name AS fireEquipmentSpecificIndexName,
wlesa.type AS type,
wlesa.type AS type,
wlesa.create_date AS createDate,
wlesa.create_date AS createDate,
CONCAT_WS(' ',wws.full_name,wlsd.description)
AS warehouseStructureName
wlesa.location
AS warehouseStructureName
FROM wl_equipment_specific_alarm_log wlesa
FROM wl_equipment_specific_alarm_log wlesa
left join wl_equipment_specific wles ON wlesa.equipment_specific_id = wles.id
left join wl_equipment_specific wles ON wlesa.equipment_specific_id = wles.id
left join wl_stock_detail wlsd ON wlsd.equipment_specific_id=wles.id
left join wl_warehouse_structure wws ON wlsd.warehouse_structure_id = wws.id
) d
) d
<where>
<where>
<if
test=
"warehouseStructureName != null and warehouseStructureName != ''"
>
and d.warehouseStructureName like
<if
test=
"warehouseStructureName != null and warehouseStructureName != ''"
>
and d.warehouseStructureName like
...
@@ -285,6 +282,7 @@
...
@@ -285,6 +282,7 @@
<if
test=
"alarmType == 'FIREALARM'"
>
AND d.type = #{alarmType}
</if>
<if
test=
"alarmType == 'FIREALARM'"
>
AND d.type = #{alarmType}
</if>
</where>
</where>
</select>
</select>
<select
id=
"pageAlarmsInfo"
resultType=
"Map"
>
<select
id=
"pageAlarmsInfo"
resultType=
"Map"
>
SELECT
SELECT
d.*
d.*
...
@@ -350,7 +348,7 @@
...
@@ -350,7 +348,7 @@
wl_equipment_specific_alarm_log wlesal
wl_equipment_specific_alarm_log wlesal
LEFT JOIN wl_equipment we ON wlesal.equipment_code = we.code
LEFT JOIN wl_equipment we ON wlesal.equipment_code = we.code
LEFT JOIN wl_equipment_specific_alarm wlesa ON wlesa.id = wlesal.equipment_specific_alarm_id) d
LEFT JOIN wl_equipment_specific_alarm wlesa ON wlesa.id = wlesal.equipment_specific_alarm_id) d
WHERE
d.fireEquipmentName IS NOT NULL
WHERE
<if
test=
"param.warehouseStructureName != null and param.warehouseStructureName != ''"
>
and
<if
test=
"param.warehouseStructureName != null and param.warehouseStructureName != ''"
>
and
d.warehouseStructureName like
d.warehouseStructureName like
concat(concat("%",#{param.warehouseStructureName}),"%")
concat(concat("%",#{param.warehouseStructureName}),"%")
...
@@ -445,7 +443,7 @@
...
@@ -445,7 +443,7 @@
END AS fireEquipmentPointValue,
END AS fireEquipmentPointValue,
wlesal.type AS type,
wlesal.type AS type,
wlesal.create_date AS createDate,
wlesal.create_date AS createDate,
CONCAT_WS(' ', ware.full_name, wsd.description )
AS warehouseStructureName,
wlesal.location
AS warehouseStructureName,
(
(
SELECT
SELECT
group_concat(fet.`name`)
group_concat(fet.`name`)
...
@@ -458,8 +456,6 @@
...
@@ -458,8 +456,6 @@
FROM
FROM
wl_equipment_specific_alarm_log wlesal
wl_equipment_specific_alarm_log wlesal
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_stock_detail as wsd on wsd.equipment_specific_id = wlesal.equipment_specific_id
LEFT JOIN wl_warehouse_structure as ware on wsd.warehouse_structure_id = ware.id
) d
) d
<where>
<where>
<if
test=
"warehouseStructureName != null and warehouseStructureName != ''"
>
<if
test=
"warehouseStructureName != null and warehouseStructureName != ''"
>
...
@@ -759,7 +755,7 @@
...
@@ -759,7 +755,7 @@
wlesa.`status`,
wlesa.`status`,
wlesal.type AS type,
wlesal.type AS type,
wlesal.create_date AS createDate,
wlesal.create_date AS createDate,
CONCAT_WS(' ',wws.full_name,wlsd.description)
AS warehouseStructureName,
wlesal.location
AS warehouseStructureName,
(select
(select
group_concat(fet.`name`)
group_concat(fet.`name`)
from f_equipment_fire_equipment as fefe
from f_equipment_fire_equipment as fefe
...
@@ -770,7 +766,6 @@
...
@@ -770,7 +766,6 @@
wl_equipment_specific_alarm_log wlesal
wl_equipment_specific_alarm_log wlesal
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_stock_detail wlsd ON wlsd.equipment_specific_id = wles.id
LEFT JOIN wl_stock_detail wlsd ON wlsd.equipment_specific_id = wles.id
LEFT JOIN wl_warehouse_structure wws ON wlsd.warehouse_structure_id = wws.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment_specific_alarm wlesa ON wlesa.id = wlesal.equipment_specific_alarm_id
LEFT JOIN wl_equipment_specific_alarm wlesa ON wlesa.id = wlesal.equipment_specific_alarm_id
<where>
<where>
...
@@ -901,7 +896,7 @@
...
@@ -901,7 +896,7 @@
wlesa.`status`,
wlesa.`status`,
wlesal.type AS type,
wlesal.type AS type,
wlesal.create_date AS createDate,
wlesal.create_date AS createDate,
CONCAT_WS(' ',wws.full_name,wlsd.description)
AS warehouseStructureName,
wlesal.location
AS warehouseStructureName,
wlesal.confirm_user_name confirmUserName,
wlesal.confirm_user_name confirmUserName,
wlesal.system_ids systemIds,
wlesal.system_ids systemIds,
(select
(select
...
@@ -918,7 +913,6 @@
...
@@ -918,7 +913,6 @@
wl_equipment_specific_alarm_log wlesal
wl_equipment_specific_alarm_log wlesal
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_equipment_specific wles ON wlesal.equipment_specific_id = wles.id
LEFT JOIN wl_stock_detail wlsd ON wlsd.equipment_specific_id = wles.id
LEFT JOIN wl_stock_detail wlsd ON wlsd.equipment_specific_id = wles.id
LEFT JOIN wl_warehouse_structure wws ON wlsd.warehouse_structure_id = wws.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment_detail wled ON wles.equipment_detail_id = wled.id
LEFT JOIN wl_equipment_specific_alarm wlesa ON wlesa.id = wlesal.equipment_specific_alarm_id
LEFT JOIN wl_equipment_specific_alarm wlesa ON wlesa.id = wlesal.equipment_specific_alarm_id
<where>
<where>
...
...
amos-boot-system-fas/src/main/resources/db/mapper/dbTemplate_fmea_equipment_point.xml
View file @
ff9f804a
...
@@ -145,14 +145,15 @@
...
@@ -145,14 +145,15 @@
</select>
</select>
<select
id=
"listFmeaByFmeaId"
resultType=
"com.yeejoin.amos.fas.dao.entity.FmeaEquipmentPoint"
>
<select
id=
"listFmeaByFmeaId"
resultType=
"com.yeejoin.amos.fas.dao.entity.FmeaEquipmentPoint"
>
select
SELECT
id,
fep.id,
fmea_id as fmeaId,
fep.fmea_id AS fmeaId,
equipment_point_id as equipmentPointId,
fep.equipment_point_id AS equipmentPointId,
state
fep.state
from
FROM
f_fmea_equipment_point
f_fmea_equipment_point fep
where
RIGHT JOIN wl_equipment_specific_index esi ON esi.id = fep.equipment_point_id
WHERE
fmea_id = #{fmeaId}
fmea_id = #{fmeaId}
</select>
</select>
...
...
amos-boot-system-fas/src/main/resources/db/mapper/dbTemplate_fmea_point_inputitem.xml
View file @
ff9f804a
...
@@ -113,14 +113,15 @@
...
@@ -113,14 +113,15 @@
</select>
</select>
<select
id=
"listFmeaByFmeaId"
resultType=
"com.yeejoin.amos.fas.dao.entity.FmeaPointInputitem"
>
<select
id=
"listFmeaByFmeaId"
resultType=
"com.yeejoin.amos.fas.dao.entity.FmeaPointInputitem"
>
select
SELECT
id,
fpi.id,
fmea_id as fmeaId,
fpi.fmea_id AS fmeaId,
point_inputitem_id as pointInputitemId,
fpi.point_inputitem_id AS pointInputitemId,
state
fpi.state
from
FROM
f_fmea_point_inputitem
f_fmea_point_inputitem fpi
where
RIGHT JOIN p_point_inputitem ppi ON ppi.id = fpi.point_inputitem_id
WHERE
fmea_id = #{fmeaId}
fmea_id = #{fmeaId}
</select>
</select>
...
...
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