Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
sc_media
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
sc_media
Commits
f5d05938
提交
f5d05938
authored
5月 05, 2019
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
e0f533c9
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
25 行增加
和
6 行删除
+25
-6
SaveUpdateArticleLibraryForm.java
...ource/bg/articlelibrary/SaveUpdateArticleLibraryForm.java
+2
-2
ArticleLibrary.java
...ain/java/com/zrqx/core/model/resource/ArticleLibrary.java
+1
-1
HttpClientUtil.java
...rc/main/java/com/zrqx/core/util/https/HttpClientUtil.java
+0
-2
UserController.java
.../com/zrqx/resource/bg/controller/user/UserController.java
+7
-1
UserAccountRelationMapper.java
...qx/resource/bg/mapper/user/UserAccountRelationMapper.java
+7
-0
UserAccountRelationService.java
.../resource/bg/service/user/UserAccountRelationService.java
+3
-0
UserAccountRelationServiceImpl.java
...ource/bg/service/user/UserAccountRelationServiceImpl.java
+5
-0
没有找到文件。
com.zrqx.core/src/main/java/com/zrqx/core/form/resource/bg/articlelibrary/SaveUpdateArticleLibraryForm.java
浏览文件 @
f5d05938
...
...
@@ -16,8 +16,8 @@ public class SaveUpdateArticleLibraryForm {
private
String
title
;
@ApiModelProperty
(
"正文"
)
private
String
text
;
@ApiModelProperty
(
"分类
:0其他、体育、美食、军事、运势、科学、旅游、历史、科技、时政、社会、国际、公益、文化、房产、财经、传媒、动漫、教育、汽车、健康、时尚、情感、宗教、育儿、娱乐、游戏、职场、家居、彩票、星座、搞笑
"
)
private
Integer
type
;
@ApiModelProperty
(
"分类"
)
private
String
type
;
@ApiModelProperty
(
"定时发布时间"
)
private
Date
timingTime
;
@ApiModelProperty
(
"资源类型 1文本,2图文章"
)
...
...
com.zrqx.core/src/main/java/com/zrqx/core/model/resource/ArticleLibrary.java
浏览文件 @
f5d05938
...
...
@@ -24,7 +24,7 @@ public class ArticleLibrary {
@ApiModelProperty
(
"正文"
)
private
String
text
;
@ApiModelProperty
(
"类型"
)
private
Integer
type
;
private
String
type
;
@ApiModelProperty
(
"定时发布时间"
)
private
Date
timingTime
;
@ApiModelProperty
(
"发布状态:0未发布,1已发布,2定时发布"
)
...
...
com.zrqx.core/src/main/java/com/zrqx/core/util/https/HttpClientUtil.java
浏览文件 @
f5d05938
...
...
@@ -4,8 +4,6 @@ import org.apache.http.HttpResponse;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.methods.HttpGet
;
import
org.apache.http.client.methods.HttpPost
;
import
org.apache.http.entity.StringEntity
;
import
org.apache.http.message.BasicHeader
;
import
org.apache.http.util.EntityUtils
;
public
class
HttpClientUtil
{
@SuppressWarnings
(
"resource"
)
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/user/UserController.java
浏览文件 @
f5d05938
...
...
@@ -23,6 +23,8 @@ import org.springframework.web.bind.annotation.RequestHeader;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
scala.collection.generic.BitOperations.Int
;
import
com.zrqx.core.constant.resource.ResourceRequestPath
;
import
com.zrqx.core.constant.sysuser.SysUserRequestPath
;
import
com.zrqx.core.enums.ResponseCodeEnum
;
...
...
@@ -159,7 +161,11 @@ public class UserController {
List
<
UserAccountRelation
>
list
=
accountRelationService
.
selectByCriteria
();
return
CallBack
.
success
(
list
);
}
@ApiOperation
(
value
=
"查询账号总数"
,
notes
=
"查询账号"
)
@GetMapping
(
value
=
ResourceRequestPath
.
COUNT_SUM
)
public
CallBack
<
Integer
>
publishCount
(
@RequestBody
Integer
status
)
{
return
CallBack
.
success
(
accountRelationService
.
accountCount
(
status
));
}
@ApiOperation
(
value
=
"删除关联账号"
,
notes
=
"删除关联账号"
)
@PostMapping
(
value
=
ResourceRequestPath
.
BATCH
+
ResourceRequestPath
.
DELETE
)
public
CallBack
<
String
>
deleteByIds
(
@RequestBody
String
oid
)
{
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/mapper/user/UserAccountRelationMapper.java
浏览文件 @
f5d05938
package
com
.
zrqx
.
resource
.
bg
.
mapper
.
user
;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.sysuser.user.UserAccountRelation
;
/**
...
...
@@ -7,6 +9,11 @@ import com.zrqx.core.model.sysuser.user.UserAccountRelation;
*
*/
public
interface
UserAccountRelationMapper
extends
BaseMapper
<
UserAccountRelation
>
{
@Select
(
"<script>"
+
"SELECT count(*) from user_account_relation where isDelete=#{status} "
+
"</script>"
)
Integer
accountCount
(
Integer
status
);
}
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/service/user/UserAccountRelationService.java
浏览文件 @
f5d05938
...
...
@@ -7,5 +7,7 @@ import com.zrqx.core.service.BaseService;
* 用户service
*/
public
interface
UserAccountRelationService
extends
BaseService
<
UserAccountRelation
,
String
>
{
Integer
accountCount
(
Integer
status
);
}
\ No newline at end of file
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/service/user/UserAccountRelationServiceImpl.java
浏览文件 @
f5d05938
...
...
@@ -23,5 +23,10 @@ public class UserAccountRelationServiceImpl extends BaseServiceImpl<UserAccountR
// TODO Auto-generated method stub
return
accountRelationMapper
;
}
@Override
public
Integer
accountCount
(
Integer
status
)
{
// TODO Auto-generated method stub
return
accountRelationMapper
.
accountCount
(
status
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论