Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
fcc5c9ae
提交
fcc5c9ae
authored
12月 05, 2023
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加托管业务以及应急业务代码12-05-zjm
上级
7e48dbf1
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
108 行增加
和
16 行删除
+108
-16
EmergencyBill.java
...a/com/tykj/dev/device/emergency/entity/EmergencyBill.java
+2
-2
EmergencyBillServiceImpl.java
...ev/device/emergency/service/EmergencyBillServiceImpl.java
+20
-1
TrusteeshipBillController.java
...device/matching/controller/TrusteeshipBillController.java
+13
-8
TrusteeshipEquipDao.java
...j/dev/device/matching/repository/TrusteeshipEquipDao.java
+2
-0
TrusteeshipBillService.java
...j/dev/device/matching/service/TrusteeshipBillService.java
+3
-2
TrusteeshipBillServiceImpl.java
...ice/matching/service/impl/TrusteeshipBillServiceImpl.java
+33
-3
TrusteeshipBillSelectVo.java
...v/device/matching/subject/vo/TrusteeshipBillSelectVo.java
+11
-0
TrusteeshipEquipPageVo.java
...ev/device/matching/subject/vo/TrusteeshipEquipPageVo.java
+24
-0
没有找到文件。
dev-emergency/src/main/java/com/tykj/dev/device/emergency/entity/EmergencyBill.java
浏览文件 @
fcc5c9ae
...
@@ -115,12 +115,12 @@ public class EmergencyBill extends BaseEntity {
...
@@ -115,12 +115,12 @@ public class EmergencyBill extends BaseEntity {
@Transient
@Transient
@ApiModelProperty
(
value
=
"文件对象集合"
)
@ApiModelProperty
(
value
=
"文件对象集合
(添加时查询使用)
"
)
private
List
<
FileRet
>
fileRets
;
private
List
<
FileRet
>
fileRets
;
@Transient
@Transient
@ApiModelProperty
(
value
=
"单据数据集合"
)
@ApiModelProperty
(
value
=
"单据数据集合
(添加时查询使用)
"
)
private
List
<
EmergencyLibraryVo
>
emergencyLibraryList
=
new
ArrayList
<>();
private
List
<
EmergencyLibraryVo
>
emergencyLibraryList
=
new
ArrayList
<>();
...
...
dev-emergency/src/main/java/com/tykj/dev/device/emergency/service/EmergencyBillServiceImpl.java
浏览文件 @
fcc5c9ae
package
com
.
tykj
.
dev
.
device
.
emergency
.
service
;
package
com
.
tykj
.
dev
.
device
.
emergency
.
service
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.github.wenhao.jpa.PredicateBuilder
;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.config.base.DeviceLifeStatus
;
import
com.tykj.dev.config.base.DeviceLifeStatus
;
import
com.tykj.dev.device.emergency.dao.EmergencyBillDao
;
import
com.tykj.dev.device.emergency.dao.EmergencyBillDao
;
import
com.tykj.dev.device.emergency.dao.EmergencyLibraryDao
;
import
com.tykj.dev.device.emergency.dao.EmergencyLibraryDao
;
...
@@ -16,9 +18,11 @@ import com.tykj.dev.device.library.subject.Dto.DeviceLogDto;
...
@@ -16,9 +18,11 @@ import com.tykj.dev.device.library.subject.Dto.DeviceLogDto;
import
com.tykj.dev.device.library.subject.domin.DeviceLog
;
import
com.tykj.dev.device.library.subject.domin.DeviceLog
;
import
com.tykj.dev.device.library.subject.vo.ScriptSaveVo
;
import
com.tykj.dev.device.library.subject.vo.ScriptSaveVo
;
import
com.tykj.dev.device.user.subject.entity.SecurityUser
;
import
com.tykj.dev.device.user.subject.entity.SecurityUser
;
import
com.tykj.dev.misc.base.StatusEnum
;
import
com.tykj.dev.misc.exception.ApiException
;
import
com.tykj.dev.misc.exception.ApiException
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -115,7 +119,7 @@ public class EmergencyBillServiceImpl implements EmergencyBillService{
...
@@ -115,7 +119,7 @@ public class EmergencyBillServiceImpl implements EmergencyBillService{
@Override
@Override
public
Page
<
EmergencyBill
>
selectPage
(
EmergencySelectVo
emergencySelectVo
)
{
public
Page
<
EmergencyBill
>
selectPage
(
EmergencySelectVo
emergencySelectVo
)
{
Page
<
EmergencyBill
>
all
=
emergencyBillDao
.
findAll
(
emergencySelectVo
.
getPageable
());
Page
<
EmergencyBill
>
all
=
emergencyBillDao
.
findAll
(
getEmergencyBillSpecification
(
emergencySelectVo
),
emergencySelectVo
.
getPageable
());
all
.
forEach
(
all
.
forEach
(
emergencyBill
->
{
emergencyBill
->
{
emergencyBill
.
setFileRets
(
FilesUtil
.
stringFileToList
(
emergencyBill
.
getFiles
()));
emergencyBill
.
setFileRets
(
FilesUtil
.
stringFileToList
(
emergencyBill
.
getFiles
()));
...
@@ -125,6 +129,8 @@ public class EmergencyBillServiceImpl implements EmergencyBillService{
...
@@ -125,6 +129,8 @@ public class EmergencyBillServiceImpl implements EmergencyBillService{
return
all
;
return
all
;
}
}
@Override
@Override
public
List
<
UserWorkload
>
queryTimeUserWorkload
(
LocalDateTime
sTime
,
LocalDateTime
eTime
)
{
public
List
<
UserWorkload
>
queryTimeUserWorkload
(
LocalDateTime
sTime
,
LocalDateTime
eTime
)
{
List
<
EmergencyBill
>
allByInitiateTimeBetween
=
emergencyBillDao
.
findAllByInitiateTimeBetweenAndStatus
(
sTime
,
eTime
,
2
);
List
<
EmergencyBill
>
allByInitiateTimeBetween
=
emergencyBillDao
.
findAllByInitiateTimeBetweenAndStatus
(
sTime
,
eTime
,
2
);
...
@@ -171,6 +177,19 @@ public class EmergencyBillServiceImpl implements EmergencyBillService{
...
@@ -171,6 +177,19 @@ public class EmergencyBillServiceImpl implements EmergencyBillService{
}
}
private
Specification
<
EmergencyBill
>
getEmergencyBillSpecification
(
EmergencySelectVo
emergencySelectVo
)
{
PredicateBuilder
<
EmergencyBill
>
predicateBuilder
=
Specifications
.
and
();
if
(
emergencySelectVo
.
getStartTime
()
!=
null
)
{
predicateBuilder
.
gt
(
"initiateTime"
,
emergencySelectVo
.
getStartTime
());
}
if
(
emergencySelectVo
.
getEndTime
()
!=
null
)
{
predicateBuilder
.
lt
(
"initiateTime"
,
emergencySelectVo
.
getEndTime
());
}
return
predicateBuilder
.
build
();
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
Duration
duration
=
Duration
.
between
(
LocalDateTime
.
now
()
Duration
duration
=
Duration
.
between
(
LocalDateTime
.
now
()
.
withHour
(
0
)
.
withHour
(
0
)
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/controller/TrusteeshipBillController.java
浏览文件 @
fcc5c9ae
...
@@ -11,13 +11,11 @@ import com.tykj.dev.device.matching.service.TrusteeshipBillService;
...
@@ -11,13 +11,11 @@ import com.tykj.dev.device.matching.service.TrusteeshipBillService;
import
com.tykj.dev.device.matching.subject.domin.ExternalUnitEquip
;
import
com.tykj.dev.device.matching.subject.domin.ExternalUnitEquip
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipBill
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipBill
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipEquip
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipEquip
;
import
com.tykj.dev.device.matching.subject.vo.ExternalSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.*
;
import
com.tykj.dev.device.matching.subject.vo.ExternalUpdataVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipBillSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipEquipSelectVo
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
...
@@ -46,7 +44,7 @@ public class TrusteeshipBillController {
...
@@ -46,7 +44,7 @@ public class TrusteeshipBillController {
@ApiOperation
(
value
=
"登记入库"
,
notes
=
"登记信息"
)
@ApiOperation
(
value
=
"登记入库"
,
notes
=
"登记信息"
)
@PostMapping
(
"/saveInitTrusteeshipBill"
)
@PostMapping
(
"/saveInitTrusteeshipBill"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
saveInitTrusteeshipBill
(
@RequestBody
TrusteeshipBill
trusteeshipBill
)
{
public
ResponseEntity
<
TrusteeshipBill
>
saveInitTrusteeshipBill
(
@RequestBody
TrusteeshipBill
trusteeshipBill
)
{
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
saveInitTrusteeshipBill
(
trusteeshipBill
));
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
saveInitTrusteeshipBill
(
trusteeshipBill
));
}
}
...
@@ -54,7 +52,7 @@ public class TrusteeshipBillController {
...
@@ -54,7 +52,7 @@ public class TrusteeshipBillController {
@ApiOperation
(
value
=
"退回登记"
,
notes
=
"登记信息"
)
@ApiOperation
(
value
=
"退回登记"
,
notes
=
"登记信息"
)
@PostMapping
(
"/saveSendBackTrusteeshipBill"
)
@PostMapping
(
"/saveSendBackTrusteeshipBill"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
saveSendBackTrusteeshipBill
(
@RequestBody
TrusteeshipBill
trusteeshipBill
)
{
public
ResponseEntity
<
TrusteeshipBill
>
saveSendBackTrusteeshipBill
(
@RequestBody
TrusteeshipBill
trusteeshipBill
)
{
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
saveSendBackTrusteeshipBill
(
trusteeshipBill
));
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
saveSendBackTrusteeshipBill
(
trusteeshipBill
));
}
}
...
@@ -63,7 +61,7 @@ public class TrusteeshipBillController {
...
@@ -63,7 +61,7 @@ public class TrusteeshipBillController {
@ApiOperation
(
value
=
"根据相关条件查询业务列表"
,
notes
=
"托管"
)
@ApiOperation
(
value
=
"根据相关条件查询业务列表"
,
notes
=
"托管"
)
@PostMapping
(
"/queryTrusteeshipBillSelectVo"
)
@PostMapping
(
"/queryTrusteeshipBillSelectVo"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
queryTrusteeshipBillSelectVo
(
@RequestBody
TrusteeshipBillSelectVo
trusteeshipBillSelectVo
)
{
public
ResponseEntity
<
Page
<
TrusteeshipBill
>>
queryTrusteeshipBillSelectVo
(
@RequestBody
TrusteeshipBillSelectVo
trusteeshipBillSelectVo
)
{
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
queryTrusteeshipBillSelectVo
(
trusteeshipBillSelectVo
));
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
queryTrusteeshipBillSelectVo
(
trusteeshipBillSelectVo
));
}
}
...
@@ -73,7 +71,7 @@ public class TrusteeshipBillController {
...
@@ -73,7 +71,7 @@ public class TrusteeshipBillController {
@ApiOperation
(
value
=
"根据相关条件查询托管设备列表"
,
notes
=
"托管"
)
@ApiOperation
(
value
=
"根据相关条件查询托管设备列表"
,
notes
=
"托管"
)
@PostMapping
(
"/queryTrusteeshipEquipSelectVo"
)
@PostMapping
(
"/queryTrusteeshipEquipSelectVo"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
queryTrusteeshipEquipSelectVo
(
@RequestBody
TrusteeshipEquipSelectVo
trusteeshipEquipSelectVo
)
{
public
ResponseEntity
<
TrusteeshipEquipPageVo
>
queryTrusteeshipEquipSelectVo
(
@RequestBody
TrusteeshipEquipSelectVo
trusteeshipEquipSelectVo
)
{
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
queryTrusteeshipEquipSelectVo
(
trusteeshipEquipSelectVo
));
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
queryTrusteeshipEquipSelectVo
(
trusteeshipEquipSelectVo
));
}
}
...
@@ -114,5 +112,12 @@ public class TrusteeshipBillController {
...
@@ -114,5 +112,12 @@ public class TrusteeshipBillController {
}
}
@ApiOperation
(
value
=
"根据需要查询是否存在"
,
notes
=
"登记信息"
)
@GetMapping
(
"/selectNum/{num}"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
queryById
(
@PathVariable
String
num
)
{
return
ResponseEntity
.
ok
(
trusteeshipBillService
.
queryNum
(
num
));
}
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/repository/TrusteeshipEquipDao.java
浏览文件 @
fcc5c9ae
...
@@ -15,4 +15,6 @@ public interface TrusteeshipEquipDao extends JpaRepository<TrusteeshipEquip,Inte
...
@@ -15,4 +15,6 @@ public interface TrusteeshipEquipDao extends JpaRepository<TrusteeshipEquip,Inte
@Modifying
@Modifying
@Query
(
value
=
"update TrusteeshipEquip d set d.state = ?2 where d.id in ?1"
)
@Query
(
value
=
"update TrusteeshipEquip d set d.state = ?2 where d.id in ?1"
)
int
updateIdsToStatus
(
List
<
Integer
>
ids
,
Integer
status
);
int
updateIdsToStatus
(
List
<
Integer
>
ids
,
Integer
status
);
boolean
existsByNum
(
String
num
);
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/service/TrusteeshipBillService.java
浏览文件 @
fcc5c9ae
...
@@ -3,6 +3,7 @@ package com.tykj.dev.device.matching.service;
...
@@ -3,6 +3,7 @@ package com.tykj.dev.device.matching.service;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipBill
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipBill
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipEquip
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipEquip
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipBillSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipBillSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipEquipPageVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipEquipSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipEquipSelectVo
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
...
@@ -25,7 +26,7 @@ public interface TrusteeshipBillService {
...
@@ -25,7 +26,7 @@ public interface TrusteeshipBillService {
/**
/**
* 分页查询代管装备列表数据
* 分页查询代管装备列表数据
*/
*/
Page
<
TrusteeshipEquip
>
queryTrusteeshipEquipSelectVo
(
TrusteeshipEquipSelectVo
trusteeshipEquipSelectVo
);
TrusteeshipEquipPageVo
queryTrusteeshipEquipSelectVo
(
TrusteeshipEquipSelectVo
trusteeshipEquipSelectVo
);
boolean
queryNum
(
String
num
);
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/service/impl/TrusteeshipBillServiceImpl.java
浏览文件 @
fcc5c9ae
...
@@ -12,14 +12,19 @@ import com.tykj.dev.device.matching.subject.domin.TrusteeshipBill;
...
@@ -12,14 +12,19 @@ import com.tykj.dev.device.matching.subject.domin.TrusteeshipBill;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipEquip
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipEquip
;
import
com.tykj.dev.device.matching.subject.vo.ExternalSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.ExternalSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipBillSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipBillSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipEquipPageVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipEquipSelectVo
;
import
com.tykj.dev.device.matching.subject.vo.TrusteeshipEquipSelectVo
;
import
com.tykj.dev.misc.base.StatusEnum
;
import
com.tykj.dev.misc.base.StatusEnum
;
import
com.tykj.dev.misc.utils.PageUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Service
@Service
...
@@ -49,7 +54,7 @@ public class TrusteeshipBillServiceImpl implements TrusteeshipBillService {
...
@@ -49,7 +54,7 @@ public class TrusteeshipBillServiceImpl implements TrusteeshipBillService {
trusteeshipBill
.
setTrusteeshipEquipJson
(
JSON
.
toJSONString
(
trusteeshipBill
.
getTrusteeshipEquips
()));
trusteeshipBill
.
setTrusteeshipEquipJson
(
JSON
.
toJSONString
(
trusteeshipBill
.
getTrusteeshipEquips
()));
trusteeshipBill
.
setFiles
(
FilesUtil
.
stringFileToList
(
trusteeshipBill
.
getFileRets
()));
trusteeshipBill
.
setFiles
(
FilesUtil
.
stringFileToList
(
trusteeshipBill
.
getFileRets
()));
trusteeshipBill
.
setCount
(
trusteeshipBill
.
getTrusteeshipEquips
().
size
());
trusteeshipBill
.
setCount
(
trusteeshipBill
.
getTrusteeshipEquips
().
size
());
trusteeshipEquipDao
.
updateIdsToStatus
(
trusteeshipBill
.
getTrusteeshipEquips
().
stream
().
map
(
TrusteeshipEquip:
:
getId
).
collect
(
Collectors
.
toList
()),
2
);
trusteeshipEquipDao
.
updateIdsToStatus
(
trusteeshipBill
.
getTrusteeshipEquips
().
stream
().
map
(
TrusteeshipEquip:
:
getId
).
collect
(
Collectors
.
toList
()),
1
);
return
trusteeshipBillDao
.
save
(
trusteeshipBill
);
return
trusteeshipBillDao
.
save
(
trusteeshipBill
);
}
}
...
@@ -64,9 +69,25 @@ public class TrusteeshipBillServiceImpl implements TrusteeshipBillService {
...
@@ -64,9 +69,25 @@ public class TrusteeshipBillServiceImpl implements TrusteeshipBillService {
}
}
@Override
@Override
public
Page
<
TrusteeshipEquip
>
queryTrusteeshipEquipSelectVo
(
TrusteeshipEquipSelectVo
trusteeshipEquipSelectVo
)
{
public
TrusteeshipEquipPageVo
queryTrusteeshipEquipSelectVo
(
TrusteeshipEquipSelectVo
trusteeshipEquipSelectVo
)
{
return
trusteeshipEquipDao
.
findAll
(
getPredicateBuilder
(
trusteeshipEquipSelectVo
).
build
(),
trusteeshipEquipSelectVo
.
getPageable
());
Map
<
String
,
List
<
String
>>
map
=
new
HashMap
<>();
List
<
TrusteeshipEquip
>
all
=
trusteeshipEquipDao
.
findAll
(
getPredicateBuilder
(
trusteeshipEquipSelectVo
).
build
());
map
.
put
(
"model"
,
all
.
stream
().
map
(
TrusteeshipEquip:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()));
map
.
put
(
"name"
,
all
.
stream
().
map
(
TrusteeshipEquip:
:
getName
).
distinct
().
collect
(
Collectors
.
toList
()));
map
.
put
(
"form"
,
all
.
stream
().
map
(
TrusteeshipEquip:
:
getForm
).
distinct
().
collect
(
Collectors
.
toList
()));
map
.
put
(
"unitName"
,
all
.
stream
().
map
(
TrusteeshipEquip:
:
getUnitName
).
distinct
().
collect
(
Collectors
.
toList
()));
Page
<
TrusteeshipEquip
>
perPage
=
PageUtil
.
getPerPage
(
trusteeshipEquipSelectVo
.
getPage
(),
trusteeshipEquipSelectVo
.
getSize
(),
all
,
trusteeshipEquipSelectVo
.
getPageable
());
return
new
TrusteeshipEquipPageVo
(
perPage
,
map
);
}
@Override
public
boolean
queryNum
(
String
num
)
{
return
trusteeshipEquipDao
.
existsByNum
(
num
);
}
}
...
@@ -79,6 +100,13 @@ public class TrusteeshipBillServiceImpl implements TrusteeshipBillService {
...
@@ -79,6 +100,13 @@ public class TrusteeshipBillServiceImpl implements TrusteeshipBillService {
}
}
if
(
trusteeshipBillSelectVo
.
getStartTime
()
!=
null
)
{
predicateBuilder
.
gt
(
"createTime"
,
trusteeshipBillSelectVo
.
getStartTime
());
}
if
(
trusteeshipBillSelectVo
.
getEndTime
()
!=
null
)
{
predicateBuilder
.
lt
(
"createTime"
,
trusteeshipBillSelectVo
.
getEndTime
());
}
}
}
return
predicateBuilder
;
return
predicateBuilder
;
}
}
...
@@ -113,4 +141,6 @@ public class TrusteeshipBillServiceImpl implements TrusteeshipBillService {
...
@@ -113,4 +141,6 @@ public class TrusteeshipBillServiceImpl implements TrusteeshipBillService {
}
}
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/TrusteeshipBillSelectVo.java
浏览文件 @
fcc5c9ae
package
com
.
tykj
.
dev
.
device
.
matching
.
subject
.
vo
;
package
com
.
tykj
.
dev
.
device
.
matching
.
subject
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.tykj.dev.misc.base.CustomPage
;
import
com.tykj.dev.misc.base.CustomPage
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -7,6 +8,8 @@ import lombok.AllArgsConstructor;
...
@@ -7,6 +8,8 @@ import lombok.AllArgsConstructor;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.time.LocalDateTime
;
@Data
@Data
@NoArgsConstructor
@NoArgsConstructor
@AllArgsConstructor
@AllArgsConstructor
...
@@ -15,4 +18,12 @@ public class TrusteeshipBillSelectVo extends CustomPage {
...
@@ -15,4 +18,12 @@ public class TrusteeshipBillSelectVo extends CustomPage {
@ApiModelProperty
(
value
=
"1.入库 2退回"
)
@ApiModelProperty
(
value
=
"1.入库 2退回"
)
private
Integer
type
;
private
Integer
type
;
@ApiModelProperty
(
name
=
"开始清退的年份 默认各式 2020-01-01 00:00:00"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
LocalDateTime
startTime
;
@ApiModelProperty
(
name
=
"开始清退的年份 默认各式 2020-01-01 00:00:00"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
LocalDateTime
endTime
;
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/TrusteeshipEquipPageVo.java
0 → 100644
浏览文件 @
fcc5c9ae
package
com
.
tykj
.
dev
.
device
.
matching
.
subject
.
vo
;
import
com.tykj.dev.device.matching.subject.domin.ExternalUnitEquip
;
import
com.tykj.dev.device.matching.subject.domin.TrusteeshipEquip
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.springframework.data.domain.Page
;
import
java.util.List
;
import
java.util.Map
;
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
TrusteeshipEquipPageVo
{
@ApiModelProperty
(
value
=
"分页内容"
)
private
Page
<
TrusteeshipEquip
>
trusteeshipEquips
;
@ApiModelProperty
(
value
=
"条件内容"
)
private
Map
<
String
,
List
<
String
>>
map
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论