Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
079faf5b
Commit
079faf5b
authored
Jun 15, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业务组判空
parent
64344ae5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
src/main/java/cn/timer/api/controller/crm/CrmController.java
+11
-8
src/main/java/cn/timer/api/controller/dzht/DzhtController2.java
+8
-3
No files found.
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
079faf5b
...
@@ -103,12 +103,12 @@ public class CrmController {
...
@@ -103,12 +103,12 @@ public class CrmController {
return
getYg
(
orgCode
,
empNum
).
getName
();
return
getYg
(
orgCode
,
empNum
).
getName
();
}
}
private
Integer
getQyzxManager
(
Integer
orgCode
,
Integer
empNum
)
{
//
private Integer getQyzxManager(Integer orgCode, Integer empNum) {
return
YgglMainEmp
.
builder
().
build
()
//
return YgglMainEmp.builder().build()
.
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getOrgCode
,
orgCode
)
//
.selectOne(new QueryWrapper<YgglMainEmp>().lambda().eq(YgglMainEmp::getOrgCode, orgCode)
.
eq
(
YgglMainEmp:
:
getEmpNum
,
empNum
).
select
(
YgglMainEmp:
:
getIsManager
))
//
.eq(YgglMainEmp::getEmpNum, empNum).select(YgglMainEmp::getIsManager))
.
getIsManager
();
//
.getIsManager();
}
//
}
@GetMapping
(
"getIndustry"
)
@GetMapping
(
"getIndustry"
)
@ApiOperation
(
value
=
"获取行业列表"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"获取行业列表"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
...
@@ -220,8 +220,11 @@ public class CrmController {
...
@@ -220,8 +220,11 @@ public class CrmController {
public
Result
<
Object
>
getBusinessGroup
(
@CurrentUser
UserBean
userBean
)
{
public
Result
<
Object
>
getBusinessGroup
(
@CurrentUser
UserBean
userBean
)
{
Integer
nowEmpNum
=
getEmpNum
(
userBean
);
Integer
nowEmpNum
=
getEmpNum
(
userBean
);
Integer
orgCode
=
getOrgCode
(
userBean
);
Integer
orgCode
=
getOrgCode
(
userBean
);
Integer
isManager
=
getQyzxManager
(
orgCode
,
nowEmpNum
);
if
(
isManager
!=
null
&&
(
isManager
==
1
||
isManager
==
2
))
{
YgglMainEmp
yg
=
YgglMainEmp
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getOrgCode
,
orgCode
)
.
eq
(
YgglMainEmp:
:
getEmpNum
,
nowEmpNum
).
select
(
YgglMainEmp:
:
getIsManager
));
if
(
yg
!=
null
&&
yg
.
getIsManager
()
!=
null
&&
(
yg
.
getIsManager
()
==
1
||
yg
.
getIsManager
()
==
2
))
{
List
<
CrmBusinessGroup
>
list
=
CrmBusinessGroup
.
builder
().
build
()
List
<
CrmBusinessGroup
>
list
=
CrmBusinessGroup
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
CrmBusinessGroup
>().
lambda
()
.
selectList
(
new
QueryWrapper
<
CrmBusinessGroup
>().
lambda
()
...
...
src/main/java/cn/timer/api/controller/dzht/DzhtController2.java
View file @
079faf5b
...
@@ -201,9 +201,14 @@ public class DzhtController2 {
...
@@ -201,9 +201,14 @@ public class DzhtController2 {
@PostMapping
(
"/orgTemplate"
)
@PostMapping
(
"/orgTemplate"
)
@ApiOperation
(
value
=
"创建机构模板印章"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"创建机构模板印章"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
orgTemplate
(
@CurrentUser
UserBean
userBean
,
@RequestBody
DzhtAssoQyyz
qyyz
)
{
public
Result
<
Object
>
orgTemplate
(
@CurrentUser
UserBean
userBean
,
@RequestBody
DzhtAssoQyyz
qyyz
)
{
String
orgId
=
DzhtAssoQyzc
.
builder
().
build
().
selectOne
(
// new QueryWrapper<DzhtAssoQyzc>().eq("third_party_user_id", qyyz.getThirdPartyUserId()).select("org_id"))
DzhtAssoQyzc
yz
=
DzhtAssoQyzc
.
builder
().
build
()
new
QueryWrapper
<
DzhtAssoQyzc
>().
eq
(
"org_code"
,
userBean
.
getOrgCode
()).
select
(
"org_id"
)).
getOrgId
();
// 查询orgId
.
selectOne
(
new
QueryWrapper
<
DzhtAssoQyzc
>().
eq
(
"org_code"
,
userBean
.
getOrgCode
()).
select
(
"org_id"
));
if
(
yz
==
null
)
{
return
ResultUtil
.
error
(
"请先在签约主体中进行企业认证"
);
}
String
orgId
=
yz
.
getOrgId
();
// 查询orgId
// String orgId = "dfd84b9a58d345ea90f6711bad853435";// 测试公司账户
// String orgId = "dfd84b9a58d345ea90f6711bad853435";// 测试公司账户
// 印章参数
// 印章参数
String
alias
=
qyyz
.
getAlias
();
String
alias
=
qyyz
.
getAlias
();
...
...
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