Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jgjy
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
jgjy
Commits
a63aeef2
提交
a63aeef2
authored
4月 13, 2019
作者:
chaoyanjun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
3b0bde24
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
38 行增加
和
15 行删除
+38
-15
ActivityApplyController.java
.../sysuser/controller/activity/ActivityApplyController.java
+1
-0
ActivityApplyMapper.java
.../zrqx/bg/sysuser/mapper/activity/ActivityApplyMapper.java
+1
-15
JsonTest.java
...g.sysuser/src/test/java/com/zrqx/bg/sysuser/JsonTest.java
+36
-0
没有找到文件。
com.zrqx.bg.sysuser/src/main/java/com/zrqx/bg/sysuser/controller/activity/ActivityApplyController.java
浏览文件 @
a63aeef2
...
...
@@ -8,6 +8,7 @@ import java.util.Map;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
com.zrqx.bg.sysuser/src/main/java/com/zrqx/bg/sysuser/mapper/activity/ActivityApplyMapper.java
浏览文件 @
a63aeef2
...
...
@@ -10,7 +10,6 @@ import com.zrqx.core.form.sysuser.bg.activity.ActivityApplyForm;
import
com.zrqx.core.form.sysuser.bg.activity.QueryActivityApplyForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.sysuser.activity.ActivityApply
;
import
com.zrqx.core.util.response.CallBack
;
import
com.zrqx.core.vo.sysuser.bg.activity.ActivityApplyVo
;
@Mapper
...
...
@@ -53,20 +52,7 @@ public interface ActivityApplyMapper extends BaseMapper<ActivityApply>{
+
" </if> "
+
"</script>"
)
List
<
ActivityApplyVo
>
list
(
@Param
(
"form"
)
QueryActivityApplyForm
query
);
/**
* 查看报名信息
* @param id
* @return
* @author chyj
* @date: 2019年4月11日 下午1:56:36
*/
@Select
(
"<script>"
+
"select value from sys_activity_apply where 1=1"
+
" <if test = '"
+
NOTBLANK
+
"(id)'> "
+
" and id = #{id} "
+
" </if> "
+
"</script>"
)
CallBack
<
String
>
selectById
(
Integer
id
);
/**
* 报名信息内审核
* @param form
...
...
com.zrqx.bg.sysuser/src/test/java/com/zrqx/bg/sysuser/JsonTest.java
0 → 100644
浏览文件 @
a63aeef2
package
com
.
zrqx
.
bg
.
sysuser
;
import
org.junit.Test
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
public
class
JsonTest
{
@Test
public
void
demo1
(){
JSONArray
ar
=
new
JSONArray
();
JSONObject
j
=
new
JSONObject
();
/**
* {type:text,name:姓名,value:张三},
* {type:redio,name:性别,value:男},
* {type:file,name:头像,value:/2019/03/uuid.jpg}
*/
j
.
put
(
"type"
,
"text"
);
j
.
put
(
"name"
,
"姓名"
);
j
.
put
(
"value"
,
"张三"
);
JSONObject
j1
=
new
JSONObject
();
j1
.
put
(
"type"
,
"redio"
);
j1
.
put
(
"name"
,
"性别"
);
j1
.
put
(
"value"
,
"男"
);
JSONObject
j2
=
new
JSONObject
();
j2
.
put
(
"type"
,
"file"
);
j2
.
put
(
"name"
,
"头像"
);
j2
.
put
(
"value"
,
"/2019/03/uuid.jpg"
);
ar
.
add
(
j
);
ar
.
add
(
j1
);
ar
.
add
(
j2
);
System
.
out
.
println
(
ar
.
toJSONString
());
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论