Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
047b5b5e
Commit
047b5b5e
authored
Jan 12, 2022
by
龙于生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 禅道1304 bug
parent
5868fe0f
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
87 additions
and
19 deletions
+87
-19
src/main/java/cn/timer/api/bean/kqgl/AttImport.java
+54
-0
src/main/java/cn/timer/api/controller/disk/DiskFilesLogController.java
+3
-2
src/main/java/cn/timer/api/controller/disk/DiskReceivedController.java
+3
-2
src/main/java/cn/timer/api/controller/disk/DiskShareController.java
+3
-2
src/main/java/cn/timer/api/dao/disk/DiskFilesLogMapper.java
+1
-0
src/main/java/cn/timer/api/dao/disk/DiskReceivedMapper.java
+3
-2
src/main/java/cn/timer/api/dao/disk/DiskShareMapper.java
+3
-2
src/main/resources/mapping/disk/DiskFilesLogMapper.xml
+9
-5
src/main/resources/mapping/disk/DiskReceivedMapper.xml
+4
-2
src/main/resources/mapping/disk/DiskShareMapper.xml
+4
-2
No files found.
src/main/java/cn/timer/api/bean/kqgl/AttImport.java
0 → 100644
View file @
047b5b5e
package
cn
.
timer
.
api
.
bean
.
kqgl
;
import
java.io.Serializable
;
/**
* @author lys
* @date 2021年12月06日 15:27
*/
public
class
AttImport
implements
Serializable
{
//姓名
private
String
username
;
//工号
private
Integer
empNum
;
//上班打卡时间
private
String
sbdk
;
//下班打卡时间
private
String
xbdk
;
public
String
getUsername
()
{
return
username
;
}
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
public
Integer
getEmpNum
()
{
return
empNum
;
}
public
void
setEmpNum
(
Integer
empNum
)
{
this
.
empNum
=
empNum
;
}
public
String
getSbdk
()
{
return
sbdk
;
}
public
void
setSbdk
(
String
sbdk
)
{
this
.
sbdk
=
sbdk
;
}
public
String
getXbdk
()
{
return
xbdk
;
}
public
void
setXbdk
(
String
xbdk
)
{
this
.
xbdk
=
xbdk
;
}
}
src/main/java/cn/timer/api/controller/disk/DiskFilesLogController.java
View file @
047b5b5e
...
...
@@ -55,6 +55,7 @@ public class DiskFilesLogController{
@ApiParam
(
"搜索关键字"
)
@RequestParam
(
required
=
false
)
String
query
,
@ApiParam
(
"类型:0查看,1下载,2创建"
)
@RequestParam
(
required
=
false
)
String
type
)
{
Integer
empNum
=
userBean
.
getEmpNum
();
Integer
orgCode
=
userBean
.
getOrgCode
();
DiskFilesLog
diskFilesLog
=
new
DiskFilesLog
();
diskFilesLog
.
setTitle
(
query
);
...
...
@@ -63,12 +64,12 @@ public class DiskFilesLogController{
diskFilesLog
.
setType
(
Integer
.
valueOf
(
type
));
}
catch
(
Exception
e
){}
List
<
DiskFilesLog
>
diskFilesLogs
=
diskFilesLogMapper
.
queryDiskFilesLog
(
diskFilesLog
,
pageNum
,
pageSize
);
List
<
DiskFilesLog
>
diskFilesLogs
=
diskFilesLogMapper
.
queryDiskFilesLog
(
diskFilesLog
,
orgCode
,
pageNum
,
pageSize
);
long
total
=
PageHelper
.
count
(
new
ISelect
()
{
@Override
public
void
doSelect
()
{
diskFilesLogMapper
.
queryDiskFilesLog
(
diskFilesLog
,
pageNum
,
pageSize
);
diskFilesLogMapper
.
queryDiskFilesLog
(
diskFilesLog
,
orgCode
,
pageNum
,
pageSize
);
}
});
...
...
src/main/java/cn/timer/api/controller/disk/DiskReceivedController.java
View file @
047b5b5e
...
...
@@ -51,17 +51,18 @@ public class DiskReceivedController{
@ApiParam
(
"每页条数"
)
@RequestParam
(
required
=
false
,
defaultValue
=
"10"
)
Integer
pageSize
,
@ApiParam
(
"搜索关键字"
)
@RequestParam
(
required
=
false
)
String
query
)
{
Integer
empNum
=
userBean
.
getEmpNum
();
Integer
orgCode
=
userBean
.
getOrgCode
();
DiskReceived
diskReceived
=
new
DiskReceived
();
diskReceived
.
setTitle
(
query
);
diskReceived
.
setUserId
(
empNum
);
List
<
DiskReceived
>
diskReceiveds
=
diskReceivedMapper
.
queryDiskReceived
(
diskReceived
,
pageNum
,
pageSize
);
List
<
DiskReceived
>
diskReceiveds
=
diskReceivedMapper
.
queryDiskReceived
(
diskReceived
,
orgCode
,
pageNum
,
pageSize
);
long
total
=
PageHelper
.
count
(
new
ISelect
()
{
@Override
public
void
doSelect
()
{
diskReceivedMapper
.
queryDiskReceived
(
diskReceived
,
pageNum
,
pageSize
);
diskReceivedMapper
.
queryDiskReceived
(
diskReceived
,
orgCode
,
pageNum
,
pageSize
);
}
});
...
...
src/main/java/cn/timer/api/controller/disk/DiskShareController.java
View file @
047b5b5e
...
...
@@ -51,17 +51,18 @@ public class DiskShareController{
@ApiParam
(
"每页条数"
)
@RequestParam
(
required
=
false
,
defaultValue
=
"10"
)
Integer
pageSize
,
@ApiParam
(
"搜索关键字"
)
@RequestParam
(
required
=
false
)
String
query
)
{
Integer
empNum
=
userBean
.
getEmpNum
();
Integer
orgCode
=
userBean
.
getOrgCode
();
DiskShare
diskShare
=
new
DiskShare
();
diskShare
.
setTitle
(
query
);
diskShare
.
setUserId
(
empNum
);
List
<
DiskShare
>
diskShares
=
diskShareMapper
.
queryDiskShare
(
diskShare
,
pageNum
,
pageSize
);
List
<
DiskShare
>
diskShares
=
diskShareMapper
.
queryDiskShare
(
diskShare
,
orgCode
,
pageNum
,
pageSize
);
long
total
=
PageHelper
.
count
(
new
ISelect
()
{
@Override
public
void
doSelect
()
{
diskShareMapper
.
queryDiskShare
(
diskShare
,
pageNum
,
pageSize
);
diskShareMapper
.
queryDiskShare
(
diskShare
,
orgCode
,
pageNum
,
pageSize
);
}
});
...
...
src/main/java/cn/timer/api/dao/disk/DiskFilesLogMapper.java
View file @
047b5b5e
...
...
@@ -19,6 +19,7 @@ import java.util.List;
public
interface
DiskFilesLogMapper
extends
BaseMapper
<
DiskFilesLog
>
{
List
<
DiskFilesLog
>
queryDiskFilesLog
(
@Param
(
"diskFilesLog"
)
DiskFilesLog
diskFilesLog
,
@Param
(
"orgId"
)
Integer
orgId
,
@Param
(
value
=
"pageNum"
)
Integer
pageNum
,
@Param
(
value
=
"pageSize"
)
Integer
pageSize
);
...
...
src/main/java/cn/timer/api/dao/disk/DiskReceivedMapper.java
View file @
047b5b5e
...
...
@@ -19,7 +19,8 @@ import java.util.List;
public
interface
DiskReceivedMapper
extends
BaseMapper
<
DiskReceived
>
{
List
<
DiskReceived
>
queryDiskReceived
(
@Param
(
"diskReceived"
)
DiskReceived
diskReceived
,
@Param
(
value
=
"pageNum"
)
Integer
pageNum
,
@Param
(
value
=
"pageSize"
)
Integer
pageSize
);
@Param
(
"orgId"
)
Integer
orgId
,
@Param
(
value
=
"pageNum"
)
Integer
pageNum
,
@Param
(
value
=
"pageSize"
)
Integer
pageSize
);
}
src/main/java/cn/timer/api/dao/disk/DiskShareMapper.java
View file @
047b5b5e
...
...
@@ -19,6 +19,7 @@ import java.util.List;
public
interface
DiskShareMapper
extends
BaseMapper
<
DiskShare
>
{
List
<
DiskShare
>
queryDiskShare
(
@Param
(
"diskShare"
)
DiskShare
diskShare
,
@Param
(
value
=
"pageNum"
)
Integer
pageNum
,
@Param
(
value
=
"pageSize"
)
Integer
pageSize
);
@Param
(
"orgId"
)
Integer
orgId
,
@Param
(
value
=
"pageNum"
)
Integer
pageNum
,
@Param
(
value
=
"pageSize"
)
Integer
pageSize
);
}
src/main/resources/mapping/disk/DiskFilesLogMapper.xml
View file @
047b5b5e
...
...
@@ -47,23 +47,27 @@
SELECT
log.*,
df.id diskFiles_id,
df.show_size diskFiles_show_size,
df.file_type diskFiles_file_type,
dfi.url diskFileImage_url
FROM
( SELECT * FROM disk_files_log
WHERE user_id = #{diskFilesLog.userId}
and `type` != 5
(SELECT * FROM disk_files_log WHERE id IN (SELECT MAX(id) FROM disk_files_log
WHERE
user_id = #{diskFilesLog.userId}
and `type` != 5
<if
test=
"diskFilesLog.title != null and diskFilesLog.title != '' and diskFilesLog.title != 'null'"
>
and title like CONCAT('%',#{diskFilesLog.title},'%')
</if>
<if
test=
"diskFilesLog.type != null"
>
and `type` = #{diskFilesLog.type}
</if>
ORDER BY id DESC
) AS log
GROUP BY files_id )
) AS log
LEFT JOIN disk_files df ON log.files_id = df.id
LEFT JOIN disk_file_image dfi ON df.file_type = dfi.type
LEFT JOIN disk_catalogue_files dcf ON df.id = dcf.files_id
LEFT JOIN disk_catalogue dc ON dc.id = dcf.catalogue_id
WHERE dc.org_id=#{orgId}
GROUP BY
log.files_id
ORDER BY
...
...
src/main/resources/mapping/disk/DiskReceivedMapper.xml
View file @
047b5b5e
...
...
@@ -47,6 +47,7 @@
<select
id=
"queryDiskReceived"
resultMap=
"BaseResultMap"
>
SELECT
dr.*,
df.id diskFiles_id,
df.show_size diskFiles_show_size,
df.file_type diskFiles_file_type,
dfi.url diskFileImage_url
...
...
@@ -54,8 +55,9 @@
`disk_received` dr
LEFT JOIN `disk_files` df ON dr.`files_id` = df.`id`
LEFT JOIN disk_file_image dfi ON df.file_type = dfi.type
WHERE dr.user_id = #{diskReceived.userId} and dr.delete_flag = 0
LEFT JOIN disk_catalogue_files dcf ON df.id = dcf.files_id
LEFT JOIN disk_catalogue dc ON dc.id = dcf.catalogue_id
WHERE dc.org_id=#{orgId} AND dr.user_id = #{diskReceived.userId} and dr.delete_flag = 0
<if
test=
"diskReceived.title != null and diskReceived.title != '' and diskReceived.title != 'null'"
>
and dr.title LIKE CONCAT('%',#{diskReceived.title},'%')
</if>
...
...
src/main/resources/mapping/disk/DiskShareMapper.xml
View file @
047b5b5e
...
...
@@ -48,6 +48,7 @@
<select
id=
"queryDiskShare"
resultMap=
"BaseResultMap"
>
SELECT
ds.*,
df.id diskFiles_id,
df.show_size diskFiles_show_size,
df.file_type diskFiles_file_type,
dfi.url diskFileImage_url
...
...
@@ -55,8 +56,9 @@
`disk_share` ds
LEFT JOIN `disk_files` df ON ds.`files_id` = df.`id`
LEFT JOIN disk_file_image dfi ON df.file_type = dfi.type
WHERE ds.user_id = #{diskShare.userId} and ds.delete_flag = 0
LEFT JOIN disk_catalogue_files dcf ON df.id = dcf.files_id
LEFT JOIN disk_catalogue dc ON dc.id = dcf.catalogue_id
WHERE dc.org_id=#{orgId} AND ds.user_id = #{diskShare.userId} and ds.delete_flag = 0
<if
test=
"diskShare.title != null and diskShare.title != '' and diskShare.title != 'null'"
>
and ds.title LIKE CONCAT('%',#{diskShare.title},'%')
</if>
...
...
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