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
c25ac964
Commit
c25ac964
authored
4 years ago
by
邓实川
Committed by
chenzg
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子合同优化,员工统计图籍贯查询
parent
93021197
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
src/main/java/cn/timer/api/controller/dzht/DzhtController2.java
+8
-6
src/main/java/cn/timer/api/controller/dzht/cn/tign/hz/helper/AccountHelper.java
+2
-1
src/main/resources/mapping/yggl/YgglMainEmpMapper.xml
+4
-4
No files found.
src/main/java/cn/timer/api/controller/dzht/DzhtController2.java
View file @
c25ac964
...
...
@@ -172,17 +172,19 @@ public class DzhtController2 {
TokenHelper
.
getTokenData
();
j
=
AccountHelper
.
createOrgAcct
(
thirdPartyUserId
,
creator
,
qyzc
.
getName
(),
qyzc
.
getIdType
(),
qyzc
.
getIdNumber
());
Integer
code
=
j
.
getInteger
(
"code"
);
if
(
code
!=
null
&&
code
!=
0
)
return
ResultUtil
.
error
(
j
.
getString
(
"message"
));
}
catch
(
DefineException
e
)
{
e
.
printStackTrace
();
return
ResultUtil
.
error
();
e
.
getStackTrace
();
}
String
orgId
=
j
.
getString
(
"orgId"
);
String
accountId
=
j
.
getString
(
"accountId"
);
qyzc
.
setOrgId
(
orgId
);
qyzc
.
setOrgCode
(
userBean
.
getOrgCode
());
if
(
j
.
getString
(
"accountId"
)
!=
null
)
{
if
(
accountId
!=
null
)
qyzc
.
insert
();
}
return
ResultUtil
.
data
(
orgId
,
"创建成功"
);
}
...
...
@@ -204,8 +206,8 @@ public class DzhtController2 {
@GetMapping
(
"/getOrganizations"
)
@ApiOperation
(
value
=
"查询企业信息s"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
getOrganizations
(
@CurrentUser
UserBean
userBean
)
{
List
<
QyzxEmpEntAsso
>
list
=
QyzxEmpEntAsso
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
QyzxEmpEntAsso
>().
eq
(
"emp_num"
,
userBean
.
getEmpNum
()));
List
<
QyzxEmpEntAsso
>
list
=
QyzxEmpEntAsso
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
QyzxEmpEntAsso
>().
lambda
().
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
userBean
.
getEmpNum
()));
List
<
Integer
>
orgCodeList
=
Lists
.
transform
(
list
,
newList
->
newList
.
getOrgCode
());
List
<
String
>
orgIds
=
new
ArrayList
<
String
>();
for
(
Integer
orgCode
:
orgCodeList
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/dzht/cn/tign/hz/helper/AccountHelper.java
View file @
c25ac964
...
...
@@ -207,7 +207,8 @@ public class AccountHelper {
String
param
=
AccountParamUtil
.
createOrgAcctParam
(
thirdPartyUserId
,
creatorId
,
name
,
idType
,
idNumber
);
JSONObject
json
=
HttpHelper
.
doCommHttp
(
RequestType
.
POST
,
ConfigConstant
.
createOrgAcc_URL
(),
param
);
return
JSONHelper
.
castDataJson
(
json
,
JSONObject
.
class
);
return
json
;
// return JSONHelper.castDataJson(json,JSONObject.class);
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/mapping/yggl/YgglMainEmpMapper.xml
View file @
c25ac964
...
...
@@ -384,17 +384,17 @@
<!-- 籍贯统计(省份)查询 -->
<select
id=
"queryNativeplace"
resultType=
"cn.timer.api.dto.yggl.YgglCartogramDto"
>
SELECT
IFNULL(c.
name,'null') province,count(y.jg
) provinceNum
IFNULL(c.
city_name,'null') province,count(y.jg_id
) provinceNum
FROM
yggl_main_emp y
LEFT JOIN
c
ity_class
c
c
ommon_area
c
ON
y.jg
= c.
id
y.jg
_id = c.code_
id
WHERE
org_code = #{orgCode}
GROUP BY
c.name
c.
city_
name
</select>
<!-- 员工工龄分布查询 -->
...
...
This diff is collapsed.
Click to expand it.
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