Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
f3611a10
Commit
f3611a10
authored
Jan 11, 2021
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: [none] fixUserCount
parent
3c998783
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
3 deletions
+17
-3
RightsSettingBizImpl.java
...oud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
+1
-3
RightsSettingDAO.java
...a/com/pcloud/book/rightsSetting/dao/RightsSettingDAO.java
+2
-0
RightsSettingDAOImpl.java
...oud/book/rightsSetting/dao/impl/RightsSettingDAOImpl.java
+5
-0
RightsSettingMapper.xml
...in/resources/mapper/rightssetting/RightsSettingMapper.xml
+9
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/biz/impl/RightsSettingBizImpl.java
View file @
f3611a10
...
...
@@ -3333,9 +3333,7 @@ public class RightsSettingBizImpl implements RightsSettingBiz {
rightsSettingDto
=
getByLabel
(
adviserDto
.
getTempletId
(),
adviserDto
.
getSecondTempletId
(),
adviserDto
.
getGraLabelId
(),
adviserDto
.
getSubLabelId
(),
adviserDto
.
getVolLabelId
(),
adviserDto
.
getVerLabelId
(),
adviserDto
.
getThirdTempletId
());
if
(
null
==
rightsSettingDto
)
{
RightsSetting
rightsSetting
=
rightsSettingDAO
.
selectByPrimaryKey
(
2267L
);
RightsSettingDto
rightsSettingDto4New
=
new
RightsSettingDto
();
BeanUtils
.
copyProperties
(
rightsSetting
,
rightsSettingDto4New
);
RightsSettingDto
rightsSettingDto4New
=
rightsSettingDAO
.
getDTOById
(
2267L
);
return
rightsSettingDto4New
;
}
Long
rightsSettingId
=
rightsSettingDto
.
getId
();
...
...
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/dao/RightsSettingDAO.java
View file @
f3611a10
...
...
@@ -35,4 +35,6 @@ public interface RightsSettingDAO extends BaseDao<RightsSetting> {
Map
<
Long
,
RightsSettingDto
>
listByBookIds
(
List
<
Long
>
bookIds
);
void
updateUser
(
RightsSetting
rightsSetting
);
RightsSettingDto
getDTOById
(
Long
id
);
}
pcloud-service-book/src/main/java/com/pcloud/book/rightsSetting/dao/impl/RightsSettingDAOImpl.java
View file @
f3611a10
...
...
@@ -92,4 +92,9 @@ public class RightsSettingDAOImpl extends BaseDaoImpl<RightsSetting> implement
public
void
updateUser
(
RightsSetting
rightsSetting
)
{
getSessionTemplate
().
update
(
getStatement
(
"updateUser"
),
rightsSetting
);
}
@Override
public
RightsSettingDto
getDTOById
(
Long
id
)
{
return
super
.
getSqlSession
().
selectOne
(
getStatement
(
"getDTOById"
),
id
);
}
}
pcloud-service-book/src/main/resources/mapper/rightssetting/RightsSettingMapper.xml
View file @
f3611a10
...
...
@@ -422,4 +422,13 @@
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"getDTOById"
parameterType=
"long"
resultMap=
"DtoResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from
rights_setting
where
id = #{id,jdbcType=BIGINT}
</select>
</mapper>
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