@@ -37,7 +36,7 @@ public interface BNoticeRepository extends BaseMapper<BNotice> {
...
@@ -37,7 +36,7 @@ public interface BNoticeRepository extends BaseMapper<BNotice> {
List<BNotice>queryBNotices(BNoticebNotice);
List<BNotice>queryBNotices(BNoticebNotice);
/**
/**
* 分页查询 bNotice
* 插入 bNotice
*
*
*/
*/
@Insert("<script>insert into b_notice(business_id,info_type,info_text,create_date,update_date,del_flag,recipient_id,read_flag,flag,update_by,create_by,sender_id,corp_id) values\n"+
@Insert("<script>insert into b_notice(business_id,info_type,info_text,create_date,update_date,del_flag,recipient_id,read_flag,flag,update_by,create_by,sender_id,corp_id) values\n"+
...
@@ -47,5 +46,28 @@ public interface BNoticeRepository extends BaseMapper<BNotice> {
...
@@ -47,5 +46,28 @@ public interface BNoticeRepository extends BaseMapper<BNotice> {
" </foreach>\n"+
" </foreach>\n"+
"</script>")
"</script>")
intinsertBach(List<BNotice>list);
intinsertBach(List<BNotice>list);
@Update({"<script>",
"update b_notice",
" <set>",
" <if test=\"bNotice.updateBy !=null and bNotice.updateBy !=''\">update_by=#{bNotice.updateBy}, </if> ",