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
7f69ecbe
Commit
7f69ecbe
authored
Jul 22, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refact(注册开通):流程调整
1.接口及流程调整
parent
7ab163f0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
14 deletions
+39
-14
JyjcOpeningApplicationModel.java
...ot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
+3
-0
JyjcOpeningApplicationController.java
...jyjc/biz/controller/JyjcOpeningApplicationController.java
+11
-1
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+19
-13
TzBaseEnterpriseInfo.java
...amos/boot/module/tcm/api/entity/TzBaseEnterpriseInfo.java
+6
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
View file @
7f69ecbe
...
...
@@ -149,4 +149,7 @@ public class JyjcOpeningApplicationModel extends BaseModel {
@ApiModelProperty
(
value
=
"省内详细办公地址"
)
private
String
officeAddress
;
@ApiModelProperty
(
value
=
"单位所在地:陕西省内企业,省外企业"
)
private
String
dataSources
;
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcOpeningApplicationController.java
View file @
7f69ecbe
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
biz
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.common.api.dto.BaseEnterpriseCertDto
;
import
com.yeejoin.amos.boot.module.jyjc.api.dto.InspectionCompanyPublicityDto
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.JyjcOpeningApplication
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JyjcOpeningApplicationModel
;
...
...
@@ -64,6 +66,10 @@ public class JyjcOpeningApplicationController extends BaseController {
// 详情保存逻辑
BeanUtil
.
copyProperties
(
model
,
jyjcOpeningApplicationModel
);
}
if
(
model
.
containsKey
(
"buniessInfo"
)){
List
<
BaseEnterpriseCertDto
>
baseEnterpriseCertDtos
=
JSONArray
.
parseArray
(
JSONObject
.
toJSONString
(
model
.
get
(
"buniessInfo"
)),
BaseEnterpriseCertDto
.
class
);
jyjcOpeningApplicationModel
.
setBaseUnitLicences
(
baseEnterpriseCertDtos
);
}
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
saveOrUpdate
(
jyjcOpeningApplicationModel
,
getCompanyCode
()));
}
...
...
@@ -78,6 +84,10 @@ public class JyjcOpeningApplicationController extends BaseController {
}
else
{
BeanUtil
.
copyProperties
(
jsonObject
,
model
);
}
if
(
jsonObject
.
containsKey
(
"buniessInfo"
)){
List
<
BaseEnterpriseCertDto
>
baseEnterpriseCertDtos
=
JSONArray
.
parseArray
(
JSONObject
.
toJSONString
(
jsonObject
.
get
(
"buniessInfo"
)),
BaseEnterpriseCertDto
.
class
);
model
.
setBaseUnitLicences
(
baseEnterpriseCertDtos
);
}
model
.
setSequenceNbr
(
sequenceNbr
);
JyjcOpeningApplicationModel
data
=
jyjcOpeningApplicationServiceImpl
.
submitApplication
(
model
,
getCompanyCode
());
return
ResponseHelper
.
buildResponse
(
Collections
.
singletonList
(
data
));
...
...
@@ -265,7 +275,7 @@ public class JyjcOpeningApplicationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/v2/users"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询当前登录人、指定人员类型的人员map结构"
,
notes
=
"查询当前登录人、指定人员类型的人员map结构,key为jyjcUserInfos代表检验检测人员,chargeUserInfos为检验检测区域负责人"
)
public
ResponseModel
<
Map
<
String
,
List
<
TzsUserInfoVo
>>>
getBizUserInfosByUnitCodeV2
(
@ApiParam
(
value
=
"人员类型"
,
allowableValues
=
"jy,jc,charge"
)
@RequestParam
String
personType
)
{
public
ResponseModel
<
Map
<
String
,
List
<
TzsUserInfoVo
>>>
getBizUserInfosByUnitCodeV2
(
@ApiParam
(
value
=
"人员类型"
,
allowableValues
=
"jy,jc,charge"
,
defaultValue
=
"jy,jc,charge"
)
@RequestParam
String
personType
)
{
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
getUserListByUnitCodeAndPostV2
(
getCompanyCode
(),
personType
));
}
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
View file @
7f69ecbe
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
biz
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.map.MapBuilder
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
...
...
@@ -442,25 +443,26 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
private
void
setBaseEnterpriseInfo
(
String
unitCode
,
JyjcOpeningApplicationModel
jyjcOpeningApplicationModel
)
{
LambdaQueryWrapper
<
TzBaseEnterpriseInfo
>
enterpriseInfoQueryWrapper
=
new
LambdaQueryWrapper
<>();
enterpriseInfoQueryWrapper
.
eq
(
TzBaseEnterpriseInfo:
:
getUseCode
,
unitCode
);
TzBaseEnterpriseInfo
base
UnitLicenceEntity
=
enterpriseInfoMapper
.
selectOne
(
enterpriseInfoQueryWrapper
);
TzBaseEnterpriseInfo
base
EnterpriseInfo
=
enterpriseInfoMapper
.
selectOne
(
enterpriseInfoQueryWrapper
);
// 获取企业资质
if
(
base
UnitLicenceEntity
!=
null
)
{
jyjcOpeningApplicationModel
.
setUseContact
(
base
UnitLicenceEntity
.
getUseContact
());
jyjcOpeningApplicationModel
.
setContactPhone
(
base
UnitLicenceEntity
.
getContactPhone
());
jyjcOpeningApplicationModel
.
setUnitAddress
(
base
UnitLicenceEntity
.
getFullAddress
());
if
(
StringUtils
.
isNotBlank
(
base
UnitLicenceEntity
.
getIndustrySupervisor
()))
{
DataDictionary
dict
=
dataDictionaryMapper
.
getByCode
(
base
UnitLicenceEntity
.
getIndustrySupervisor
(),
INDUSTRY_SUPERVISOR_DICT_TYPE
);
if
(
base
EnterpriseInfo
!=
null
)
{
jyjcOpeningApplicationModel
.
setUseContact
(
base
EnterpriseInfo
.
getUseContact
());
jyjcOpeningApplicationModel
.
setContactPhone
(
base
EnterpriseInfo
.
getContactPhone
());
jyjcOpeningApplicationModel
.
setUnitAddress
(
base
EnterpriseInfo
.
getFullAddress
());
if
(
StringUtils
.
isNotBlank
(
base
EnterpriseInfo
.
getIndustrySupervisor
()))
{
DataDictionary
dict
=
dataDictionaryMapper
.
getByCode
(
base
EnterpriseInfo
.
getIndustrySupervisor
(),
INDUSTRY_SUPERVISOR_DICT_TYPE
);
if
(
dict
!=
null
)
{
jyjcOpeningApplicationModel
.
setIndustrySupervisor
(
dict
.
getName
());
}
else
{
jyjcOpeningApplicationModel
.
setIndustrySupervisor
(
base
UnitLicenceEntity
.
getIndustrySupervisor
());
jyjcOpeningApplicationModel
.
setIndustrySupervisor
(
base
EnterpriseInfo
.
getIndustrySupervisor
());
}
}
jyjcOpeningApplicationModel
.
setGeographic
(
JyjcGeographicModel
.
builder
().
latitude
(
baseUnitLicenceEntity
.
getLatitude
()).
longitude
(
baseUnitLicenceEntity
.
getLongitude
()).
build
());
jyjcOpeningApplicationModel
.
setLongitude
(
baseUnitLicenceEntity
.
getLongitude
());
jyjcOpeningApplicationModel
.
setLatitude
(
baseUnitLicenceEntity
.
getLatitude
());
if
(
ObjectUtils
.
isNotEmpty
(
baseUnitLicenceEntity
.
getUnitBusinessLicense
()))
{
jyjcOpeningApplicationModel
.
setUnitBusinessLicense
(
JSONArray
.
parseArray
(
baseUnitLicenceEntity
.
getUnitBusinessLicense
(),
AttachmentDto
.
class
));
jyjcOpeningApplicationModel
.
setGeographic
(
JyjcGeographicModel
.
builder
().
latitude
(
baseEnterpriseInfo
.
getLatitude
()).
longitude
(
baseEnterpriseInfo
.
getLongitude
()).
build
());
jyjcOpeningApplicationModel
.
setLongitude
(
baseEnterpriseInfo
.
getLongitude
());
jyjcOpeningApplicationModel
.
setLatitude
(
baseEnterpriseInfo
.
getLatitude
());
jyjcOpeningApplicationModel
.
setDataSources
(
baseEnterpriseInfo
.
getDataSources
());
if
(
ObjectUtils
.
isNotEmpty
(
baseEnterpriseInfo
.
getUnitBusinessLicense
()))
{
jyjcOpeningApplicationModel
.
setUnitBusinessLicense
(
JSONArray
.
parseArray
(
baseEnterpriseInfo
.
getUnitBusinessLicense
(),
AttachmentDto
.
class
));
}
}
}
...
...
@@ -654,6 +656,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
if
(
"0"
.
equals
(
op
))
{
// 通过操作
jyjcOpeningApplication
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
workflowResultDto
.
getNextTaskCode
()).
getPass
());
jyjcOpeningApplication
.
setExpiryDate
(
DateUtil
.
parseDate
(
params
.
get
(
"expiryDate"
).
toString
()));
}
else
{
// 驳回操作
jyjcOpeningApplication
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
workflowResultDto
.
getNextTaskCode
()).
getReject
());
...
...
@@ -663,6 +666,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
jyjcOpeningApplication
.
setNextExecuteUserIds
(
workflowResultDto
.
getNextExecutorUserIds
());
// 更新代办
updateTask
(
jyjcOpeningApplication
,
workflowResultDto
,
op
);
// 更新json
commonService
.
saveOrUpdateHistory
(
jyjcOpeningApplication
.
getOpenBizType
(),
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
params
)),
jyjcOpeningApplication
.
getSequenceNbr
());
}
else
{
// 流程结束
jyjcOpeningApplication
.
setStatus
(
taskCode
);
...
...
@@ -682,6 +687,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
jyjcOpeningApplication
.
setPromoter
(
""
);
jyjcOpeningApplication
.
setNextTaskId
(
""
);
jyjcOpeningApplication
.
setNextExecuteUserIds
(
""
);
jyjcOpeningApplication
.
setExpiryDate
(
DateUtil
.
parseDate
(
params
.
get
(
"expiryDate"
).
toString
()));
// 将审批通过的资质信息写入到企业资质表
this
.
saveLicenseData2Company
(
jyjcOpeningApplication
);
}
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/entity/TzBaseEnterpriseInfo.java
View file @
7f69ecbe
...
...
@@ -213,4 +213,10 @@ public class TzBaseEnterpriseInfo extends BaseEntity {
*/
@TableField
(
value
=
"org_code"
)
protected
String
orgCode
;
/**
* 完整地址
*/
@TableField
(
value
=
"full_address"
)
private
String
fullAddress
;
}
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