Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
tianjin-cement
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
竹天卫
tianjin-cement
Commits
2aee0f89
Commit
2aee0f89
authored
Jan 18, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6、导出委托单 检测项下标问题 客户权限放开 ok
7、 处理项添加编辑接口需要判断处理人不能为空 ok
parent
e07c023f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
13 deletions
+34
-13
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+2
-2
HandleServiceImpl.java
...se/sc/cement/business/service/impl/HandleServiceImpl.java
+6
-0
WordUtil.java
...c/main/java/cn/wise/sc/cement/business/util/WordUtil.java
+20
-5
cement-business-1.0-SNAPSHOT.jar.original
...business/target/cement-business-1.0-SNAPSHOT.jar.original
+0
-0
pom.properties
cement-business/target/maven-archiver/pom.properties
+1
-1
pom.properties
...ommon/common-swagger/target/maven-archiver/pom.properties
+1
-1
inputFiles.lst
...en-compiler-plugin/compile/default-compile/inputFiles.lst
+2
-2
pom.properties
mybatis-generator/target/maven-archiver/pom.properties
+1
-1
inputFiles.lst
...en-compiler-plugin/compile/default-compile/inputFiles.lst
+1
-1
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
2aee0f89
...
...
@@ -620,13 +620,13 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
if
(
loginUser
==
null
)
{
return
BaseResponse
.
errorMsg
(
"请登录账号"
);
}
List
<
Integer
>
approvalIdList
=
sysApprovalMapper
.
getApprovalId
(
"委托评审"
);
/*
List<Integer> approvalIdList = sysApprovalMapper.getApprovalId("委托评审");
if (approvalIdList == null) {
return BaseResponse.errorMsg("委托评审信息错误");
}
if (!approvalIdList.contains(loginUser.getId())) {
return BaseResponse.errorMsg("权限不足");
}
}
*/
if
(
id
==
null
)
{
return
BaseResponse
.
errorMsg
(
"参数错误"
);
}
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/HandleServiceImpl.java
View file @
2aee0f89
...
...
@@ -79,6 +79,9 @@ public class HandleServiceImpl extends ServiceImpl<HandleMapper, Handle> impleme
if
(
StringUtils
.
isEmpty
(
query
.
getName
()))
{
return
BaseResponse
.
errorMsg
(
"处理项名称不能为空!"
);
}
if
(
query
.
getUserId
()
==
null
)
{
return
BaseResponse
.
errorMsg
(
"请选择处理人"
);
}
QueryWrapper
<
Handle
>
qw
=
new
QueryWrapper
<>();
qw
.
eq
(
"name"
,
query
.
getName
());
int
count
=
handleMapper
.
selectCount
(
qw
);
...
...
@@ -102,6 +105,9 @@ public class HandleServiceImpl extends ServiceImpl<HandleMapper, Handle> impleme
if
(
StringUtils
.
isEmpty
(
query
.
getName
()))
{
return
BaseResponse
.
errorMsg
(
"处理项名称不能为空!"
);
}
if
(
query
.
getUserId
()
==
null
)
{
return
BaseResponse
.
errorMsg
(
"请选择处理人"
);
}
Handle
handle
=
handleMapper
.
selectById
(
query
.
getId
());
if
(
handle
==
null
){
return
BaseResponse
.
errorMsg
(
"信息错误!"
);
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/util/WordUtil.java
View file @
2aee0f89
...
...
@@ -5,6 +5,7 @@ import cn.wise.sc.cement.business.model.vo.SampleVo;
import
freemarker.template.Configuration
;
import
freemarker.template.Template
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.poi.xwpf.usermodel.XWPFRun
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -69,11 +70,26 @@ public class WordUtil {
List
<
SampleVo
>
list
=
(
List
<
SampleVo
>)
beanParams
.
get
(
"list"
);
if
(
list
!=
null
&&
list
.
size
()>
0
){
for
(
SampleVo
sampleVo
:
list
){
if
(
sampleVo
.
getTeamName
().
contains
(
"<sub>"
)
||
sampleVo
.
getTeamName
().
contains
(
"</sub>"
)
){
String
teamName
=
sampleVo
.
getTeamName
().
replaceAll
(
"<sub>"
,
""
)
.
replaceAll
(
"</sub>"
,
""
);
sampleVo
.
setTeamName
(
teamName
);
String
teamName
=
sampleVo
.
getTeamName
();
if
(
sampleVo
.
getTeamName
().
contains
(
"<sub>"
)
||
sampleVo
.
getTeamName
().
contains
(
"</sub>"
)
){
String
startStr
=
"</w:t></w:r><w:r><w:rPr><w:vertAlign w:val='subscript'/></w:rPr><w:t>"
;
String
endStr
=
"</w:t></w:r><w:r><w:t>"
;
teamName
=
teamName
.
replaceAll
(
"<sub>"
,
startStr
)
.
replaceAll
(
"</sub>"
,
endStr
);
}
if
(
sampleVo
.
getTeamName
().
contains
(
"<sup>"
)
||
sampleVo
.
getTeamName
().
contains
(
"</sup>"
)
){
String
startStr
=
"</w:t></w:r><w:r><w:rPr><w:vertAlign w:val='superscript'/></w:rPr><w:t>"
;
String
endStr
=
"</w:t></w:r><w:r><w:t>"
;
teamName
=
teamName
.
replaceAll
(
"<sup>"
,
startStr
)
.
replaceAll
(
"</sup>"
,
endStr
);
}
sampleVo
.
setTeamName
(
teamName
);
}
}
template
.
process
(
beanParams
,
out
);
...
...
@@ -91,7 +107,6 @@ public class WordUtil {
ServletOutputStream
outputStream
=
response
.
getOutputStream
();
response
.
setCharacterEncoding
(
StandardCharsets
.
UTF_8
.
toString
());
response
.
setContentType
(
"application/octet-stream"
);
response
.
setHeader
(
"fileName"
,
templeName
+
fileExt
.
getName
()
);
templeName
=
new
String
((
templeName
).
getBytes
(
StandardCharsets
.
UTF_8
),
StandardCharsets
.
ISO_8859_1
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
templeName
+
fileExt
.
getName
());
outputStream
.
write
(
buffer
);
...
...
cement-business/target/cement-business-1.0-SNAPSHOT.jar.original
View file @
2aee0f89
No preview for this file type
cement-business/target/maven-archiver/pom.properties
View file @
2aee0f89
#Created by Apache Maven 3.6.
1
#Created by Apache Maven 3.6.
0
version
=
1.0-SNAPSHOT
groupId
=
cn.wise.sc.tjcement
artifactId
=
cement-business
cement-common/common-swagger/target/maven-archiver/pom.properties
View file @
2aee0f89
#Created by Apache Maven 3.6.
1
#Created by Apache Maven 3.6.
0
version
=
1.0-SNAPSHOT
groupId
=
cn.wise.sc.tjcement
artifactId
=
common-swagger
cement-common/common-swagger/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
View file @
2aee0f89
D:\
JavaProject\tianjin-cement\cement-common\common-swagger\src\main\java\cn\wise\sc\cement\common\swagger\SwaggerConfig
.java
D:\
JavaProject\tianjin-cement\cement-common\common-swagger\src\main\java\cn\wise\sc\cement\common\swagger\PackageInfo
.java
D:\
idea_workspases\tianjin-cement\cement-common\common-swagger\src\main\java\cn\wise\sc\cement\common\swagger\PackageInfo
.java
D:\
idea_workspases\tianjin-cement\cement-common\common-swagger\src\main\java\cn\wise\sc\cement\common\swagger\SwaggerConfig
.java
mybatis-generator/target/maven-archiver/pom.properties
View file @
2aee0f89
#Created by Apache Maven 3.6.
1
#Created by Apache Maven 3.6.
0
version
=
1.0-SNAPSHOT
groupId
=
cn.wise.sc.tjcement
artifactId
=
mybatis-generator
mybatis-generator/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
View file @
2aee0f89
D:\
JavaProject
\tianjin-cement\mybatis-generator\src\main\java\cn\wise\sc\cement\mg\GeneratorApplication.java
D:\
idea_workspases
\tianjin-cement\mybatis-generator\src\main\java\cn\wise\sc\cement\mg\GeneratorApplication.java
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