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
f88215b7
Commit
f88215b7
authored
Dec 15, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
0c458175
9ec59555
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1006 additions
and
41 deletions
+1006
-41
CylinderInfoDto.java
...oin/amos/boot/module/tzs/flc/api/dto/CylinderInfoDto.java
+87
-0
CylinderUnitDto.java
...oin/amos/boot/module/tzs/flc/api/dto/CylinderUnitDto.java
+112
-0
UnitPersonInfoDto.java
...n/amos/boot/module/tzs/flc/api/dto/UnitPersonInfoDto.java
+2
-0
CylinderInfo.java
...oin/amos/boot/module/tzs/flc/api/entity/CylinderInfo.java
+156
-0
CylinderUnit.java
...oin/amos/boot/module/tzs/flc/api/entity/CylinderUnit.java
+186
-0
CylinderInfoMapper.java
...os/boot/module/tzs/flc/api/mapper/CylinderInfoMapper.java
+25
-0
CylinderUnitMapper.java
...os/boot/module/tzs/flc/api/mapper/CylinderUnitMapper.java
+14
-0
ICylinderInfoService.java
...boot/module/tzs/flc/api/service/ICylinderInfoService.java
+20
-0
ICylinderUnitService.java
...boot/module/tzs/flc/api/service/ICylinderUnitService.java
+12
-0
CylinderInfoMapper.xml
...-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
+25
-0
CylinderUnitMapper.xml
...-tzs-api/src/main/resources/mapper/CylinderUnitMapper.xml
+5
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+2
-0
MonitorViewController.java
...yeejoin/equipmanage/controller/MonitorViewController.java
+1
-1
CylinderInfoController.java
...module/tzs/flc/biz/controller/CylinderInfoController.java
+116
-0
CylinderUnitController.java
...module/tzs/flc/biz/controller/CylinderUnitController.java
+113
-0
CylinderInfoServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderInfoServiceImpl.java
+40
-0
CylinderUnitServiceImpl.java
...ule/tzs/flc/biz/service/impl/CylinderUnitServiceImpl.java
+34
-0
UnitPersonServiceImpl.java
...odule/tzs/flc/biz/service/impl/UnitPersonServiceImpl.java
+54
-38
VideoMapper.xml
...ot-system-equip/src/main/resources/mapper/VideoMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/CylinderInfoDto.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 气瓶基本信息
*
* @author system_generator
* @date 2021-12-14
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"CylinderInfoDto"
,
description
=
"气瓶基本信息"
)
public
class
CylinderInfoDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"气瓶基本信息ID"
)
private
String
cylinderId
;
@ApiModelProperty
(
value
=
"产权单位名称"
)
private
String
unitName
;
@ApiModelProperty
(
value
=
"出厂编号"
)
private
String
factoryNum
;
@ApiModelProperty
(
value
=
"气瓶状态"
)
private
Integer
cylinderStatus
;
@ApiModelProperty
(
value
=
"气瓶品种"
)
private
Integer
cylinderVariety
;
@ApiModelProperty
(
value
=
"二维码编号"
)
private
String
qrCode
;
@ApiModelProperty
(
value
=
"电子标签编号"
)
private
String
electronicLabelCode
;
@ApiModelProperty
(
value
=
"充装介质"
)
private
String
fillingMedium
;
@ApiModelProperty
(
value
=
"公称压力(MPa)"
)
private
Double
pressure
;
@ApiModelProperty
(
value
=
"容积(L)"
)
private
Double
volume
;
@ApiModelProperty
(
value
=
"制造日期"
)
private
Date
manufacturingDate
;
@ApiModelProperty
(
value
=
"制造单位"
)
private
String
manufacturingUnit
;
@ApiModelProperty
(
value
=
"气瓶制造许可证"
)
private
String
license
;
@ApiModelProperty
(
value
=
"气瓶重量(kg)"
)
private
Double
cylinderWeight
;
@ApiModelProperty
(
value
=
"单位内部编号"
)
private
String
unitInnerCode
;
@ApiModelProperty
(
value
=
"最近一次检验日期"
)
private
Date
inspectionDate
;
@ApiModelProperty
(
value
=
"下次检验日期"
)
private
Date
nextInspectionDate
;
@ApiModelProperty
(
value
=
"气瓶唯一标识码"
)
private
String
sequenceCode
;
@ApiModelProperty
(
value
=
"同步时间 yyyy-MM-dd HH24:mi:ss"
)
private
Date
syncDate
;
@ApiModelProperty
(
value
=
"1初次同步数据 2上层系统已同步数据 0已删除数据"
)
private
Boolean
syncState
;
@ApiModelProperty
(
value
=
"对接公司编码"
)
private
String
apiCompanyCode
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/CylinderUnitDto.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 气瓶企业信息
*
* @author system_generator
* @date 2021-12-14
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"CylinderUnitDto"
,
description
=
"气瓶企业信息"
)
public
class
CylinderUnitDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"单位ID"
)
private
String
unitId
;
@ApiModelProperty
(
value
=
"所属区域"
)
private
String
regionCode
;
@ApiModelProperty
(
value
=
"单位名称"
)
private
String
unitName
;
@ApiModelProperty
(
value
=
"企业类型"
)
private
Integer
unitType
;
@ApiModelProperty
(
value
=
"统一社会信用代码"
)
private
String
creditCode
;
@ApiModelProperty
(
value
=
"详细地址"
)
private
String
address
;
@ApiModelProperty
(
value
=
"企业负责人"
)
private
String
unitPerson
;
@ApiModelProperty
(
value
=
"企业负责人手机"
)
private
String
personMobilePhone
;
@ApiModelProperty
(
value
=
"企业负责人固定电话"
)
private
String
personTelephone
;
@ApiModelProperty
(
value
=
"企业邮编"
)
private
String
postalCode
;
@ApiModelProperty
(
value
=
"企业简称"
)
private
String
unitAbbreviation
;
@ApiModelProperty
(
value
=
"充装许可证号"
)
private
String
fillingLicense
;
@ApiModelProperty
(
value
=
"充装许可证有效期"
)
private
Date
fillingPermitDate
;
@ApiModelProperty
(
value
=
"充装许可范围"
)
private
String
fillingPermScope
;
@ApiModelProperty
(
value
=
"检验许可证号"
)
private
String
inspectionLicense
;
@ApiModelProperty
(
value
=
"检验范围"
)
private
String
inspectionScope
;
@ApiModelProperty
(
value
=
"检验许可证有效期"
)
private
Date
effectiveDate
;
@ApiModelProperty
(
value
=
"制造许可证号"
)
private
String
manufacturingLicense
;
@ApiModelProperty
(
value
=
"制造许可证有效期"
)
private
Date
manufacturingDate
;
@ApiModelProperty
(
value
=
"制造许可范围"
)
private
String
manufacturingScope
;
@ApiModelProperty
(
value
=
"制造单位代码"
)
private
String
manufacturingUnitCode
;
@ApiModelProperty
(
value
=
"同步时间 yyyy-MM-dd HH24:mi:ss"
)
private
Date
syncDate
;
@ApiModelProperty
(
value
=
"1初次同步数据 2上层系统已同步数据 0已删除数据"
)
private
Boolean
syncState
;
@ApiModelProperty
(
value
=
"对接公司编码"
)
private
String
apiCompanyCode
;
@ApiModelProperty
(
value
=
"气瓶数量"
)
private
Long
cylinderNumber
;
@ApiModelProperty
(
value
=
"检验过期气瓶数量"
)
private
Long
cylinderOutOfDate
;
@ApiModelProperty
(
value
=
"经度"
)
private
String
longitude
;
@ApiModelProperty
(
value
=
"纬度"
)
private
String
latitude
;
@ApiModelProperty
(
value
=
"是否过期"
)
private
Boolean
outOfDate
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/UnitPersonInfoDto.java
View file @
f88215b7
...
...
@@ -98,6 +98,8 @@ public class UnitPersonInfoDto extends BaseDto {
private
List
<
AttachmentDto
>
qrcode
;
@ApiModelProperty
(
value
=
"所属单位 监管端使用"
)
private
String
organization
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/entity/CylinderInfo.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 气瓶基本信息
*
* @author system_generator
* @date 2021-12-14
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"tz_cylinder_info"
)
public
class
CylinderInfo
{
private
static
final
long
serialVersionUID
=
1L
;
@TableId
(
value
=
"sequence_nbr"
,
type
=
IdType
.
ID_WORKER
)
protected
Long
sequenceNbr
;
/**
* 气瓶基本信息ID
*/
@TableField
(
"cylinder_id"
)
private
String
cylinderId
;
/**
* 产权单位名称
*/
@TableField
(
"unit_name"
)
private
String
unitName
;
/**
* 出厂编号
*/
@TableField
(
"factory_num"
)
private
String
factoryNum
;
/**
* 气瓶状态
*/
@TableField
(
"cylinder_status"
)
private
Integer
cylinderStatus
;
/**
* 气瓶品种
*/
@TableField
(
"cylinder_variety"
)
private
Integer
cylinderVariety
;
/**
* 二维码编号
*/
@TableField
(
"qrCode"
)
private
String
qrCode
;
/**
* 电子标签编号
*/
@TableField
(
"electronic_label_code"
)
private
String
electronicLabelCode
;
/**
* 充装介质
*/
@TableField
(
"filling_medium"
)
private
String
fillingMedium
;
/**
* 公称压力(MPa)
*/
@TableField
(
"pressure"
)
private
Double
pressure
;
/**
* 容积(L)
*/
@TableField
(
"volume"
)
private
Double
volume
;
/**
* 制造日期
*/
@TableField
(
"manufacturing_date"
)
private
Date
manufacturingDate
;
/**
* 制造单位
*/
@TableField
(
"manufacturing_unit"
)
private
String
manufacturingUnit
;
/**
* 气瓶制造许可证
*/
@TableField
(
"license"
)
private
String
license
;
/**
* 气瓶重量(kg)
*/
@TableField
(
"cylinder_weight"
)
private
Double
cylinderWeight
;
/**
* 单位内部编号
*/
@TableField
(
"unit_inner_code"
)
private
String
unitInnerCode
;
/**
* 最近一次检验日期
*/
@TableField
(
"inspection_date"
)
private
Date
inspectionDate
;
/**
* 下次检验日期
*/
@TableField
(
"next_inspection_date"
)
private
Date
nextInspectionDate
;
/**
* 气瓶唯一标识码
*/
@TableField
(
"sequence_code"
)
private
String
sequenceCode
;
/**
* 同步时间 yyyy-MM-dd HH24:mi:ss
*/
@TableField
(
"sync_date"
)
private
Date
syncDate
;
/**
* 1初次同步数据 2上层系统已同步数据 0已删除数据
*/
@TableField
(
"sync_state"
)
private
Boolean
syncState
;
/**
* 对接公司编码
*/
@TableField
(
"api_company_code"
)
private
String
apiCompanyCode
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/entity/CylinderUnit.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 气瓶企业信息
*
* @author system_generator
* @date 2021-12-14
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"tz_cylinder_unit"
)
public
class
CylinderUnit
{
private
static
final
long
serialVersionUID
=
1L
;
@TableId
(
value
=
"sequence_nbr"
,
type
=
IdType
.
ID_WORKER
)
protected
Long
sequenceNbr
;
/**
* 单位ID
*/
@TableField
(
"unit_id"
)
private
String
unitId
;
/**
* 所属区域
*/
@TableField
(
"region_code"
)
private
String
regionCode
;
/**
* 单位名称
*/
@TableField
(
"unit_name"
)
private
String
unitName
;
/**
* 企业类型
*/
@TableField
(
"unit_type"
)
private
Integer
unitType
;
/**
* 统一社会信用代码
*/
@TableField
(
"credit_code"
)
private
String
creditCode
;
/**
* 详细地址
*/
@TableField
(
"address"
)
private
String
address
;
/**
* 企业负责人
*/
@TableField
(
"unit_person"
)
private
String
unitPerson
;
/**
* 企业负责人手机
*/
@TableField
(
"person_mobile_phone"
)
private
String
personMobilePhone
;
/**
* 企业负责人固定电话
*/
@TableField
(
"person_telephone"
)
private
String
personTelephone
;
/**
* 企业邮编
*/
@TableField
(
"postal_code"
)
private
String
postalCode
;
/**
* 企业简称
*/
@TableField
(
"unit_abbreviation"
)
private
String
unitAbbreviation
;
/**
* 充装许可证号
*/
@TableField
(
"filling_license"
)
private
String
fillingLicense
;
/**
* 充装许可证有效期
*/
@TableField
(
"filling_permit_date"
)
private
Date
fillingPermitDate
;
/**
* 充装许可范围
*/
@TableField
(
"filling_perm_scope"
)
private
String
fillingPermScope
;
/**
* 检验许可证号
*/
@TableField
(
"inspection_license"
)
private
String
inspectionLicense
;
/**
* 检验范围
*/
@TableField
(
"inspection_scope"
)
private
String
inspectionScope
;
/**
* 检验许可证有效期
*/
@TableField
(
"effective_date"
)
private
Date
effectiveDate
;
/**
* 制造许可证号
*/
@TableField
(
"manufacturing_license"
)
private
String
manufacturingLicense
;
/**
* 制造许可证有效期
*/
@TableField
(
"manufacturing_date"
)
private
Date
manufacturingDate
;
/**
* 制造许可范围
*/
@TableField
(
"manufacturing_scope"
)
private
String
manufacturingScope
;
/**
* 制造单位代码
*/
@TableField
(
"manufacturing_unit_code"
)
private
String
manufacturingUnitCode
;
/**
* 同步时间 yyyy-MM-dd HH24:mi:ss
*/
@TableField
(
"sync_date"
)
private
Date
syncDate
;
/**
* 1初次同步数据 2上层系统已同步数据 0已删除数据
*/
@TableField
(
"sync_state"
)
private
Boolean
syncState
;
/**
* 对接公司编码
*/
@TableField
(
"api_company_code"
)
private
String
apiCompanyCode
;
/**
* 经度
*/
@TableField
(
"longitude"
)
private
String
longitude
;
/**
* 纬度
*/
@TableField
(
"latitude"
)
private
String
latitude
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/mapper/CylinderInfoMapper.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInfo
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
/**
* 气瓶基本信息 Mapper 接口
*
* @author system_generator
* @date 2021-12-14
*/
public
interface
CylinderInfoMapper
extends
BaseMapper
<
CylinderInfo
>
{
/**
* 查询根据公司查询气瓶数量以及过期气瓶数
* @param sequenceNbr
* @return
*/
Map
<
String
,
Long
>
queryNumAndOutOfDateNum
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/mapper/CylinderUnitMapper.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderUnit
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 气瓶企业信息 Mapper 接口
*
* @author system_generator
* @date 2021-12-14
*/
public
interface
CylinderUnitMapper
extends
BaseMapper
<
CylinderUnit
>
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/service/ICylinderInfoService.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
service
;
import
java.util.Map
;
/**
* 气瓶基本信息接口类
*
* @author system_generator
* @date 2021-12-14
*/
public
interface
ICylinderInfoService
{
/**
* 根据企业id 获取气瓶数量及过期气瓶数量
* @param unitId
* @return
*/
Map
<
String
,
Long
>
queryNumAndOutOfDateNum
(
Long
unitId
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/service/ICylinderUnitService.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
service
;
/**
* 气瓶企业信息接口类
*
* @author system_generator
* @date 2021-12-14
*/
public
interface
ICylinderUnitService
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderInfoMapper.xml
0 → 100644
View file @
f88215b7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderInfoMapper"
>
<select
id=
"queryNumAndOutOfDateNum"
resultType=
"java.util.Map"
>
SELECT
count( sequence_nbr ) AS cylinderNum,
count( CASE WHEN t.next_inspection_date
<![CDATA[ < ]]>
now() THEN 1 ELSE 0 END ) AS outOfDateNum
FROM
tz_cylinder_info t
WHERE
t.sequence_nbr IN ( SELECT max( tt.sequence_nbr ) FROM tz_cylinder_info tt GROUP BY tt.sequence_code )
AND t.api_company_code = (
SELECT
u.api_company_code
FROM
tz_cylinder_unit u
WHERE
u.sequence_nbr = #{sequenceNbr}
)
</select>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/CylinderUnitMapper.xml
0 → 100644
View file @
f88215b7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderUnitMapper"
>
</mapper>
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 @
f88215b7
...
...
@@ -704,6 +704,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
OrgUsrDto
orgUsrDto
=
saveOrgUsrDynamicFormInstance
(
orgUsr
,
OrgUsrVo
.
getDynamicFormValue
());
orgUsr
.
setSequenceNbr
(
orgUsrDto
.
getSequenceNbr
());
/**
* 同步保存ES
*/
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/MonitorViewController.java
View file @
f88215b7
...
...
@@ -94,7 +94,7 @@ public class MonitorViewController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"分页查询视图下的视频列表"
)
@RequestMapping
(
value
=
"/video/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseModel
<
Page
<
VideoListVo
>>
queryVideoPage
(
@RequestParam
(
value
=
"viewId"
)
Long
viewId
,
public
ResponseModel
<
Page
<
VideoListVo
>>
queryVideoPage
(
@RequestParam
(
value
=
"nodeId"
)
Long
nodeId
,
@RequestParam
(
value
=
"nodeType"
)
String
nodeType
,
@RequestParam
(
value
=
"current"
)
int
current
,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderInfoController.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderInfoServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderInfoDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 气瓶基本信息
*
* @author system_generator
* @date 2021-12-14
*/
@RestController
@Api
(
tags
=
"气瓶基本信息Api"
)
@RequestMapping
(
value
=
"/cylinder-info"
)
public
class
CylinderInfoController
extends
BaseController
{
@Autowired
CylinderInfoServiceImpl
cylinderInfoServiceImpl
;
/**
* 新增气瓶基本信息
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增气瓶基本信息"
,
notes
=
"新增气瓶基本信息"
)
public
ResponseModel
<
CylinderInfoDto
>
save
(
@RequestBody
CylinderInfoDto
model
)
{
model
=
cylinderInfoServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新气瓶基本信息"
,
notes
=
"根据sequenceNbr更新气瓶基本信息"
)
public
ResponseModel
<
CylinderInfoDto
>
updateBySequenceNbrCylinderInfo
(
@RequestBody
CylinderInfoDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
cylinderInfoServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除气瓶基本信息"
,
notes
=
"根据sequenceNbr删除气瓶基本信息"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
cylinderInfoServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个气瓶基本信息"
,
notes
=
"根据sequenceNbr查询单个气瓶基本信息"
)
public
ResponseModel
<
CylinderInfoDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
cylinderInfoServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"气瓶基本信息分页查询"
,
notes
=
"气瓶基本信息分页查询"
)
public
ResponseModel
<
Page
<
CylinderInfoDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
CylinderInfoDto
>
page
=
new
Page
<
CylinderInfoDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
cylinderInfoServiceImpl
.
queryForCylinderInfoPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"气瓶基本信息列表全部数据查询"
,
notes
=
"气瓶基本信息列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
CylinderInfoDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
cylinderInfoServiceImpl
.
queryForCylinderInfoList
());
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderUnitController.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderUnitDto
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderUnit
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderInfoService
;
import
com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderUnitServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
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.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
/**
* 气瓶企业信息
*
* @author system_generator
* @date 2021-12-14
*/
@RestController
@Api
(
tags
=
"气瓶企业信息Api"
)
@RequestMapping
(
value
=
"/cylinder-unit"
)
public
class
CylinderUnitController
extends
BaseController
{
@Autowired
CylinderUnitServiceImpl
cylinderUnitServiceImpl
;
@Autowired
ICylinderInfoService
iCylinderInfoService
;
/**
* 通过regionCode查询气瓶企业
*
* @return 查询结果
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/queryCylinderUnitList"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过regionCode查询气瓶企业"
,
notes
=
"通过regionCode查询气瓶企业"
)
public
ResponseModel
<
List
<
CylinderUnitDto
>>
querySpecialEquipmentList
(
@RequestParam
String
regionCode
){
List
<
CylinderUnit
>
unitList
=
cylinderUnitServiceImpl
.
list
(
new
LambdaQueryWrapper
<
CylinderUnit
>().
like
(
CylinderUnit:
:
getRegionCode
,
regionCode
));
List
<
CylinderUnitDto
>
result
=
new
ArrayList
<>();
unitList
.
stream
().
forEach
(
t
->
{
CylinderUnitDto
temp
=
new
CylinderUnitDto
();
BeanUtils
.
copyProperties
(
t
,
temp
);
if
(
t
.
getFillingPermitDate
()
!=
null
&&
t
.
getFillingPermitDate
().
getTime
()
<
System
.
currentTimeMillis
())
{
temp
.
setOutOfDate
(
true
);
}
else
{
temp
.
setOutOfDate
(
false
);
}
result
.
add
(
temp
);
});
return
ResponseHelper
.
buildResponse
(
result
);
}
/**
* 根据sequenceNbr查询
*
* @param id 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getUnitInfo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个气瓶企业信息"
,
notes
=
"根据sequenceNbr查询单个气瓶企业信息"
)
public
ResponseModel
<
CylinderUnitDto
>
selectOne
(
@RequestParam
Long
id
)
{
CylinderUnitDto
unit
=
cylinderUnitServiceImpl
.
queryBySeq
(
id
);
// 查询气瓶数量以及过期数量
Map
<
String
,
Long
>
cylinderInfo
=
iCylinderInfoService
.
queryNumAndOutOfDateNum
(
unit
.
getSequenceNbr
());
if
(
cylinderInfo
!=
null
)
{
if
(
cylinderInfo
.
get
(
"cylinderNum"
)
!=
null
)
{
unit
.
setCylinderNumber
(
cylinderInfo
.
get
(
"cylinderNum"
));
}
if
(
cylinderInfo
.
get
(
"outOfDateNum"
)
!=
null
)
{
unit
.
setCylinderOutOfDate
(
cylinderInfo
.
get
(
"outOfDateNum"
));
}
}
return
ResponseHelper
.
buildResponse
(
unit
);
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"气瓶企业信息分页查询"
,
notes
=
"气瓶企业信息分页查询"
)
public
ResponseModel
<
Page
<
CylinderUnitDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
CylinderUnitDto
>
page
=
new
Page
<
CylinderUnitDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
cylinderUnitServiceImpl
.
queryForCylinderUnitPage
(
page
));
}
}
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/CylinderInfoServiceImpl.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderInfo
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderInfoMapper
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderInfoService
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderInfoDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
import
java.util.Map
;
/**
* 气瓶基本信息服务实现类
*
* @author system_generator
* @date 2021-12-14
*/
@Service
public
class
CylinderInfoServiceImpl
extends
BaseService
<
CylinderInfoDto
,
CylinderInfo
,
CylinderInfoMapper
>
implements
ICylinderInfoService
{
/**
* 分页查询
*/
public
Page
<
CylinderInfoDto
>
queryForCylinderInfoPage
(
Page
<
CylinderInfoDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
CylinderInfoDto
>
queryForCylinderInfoList
()
{
return
this
.
queryForList
(
""
,
false
);
}
@Override
public
Map
<
String
,
Long
>
queryNumAndOutOfDateNum
(
Long
unitId
)
{
return
baseMapper
.
queryNumAndOutOfDateNum
(
unitId
);
}
}
\ No newline at end of file
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/CylinderUnitServiceImpl.java
0 → 100644
View file @
f88215b7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.entity.CylinderUnit
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.mapper.CylinderUnitMapper
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.service.ICylinderUnitService
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.CylinderUnitDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 气瓶企业信息服务实现类
*
* @author system_generator
* @date 2021-12-14
*/
@Service
public
class
CylinderUnitServiceImpl
extends
BaseService
<
CylinderUnitDto
,
CylinderUnit
,
CylinderUnitMapper
>
implements
ICylinderUnitService
{
/**
* 分页查询
*/
public
Page
<
CylinderUnitDto
>
queryForCylinderUnitPage
(
Page
<
CylinderUnitDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
CylinderUnitDto
>
queryForCylinderUnitList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
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/UnitPersonServiceImpl.java
View file @
f88215b7
...
...
@@ -122,18 +122,20 @@ public class UnitPersonServiceImpl implements IUnitPersonService {
iSourceFileService
.
saveAttachments
(
result
.
getSequenceNbr
(),
userAttach
);
if
(
personQualityDto
!=
null
)
{
String
[]
licenceTypeCode
=
personQualityDto
.
getLicenceTypeCode
().
split
(
","
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getIsDelete
,
false
).
in
(
DataDictionary:
:
getCode
,
licenceTypeCode
));
String
licenceType
=
""
;
for
(
DataDictionary
temp
:
list
)
{
licenceType
+=
","
+
temp
.
getName
();
}
if
(
licenceType
.
length
()
>
0
)
{
licenceType
=
licenceType
.
substring
(
1
);
personQualityDto
.
setLicenceType
(
licenceType
);
if
(
StringUtils
.
isNotEmpty
(
personQualityDto
.
getLicenceTypeCode
()))
{
String
[]
licenceTypeCode
=
personQualityDto
.
getLicenceTypeCode
().
split
(
","
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getIsDelete
,
false
).
in
(
DataDictionary:
:
getCode
,
licenceTypeCode
));
String
licenceType
=
""
;
for
(
DataDictionary
temp
:
list
)
{
licenceType
+=
","
+
temp
.
getName
();
}
if
(
licenceType
.
length
()
>
0
)
{
licenceType
=
licenceType
.
substring
(
1
);
personQualityDto
.
setLicenceType
(
licenceType
);
}
}
// 创建人员资质信息
personQualityDto
.
setPsersonId
(
result
.
getSequenceNbr
());
personQualityDto
=
flcPersonQualityServiceImpl
.
createWithModel
(
personQualityDto
);
...
...
@@ -269,6 +271,14 @@ public class UnitPersonServiceImpl implements IUnitPersonService {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
String
organizationId
=
temp
.
getOrgExpandAttr3
();
// 所属组织
if
(
StringUtils
.
isNotBlank
(
organizationId
))
{
FeignClientResult
<
CompanyModel
>
company
=
Privilege
.
companyClient
.
seleteOne
(
Long
.
parseLong
(
organizationId
));
if
(
company
!=
null
&&
company
.
getResult
()
!=
null
)
{
CompanyModel
tempModel
=
company
.
getResult
();
temp
.
setOrganization
(
tempModel
.
getCompanyName
());
}
}
return
temp
;
}
...
...
@@ -399,15 +409,17 @@ public class UnitPersonServiceImpl implements IUnitPersonService {
if
(
personQualityDto
!=
null
)
{
String
[]
licenceTypeCode
=
personQualityDto
.
getLicenceTypeCode
().
split
(
","
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getIsDelete
,
false
).
in
(
DataDictionary:
:
getCode
,
licenceTypeCode
));
String
licenceType
=
""
;
for
(
DataDictionary
temp
:
list
)
{
licenceType
+=
","
+
temp
.
getName
();
}
if
(
licenceType
.
length
()
>
0
)
{
licenceType
=
licenceType
.
substring
(
1
);
personQualityDto
.
setLicenceType
(
licenceType
);
if
(
StringUtils
.
isNotEmpty
(
personQualityDto
.
getLicenceTypeCode
()))
{
String
[]
licenceTypeCode
=
personQualityDto
.
getLicenceTypeCode
().
split
(
","
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getIsDelete
,
false
).
in
(
DataDictionary:
:
getCode
,
licenceTypeCode
));
String
licenceType
=
""
;
for
(
DataDictionary
temp
:
list
)
{
licenceType
+=
","
+
temp
.
getName
();
}
if
(
licenceType
.
length
()
>
0
)
{
licenceType
=
licenceType
.
substring
(
1
);
personQualityDto
.
setLicenceType
(
licenceType
);
}
}
// 创建人员资质信息
...
...
@@ -518,17 +530,20 @@ public class UnitPersonServiceImpl implements IUnitPersonService {
if
(
personQualityDto
!=
null
)
{
String
[]
licenceTypeCode
=
personQualityDto
.
getLicenceTypeCode
().
split
(
","
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getIsDelete
,
false
).
in
(
DataDictionary:
:
getCode
,
licenceTypeCode
));
String
licenceType
=
""
;
for
(
DataDictionary
temp
:
list
)
{
licenceType
+=
","
+
temp
.
getName
();
}
if
(
licenceType
.
length
()
>
0
)
{
licenceType
=
licenceType
.
substring
(
1
);
personQualityDto
.
setLicenceType
(
licenceType
);
if
(
StringUtils
.
isNotEmpty
(
personQualityDto
.
getLicenceTypeCode
()))
{
String
[]
licenceTypeCode
=
personQualityDto
.
getLicenceTypeCode
().
split
(
","
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getIsDelete
,
false
).
in
(
DataDictionary:
:
getCode
,
licenceTypeCode
));
String
licenceType
=
""
;
for
(
DataDictionary
temp
:
list
)
{
licenceType
+=
","
+
temp
.
getName
();
}
if
(
licenceType
.
length
()
>
0
)
{
licenceType
=
licenceType
.
substring
(
1
);
personQualityDto
.
setLicenceType
(
licenceType
);
}
}
// 更新人员资质信息
personQualityDto
.
setPsersonId
(
unitPersonInfoDto
.
getSequenceNbr
());
if
(
personQualityDto
.
getSequenceNbr
()
!=
null
)
{
...
...
@@ -704,16 +719,17 @@ public class UnitPersonServiceImpl implements IUnitPersonService {
iSourceFileService
.
saveAttachments
(
unitPersonInfoDto
.
getSequenceNbr
(),
userAttach
);
if
(
personQualityDto
!=
null
)
{
String
[]
licenceTypeCode
=
personQualityDto
.
getLicenceTypeCode
().
split
(
","
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getIsDelete
,
false
).
in
(
DataDictionary:
:
getCode
,
licenceTypeCode
));
String
licenceType
=
""
;
for
(
DataDictionary
temp
:
list
)
{
licenceType
+=
","
+
temp
.
getName
();
}
if
(
licenceType
.
length
()
>
0
)
{
licenceType
=
licenceType
.
substring
(
1
);
personQualityDto
.
setLicenceType
(
licenceType
);
if
(
StringUtils
.
isNotEmpty
(
personQualityDto
.
getLicenceTypeCode
()))
{
String
[]
licenceTypeCode
=
personQualityDto
.
getLicenceTypeCode
().
split
(
","
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
new
LambdaQueryWrapper
<
DataDictionary
>().
eq
(
DataDictionary:
:
getIsDelete
,
false
).
in
(
DataDictionary:
:
getCode
,
licenceTypeCode
));
String
licenceType
=
""
;
for
(
DataDictionary
temp
:
list
)
{
licenceType
+=
","
+
temp
.
getName
();
}
if
(
licenceType
.
length
()
>
0
)
{
licenceType
=
licenceType
.
substring
(
1
);
personQualityDto
.
setLicenceType
(
licenceType
);
}
}
// 更新人员资质信息
...
...
amos-boot-system-equip/src/main/resources/mapper/VideoMapper.xml
View file @
f88215b7
...
...
@@ -312,7 +312,7 @@
wle.latitude
FROM wl_video wle
where wle.longitude
!=null and wle.latitude!=
null
where wle.longitude
is not null and wle.latitude is not
null
<if
test=
'distance!=null'
>
and Round(st_distance(point(wle.longitude,wle.latitude),point(#{longitude},#{latitude}))*111195,1)
<
=
...
...
@@ -335,7 +335,7 @@
count( wle.id ) num
FROM wl_video wle
where wle.longitude
!=null and wle.latitude!=
null
where wle.longitude
is not null and wle.latitude is not
null
<if
test=
'distance!=null'
>
and Round(st_distance(point(wle.longitude,wle.latitude),point(#{longitude},#{latitude}))*111195,1)
<
=
#{distance}
...
...
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