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
f3582b38
Commit
f3582b38
authored
Aug 09, 2022
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6
parents
254a0712
33e28c82
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
207 additions
and
46 deletions
+207
-46
EquipmentDetail.java
...om/yeejoin/equipmanage/common/entity/EquipmentDetail.java
+14
-11
EquipmentExportVO.java
...ejoin/equipmanage/common/entity/vo/EquipmentExportVO.java
+40
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+1
-1
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+58
-34
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+8
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+1
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+85
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentDetail.java
View file @
f3582b38
package
com
.
yeejoin
.
equipmanage
.
common
.
entity
;
package
com
.
yeejoin
.
equipmanage
.
common
.
entity
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.equipmanage.common.entity.publics.BaseEntity
;
import
com.yeejoin.equipmanage.common.entity.publics.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
*
*
*
*
* @author wujiang
* @author wujiang
* @date 2020-07-07
* @date 2020-07-07
...
@@ -40,7 +39,7 @@ public class EquipmentDetail extends BaseEntity {
...
@@ -40,7 +39,7 @@ public class EquipmentDetail extends BaseEntity {
@TableField
(
"equipment_id"
)
@TableField
(
"equipment_id"
)
@ApiModelProperty
(
value
=
"装备定义id"
)
@ApiModelProperty
(
value
=
"装备定义id"
)
private
Long
equipmentId
;
private
Long
equipmentId
;
@TableField
(
"equipment_name"
)
@TableField
(
"equipment_name"
)
@ApiModelProperty
(
value
=
"装备定义名称"
)
@ApiModelProperty
(
value
=
"装备定义名称"
)
private
String
equipmentName
;
private
String
equipmentName
;
...
@@ -97,6 +96,10 @@ public class EquipmentDetail extends BaseEntity {
...
@@ -97,6 +96,10 @@ public class EquipmentDetail extends BaseEntity {
@ApiModelProperty
(
value
=
"生产日期"
)
@ApiModelProperty
(
value
=
"生产日期"
)
private
Date
productionDate
;
private
Date
productionDate
;
@TableField
(
"delivery_date"
)
@ApiModelProperty
(
value
=
"投运日期"
)
private
Date
deliveryDate
;
@TableField
(
"perf_quota_str"
)
@TableField
(
"perf_quota_str"
)
@ApiModelProperty
(
value
=
"核心参数"
)
@ApiModelProperty
(
value
=
"核心参数"
)
private
String
perfQuotaStr
;
private
String
perfQuotaStr
;
...
@@ -120,16 +123,16 @@ public class EquipmentDetail extends BaseEntity {
...
@@ -120,16 +123,16 @@ public class EquipmentDetail extends BaseEntity {
@TableField
(
"supplier_id"
)
@TableField
(
"supplier_id"
)
@ApiModelProperty
(
value
=
"供应商id"
)
@ApiModelProperty
(
value
=
"供应商id"
)
private
String
supplierId
;
private
String
supplierId
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
UploadFile
>
img
;
private
List
<
UploadFile
>
img
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
UploadFile
>
video
;
private
List
<
UploadFile
>
video
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
UploadFile
>
certification
;
private
List
<
UploadFile
>
certification
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
UploadFile
>
instruction
;
private
List
<
UploadFile
>
instruction
;
...
@@ -151,7 +154,7 @@ public class EquipmentDetail extends BaseEntity {
...
@@ -151,7 +154,7 @@ public class EquipmentDetail extends BaseEntity {
@TableField
(
"department_name"
)
@TableField
(
"department_name"
)
@ApiModelProperty
(
value
=
"部门名"
)
@ApiModelProperty
(
value
=
"部门名"
)
private
String
departmentName
;
private
String
departmentName
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
countryName
;
private
String
countryName
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/EquipmentExportVO.java
0 → 100644
View file @
f3582b38
package
com
.
yeejoin
.
equipmanage
.
common
.
entity
.
vo
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
/**
* @author lisong
* @date 2022-08-08.
*/
@Data
public
class
EquipmentExportVO
{
@ExcelProperty
(
value
=
"编码"
,
index
=
0
)
private
String
code
=
""
;
@ExcelProperty
(
value
=
"存储(安装)区域"
,
index
=
1
)
private
String
location
=
""
;
@ExcelProperty
(
value
=
"名称"
,
index
=
2
)
private
String
name
=
""
;
@ExcelProperty
(
value
=
"生产日期"
,
index
=
3
)
private
String
productionDate
=
""
;
@ExcelProperty
(
value
=
"报废年限"
,
index
=
4
)
private
String
validityPeriod
=
""
;
@ExcelProperty
(
value
=
"维保周期"
,
index
=
5
)
private
String
maintenanceCycle
=
""
;
@ExcelProperty
(
value
=
"投运时间"
,
index
=
6
)
private
String
operationTime
=
""
;
@ExcelProperty
(
value
=
"生产厂商"
,
index
=
7
)
private
String
manufacturer
=
""
;
@ExcelProperty
(
value
=
"规格型号"
,
index
=
8
)
private
String
standard
=
""
;
@ExcelProperty
(
value
=
"品牌"
,
index
=
9
)
private
String
brand
=
""
;
@ExcelProperty
(
value
=
"器材分类"
,
index
=
10
)
private
String
classification
=
""
;
@ExcelProperty
(
value
=
"所属系统"
,
index
=
11
)
private
String
systemName
=
""
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
f3582b38
...
@@ -600,7 +600,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -600,7 +600,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
List
<
Map
<
String
,
Object
>>
list
=
this
.
baseMapper
.
selectPersonList
(
map
);
List
<
Map
<
String
,
Object
>>
list
=
this
.
baseMapper
.
selectPersonList
(
map
);
//处理循环中的远程调用(原有逻辑不变)
//处理循环中的远程调用(原有逻辑不变)
List
<
String
>
amosIds
=
new
ArrayList
<>();
List
<
String
>
amosIds
=
new
ArrayList
<>();
list
.
stream
().
forEach
(
t
->
{
list
.
forEach
(
t
->
{
// BUG2886 因为前期沟通 人员code 可能会发生改变 所以 现在接口code 不再保存,查询数据时通过接口重新赋值 by kongfm
// BUG2886 因为前期沟通 人员code 可能会发生改变 所以 现在接口code 不再保存,查询数据时通过接口重新赋值 by kongfm
// 2021-09-16
// 2021-09-16
if
(
null
!=
t
.
get
(
"amosOrgId"
)
&&
StringUtils
.
isNotEmpty
(
t
.
get
(
"amosOrgId"
).
toString
()))
{
if
(
null
!=
t
.
get
(
"amosOrgId"
)
&&
StringUtils
.
isNotEmpty
(
t
.
get
(
"amosOrgId"
).
toString
()))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
f3582b38
package
com
.
yeejoin
.
equipmanage
.
controller
;
package
com
.
yeejoin
.
equipmanage
.
controller
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.ConcurrentHashMap
;
import
com.yeejoin.equipmanage.common.entity.*
;
import
com.yeejoin.equipmanage.common.entity.dto.RequestBaseDto
;
import
com.yeejoin.equipmanage.common.utils.SpringUtils
;
import
com.yeejoin.equipmanage.fegin.JcsFeign
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.http.MediaType
;
import
org.springframework.scheduling.annotation.Async
;
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.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
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
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.dto.OrgMenuDto
;
import
com.yeejoin.amos.boot.biz.common.dto.OrgMenuDto
;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
import
com.yeejoin.amos.feign.morphic.model.ResourceDTO
;
import
com.yeejoin.amos.feign.morphic.model.ResourceDTO
;
import
com.yeejoin.equipmanage.common.entity.EquProperty
;
import
com.yeejoin.equipmanage.common.entity.Equipment
;
import
com.yeejoin.equipmanage.common.entity.EquipmentCategory
;
import
com.yeejoin.equipmanage.common.entity.EquipmentIndex
;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecific
;
import
com.yeejoin.equipmanage.common.entity.FireFightingSystemEntity
;
import
com.yeejoin.equipmanage.common.entity.ManufacturerInfo
;
import
com.yeejoin.equipmanage.common.entity.dto.EquipTypeAmountPageDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.EquipTypeAmountPageDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.RequestBaseDto
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipCountBySystemVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipCountBySystemVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipTypeImgAmountVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipTypeImgAmountVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquiplistSpecificBySystemVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquiplistSpecificBySystemVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentAlarmBySystemIdOrSourceIdVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentAlarmBySystemIdOrSourceIdVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentExportVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentIndexVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentIndexVO
;
import
com.yeejoin.equipmanage.common.entity.vo.PointTreeVo
;
import
com.yeejoin.equipmanage.common.entity.vo.PointTreeVo
;
import
com.yeejoin.equipmanage.common.utils.CommonResponseUtil
;
import
com.yeejoin.equipmanage.common.utils.CommonResponseUtil
;
...
@@ -56,6 +33,7 @@ import com.yeejoin.equipmanage.common.vo.FireFightingSystemTreeVo;
...
@@ -56,6 +33,7 @@ import com.yeejoin.equipmanage.common.vo.FireFightingSystemTreeVo;
import
com.yeejoin.equipmanage.common.vo.FireFightingSystemTypeTreeVo
;
import
com.yeejoin.equipmanage.common.vo.FireFightingSystemTypeTreeVo
;
import
com.yeejoin.equipmanage.common.vo.FireFightingSystemVo
;
import
com.yeejoin.equipmanage.common.vo.FireFightingSystemVo
;
import
com.yeejoin.equipmanage.common.vo.SpeIndexVo
;
import
com.yeejoin.equipmanage.common.vo.SpeIndexVo
;
import
com.yeejoin.equipmanage.fegin.JcsFeign
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificIndexMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificIndexMapper
;
import
com.yeejoin.equipmanage.mapper.FireFightingSystemMapper
;
import
com.yeejoin.equipmanage.mapper.FireFightingSystemMapper
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
...
@@ -69,10 +47,38 @@ import com.yeejoin.equipmanage.service.IEquipmentSpecificSerivce;
...
@@ -69,10 +47,38 @@ import com.yeejoin.equipmanage.service.IEquipmentSpecificSerivce;
import
com.yeejoin.equipmanage.service.IFireFightingSystemService
;
import
com.yeejoin.equipmanage.service.IFireFightingSystemService
;
import
com.yeejoin.equipmanage.service.IManufacturerInfoService
;
import
com.yeejoin.equipmanage.service.IManufacturerInfoService
;
import
com.yeejoin.equipmanage.service.IUploadFileService
;
import
com.yeejoin.equipmanage.service.IUploadFileService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.http.MediaType
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
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.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @author zjw
* @author zjw
...
@@ -826,6 +832,24 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -826,6 +832,24 @@ public class FireFightingSystemController extends AbstractBaseController {
return
fireFightingSystemService
.
iotgetEquipmentTypeAndCount
(
bizOrgCode
);
return
fireFightingSystemService
.
iotgetEquipmentTypeAndCount
(
bizOrgCode
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"装备信息导出"
,
notes
=
"装备信息导出"
)
@PostMapping
(
value
=
"/downParameter"
)
public
void
export
(
HttpServletResponse
response
,
EquipTypeAmountPageDTO
dto
)
{
List
<
EquipmentExportVO
>
list
=
fireFightingSystemMapper
.
exportEquipmentList
(
dto
);
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
for
(
EquipmentExportVO
vo
:
list
)
{
if
(!
ObjectUtils
.
isEmpty
(
vo
.
getProductionDate
()))
{
vo
.
setProductionDate
(
vo
.
getProductionDate
().
substring
(
0
,
10
));
}
if
(!
ObjectUtils
.
isEmpty
(
vo
.
getOperationTime
()))
{
vo
.
setOperationTime
(
vo
.
getOperationTime
().
substring
(
0
,
10
));
}
}
}
ExcelUtil
.
createTemplate
(
response
,
"装备信息"
,
"装备信息"
,
list
,
EquipmentExportVO
.
class
,
null
,
false
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
f3582b38
...
@@ -363,4 +363,12 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
...
@@ -363,4 +363,12 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
* @return
* @return
*/
*/
List
<
Map
<
String
,
Object
>>
getPressurePumpInfo3Small
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"systemCode"
)
String
systemCode
);
List
<
Map
<
String
,
Object
>>
getPressurePumpInfo3Small
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"systemCode"
)
String
systemCode
);
/**
* 装备导出列表查询
*
* @param dto
* @return
*/
List
<
EquipmentExportVO
>
exportEquipmentList
(
@Param
(
"dto"
)
EquipTypeAmountPageDTO
dto
);
}
}
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
f3582b38
...
@@ -1604,6 +1604,7 @@
...
@@ -1604,6 +1604,7 @@
wes.id,
wes.id,
wes.name,
wes.name,
wes.position,
wes.position,
wes.code,
wes.equipment_code equipmentCode,
wes.equipment_code equipmentCode,
wes.realtime_iot_index_name realtimeIotIndexName,
wes.realtime_iot_index_name realtimeIotIndexName,
wes.realtime_iot_index_key realtimeIotIndexKey,
wes.realtime_iot_index_key realtimeIotIndexKey,
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
f3582b38
...
@@ -2561,4 +2561,89 @@
...
@@ -2561,4 +2561,89 @@
ed.`code` LIKE '92010800%'
ed.`code` LIKE '92010800%'
AND biz_org_code = #{bizOrgCode}
AND biz_org_code = #{bizOrgCode}
</select>
</select>
<select
id=
"exportEquipmentList"
resultType=
"com.yeejoin.equipmanage.common.entity.vo.EquipmentExportVO"
>
SELECT
wesp.`code` ,
wws.full_name location,
wesp.`name`,
ed.production_date,
ed.maintenance_cycle AS maintenanceCycle,
ed.expiry_date AS validityPeriod,
mi.`name` AS manufacturer,
ed.standard,
ed.brand,
eq.`name`AS classification,
ed.delivery_date AS operationTime,
(
SELECT
GROUP_CONCAT(fem.`name`)
FROM
`f_fire_fighting_system` fem
WHERE
find_in_set(fem.id, wesp.system_id)
) AS system_name
FROM
wl_equipment_specific wesp
LEFT JOIN wl_equipment_detail ed ON ed.id = wesp.equipment_detail_id
LEFT JOIN wl_equipment eq ON eq.id = ed.equipment_id
LEFT JOIN wl_manufacturer_info mi ON mi.id = ed.manufacturer_id
LEFT JOIN wl_stock_detail wsd ON wsd.equipment_specific_id = wesp.id
LEFT JOIN wl_warehouse_structure wws ON wsd.warehouse_structure_id = wws.id
<where>
<if
test=
"dto.code!=null and dto.code!=''"
>
and wesp.code = #{dto.code}
</if>
<if
test=
"dto.equipmentName!=null and dto.equipmentName!=''"
>
and wesp.`name` LIKE CONCAT('%', #{dto.equipmentName},'%')
</if>
<if
test=
"dto.iotCode!=null and dto.iotCode!=''"
>
and wesp.iot_code LIKE CONCAT('%', #{dto.iotCode},'%')
</if>
<if
test=
"dto.warehouseStructureName!=null and dto.warehouseStructureName!=''"
>
and wws.full_name LIKE CONCAT('%', #{dto.warehouseStructureName},'%')
</if>
<if
test=
"dto.isIot!=null and dto.isIot!=''"
>
and eq.is_iot = #{dto.isIot}
</if>
<if
test=
"dto.manufacturerId!=null and dto.manufacturerId!=''"
>
and mi.id = #{dto.manufacturerId}
</if>
<if
test=
"dto.status == 1"
>
and wsd.warehouse_structure_id is null
</if>
<if
test=
"dto.status == 0"
>
and wsd.warehouse_structure_id is not null
</if>
<if
test=
"dto.teamId!=null and dto.teamId!=''"
>
and wesp.team_id = #{dto.teamId}
</if>
<if
test=
"dto.systemId!=null and dto.systemId!=''"
>
and wesp.system_id = #{dto.systemId}
</if>
<if
test=
"dto.warehouseStructureId!=null and dto.warehouseStructureId!=''"
>
and wws.id = #{dto.warehouseStructureId}
</if>
<if
test=
"dto.isImport!=null"
>
and wled.is_import = #{dto.isImport}
</if>
<if
test=
"dto.bizOrgCode!=null and dto.bizOrgCode!=''"
>
and wesp.biz_org_code = #{dto.bizOrgCode}
</if>
</where>
</select>
</mapper>
</mapper>
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