Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 41e6e700
authored
Nov 13, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 技能组关联关系为逻辑删除
1 parent
631ecbab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoDao.java
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerSkillGroupDao.java
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoDao.java
View file @
41e6e70
...
...
@@ -71,7 +71,7 @@ public interface EngineerInfoDao extends JpaRepository<EngineerInfoEntity, Integ
" LEFT JOIN engineer_info ei ON esg.engineer_code = ei.engineer_code\n"
+
" LEFT JOIN org_team_engineer ote ON ote.engineer_code = ei.engineer_code \n"
+
" WHERE si.brand = :brand AND si.type= :productType AND si.skill = :skill \n"
+
" AND ote.team_id = :teamId AND ote.status = 1"
,
nativeQuery
=
true
)
" AND ote.team_id = :teamId AND ote.status = 1
AND esg.status = 1
"
,
nativeQuery
=
true
)
Set
<
EngineerInfoEntity
>
listByBrandAndTypeAndSkillAndTeamId
(
@Param
(
"brand"
)
String
brand
,
@Param
(
"productType"
)
String
productType
,
@Param
(
"skill"
)
String
skill
,
@Param
(
"teamId"
)
String
teamId
);
...
...
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerSkillGroupDao.java
View file @
41e6e70
...
...
@@ -30,6 +30,6 @@ public interface EngineerSkillGroupDao extends JpaRepository<EngineerSkillGroupE
* @return 工程师技能组信息
*/
@Query
(
value
=
"SELECT esg.* FROM engineer_skill_group esg LEFT JOIN skill_group sg ON sg.skill_group_code = esg.skill_group_code \n"
+
" WHERE esg.engineer_code = :engineerCode"
,
nativeQuery
=
true
)
" WHERE esg.engineer_code = :engineerCode
AND esg.status = 1
"
,
nativeQuery
=
true
)
List
<
EngineerSkillGroupEntity
>
getEngineerSkillGroup
(
String
engineerCode
);
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment