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
29fad707
Commit
29fad707
authored
Dec 24, 2021
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一、审批流程内的表单设计正文编辑框添加office编辑框(可以插入图片、表格功能。
五、新建审批的流程基础内的“谁可以发起这个审批-部分-部门添加”功能无法使用。(已注释)
parent
f2b3025b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
15 deletions
+26
-15
src/main/java/cn/timer/api/bean/zzgl/ZzglBmgwM.java
+11
-9
src/main/java/cn/timer/api/controller/htzz/HtzzController.java
+2
-2
src/main/java/cn/timer/api/controller/oss/OSSController.java
+9
-0
src/main/java/cn/timer/api/controller/zzgl/ZzglController.java
+0
-0
src/main/java/cn/timer/api/utils/aliyun/OSSUtil.java
+4
-4
No files found.
src/main/java/cn/timer/api/bean/zzgl/ZzglBmgwM.java
View file @
29fad707
...
@@ -5,11 +5,9 @@ import java.util.Date;
...
@@ -5,11 +5,9 @@ import java.util.Date;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Stream
;
import
java.util.stream.Stream
;
import
javax.persistence.Entity
;
import
javax.persistence.*
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
com.alibaba.druid.sql.ast.expr.SQLCaseExpr.Item
;
import
com.alibaba.druid.sql.ast.expr.SQLCaseExpr.Item
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
...
@@ -79,6 +77,11 @@ public class ZzglBmgwM extends Model<ZzglBmgwM> {
...
@@ -79,6 +77,11 @@ public class ZzglBmgwM extends Model<ZzglBmgwM> {
@ApiModelProperty
(
value
=
"创建时间 "
,
example
=
"2019-10-01"
)
@ApiModelProperty
(
value
=
"创建时间 "
,
example
=
"2019-10-01"
)
private
Date
createTime
;
private
Date
createTime
;
@Transient
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"员工列表"
)
private
List
<
YgglMainEmp
>
userList
;
// 遍历,获取旗下所有子部门和岗位id
// 遍历,获取旗下所有子部门和岗位id
public
static
void
getupDepts
(
ArrayList
<
Integer
>
list
,
Integer
objId
,
List
<
ZzglBmgwM
>
objs
)
{
public
static
void
getupDepts
(
ArrayList
<
Integer
>
list
,
Integer
objId
,
List
<
ZzglBmgwM
>
objs
)
{
if
(
objId
!=
null
)
{
if
(
objId
!=
null
)
{
...
@@ -115,7 +118,7 @@ public class ZzglBmgwM extends Model<ZzglBmgwM> {
...
@@ -115,7 +118,7 @@ public class ZzglBmgwM extends Model<ZzglBmgwM> {
}
}
}
}
}
}
}
}
\ No newline at end of file
src/main/java/cn/timer/api/controller/htzz/HtzzController.java
View file @
29fad707
...
@@ -316,10 +316,10 @@ public class HtzzController {
...
@@ -316,10 +316,10 @@ public class HtzzController {
try
{
try
{
zipUrl
=
oss
.
createZip
(
url
);
zipUrl
=
oss
.
createZip
(
url
);
return
ResultUtil
.
data
(
zipUrl
);
return
ResultUtil
.
data
(
zipUrl
);
}
catch
(
Exception
e
)
{
}
catch
(
IO
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
return
ResultUtil
.
error
(
"操作失败"
);
}
}
return
ResultUtil
.
error
(
"操作失败"
);
}
}
@GetMapping
(
value
=
"/exportContract"
)
@GetMapping
(
value
=
"/exportContract"
)
...
...
src/main/java/cn/timer/api/controller/oss/OSSController.java
View file @
29fad707
...
@@ -167,4 +167,13 @@ public class OSSController {
...
@@ -167,4 +167,13 @@ public class OSSController {
// return ResultUtil.success("删除成功");
// return ResultUtil.success("删除成功");
// }
// }
@PostMapping
(
value
=
"/uploadOss"
)
@ApiOperation
(
value
=
"上传普通文件"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ResponseBody
public
Result
<
String
>
uploadOss
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
required
=
false
)
String
moudle
,
@Param
(
"file"
)
MultipartFile
file
)
throws
Exception
{
Result
<
String
>
data
=
ossService
.
upload
(
userBean
.
getOrgCode
(),
moudle
,
file
);
return
data
;
}
}
}
src/main/java/cn/timer/api/controller/zzgl/ZzglController.java
View file @
29fad707
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/utils/aliyun/OSSUtil.java
View file @
29fad707
...
@@ -584,7 +584,7 @@ public class OSSUtil {
...
@@ -584,7 +584,7 @@ public class OSSUtil {
* @Description 创建zip
* @Description 创建zip
* @Date 2021/12/2 18:06
* @Date 2021/12/2 18:06
**/
**/
public
String
createZip
(
Map
<
String
,
String
>
urlMap
)
throws
Exception
{
public
String
createZip
(
Map
<
String
,
String
>
urlMap
)
throws
IO
Exception
{
DateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyyMMddHHmmss"
);
DateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyyMMddHHmmss"
);
String
fileName
=
dateFormat
.
format
(
new
Date
())
+
".zip"
;
String
fileName
=
dateFormat
.
format
(
new
Date
())
+
".zip"
;
FileOutputStream
fos
=
null
;
FileOutputStream
fos
=
null
;
...
@@ -613,12 +613,12 @@ public class OSSUtil {
...
@@ -613,12 +613,12 @@ public class OSSUtil {
zos
.
write
(
buffer
,
0
,
nNumber
);
zos
.
write
(
buffer
,
0
,
nNumber
);
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
Exception
(
"写入失败"
);
//TODO 应作为自定义异常
throw
new
IO
Exception
(
"写入失败"
);
//TODO 应作为自定义异常
}
finally
{
}
finally
{
try
{
try
{
inputStream
.
close
();
inputStream
.
close
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
Exception
(
"关闭失败"
);
//TODO 应作为自定义异常
throw
new
IO
Exception
(
"关闭失败"
);
//TODO 应作为自定义异常
}
}
}
}
}
}
...
@@ -636,7 +636,7 @@ public class OSSUtil {
...
@@ -636,7 +636,7 @@ public class OSSUtil {
fos
.
close
();
fos
.
close
();
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
Exception
(
"关闭失败"
);
//TODO 应作为自定义异常
throw
new
IO
Exception
(
"关闭失败"
);
//TODO 应作为自定义异常
}
}
}
}
return
fileName
;
return
fileName
;
...
...
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