Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
69ba1013
Commit
69ba1013
authored
Nov 04, 2020
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
b7ccdb33
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
EntrustController.java
...wise/sc/cement/business/controller/EntrustController.java
+2
-1
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+18
-0
entrust2.ftl
cement-business/src/main/resources/templates/entrust2.ftl
+7
-2
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/controller/EntrustController.java
View file @
69ba1013
...
...
@@ -118,7 +118,8 @@ public class EntrustController {
@ApiOperation
(
"导出委托单"
)
public
void
getReportDetail
(
@PathVariable
(
"entrustId"
)
Integer
entrustId
,
HttpServletResponse
response
)
{
EntrustVo
entrustVo
=
entrustService
.
getDetailCapacity
(
entrustId
).
getData
();
// EntrustVo entrustVo = entrustService.getDetailCapacity(entrustId).getData();
EntrustVo
entrustVo
=
entrustService
.
getBaseDtail
(
entrustId
).
getData
();
if
(
entrustVo
==
null
)
{
return
;
}
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
69ba1013
...
...
@@ -589,6 +589,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
}
}
sampleVo
.
setTeamName
(
teamName
);
sampleVo
.
setSampleDistributionTeamVoList
(
sampleNoDistributionTeamVoList
);
sampleVoList
.
add
(
sampleVo
);
}
}
...
...
@@ -829,6 +830,10 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
if
(
StringUtils
.
isEmpty
(
sampleQuery
.
getCementCode
()))
{
return
BaseResponse
.
errorMsg
(
"本所编号不能为空"
);
}
String
regex
=
"[0-9]{2}\\-[0-9]{4}"
;
if
(!
sampleQuery
.
getCementCode
().
matches
(
regex
)
||
sampleQuery
.
getCementCode
().
length
()
!=
getMaxCementCode
().
getData
().
length
()){
return
BaseResponse
.
errorMsg
(
"本所编号格式不符合规范"
);
}
//前端传入的本所编号
Integer
cementCodeInteger
=
commonService
.
getIntegerCode
(
sampleQuery
.
getCementCode
());
if
(
cementCodeInteger
<=
integerMaxCode
)
{
...
...
@@ -2397,6 +2402,19 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
entrustVo
.
setCheckTeam
(
checkTeam
);
entrustVo
.
setCheckMethodNumber
(
sampleTmp
.
getMethodNumbers
());
}
//查询报告,如果有上传的委托报告,用户可已进行下载
QueryWrapper
<
EntityEnclosure
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
"entity_type"
,
EntityEnclosure
.
EntityType
.
ENTRUST_REPORT
);
wrapper
.
eq
(
"entity_id"
,
entrustVo
.
getId
());
wrapper
.
eq
(
"is_deleted"
,
1
);
List
<
EntityEnclosure
>
entityEnclosureList
=
entityEnclosureMapper
.
selectList
(
wrapper
);
if
(
entityEnclosureList
!=
null
&&
entityEnclosureList
.
size
()>
0
){
EntityEnclosure
entityEnclosure
=
entityEnclosureList
.
get
(
0
);
entrustVo
.
setAlias
(
entityEnclosure
.
getAlias
());
entrustVo
.
setEnclosureUrl
(
entityEnclosure
.
getEnclosureUrl
());
entrustVo
.
setExtName
(
entityEnclosure
.
getExtName
());
}
}
}
pages
.
setRecords
(
list
);
...
...
cement-business/src/main/resources/templates/entrust2.ftl
View file @
69ba1013
...
...
@@ -1980,7 +1980,11 @@
<!-- 这里是开头 -->
<
#list list as iteam>
<w:tr
wsp:rsidR=
"007E280A"
wsp:rsidRPr=
"003B3488"
wsp:rsidTr=
"003B3488"
>
<
#--
<w:tr
wsp:rsidR=
"007E280A"
wsp:rsidRPr=
"003B3488"
wsp:rsidTr=
"003B3488"
>
-->
<TEXTAREA
COLS=
"125"
placeholder=
"选填部分,可以不填写。如果有需要说明的事项,填写在此处!"
style=
"overflow-y:hidden;height:100px;"
onpropertychange=
"this.style.height=this.scrollHeight+'px';"
oninput=
"this.style.height=this.scrollHeight+'px';"
>
<w:trPr>
<w:trHeight
w:h-rule=
"exact"
w:val=
"600"
/>
<w:jc
...
...
@@ -2176,7 +2180,8 @@
</w:r>
</w:p>
</w:tc>
</w:tr>
</TEXTAREA>
<
#--
</w:tr>
-->
<
/#list>
<!-- 这里是结尾 -->
<!-- ################################################################################################## -->
...
...
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