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
585fc50a
Commit
585fc50a
authored
Dec 24, 2021
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一、审批流程内的表单设计正文编辑框添加office编辑框(可以插入图片、表格功能。
五、新建审批的流程基础内的“谁可以发起这个审批-部分-部门添加”功能无法使用。(已注释)
parent
b704c014
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
10 deletions
+22
-10
src/main/java/cn/timer/api/bean/zzgl/ZzglBmgwM.java
+7
-4
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/utils/aliyun/OSSUtil.java
+4
-4
No files found.
src/main/java/cn/timer/api/bean/zzgl/ZzglBmgwM.java
View file @
585fc50a
...
...
@@ -5,11 +5,9 @@ import java.util.Date;
import
java.util.List
;
import
java.util.stream.Stream
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.*
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
com.alibaba.druid.sql.ast.expr.SQLCaseExpr.Item
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
...
...
@@ -79,6 +77,11 @@ public class ZzglBmgwM extends Model<ZzglBmgwM> {
@ApiModelProperty
(
value
=
"创建时间 "
,
example
=
"2019-10-01"
)
private
Date
createTime
;
@Transient
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"员工列表"
)
private
List
<
YgglMainEmp
>
userList
;
// 遍历,获取旗下所有子部门和岗位id
public
static
void
getupDepts
(
ArrayList
<
Integer
>
list
,
Integer
objId
,
List
<
ZzglBmgwM
>
objs
)
{
if
(
objId
!=
null
)
{
...
...
src/main/java/cn/timer/api/controller/htzz/HtzzController.java
View file @
585fc50a
...
...
@@ -316,11 +316,11 @@ public class HtzzController {
try
{
zipUrl
=
oss
.
createZip
(
url
);
return
ResultUtil
.
data
(
zipUrl
);
}
catch
(
Exception
e
)
{
}
catch
(
IO
Exception
e
)
{
e
.
printStackTrace
();
}
return
ResultUtil
.
error
(
"操作失败"
);
}
}
@GetMapping
(
value
=
"/exportContract"
)
public
void
exportContract
(
@CurrentUser
UserBean
userBean
,
@RequestParam
(
"url"
)
String
url
,
HttpServletRequest
request
,
HttpServletResponse
resp
)
{
...
...
src/main/java/cn/timer/api/controller/oss/OSSController.java
View file @
585fc50a
...
...
@@ -167,4 +167,13 @@ public class OSSController {
// 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/utils/aliyun/OSSUtil.java
View file @
585fc50a
...
...
@@ -584,7 +584,7 @@ public class OSSUtil {
* @Description 创建zip
* @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"
);
String
fileName
=
dateFormat
.
format
(
new
Date
())
+
".zip"
;
FileOutputStream
fos
=
null
;
...
...
@@ -613,12 +613,12 @@ public class OSSUtil {
zos
.
write
(
buffer
,
0
,
nNumber
);
}
}
catch
(
IOException
e
)
{
throw
new
Exception
(
"写入失败"
);
//TODO 应作为自定义异常
throw
new
IO
Exception
(
"写入失败"
);
//TODO 应作为自定义异常
}
finally
{
try
{
inputStream
.
close
();
}
catch
(
IOException
e
)
{
throw
new
Exception
(
"关闭失败"
);
//TODO 应作为自定义异常
throw
new
IO
Exception
(
"关闭失败"
);
//TODO 应作为自定义异常
}
}
}
...
...
@@ -636,7 +636,7 @@ public class OSSUtil {
fos
.
close
();
}
}
catch
(
IOException
e
)
{
throw
new
Exception
(
"关闭失败"
);
//TODO 应作为自定义异常
throw
new
IO
Exception
(
"关闭失败"
);
//TODO 应作为自定义异常
}
}
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