Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
Project
Project
Details
Activity
Releases
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
rl
hls-support-rlwx
Commits
e628f3cd
Commit
e628f3cd
authored
Aug 17, 2021
by
5359
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中登网开发
parent
bdff3c2d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
177 additions
and
4 deletions
+177
-4
FndZhongDengHeads.java
...ava/com/hand/app/zhongDengWang/dto/FndZhongDengHeads.java
+109
-0
FndZhongDengHeadsMapper.java
...and/app/zhongDengWang/mapper/FndZhongDengHeadsMapper.java
+8
-0
IFndZhongDengHeadsService.java
.../app/zhongDengWang/service/IFndZhongDengHeadsService.java
+9
-0
FndZhongDengHeadsServiceImpl.java
...ngDengWang/service/impl/FndZhongDengHeadsServiceImpl.java
+13
-0
ZdwWsRequestsServiceImpl.java
.../zhongDengWang/service/impl/ZdwWsRequestsServiceImpl.java
+38
-4
No files found.
core/src/main/java/com/hand/app/zhongDengWang/dto/FndZhongDengHeads.java
0 → 100644
View file @
e628f3cd
package
com
.
hand
.
app
.
zhongDengWang
.
dto
;
/**
* Auto Generated By Hap Code Generator
**/
import
com.hand.hap.mybatis.annotation.ExtensionAttribute
;
import
com.hand.hap.system.dto.BaseDTO
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
@ExtensionAttribute
(
disable
=
true
)
@Table
(
name
=
"FND_ZHONG_DENG_HEADS"
)
public
class
FndZhongDengHeads
extends
BaseDTO
{
@Id
@GeneratedValue
private
Long
headId
;
private
String
contractNumber
;
private
String
bpName
;
private
String
upStage
;
private
String
initRegisterNumber
;
private
String
amendRegisterNumber
;
private
String
extendRegisterNumber
;
private
String
abolishRegisterNumber
;
private
String
authorizationCode
;
public
void
setHeadId
(
Long
headId
)
{
this
.
headId
=
headId
;
}
public
Long
getHeadId
()
{
return
headId
;
}
public
void
setContractNumber
(
String
contractNumber
)
{
this
.
contractNumber
=
contractNumber
;
}
public
String
getContractNumber
()
{
return
contractNumber
;
}
public
void
setBpName
(
String
bpName
)
{
this
.
bpName
=
bpName
;
}
public
String
getBpName
()
{
return
bpName
;
}
public
void
setUpStage
(
String
upStage
)
{
this
.
upStage
=
upStage
;
}
public
String
getUpStage
()
{
return
upStage
;
}
public
void
setInitRegisterNumber
(
String
initRegisterNumber
)
{
this
.
initRegisterNumber
=
initRegisterNumber
;
}
public
String
getInitRegisterNumber
()
{
return
initRegisterNumber
;
}
public
void
setAmendRegisterNumber
(
String
amendRegisterNumber
)
{
this
.
amendRegisterNumber
=
amendRegisterNumber
;
}
public
String
getAmendRegisterNumber
()
{
return
amendRegisterNumber
;
}
public
void
setExtendRegisterNumber
(
String
extendRegisterNumber
)
{
this
.
extendRegisterNumber
=
extendRegisterNumber
;
}
public
String
getExtendRegisterNumber
()
{
return
extendRegisterNumber
;
}
public
void
setAbolishRegisterNumber
(
String
abolishRegisterNumber
)
{
this
.
abolishRegisterNumber
=
abolishRegisterNumber
;
}
public
String
getAbolishRegisterNumber
()
{
return
abolishRegisterNumber
;
}
public
void
setAuthorizationCode
(
String
authorizationCode
)
{
this
.
authorizationCode
=
authorizationCode
;
}
public
String
getAuthorizationCode
()
{
return
authorizationCode
;
}
}
core/src/main/java/com/hand/app/zhongDengWang/mapper/FndZhongDengHeadsMapper.java
0 → 100644
View file @
e628f3cd
package
com
.
hand
.
app
.
zhongDengWang
.
mapper
;
import
com.hand.app.zhongDengWang.dto.FndZhongDengHeads
;
import
com.hand.hap.mybatis.common.Mapper
;
public
interface
FndZhongDengHeadsMapper
extends
Mapper
<
FndZhongDengHeads
>{
}
\ No newline at end of file
core/src/main/java/com/hand/app/zhongDengWang/service/IFndZhongDengHeadsService.java
0 → 100644
View file @
e628f3cd
package
com
.
hand
.
app
.
zhongDengWang
.
service
;
import
com.hand.app.zhongDengWang.dto.FndZhongDengHeads
;
import
com.hand.hap.core.ProxySelf
;
import
com.hand.hap.system.service.IBaseService
;
public
interface
IFndZhongDengHeadsService
extends
IBaseService
<
FndZhongDengHeads
>,
ProxySelf
<
IFndZhongDengHeadsService
>{
}
\ No newline at end of file
core/src/main/java/com/hand/app/zhongDengWang/service/impl/FndZhongDengHeadsServiceImpl.java
0 → 100644
View file @
e628f3cd
package
com
.
hand
.
app
.
zhongDengWang
.
service
.
impl
;
import
com.hand.app.zhongDengWang.dto.FndZhongDengHeads
;
import
com.hand.app.zhongDengWang.service.IFndZhongDengHeadsService
;
import
com.hand.hap.system.service.impl.BaseServiceImpl
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
@Service
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
FndZhongDengHeadsServiceImpl
extends
BaseServiceImpl
<
FndZhongDengHeads
>
implements
IFndZhongDengHeadsService
{
}
\ No newline at end of file
core/src/main/java/com/hand/app/zhongDengWang/service/impl/ZdwWsRequestsServiceImpl.java
View file @
e628f3cd
package
com
.
hand
.
app
.
zhongDengWang
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.hand.app.zhongDengWang.service.IFndZhongDengHeadsService
;
import
com.hand.app.zhongDengWang.service.IZdwWsRequestsService
;
import
com.hand.app.zhongDengWang.dto.ZdwLoginTokenInterface
;
import
com.hand.app.zhongDengWang.dto.FndZhongDengHeads
;
import
com.hand.app.zhongDengWang.dto.FndZhongDengLines
;
import
com.hand.app.zhongDengWang.dto.FndZhongDengBatch
;
import
com.hand.app.zhongDengWang.dto.HlsWsRequests
;
...
...
@@ -10,6 +12,7 @@ import com.hand.app.zhongDengWang.service.IZdwWsRequestsService;
import
com.hand.app.zhongDengWang.mapper.HlsWsRequestsMapper
;
import
com.hand.app.zhongDengWang.service.IFndZhongDengLinesService
;
import
com.hand.app.zhongDengWang.mapper.ZdwLoginTokenInterfaceMapper
;
import
com.hand.app.zhongDengWang.mapper.FndZhongDengHeadsMapper
;
import
com.hand.app.zhongDengWang.mapper.FndZhongDengLinesMapper
;
import
com.hand.app.zhongDengWang.mapper.FndZhongDengBatchMapper
;
import
com.hand.app.zhongDengWang.utils.ClientUtils
;
...
...
@@ -50,8 +53,12 @@ public class ZdwWsRequestsServiceImpl implements IZdwWsRequestsService {
@Autowired
ZdwLoginTokenInterfaceMapper
zdwLoginTokenInterfaceMapper
;
@Autowired
FndZhongDengHeadsMapper
fndZhongDengHeadsMapper
;
@Autowired
FndZhongDengLinesMapper
fndZhongDengLinesMapper
;
@Autowired
IFndZhongDengHeadsService
fndZhongDengHeadsService
;
@Autowired
IFndZhongDengLinesService
fndZhongDengLinesService
;
@Autowired
IZdwWsRequestsService
zdwWsRequestsService
;
...
...
@@ -356,6 +363,7 @@ public class ZdwWsRequestsServiceImpl implements IZdwWsRequestsService {
public
void
registerThread
(
IRequest
request
,
List
<
FndZhongDengBatch
>
fndZhongDengBatches
,
String
loginToken
)
{
JSONObject
resultJson
=
new
JSONObject
();
List
<
FndZhongDengLines
>
fndZhongDengLinesList
=
new
ArrayList
<>();
List
<
FndZhongDengHeads
>
fndZhongDengHeadsList
=
new
ArrayList
<>();
/*根据传入ids循环上报中登网*/
synchronized
(
lock
)
{
for
(
FndZhongDengBatch
batch
:
fndZhongDengBatches
)
{
...
...
@@ -406,10 +414,33 @@ public class ZdwWsRequestsServiceImpl implements IZdwWsRequestsService {
/*成功*/
if
(
Objects
.
nonNull
(
registerResult
)
&&
"001"
.
equalsIgnoreCase
(
registerResult
))
{
FndZhongDengHeads
fndZhongDengHeads
=
new
FndZhongDengHeads
();
fndZhongDengHeads
.
setHeadId
(
fndZhongDengLines
.
getHeadId
());
fndZhongDengHeads
=
fndZhongDengHeadsMapper
.
selectByPrimaryKey
(
fndZhongDengHeads
);
/*回写登记报文号registernumber*/
if
(!
returnJson
.
getJSONObject
(
"feedback"
).
isNull
(
"registernumber"
))
{
String
registerNumber
=
returnJson
.
getJSONObject
(
"feedback"
).
getString
(
"registernumber"
);
String
authorizationCode
=
returnJson
.
getJSONObject
(
"feedback"
).
getString
(
"authorizationcode"
);
fndZhongDengLines
.
setRegisterNumber
(
registerNumber
);
/*初始登记*/
if
(
"01"
.
equalsIgnoreCase
(
fndZhongDengLines
.
getUpStage
()))
{
fndZhongDengHeads
.
setInitRegisterNumber
(
registerNumber
);
}
else
if
(
"02"
.
equalsIgnoreCase
(
fndZhongDengLines
.
getUpStage
()))
{
fndZhongDengHeads
.
setAmendRegisterNumber
(
registerNumber
);
}
else
if
(
"03"
.
equalsIgnoreCase
(
fndZhongDengLines
.
getUpStage
()))
{
fndZhongDengHeads
.
setExtendRegisterNumber
(
registerNumber
);
}
else
if
(
"05"
.
equalsIgnoreCase
(
fndZhongDengLines
.
getUpStage
()))
{
fndZhongDengHeads
.
setAbolishRegisterNumber
(
registerNumber
);
}
}
/*回写修改码authorizationcode*/
if
(!
returnJson
.
getJSONObject
(
"feedback"
).
isNull
(
"authorizationcode"
))
{
String
authorizationCode
=
returnJson
.
getJSONObject
(
"feedback"
).
getString
(
"authorizationcode"
);
fndZhongDengLines
.
setAuthorizationCode
(
authorizationCode
);
fndZhongDengHeads
.
setAuthorizationCode
(
authorizationCode
);
}
fndZhongDengHeads
.
set__status
(
DTOStatus
.
UPDATE
);
fndZhongDengHeadsList
.
add
(
fndZhongDengHeads
);
fndZhongDengLines
.
setUpStatus
(
"SUCCESS"
);
fndZhongDengLines
.
setReturnMsg
(
"上报成功"
);
/*失败*/
...
...
@@ -435,6 +466,9 @@ public class ZdwWsRequestsServiceImpl implements IZdwWsRequestsService {
}
}
if
(
fndZhongDengHeadsList
.
size
()
>
0
)
{
fndZhongDengHeadsService
.
batchUpdate
(
request
,
fndZhongDengHeadsList
);
}
if
(
fndZhongDengLinesList
.
size
()
>
0
)
{
fndZhongDengLinesService
.
batchUpdate
(
request
,
fndZhongDengLinesList
);
}
...
...
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