Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
64b09b2e
Commit
64b09b2e
authored
Oct 23, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.仅同步审批通过的合同
parent
00eb6d24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
31 deletions
+9
-31
FileDownloadController.java
.../com/baosight/hggp/controller/FileDownloadController.java
+0
-21
DcContract.java
...m/baosight/hggp/core/extapp/decheng/model/DcContract.java
+6
-0
DcApiUtils.java
...m/baosight/hggp/core/extapp/decheng/utils/DcApiUtils.java
+1
-0
ServiceHGSC101.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC101.java
+2
-10
No files found.
src/main/java/com/baosight/hggp/controller/FileDownloadController.java
View file @
64b09b2e
...
...
@@ -81,26 +81,5 @@ public class FileDownloadController {
response
.
getWriter
().
write
(
msg
);
}
}
/**
* 下载本地文件
*
* @param docId
* @param response
* @throws IOException
*/
@RequestMapping
({
"docId/{docId}"
})
public
void
downloadUrls
(
@PathVariable
String
docId
,
HttpServletResponse
response
)
throws
IOException
{
try
{
Map
dbDm02
=
Iplat4jUtils
.
getDoc02ById
(
docId
);
String
url
=
MapUtils
.
getString
(
dbDm02
,
"url"
);
String
fileName
=
MapUtils
.
getString
(
dbDm02
,
"docName"
);
FileUtils
.
downloadFile
(
new
File
(
url
),
fileName
,
false
,
response
);
}
catch
(
Exception
e
)
{
String
msg
=
String
.
format
(
"下载文件【%s】失败!原因:%s"
,
docId
,
LogUtils
.
getMsg
(
e
));
response
.
getWriter
().
write
(
msg
);
}
}
}
src/main/java/com/baosight/hggp/core/extapp/decheng/model/DcContract.java
View file @
64b09b2e
...
...
@@ -30,4 +30,10 @@ public class DcContract {
* 设计来源
*/
private
String
designSource
;
/**
* 审批状态
*/
private
String
spStatus
;
}
src/main/java/com/baosight/hggp/core/extapp/decheng/utils/DcApiUtils.java
View file @
64b09b2e
...
...
@@ -123,6 +123,7 @@ public class DcApiUtils {
dcContract
.
setHtid
(
dataJson
.
getString
(
"Htid"
));
dcContract
.
setTitle
(
dataJson
.
getString
(
"Title"
));
dcContract
.
setDesignSource
(
dataJson
.
getString
(
"!B__SysCusmf_0_11001_507_0"
));
dcContract
.
setSpStatus
(
dataJson
.
getString
(
"SpStatus"
));
return
dcContract
;
}
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC101.java
View file @
64b09b2e
...
...
@@ -5,8 +5,6 @@ import com.baosight.hggp.core.dao.DaoUtils;
import
com.baosight.hggp.core.extapp.decheng.api.DcOpenApi
;
import
com.baosight.hggp.core.extapp.decheng.model.DcContract
;
import
com.baosight.hggp.core.extapp.decheng.model.DcContractList
;
import
com.baosight.hggp.core.extapp.decheng.model.DcUser
;
import
com.baosight.hggp.core.extapp.decheng.model.DcUserList
;
import
com.baosight.hggp.core.model.Pager
;
import
com.baosight.hggp.core.utils.ThreadUtils
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
...
...
@@ -16,17 +14,11 @@ import com.baosight.hggp.hg.sc.domain.HGSC001;
import
com.baosight.hggp.hg.sc.enums.ProjectSourceEnum
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.wd.constant.HgWdSqlConstant
;
import
com.baosight.hggp.hg.wd.tools.HGWDTools
;
import
com.baosight.hggp.hg.xs.constant.HgXsSqlConstant
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.utils.HGXSUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.DateUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
...
...
@@ -175,9 +167,9 @@ public class ServiceHGSC101 extends ServiceEPBase {
* @param dcContractList
*/
private
void
syncDcContractSingle
(
HGPZ009
dbPz009
,
DcContractList
dcContractList
)
throws
IOException
{
// 获取
用户
详情
// 获取
合同
详情
DcContract
dcContract
=
DcOpenApi
.
contractDetail
(
dcContractList
.
getOrd
());
if
(
dcContract
==
null
)
{
if
(
dcContract
==
null
||
!
"审批通过"
.
equals
(
dcContract
.
getSpStatus
())
)
{
return
;
}
dcContract
.
setOrd
(
dcContractList
.
getOrd
());
...
...
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