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
a4d08b72
Commit
a4d08b72
authored
Jun 20, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录部门岗位名返回
parent
164073cd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
13 deletions
+39
-13
src/main/java/cn/timer/api/controller/LoginController.java
+16
-0
src/main/java/cn/timer/api/controller/crm/CrmController.java
+9
-8
src/main/java/cn/timer/api/dto/login/QysDto.java
+9
-2
src/main/resources/mapping/qyzx/QyzxEmpLoginMapper.xml
+5
-3
No files found.
src/main/java/cn/timer/api/controller/LoginController.java
View file @
a4d08b72
...
@@ -670,6 +670,22 @@ public class LoginController {
...
@@ -670,6 +670,22 @@ public class LoginController {
qyzxEmpLogin1
.
setUserType
(
eEA
!=
null
?
eEA
.
getUserType
()
:
null
);
qyzxEmpLogin1
.
setUserType
(
eEA
!=
null
?
eEA
.
getUserType
()
:
null
);
List
<
QysDto
>
qys
=
qyzxEmpLoginMapper
.
getQys
(
qyzxEmpLogin1
.
getId
());
List
<
QysDto
>
qys
=
qyzxEmpLoginMapper
.
getQys
(
qyzxEmpLogin1
.
getId
());
// 查询部门放进去
for
(
QysDto
qysDto
:
qys
)
{
Integer
bmgwId
=
qysDto
.
getBmgwId
();
ZzglBmgwM
gw
=
ZzglBmgwM
.
builder
().
build
()
.
selectOne
(
new
LambdaQueryWrapper
<
ZzglBmgwM
>().
eq
(
ZzglBmgwM:
:
getId
,
bmgwId
));
if
(
gw
!=
null
)
{
qysDto
.
setGwName
(
gw
.
getName
());
if
(
gw
.
getUpId
()
!=
null
)
{
Integer
upId
=
gw
.
getUpId
();
ZzglBmgwM
bm
=
ZzglBmgwM
.
builder
().
build
()
.
selectOne
(
new
LambdaQueryWrapper
<
ZzglBmgwM
>().
eq
(
ZzglBmgwM:
:
getId
,
upId
));
qysDto
.
setBmName
(
bm
.
getName
());
}
}
}
if
(
qys
.
size
()
==
0
)
if
(
qys
.
size
()
==
0
)
return
ResultUtil
.
error
(
"没有任何公司可以查看!"
);
return
ResultUtil
.
error
(
"没有任何公司可以查看!"
);
qyzxEmpLogin1
.
setQys
(
qys
);
qyzxEmpLogin1
.
setQys
(
qys
);
...
...
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
a4d08b72
...
@@ -219,7 +219,6 @@ public class CrmController {
...
@@ -219,7 +219,6 @@ public class CrmController {
// YgglMainEmp yg = YgglMainEmp.builder().build()
// YgglMainEmp yg = YgglMainEmp.builder().build()
// .selectOne(new QueryWrapper<YgglMainEmp>().lambda().eq(YgglMainEmp::getOrgCode, orgCode)
// .selectOne(new QueryWrapper<YgglMainEmp>().lambda().eq(YgglMainEmp::getOrgCode, orgCode)
// .eq(YgglMainEmp::getEmpNum, nowEmpNum).select(YgglMainEmp::getIsManager));
// .eq(YgglMainEmp::getEmpNum, nowEmpNum).select(YgglMainEmp::getIsManager));
// TODO
QyzxEmpEntAsso
qyzxEmpEntAsso
=
QyzxEmpEntAsso
.
builder
().
build
()
QyzxEmpEntAsso
qyzxEmpEntAsso
=
QyzxEmpEntAsso
.
builder
().
build
()
.
selectOne
(
new
LambdaQueryWrapper
<
QyzxEmpEntAsso
>().
eq
(
QyzxEmpEntAsso:
:
getOrgCode
,
orgCode
)
.
selectOne
(
new
LambdaQueryWrapper
<
QyzxEmpEntAsso
>().
eq
(
QyzxEmpEntAsso:
:
getOrgCode
,
orgCode
)
.
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
nowEmpNum
));
.
eq
(
QyzxEmpEntAsso:
:
getEmpNum
,
nowEmpNum
));
...
@@ -365,13 +364,15 @@ public class CrmController {
...
@@ -365,13 +364,15 @@ public class CrmController {
crmClientData
.
setCreateUser
(
empNum
);
crmClientData
.
setCreateUser
(
empNum
);
SysRegion
district
=
getSysRegion
(
crmClientData
.
getDistrictId
());
SysRegion
district
=
getSysRegion
(
crmClientData
.
getDistrictId
());
// crmClientData.setZipCode(district.getZipCode());
// crmClientData.setZipCode(district.getZipCode());
crmClientData
.
setDistrict
(
district
.
getRegionName
());
if
(
district
!=
null
)
{
SysRegion
city
=
getSysRegion
(
district
.
getRegionCode
());
crmClientData
.
setDistrict
(
district
.
getRegionName
());
crmClientData
.
setCity
(
city
.
getRegionName
());
SysRegion
city
=
getSysRegion
(
district
.
getRegionCode
());
crmClientData
.
setCityId
(
city
.
getKeyId
());
crmClientData
.
setCity
(
city
.
getRegionName
());
SysRegion
province
=
getSysRegion
(
city
.
getRegionCode
());
crmClientData
.
setCityId
(
city
.
getKeyId
());
crmClientData
.
setProvinceId
(
province
.
getKeyId
());
SysRegion
province
=
getSysRegion
(
city
.
getRegionCode
());
crmClientData
.
setProvince
(
province
.
getRegionName
());
crmClientData
.
setProvinceId
(
province
.
getKeyId
());
crmClientData
.
setProvince
(
province
.
getRegionName
());
}
crmClientData
.
setBelongUserName
(
getEmpName
(
orgCode
,
crmClientData
.
getBelongUser
()));
crmClientData
.
setBelongUserName
(
getEmpName
(
orgCode
,
crmClientData
.
getBelongUser
()));
crmClientData
.
setOrgCode
(
getOrgCode
(
userBean
));
crmClientData
.
setOrgCode
(
getOrgCode
(
userBean
));
...
...
src/main/java/cn/timer/api/dto/login/QysDto.java
View file @
a4d08b72
...
@@ -61,12 +61,19 @@ public class QysDto implements Serializable{
...
@@ -61,12 +61,19 @@ public class QysDto implements Serializable{
private
String
enName
;
private
String
enName
;
@ApiModelProperty
(
value
=
"部门岗位编号"
,
example
=
"123"
)
@ApiModelProperty
(
value
=
"部门岗位编号"
,
example
=
"123"
)
private
Integer
bmgwId
;
private
Integer
bmgwId
;
@ApiModelProperty
(
value
=
"部门名"
,
example
=
"123"
)
private
String
bmName
;
@ApiModelProperty
(
value
=
"岗位名"
,
example
=
"123"
)
private
String
gwName
;
@ApiModelProperty
(
value
=
"在企业中的员工工号"
,
example
=
"123"
)
@ApiModelProperty
(
value
=
"在企业中的员工工号"
,
example
=
"123"
)
private
Integer
jobNum
;
private
Integer
jobNum
;
@ApiModelProperty
(
value
=
"性别"
,
example
=
"女"
)
@ApiModelProperty
(
value
=
"性别"
,
example
=
"女"
)
private
String
sex
;
private
String
sex
;
@ApiModelProperty
(
value
=
"是否企业中心账号"
,
example
=
"0-否 1-主账号 2-子账号"
)
//
@ApiModelProperty(value = "是否企业中心账号", example = "0-否 1-主账号 2-子账号")
private
Integer
isManager
;
//
private Integer isManager;
}
}
src/main/resources/mapping/qyzx/QyzxEmpLoginMapper.xml
View file @
a4d08b72
...
@@ -38,14 +38,16 @@
...
@@ -38,14 +38,16 @@
<result
column=
"bmgw_id"
property=
"bmgwId"
/>
<result
column=
"bmgw_id"
property=
"bmgwId"
/>
<result
column=
"job_num"
property=
"jobNum"
/>
<result
column=
"job_num"
property=
"jobNum"
/>
<result
column=
"sex"
property=
"sex"
/>
<result
column=
"sex"
property=
"sex"
/>
<
result
column=
"is_manager"
property=
"isManager"
/
>
<
!-- <result column="is_manager" property="isManager" /> --
>
</resultMap>
</resultMap>
<select
id=
"getQys"
resultMap=
"qysdto"
>
<select
id=
"getQys"
resultMap=
"qysdto"
>
select b.id,b.name,b.credit_code,b.codes,b.is_on_stock,b.logo_url,b.register_time,b.end_time,b.size,b.level,a.user_type,b.auth_type,a.status
select b.id,b.name,b.credit_code,b.codes,b.is_on_stock,b.logo_url,b.register_time,
,c.name empname,c.english_name,c.bmgw_id,c.job_num,c.sex,c.is_manager
b.end_time,b.size,b.level,a.user_type,b.auth_type,a.status,
c.name empname,c.english_name,c.bmgw_id,c.job_num,c.sex,c.is_manager
from qyzx_emp_ent_asso a
from qyzx_emp_ent_asso a
left join qyzx_ent_info_m b on a.org_code = b.id
left join qyzx_ent_info_m b on a.org_code = b.id
left join yggl_main_emp c on a.emp_num = c.emp_num and a.org_code = c.org_code
left join yggl_main_emp c on a.emp_num = c.emp_num and a.org_code = c.org_code
<!-- left join zzgl_bmgw_m d on d.id = c.bmgw_id -->
where a.emp_num = #{emp_num}
where a.emp_num = #{emp_num}
order by a.status desc,a.user_type desc,b.id
order by a.status desc,a.user_type desc,b.id
</select>
</select>
...
...
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