Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dev_move
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓砥奕
dev_move
Commits
37ea005b
提交
37ea005b
authored
12月 25, 2020
作者:
zjm
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[添加了所有实体以及dao]
上级
087d632f
显示空白字符变更
内嵌
并排
正在显示
39 个修改的文件
包含
688 行增加
和
0 行删除
+688
-0
AccessControlNameDao.java
...ple/removetolocal/newentity/dao/AccessControlNameDao.java
+12
-0
AllotBackBillDao.java
...example/removetolocal/newentity/dao/AllotBackBillDao.java
+11
-0
AllotBillDao.java
...com/example/removetolocal/newentity/dao/AllotBillDao.java
+11
-0
DeviceApplyBillDao.java
...ample/removetolocal/newentity/dao/DeviceApplyBillDao.java
+11
-0
DeviceChangeDao.java
.../example/removetolocal/newentity/dao/DeviceChangeDao.java
+17
-0
DeviceCheckBillDao.java
...ample/removetolocal/newentity/dao/DeviceCheckBillDao.java
+11
-0
DeviceCheckDetailDao.java
...ple/removetolocal/newentity/dao/DeviceCheckDetailDao.java
+41
-0
DeviceCheckPeriodDao.java
...ple/removetolocal/newentity/dao/DeviceCheckPeriodDao.java
+19
-0
DeviceCheckStatDao.java
...ample/removetolocal/newentity/dao/DeviceCheckStatDao.java
+13
-0
DeviceDestroyBillDao.java
...ple/removetolocal/newentity/dao/DeviceDestroyBillDao.java
+13
-0
DeviceLibraryDao.java
...example/removetolocal/newentity/dao/DeviceLibraryDao.java
+57
-0
DeviceLogDao.java
...com/example/removetolocal/newentity/dao/DeviceLogDao.java
+21
-0
DeviceRetiredBillDao.java
...ple/removetolocal/newentity/dao/DeviceRetiredBillDao.java
+17
-0
DeviceUseReportDao.java
...ample/removetolocal/newentity/dao/DeviceUseReportDao.java
+11
-0
FinalDetailDao.java
...m/example/removetolocal/newentity/dao/FinalDetailDao.java
+25
-0
FinalReportDao.java
...m/example/removetolocal/newentity/dao/FinalReportDao.java
+14
-0
InputOutputDeviceDao.java
...ple/removetolocal/newentity/dao/InputOutputDeviceDao.java
+19
-0
LibraryWarningLogDao.java
...ple/removetolocal/newentity/dao/LibraryWarningLogDao.java
+12
-0
LibraryWarningLogDetailDao.java
...movetolocal/newentity/dao/LibraryWarningLogDetailDao.java
+11
-0
MatchingDeviceBillDao.java
...le/removetolocal/newentity/dao/MatchingDeviceBillDao.java
+11
-0
MatchingDeviceLibraryDao.java
...removetolocal/newentity/dao/MatchingDeviceLibraryDao.java
+11
-0
MatchingRepairBillDao.java
...le/removetolocal/newentity/dao/MatchingRepairBillDao.java
+11
-0
PackingLibraryDao.java
...xample/removetolocal/newentity/dao/PackingLibraryDao.java
+15
-0
RepairBackBillDao.java
...xample/removetolocal/newentity/dao/RepairBackBillDao.java
+17
-0
RepairBillDao.java
...om/example/removetolocal/newentity/dao/RepairBillDao.java
+12
-0
RepairDetailDao.java
.../example/removetolocal/newentity/dao/RepairDetailDao.java
+11
-0
RepairSendBillDao.java
...xample/removetolocal/newentity/dao/RepairSendBillDao.java
+12
-0
RfidChangeBillDao.java
...xample/removetolocal/newentity/dao/RfidChangeBillDao.java
+14
-0
RfidChangeLogDao.java
...example/removetolocal/newentity/dao/RfidChangeLogDao.java
+15
-0
ScrapBillDao.java
...com/example/removetolocal/newentity/dao/ScrapBillDao.java
+11
-0
SelfCheckBillDao.java
...example/removetolocal/newentity/dao/SelfCheckBillDao.java
+11
-0
SendBackBillDao.java
.../example/removetolocal/newentity/dao/SendBackBillDao.java
+15
-0
SendBackBillDetailDao.java
...le/removetolocal/newentity/dao/SendBackBillDetailDao.java
+18
-0
StorageBillDao.java
...m/example/removetolocal/newentity/dao/StorageBillDao.java
+11
-0
TaskDao.java
...java/com/example/removetolocal/newentity/dao/TaskDao.java
+68
-0
TaskLogDao.java
...a/com/example/removetolocal/newentity/dao/TaskLogDao.java
+20
-0
TrainThemeDao.java
...om/example/removetolocal/newentity/dao/TrainThemeDao.java
+19
-0
TrainUserDao.java
...com/example/removetolocal/newentity/dao/TrainUserDao.java
+25
-0
WorkHandoverDao.java
.../example/removetolocal/newentity/dao/WorkHandoverDao.java
+15
-0
没有找到文件。
src/main/java/com/example/removetolocal/newentity/dao/AccessControlNameDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.AccessControlName
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
AccessControlNameDao
extends
JpaRepository
<
AccessControlName
,
Integer
>,
JpaSpecificationExecutor
<
AccessControlName
>
{
AccessControlName
findByDeviceNo
(
String
deviceNo
);
}
src/main/java/com/example/removetolocal/newentity/dao/AllotBackBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.AllotBackBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
AllotBackBillDao
extends
JpaRepository
<
AllotBackBill
,
Integer
>,
JpaSpecificationExecutor
<
AllotBackBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/AllotBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.AllotBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
AllotBillDao
extends
JpaRepository
<
AllotBill
,
Integer
>,
JpaSpecificationExecutor
<
AllotBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceApplyBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceApplyBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
DeviceApplyBillDao
extends
JpaRepository
<
DeviceApplyBill
,
Integer
>,
JpaSpecificationExecutor
<
DeviceApplyBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceChangeDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceChange
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
DeviceChangeDao
extends
JpaRepository
<
DeviceChange
,
Integer
>,
JpaSpecificationExecutor
<
DeviceChange
>
{
/**
* @param id 新装备Id
* 根据换新装备id查询装备更换记录
*/
DeviceChange
findByNewDeviceId
(
Integer
id
);
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceCheckBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceCheckBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
DeviceCheckBillDao
extends
JpaRepository
<
DeviceCheckBill
,
Integer
>,
JpaSpecificationExecutor
<
DeviceCheckBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceCheckDetailDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceCheckDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Modifying
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
/**
* @author dengdiyi
*/
@SuppressWarnings
(
"ALL"
)
@Transactional
public
interface
DeviceCheckDetailDao
extends
JpaRepository
<
DeviceCheckDetail
,
Integer
>,
JpaSpecificationExecutor
<
DeviceCheckDetail
>
{
/**
* 根据id更新checkDetail
*
* @param id detail id
* @param checkDetail 要更新的检查结果
*/
@Modifying
@Query
(
"update DeviceCheckDetail o set o.checkDetail=?2,o.checkResult = ?3,o.userAId =?4,o.userBId=?5,o.checkedCount=?6 where o.id=?1"
)
void
updateCheckDetail
(
Integer
id
,
String
checkDetail
,
String
checkResult
,
int
userAId
,
int
userBId
,
Integer
checkedCount
);
@Modifying
@Query
(
"update DeviceCheckDetail o set o.checkStatus=?2 where o.id=?1"
)
int
updateCheckStatus
(
int
id
,
int
checkStatus
);
/**
* 更新 checkUserAId 与 checkUserBId
*
* @param id detailId
* @param checkUserAId 核查组成员A
* @param checkUserBId 核查组成员B
*/
@Modifying
@Query
(
"update DeviceCheckDetail o set o.checkUserAId =?2,o.checkUserBId=?3 where o.id =?1"
)
void
updateCheckUser
(
int
id
,
int
checkUserAId
,
int
checkUserBId
);
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceCheckPeriodDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceCheckPeriod
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* DeviceCheckPeriodDao.
*
* @author Matrix <xhyrzldf@gmail.com>
* @since 2020/10/26 at 5:10 下午
*/
public
interface
DeviceCheckPeriodDao
extends
JpaRepository
<
DeviceCheckPeriod
,
Integer
>,
JpaSpecificationExecutor
<
DeviceCheckPeriod
>
{
/**
* @return 最新的一条周期数据
*/
DeviceCheckPeriod
findTopByOrderByIdDesc
();
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceCheckStatDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceCheckStat
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* DeviceCheckStatRepo.
*
* @author Matrix <xhyrzldf@gmail.com>
* @since 2020/8/16 at 5:26 下午
*/
public
interface
DeviceCheckStatDao
extends
JpaRepository
<
DeviceCheckStat
,
Integer
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceDestroyBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceDestroyBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
DeviceDestroyBillDao
extends
JpaRepository
<
DeviceDestroyBill
,
Integer
>,
JpaSpecificationExecutor
<
DeviceDestroyBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceLibraryDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.repository.query.Param
;
import
java.util.Date
;
import
java.util.List
;
/**
* @author dengdiyi
*/
@SuppressWarnings
(
"SqlResolve"
)
public
interface
DeviceLibraryDao
extends
JpaRepository
<
DeviceLibrary
,
Integer
>,
JpaSpecificationExecutor
<
DeviceLibrary
>
{
List
<
DeviceLibrary
>
getAllByModel
(
String
model
);
List
<
DeviceLibrary
>
getAllByOwnUnit
(
String
unit
);
List
<
DeviceLibrary
>
getAllByTypeAndNameAndModel
(
Integer
type
,
String
name
,
String
model
);
/**
* 根据装备型号与装备所在地(多个地区)查询装备数量
*
* @param model 装备型号
* @param locations 装备所在地列表
* @return 装备数量
*/
int
countByModelAndLocationUnitIn
(
String
model
,
List
<
String
>
locations
);
/**
* 根据装备型号与装备所在地(一个地区)查询装备数量
*
* @param model 装备型号
* @param location 装备所在地
* @return 装备数量
*/
int
countByModelAndLocationUnit
(
String
model
,
String
location
);
List
<
DeviceLibrary
>
getAllByPartParentIdAndIsPart
(
Integer
parentId
,
Integer
isPart
);
List
<
DeviceLibrary
>
getAllByRfidCardId
(
String
rfidCardId
);
@Query
(
nativeQuery
=
true
,
value
=
"select * from device_library where id in :idList"
)
List
<
DeviceLibrary
>
getDeviceLibraryEntitiesByIdIn
(
@Param
(
"idList"
)
List
<
Integer
>
idList
);
List
<
DeviceLibrary
>
getAllByRfidSurfaceId
(
String
rfid
);
@Query
(
"select o from DeviceLibrary o where o.ownUnit= :unitName and o.createTime >= :startTime and o.createTime <= :endTime"
)
List
<
DeviceLibrary
>
findAllByUnitBetweenTime
(
String
unitName
,
Date
startTime
,
Date
endTime
);
List
<
DeviceLibrary
>
getAllByPackingId
(
Integer
packingId
);
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceLogDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceLog
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
java.util.List
;
/**
* @author dengdiyi
*/
public
interface
DeviceLogDao
extends
JpaRepository
<
DeviceLog
,
Integer
>,
JpaSpecificationExecutor
<
DeviceLog
>
{
/**
* @param deviceId 装备id
* @param type 0:装备日志,1:配套设备日志
* 通过装备id和日志类型查询装备履历
*/
List
<
DeviceLog
>
getAllByDeviceIdAndType
(
Integer
deviceId
,
Integer
type
);
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceRetiredBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceRetiredBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author HuangXiahao
* @version V1.0
* @class DeviceRetiredBillDao
* @packageName com.tykj.dev.device.retired.subject.repository
**/
public
interface
DeviceRetiredBillDao
extends
JpaRepository
<
DeviceRetiredBill
,
Integer
>,
JpaSpecificationExecutor
<
DeviceRetiredBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/DeviceUseReportDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.DeviceUseReport
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
DeviceUseReportDao
extends
JpaRepository
<
DeviceUseReport
,
Integer
>,
JpaSpecificationExecutor
<
DeviceUseReport
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/FinalDetailDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.FinalDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
java.util.List
;
import
java.util.Optional
;
/**
* finalDetailRepo.
*
* @author Matrix <xhyrzldf@gmail.com>
* @since 2020/9/24 at 6:26 下午
*/
public
interface
FinalDetailDao
extends
JpaRepository
<
FinalDetail
,
Integer
>,
JpaSpecificationExecutor
<
FinalDetail
>
{
/**
* 根据reportId获得报告详情列表
*
* @param reportId 报告概览id
* @return 报告详情列表
*/
Optional
<
List
<
FinalDetail
>>
findByReportId
(
Integer
reportId
);
}
src/main/java/com/example/removetolocal/newentity/dao/FinalReportDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.FinalReport
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* finalReportRepo.
*
* @author Matrix <xhyrzldf@gmail.com>
* @since 2020/9/24 at 6:27 下午
*/
public
interface
FinalReportDao
extends
JpaRepository
<
FinalReport
,
Integer
>,
JpaSpecificationExecutor
<
FinalReport
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/InputOutputDeviceDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.tykj.dev.rfid.entity.domin.InputOutputDevice
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
java.util.List
;
/**
* @author HuangXiahao
* @version V1.0
* @packageName com.tykj.dev.rfid.repository
**/
public
interface
InputOutputDeviceDao
extends
JpaRepository
<
InputOutputDevice
,
Integer
>,
JpaSpecificationExecutor
<
InputOutputDevice
>
{
List
<
InputOutputDevice
>
findAllByUnitIdAndDirection
(
Integer
unitId
,
Integer
direction
);
List
<
InputOutputDevice
>
findAllByIsRead
(
Integer
isRead
);
}
src/main/java/com/example/removetolocal/newentity/dao/LibraryWarningLogDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.tykj.dev.rfid.entity.domin.LibraryWarningLog
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
LibraryWarningLogDao
extends
JpaRepository
<
LibraryWarningLog
,
Integer
>,
JpaSpecificationExecutor
<
LibraryWarningLog
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/LibraryWarningLogDetailDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.tykj.dev.rfid.entity.domin.LibraryWarningLogDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
LibraryWarningLogDetailDao
extends
JpaRepository
<
LibraryWarningLogDetail
,
Integer
>,
JpaSpecificationExecutor
<
LibraryWarningLogDetail
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/MatchingDeviceBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.MatchingDeviceBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
MatchingDeviceBillDao
extends
JpaRepository
<
MatchingDeviceBill
,
Integer
>,
JpaSpecificationExecutor
<
MatchingDeviceBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/MatchingDeviceLibraryDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.MatchingDeviceLibrary
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
MatchingDeviceLibraryDao
extends
JpaRepository
<
MatchingDeviceLibrary
,
Integer
>,
JpaSpecificationExecutor
<
MatchingDeviceLibrary
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/MatchingRepairBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.MatchingRepairBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
MatchingRepairBillDao
extends
JpaRepository
<
MatchingRepairBill
,
Integer
>,
JpaSpecificationExecutor
<
MatchingRepairBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/PackingLibraryDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.PackingLibrary
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
java.util.List
;
/**
* @author dengdiyi
*/
public
interface
PackingLibraryDao
extends
JpaRepository
<
PackingLibrary
,
Integer
>,
JpaSpecificationExecutor
<
PackingLibrary
>
{
List
<
PackingLibrary
>
findAllByPartParentId
(
Integer
id
);
}
src/main/java/com/example/removetolocal/newentity/dao/RepairBackBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.RepairBackBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author zjm
* @version 1.0.0
* @ClassName DeviceRepairBackBillDao.java
* @Description TODO
* @createTime 2020年08月25日 10:29:00
*/
public
interface
RepairBackBillDao
extends
JpaRepository
<
RepairBackBill
,
Integer
>,
JpaSpecificationExecutor
<
RepairBackBill
>
{
RepairBackBill
findByDeviceRepairBillId
(
Integer
repairBillId
);
}
src/main/java/com/example/removetolocal/newentity/dao/RepairBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.RepairBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
RepairBillDao
extends
JpaRepository
<
RepairBill
,
Integer
>,
JpaSpecificationExecutor
<
RepairBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/RepairDetailDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.RepairDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
java.util.List
;
public
interface
RepairDetailDao
extends
JpaRepository
<
RepairDetail
,
Integer
>,
JpaSpecificationExecutor
<
RepairDetail
>
{
List
<
RepairDetail
>
findByDeviceRepairBillId
(
Integer
billId
);
}
src/main/java/com/example/removetolocal/newentity/dao/RepairSendBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.RepairSendBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
RepairSendBillDao
extends
JpaRepository
<
RepairSendBill
,
Integer
>,
JpaSpecificationExecutor
<
RepairSendBill
>
{
RepairSendBill
findByDeviceRepairBillId
(
Integer
id
);
}
src/main/java/com/example/removetolocal/newentity/dao/RfidChangeBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.RfidChangeBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author HuangXiahao
* @version V1.0
* @packageName com.tykj.dev.rfid.repository
**/
public
interface
RfidChangeBillDao
extends
JpaRepository
<
RfidChangeBill
,
Integer
>,
JpaSpecificationExecutor
<
RfidChangeBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/RfidChangeLogDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.RfidChangeLog
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author HuangXiahao
* @version V1.0
* @class RfidChangeLogDao
* @packageName com.tykj.dev.rfid.repository
**/
public
interface
RfidChangeLogDao
extends
JpaRepository
<
RfidChangeLog
,
Integer
>,
JpaSpecificationExecutor
<
RfidChangeLog
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/ScrapBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.ScrapBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
ScrapBillDao
extends
JpaRepository
<
ScrapBill
,
Integer
>,
JpaSpecificationExecutor
<
ScrapBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/SelfCheckBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.SelfCheckBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
SelfCheckBillDao
extends
JpaRepository
<
SelfCheckBill
,
Integer
>,
JpaSpecificationExecutor
<
SelfCheckBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/SendBackBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.SendBackBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* <h4>Description : </h4>
*
* @Author czq
* @Date 2020-08-16 11:54
* @Version 1.0
*/
public
interface
SendBackBillDao
extends
JpaRepository
<
SendBackBill
,
Integer
>,
JpaSpecificationExecutor
<
SendBackBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/SendBackBillDetailDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.SendBackBillDetail
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* <h4>Description : </h4>
*
* @Author czq
* @Date 2020-08-16 12:01
* @Version 1.0
*/
public
interface
SendBackBillDetailDao
extends
JpaRepository
<
SendBackBillDetail
,
Integer
>,
JpaSpecificationExecutor
<
SendBackBillDetail
>
{
SendBackBillDetail
findSendBackBillDetailById
(
Integer
id
);
}
src/main/java/com/example/removetolocal/newentity/dao/StorageBillDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.StorageBill
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author dengdiyi
*/
public
interface
StorageBillDao
extends
JpaRepository
<
StorageBill
,
Integer
>,
JpaSpecificationExecutor
<
StorageBill
>
{
}
src/main/java/com/example/removetolocal/newentity/dao/TaskDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.Task
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Query
;
import
java.util.List
;
import
java.util.Optional
;
/**
* @author dengdiyi
*/
public
interface
TaskDao
extends
JpaRepository
<
Task
,
Integer
>,
JpaSpecificationExecutor
<
Task
>
{
/**
* @param billId 账单id
* @param businessType 业务类型
* 根据账单Id和业务类型查询task
*/
Optional
<
Task
>
findByBillIdAndBusinessType
(
Integer
billId
,
Integer
businessType
);
/**
* 根据账单id、业务类型、任务状态查询task
*
* @param billId 账单id
* @param businessType 业务类型
* @param billStatus 任务状态
*/
List
<
Task
>
findAllByBillIdAndBusinessTypeAndBillStatus
(
Integer
billId
,
Integer
businessType
,
Integer
billStatus
);
/**
* 根据账单id、业务类型、任务状态查询task
*
* @param billId 账单id
* @param businessType 业务类型
*/
List
<
Task
>
findAllByBillIdAndBusinessType
(
Integer
billId
,
Integer
businessType
);
/**
* 根据账单id、业务类型、以及父id为null
*
* @param billId 账单ID
* @param businessType 业务类型
*/
Task
findAllByParentTaskIdIsNullAndBillIdAndBusinessType
(
Integer
billId
,
Integer
businessType
);
List
<
Task
>
findAllByParentTaskId
(
Integer
parentTaskId
);
@Query
(
"select o.billId from Task o where o.id=?1"
)
Integer
findBillIdByTaskId
(
int
taskId
);
@Query
(
"select o.billId from Task o where o.id=?1 and o.businessType=?2"
)
Integer
findBillId
(
int
id
,
int
businessType
);
@Query
(
"select o.billId from Task o where o.parentTaskId = ?1 and o. businessType = ?2"
)
Integer
findBillIdByParentId
(
int
parentTaskId
,
int
businessType
);
List
<
Task
>
findTaskEntitiesByParentTaskId
(
Integer
parentTaskId
);
Task
findByBusinessTypeAndOwnUnitAndBillStatus
(
Integer
type
,
Integer
ownUnit
,
Integer
billStatus
);
Task
findByParentTaskIdAndAndTitle
(
Integer
parentId
,
String
title
);
List
<
Task
>
findAllByBusinessType
(
Integer
businessType
);
}
src/main/java/com/example/removetolocal/newentity/dao/TaskLogDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.TaskLog
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
java.util.List
;
/**
* @author dengdiyi
*/
public
interface
TaskLogDao
extends
JpaRepository
<
TaskLog
,
Integer
>,
JpaSpecificationExecutor
<
TaskLog
>
{
/**
* @param taskId 业务id
* 通过业务id查询业务履历
*/
List
<
TaskLog
>
getAllByTaskId
(
Integer
taskId
);
}
src/main/java/com/example/removetolocal/newentity/dao/TrainThemeDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.tykj.dev.device.train.entity.TrainTheme
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
java.util.List
;
/**
* @author zjm
* @version 1.0.0
* @ClassName TrainDao.java
* @Description TODO
* @createTime 2020年08月13日 15:19:00
*/
public
interface
TrainThemeDao
extends
JpaRepository
<
TrainTheme
,
Integer
>,
JpaSpecificationExecutor
<
TrainTheme
>
{
List
<
TrainTheme
>
findAllByTrainStatus
(
Integer
status
);
}
src/main/java/com/example/removetolocal/newentity/dao/TrainUserDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.tykj.dev.device.train.entity.TrainUser
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
java.util.List
;
/**
* @author zjm
* @version 1.0.0
* @ClassName TrainUserDao.java
* @Description TODO
* @createTime 2020年12月01日 13:55:00
*/
public
interface
TrainUserDao
extends
JpaRepository
<
TrainUser
,
Integer
>,
JpaSpecificationExecutor
<
TrainUser
>
{
TrainUser
findByUserIdAndTrainId
(
Integer
userId
,
Integer
trainId
);
List
<
TrainUser
>
findAllByIsSignUpAndTrainId
(
Integer
IsSignUp
,
Integer
trainId
);
List
<
TrainUser
>
findAllByTrainId
(
Integer
trainId
);
List
<
TrainUser
>
findAllByUnitsIdAndTrainId
(
Integer
unitId
,
Integer
userId
);
}
src/main/java/com/example/removetolocal/newentity/dao/WorkHandoverDao.java
0 → 100644
浏览文件 @
37ea005b
package
com
.
example
.
removetolocal
.
newentity
.
dao
;
import
com.example.removetolocal.newentity.WorkHandover
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
/**
* @author zjm
* @version 1.0.0
* @ClassName WorkHandoverDao.java
* @Description 工作交接dao层
* @createTime 2020年09月17日 16:14:00
*/
public
interface
WorkHandoverDao
extends
JpaRepository
<
WorkHandover
,
Integer
>,
JpaSpecificationExecutor
<
WorkHandover
>
{
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论