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
f6cda6d8
Commit
f6cda6d8
authored
Aug 20, 2019
by
郑永强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
692022f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
AdNewsBizImpl.java
...n/java/com/pcloud/book/adnews/biz/impl/AdNewsBizImpl.java
+4
-7
AdNewsFacadeImpl.java
.../com/pcloud/book/adnews/facade/impl/AdNewsFacadeImpl.java
+0
-3
AdNewsMapper.xml
...ce-book/src/main/resources/mapper/adnews/AdNewsMapper.xml
+1
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/adnews/biz/impl/AdNewsBizImpl.java
View file @
f6cda6d8
...
@@ -585,15 +585,12 @@ public class AdNewsBizImpl implements AdNewsBiz {
...
@@ -585,15 +585,12 @@ public class AdNewsBizImpl implements AdNewsBiz {
adNewsWechatChoose
.
setUpdateUser
(
partyId
);
adNewsWechatChoose
.
setUpdateUser
(
partyId
);
adNewsWechatChooses
.
add
(
adNewsWechatChoose
);
adNewsWechatChooses
.
add
(
adNewsWechatChoose
);
}
}
// //校验重复添加
// Integer count = adNewsWechatChooseDao.getCountByAdNewsWechatIdsAndPartyId(adNewsWechatIds, partyId);
// if (count > 0) {
// throw new BookBizException(BookBizException.PARAM_IS_ERROR, "请勿重复添加!");
// }
// 移除编辑之前的选择
// 移除编辑之前的选择
adNewsWechatChooseDao
.
deleteAdNewsWechatChooseByPartyId
(
partyId
);
adNewsWechatChooseDao
.
deleteAdNewsWechatChooseByPartyId
(
partyId
);
// 重新建立关系
if
(!
ListUtils
.
isEmpty
(
adNewsWechatChooses
)){
adNewsWechatChooseDao
.
batchInsert
(
adNewsWechatChooses
);
// 重新建立关系
adNewsWechatChooseDao
.
batchInsert
(
adNewsWechatChooses
);
}
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/adnews/facade/impl/AdNewsFacadeImpl.java
View file @
f6cda6d8
...
@@ -149,9 +149,6 @@ public class AdNewsFacadeImpl implements AdNewsFacade {
...
@@ -149,9 +149,6 @@ public class AdNewsFacadeImpl implements AdNewsFacade {
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"每页条数不能为空且必须大于0!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"每页条数不能为空且必须大于0!"
);
}
}
adNewsListParam
.
setPartyId
(
partyId
);
adNewsListParam
.
setPartyId
(
partyId
);
// 将2019-08-12时间转换为 2019-08-12 23:59:59
if
(
adNewsListParam
.
getEndTime
()
!=
null
)
adNewsListParam
.
setEndTime
(
adNewsListParam
.
getEndTime
().
concat
(
" 23:59:59"
));
return
new
ResponseDto
<>(
adNewsBiz
.
getAdNewsList
(
adNewsListParam
));
return
new
ResponseDto
<>(
adNewsBiz
.
getAdNewsList
(
adNewsListParam
));
}
}
...
...
pcloud-service-book/src/main/resources/mapper/adnews/AdNewsMapper.xml
View file @
f6cda6d8
...
@@ -146,6 +146,7 @@
...
@@ -146,6 +146,7 @@
${item}
${item}
</foreach>
</foreach>
</if>
</if>
INNER JOIN ad_news_wechat_choose c ON b.id=c.ad_news_wechat_id and c.create_user=#{partyId} and c.is_delete=0
where 1=1
where 1=1
<if
test=
"title!=null"
>
<if
test=
"title!=null"
>
AND a.title like concat('%', #{title},'%')
AND a.title like concat('%', #{title},'%')
...
...
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