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
45d2fe6f
Commit
45d2fe6f
authored
Jan 10, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
浙江省设备平台右屏接口代码提交
parent
e9ff95c0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
94 additions
and
8 deletions
+94
-8
EquipmentSpecificDTO.java
...n/equipmanage/common/entity/dto/EquipmentSpecificDTO.java
+10
-0
EquipmentDetailController.java
...oin/equipmanage/controller/EquipmentDetailController.java
+5
-1
FireBussForEquPlatformController.java
...ipmanage/controller/FireBussForEquPlatformController.java
+24
-5
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+3
-0
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+10
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+5
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+37
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/dto/EquipmentSpecificDTO.java
View file @
45d2fe6f
...
@@ -25,4 +25,14 @@ public class EquipmentSpecificDTO extends BaseDTO<EquipmentSpecific> {
...
@@ -25,4 +25,14 @@ public class EquipmentSpecificDTO extends BaseDTO<EquipmentSpecific> {
* 二维码
* 二维码
*/
*/
private
String
qrcode
;
private
String
qrcode
;
/**
* bizOrgCode
*/
private
String
bizOrgCode
;
/**
* type
*/
private
String
bussType
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentDetailController.java
View file @
45d2fe6f
...
@@ -241,7 +241,11 @@ public class EquipmentDetailController extends AbstractBaseController {
...
@@ -241,7 +241,11 @@ public class EquipmentDetailController extends AbstractBaseController {
String
[]
idArray
=
ids
.
split
(
","
);
String
[]
idArray
=
ids
.
split
(
","
);
AtomicReference
<
String
>
name
=
new
AtomicReference
<>(
""
);
AtomicReference
<
String
>
name
=
new
AtomicReference
<>(
""
);
fireFightingSystemService
.
listByIds
(
Arrays
.
asList
(
idArray
)).
forEach
(
x
->
name
.
set
(
name
.
get
()
+
x
.
getName
()
+
","
));
fireFightingSystemService
.
listByIds
(
Arrays
.
asList
(
idArray
)).
forEach
(
x
->
name
.
set
(
name
.
get
()
+
x
.
getName
()
+
","
));
fightingSystemEntity
.
setName
(
name
.
get
().
substring
(
0
,
name
.
get
().
length
()
-
1
));
if
(
name
.
get
().
length
()
!=
0
)
{
fightingSystemEntity
.
setName
(
name
.
get
().
substring
(
0
,
name
.
get
().
length
()
-
1
));
}
else
{
fightingSystemEntity
.
setName
(
""
);
}
}
else
{
}
else
{
equipmentSpecific
.
setSystemName
(
""
);
equipmentSpecific
.
setSystemName
(
""
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireBussForEquPlatformController.java
View file @
45d2fe6f
package
com
.
yeejoin
.
equipmanage
.
controller
;
package
com
.
yeejoin
.
equipmanage
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.equipmanage.common.entity.dto.EquipmentSpecificDTO
;
import
com.yeejoin.equipmanage.common.entity.vo.ComplementCodeVO
;
import
com.yeejoin.equipmanage.common.utils.CommonResponseUtil
;
import
com.yeejoin.equipmanage.common.utils.CommonResponseUtil
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificSerivce
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificSerivce
;
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.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.*
;
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.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
@@ -25,7 +26,7 @@ import java.util.Map;
...
@@ -25,7 +26,7 @@ import java.util.Map;
@Api
(
tags
=
"浙江省设备平台右屏接口"
)
@Api
(
tags
=
"浙江省设备平台右屏接口"
)
@RequestMapping
(
value
=
"/fire-buss-platform"
)
@RequestMapping
(
value
=
"/fire-buss-platform"
)
@Slf4j
@Slf4j
public
class
FireBussForEquPlatformController
{
public
class
FireBussForEquPlatformController
extends
AbstractBaseController
{
@Autowired
@Autowired
...
@@ -35,6 +36,8 @@ public class FireBussForEquPlatformController {
...
@@ -35,6 +36,8 @@ public class FireBussForEquPlatformController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"消防巡查"
)
@ApiOperation
(
"消防巡查"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getPatrolInfo
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
){
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getPatrolInfo
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
){
ReginParams
reginParams
=
getSelectedOrgInfo
();
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
List
<
Map
<
String
,
Object
>>
map
=
equipmentSpecificSerivce
.
getZJPatrolStatics
(
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
map
=
equipmentSpecificSerivce
.
getZJPatrolStatics
(
bizOrgCode
);
return
CommonResponseUtil
.
success
(
map
);
return
CommonResponseUtil
.
success
(
map
);
}
}
...
@@ -43,7 +46,23 @@ public class FireBussForEquPlatformController {
...
@@ -43,7 +46,23 @@ public class FireBussForEquPlatformController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"消防报废信息"
)
@ApiOperation
(
"消防报废信息"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getScrapInfo
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
){
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getScrapInfo
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
){
ReginParams
reginParams
=
getSelectedOrgInfo
();
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
List
<
Map
<
String
,
Object
>>
map
=
equipmentSpecificSerivce
.
getZJScrapStatics
(
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
map
=
equipmentSpecificSerivce
.
getZJScrapStatics
(
bizOrgCode
);
return
CommonResponseUtil
.
success
(
map
);
return
CommonResponseUtil
.
success
(
map
);
}
}
/**
* 更换报废分页
*
* @return
*/
@RequestMapping
(
value
=
"/wwx/page"
,
method
=
RequestMethod
.
POST
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"更换报废分页"
,
notes
=
"更换报废分页-未维修,未报废"
)
public
IPage
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWX
(
@RequestBody
EquipmentSpecificDTO
equipmentSpecific
)
{
return
equipmentSpecificSerivce
.
selectZJEquipmentSpecificWWX
(
equipmentSpecific
);
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
45d2fe6f
...
@@ -326,5 +326,8 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -326,5 +326,8 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
Map
<
String
,
Object
>>
getZJScrapStatics
(
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getZJScrapStatics
(
String
bizOrgCode
);
IPage
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWX
(
Page
page
,
EquipmentSpecificDTO
equipmentSpecific
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
45d2fe6f
...
@@ -39,6 +39,16 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -39,6 +39,16 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
IPage
<
ComplementCodeVO
>
selectEquipmentSpecific
(
EquipmentSpecificDTO
equipmentSpecific
);
IPage
<
ComplementCodeVO
>
selectEquipmentSpecific
(
EquipmentSpecificDTO
equipmentSpecific
);
/**
/**
* 补码页面查询分页
*
* @param equipmentSpecific
* @return
*/
IPage
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWX
(
EquipmentSpecificDTO
equipmentSpecific
);
/**
* 修改单个设备
* 修改单个设备
* 业务逻辑:修改
* 业务逻辑:修改
* 如果已经入库数据只需要修改单个设备的信息及入库位置
* 如果已经入库数据只需要修改单个设备的信息及入库位置
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
45d2fe6f
...
@@ -429,6 +429,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -429,6 +429,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
@Override
@Override
public
IPage
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWX
(
EquipmentSpecificDTO
equipmentSpecific
)
{
return
this
.
baseMapper
.
selectZJEquipmentSpecificWWX
(
equipmentSpecific
.
getPage
(),
equipmentSpecific
);
}
@Override
public
EquipmentSpecific
updateEquipmentSpecific
(
EquipmentSpecific
equipmentSpecific
,
ReginParams
reginParams
,
AgencyUserModel
agencyUserModel
)
{
public
EquipmentSpecific
updateEquipmentSpecific
(
EquipmentSpecific
equipmentSpecific
,
ReginParams
reginParams
,
AgencyUserModel
agencyUserModel
)
{
SimpleDateFormat
stf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
stf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
// @TableField(updateStrategy = FieldStrategy.IGNORED) 置空不生效 为空单独设置 by kongfm 2021-09-10
// @TableField(updateStrategy = FieldStrategy.IGNORED) 置空不生效 为空单独设置 by kongfm 2021-09-10
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
45d2fe6f
...
@@ -2724,7 +2724,7 @@
...
@@ -2724,7 +2724,7 @@
UNION ALL
UNION ALL
SELECT
SELECT
ifnull( sum( `p_plan_task`.`point_num` ), 0 ) AS `value`,
ifnull( sum( `p_plan_task`.`point_num` ), 0 ) AS `value`,
'
个
' AS unit,
'
%
' AS unit,
'执行进度' AS `name`,
'执行进度' AS `name`,
'zxjd' AS `indexKey`,
'zxjd' AS `indexKey`,
'xfxc' AS type,
'xfxc' AS type,
...
@@ -2741,7 +2741,7 @@
...
@@ -2741,7 +2741,7 @@
SELECT
SELECT
ifnull( sum( `p_plan_task`.`point_num` ), 0 ) AS `value`,
ifnull( sum( `p_plan_task`.`point_num` ), 0 ) AS `value`,
'个' AS unit,
'个' AS unit,
'
今日
漏查点位' AS `name`,
'漏查点位' AS `name`,
'currentDayMiss' AS `indexKey`,
'currentDayMiss' AS `indexKey`,
'xfxc' AS type,
'xfxc' AS type,
'3' AS `key`
'3' AS `key`
...
@@ -2805,7 +2805,41 @@
...
@@ -2805,7 +2805,41 @@
AND e.expiry_date IS NOT NULL
AND e.expiry_date IS NOT NULL
AND es.biz_org_code LIKE concat(#{bizOrgCode}, '%')
AND es.biz_org_code LIKE concat(#{bizOrgCode}, '%')
AND 30 >= DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE )
AND 30 >= DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE )
AND DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE ) >= 0
) AS `value`
) AS `value`
</select>
</select>
<select
id=
"selectZJEquipmentSpecificWWX"
resultType=
"java.util.Map"
>
SELECT
es.name,
es.biz_org_name bizOrgName,
es.code,
es.position,
ed.standard
FROM
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON ed.id = es.equipment_detail_id
LEFT JOIN wl_equipment e ON ed.equipment_id = e.id
LEFT JOIN wl_stock_detail sd ON sd.equipment_detail_id = ed.id
WHERE
ed.production_date IS NOT NULL
AND e.expiry_date IS NOT NULL
AND es.biz_org_code LIKE concat(#{equipmentSpecific.bizOrgCode}, '%')
<if
test=
"equipmentSpecific.bussType == 'wwx'"
>
AND 0 >= DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE )
AND ( (sd.`status` != 3) or (sd.`status` is null) or (sd.`status` = ''))
</if>
<if
test=
"equipmentSpecific.bussType == 'wbf'"
>
AND 0 >= DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE )
AND ( (sd.`status` != 7) or (sd.`status` is null) or (sd.`status` = ''))
</if>
<if
test=
"equipmentSpecific.bussType == 'due'"
>
AND ( (sd.`status` != 7) or (sd.`status` is null) or (sd.`status` = ''))
AND 30 >= DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE )
AND DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE ) >= 0
</if>
</select>
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment