Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
16a51fc7
Commit
16a51fc7
authored
Jan 17, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增返回参数
parent
69dc7a6e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
10 deletions
+19
-10
BaseEntity.java
...a/com/yeejoin/amos/boot/biz/common/entity/BaseEntity.java
+1
-1
JgChangeRegistrationName.java
...s/boot/module/jg/api/entity/JgChangeRegistrationName.java
+7
-0
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+2
-2
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+1
-1
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+3
-2
JgChangeRegistrationNameServiceImpl.java
...biz/service/impl/JgChangeRegistrationNameServiceImpl.java
+5
-4
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/entity/BaseEntity.java
View file @
16a51fc7
...
...
@@ -15,7 +15,7 @@ import java.util.Date;
* @author DELL
*/
@Data
public
class
BaseEntity
implements
Serializable
{
public
class
BaseEntity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgChangeRegistrationName.java
View file @
16a51fc7
...
...
@@ -2,10 +2,15 @@ package com.yeejoin.amos.boot.module.jg.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
/**
...
...
@@ -79,6 +84,8 @@ public class JgChangeRegistrationName extends BaseEntity {
/**
* 创建时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
@TableField
(
"create_date"
)
private
Date
createDate
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/CommonController.java
View file @
16a51fc7
...
...
@@ -189,8 +189,8 @@ public class CommonController extends BaseController {
public
ResponseModel
<
Object
>
save
(
@RequestParam
(
value
=
"submitType"
,
required
=
false
)
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
map
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
commonService
.
invokeBusinessProcess
(
submitType
,
map
,
reginParams
);
return
ResponseHelper
.
buildResponse
(
""
);
Object
result
=
commonService
.
invokeBusinessProcess
(
submitType
,
map
,
reginParams
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/ICommonService.java
View file @
16a51fc7
...
...
@@ -42,5 +42,5 @@ public interface ICommonService {
List
<
Map
<
String
,
Object
>>
superviseBusinessCategory
(
String
type
);
void
invokeBusinessProcess
(
String
submitType
,
Map
<
String
,
Object
>
obj
,
ReginParams
reginParams
);
Object
invokeBusinessProcess
(
String
submitType
,
Map
<
String
,
Object
>
obj
,
ReginParams
reginParams
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/CommonServiceImpl.java
View file @
16a51fc7
...
...
@@ -530,7 +530,7 @@ public class CommonServiceImpl implements ICommonService {
@Override
public
void
invokeBusinessProcess
(
String
submitType
,
Map
<
String
,
Object
>
map
,
ReginParams
reginParams
)
{
public
Object
invokeBusinessProcess
(
String
submitType
,
Map
<
String
,
Object
>
map
,
ReginParams
reginParams
)
{
Map
<
String
,
Object
>
basicObj
=
(
Map
<
String
,
Object
>)
map
.
get
(
basic
);
Map
<
String
,
Object
>
noticeObj
=
(
Map
<
String
,
Object
>)
map
.
get
(
notice
);
Map
<
String
,
Object
>
techInfoObj
=
(
Map
<
String
,
Object
>)
map
.
get
(
techInfo
);
...
...
@@ -615,7 +615,7 @@ public class CommonServiceImpl implements ICommonService {
noticeObj
.
put
(
"receiveOrgCode"
,
!
ObjectUtils
.
isEmpty
(
basicObj
.
get
(
"receiveOrgCreditCode"
))
?
String
.
valueOf
(
basicObj
.
get
(
"receiveOrgCreditCode"
))
:
String
.
valueOf
(
basicObj
.
get
(
"receiveOrgCreditCode1"
)));
provideMap
.
put
(
GMBG_PAGE_ID
,
noticeObj
);
JSONObject
jsonObject
=
new
JSONObject
(
provideMap
);
jgChangeRegistrationNameService
.
save2
(
submitType
,
jsonObject
);
return
jgChangeRegistrationNameService
.
save2
(
submitType
,
jsonObject
);
}
else
if
(
type
.
equals
(
ApplicationFormTypeEnum
.
SBQY
.
getBusinessCode
())
||
type
.
equals
(
ApplicationFormTypeEnum
.
SBTY
.
getBusinessCode
()))
{
noticeObj
.
put
(
"submit"
,
submitType
);
noticeObj
.
put
(
"formType"
,
"add"
);
...
...
@@ -623,6 +623,7 @@ public class CommonServiceImpl implements ICommonService {
JSONObject
jsonObject
=
new
JSONObject
(
noticeObj
);
jgEnableDisableServiceImpl
.
saveOrUpdate
(
jsonObject
,
reginParams
);
}
return
null
;
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgChangeRegistrationNameServiceImpl.java
View file @
16a51fc7
...
...
@@ -112,13 +112,13 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
save2
(
String
submitType
,
JSONObject
requestParam
)
{
public
JgChangeRegistrationName
save2
(
String
submitType
,
JSONObject
requestParam
)
{
Map
<
String
,
JSONObject
>
jgRegistrationInfoMap
=
(
Map
<
String
,
JSONObject
>)
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
requestParam
),
Map
.
class
);
this
.
save
(
submitType
,
jgRegistrationInfoMap
);
return
this
.
save
(
submitType
,
jgRegistrationInfoMap
);
}
public
void
save
(
String
submitType
,
Map
<
String
,
JSONObject
>
jgRegistrationInfoMap
)
{
public
JgChangeRegistrationName
save
(
String
submitType
,
Map
<
String
,
JSONObject
>
jgRegistrationInfoMap
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
[]
taskName
=
new
String
[]{
"流程结束"
};
JSONObject
jgRegistrationInfo
=
jgRegistrationInfoMap
.
get
(
"jgRegistrationInfo"
);
...
...
@@ -131,7 +131,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
}
List
<
String
>
applyNoList
=
listResponseModel
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
applyNoList
))
{
return
;
return
null
;
}
List
<
ProcessTaskDTO
>
processTasks
=
new
ArrayList
<>();
// 判断当前是否为提交
...
...
@@ -190,6 +190,7 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
this
.
save
(
dto
);
// 创建代办
this
.
createTaskModel
(
dto
,
taskName
[
0
],
submitType
,
nextUserIds
);
return
dto
;
}
private
String
getReceiveCompanyCode
(
JgChangeRegistrationNameDto
model
)
{
...
...
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