Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
3ff8831c
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1436
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3ff8831c
编写于
1月 06, 2019
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
问卷问题添加逻辑修改
上级
afc09cf7
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
6937 addition
and
5752 deletion
+6937
-5752
logs/skyeye.log
logs/skyeye.log
+1000
-5666
logs/skyeye.log.2019-01-05
logs/skyeye.log.2019-01-05
+5682
-0
skyeye-promote/src/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
...rc/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
+4
-0
skyeye-promote/src/main/java/com/skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
...skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
+176
-75
skyeye-promote/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
...e/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
+73
-2
skyeye-promote/src/main/resources/template/js/dwsurveydesign/dwsurveydesign.js
...in/resources/template/js/dwsurveydesign/dwsurveydesign.js
+2
-9
未找到文件。
logs/skyeye.log
浏览文件 @
3ff8831c
此差异已折叠。
点击以展开。
logs/skyeye.log.2019-01-05
0 → 100644
浏览文件 @
3ff8831c
此差异已折叠。
点击以展开。
skyeye-promote/src/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
浏览文件 @
3ff8831c
...
@@ -112,4 +112,8 @@ public interface DwSurveyDirectoryDao {
...
@@ -112,4 +112,8 @@ public interface DwSurveyDirectoryDao {
public
int
deleteLogicQuestionMultiFillblankOptionMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
deleteLogicQuestionMultiFillblankOptionMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
editQuestionMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
editQuestionLogicsMationList
(
List
<
Map
<
String
,
Object
>>
editquLogics
)
throws
Exception
;
}
}
skyeye-promote/src/main/java/com/skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
浏览文件 @
3ff8831c
此差异已折叠。
点击以展开。
skyeye-promote/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
浏览文件 @
3ff8831c
...
@@ -330,14 +330,30 @@
...
@@ -330,14 +330,30 @@
<insert
id=
"addQuestionLogicsMationList"
parameterType=
"java.util.Map"
>
<insert
id=
"addQuestionLogicsMationList"
parameterType=
"java.util.Map"
>
insert into dw_question_logic
insert into dw_question_logic
(id, title, cg_qu_item_id, ck_qu_id,
qu_logic_id,
ge_le, logic_type, score_num, sk_qu_id, visibility, create_id, create_time)
(id, title, cg_qu_item_id, ck_qu_id, ge_le, logic_type, score_num, sk_qu_id, visibility, create_id, create_time)
values
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(#{item.id}, #{item.title}, #{item.cgQuItemId}, #{item.ckQuId}, #{item.
quLogicId}, #{item.
geLe}, #{item.logicType},
(#{item.id}, #{item.title}, #{item.cgQuItemId}, #{item.ckQuId}, #{item.geLe}, #{item.logicType},
#{item.scoreNum}, #{item.skQuId}, #{item.visibility}, #{item.createId}, #{item.createTime})
#{item.scoreNum}, #{item.skQuId}, #{item.visibility}, #{item.createId}, #{item.createTime})
</foreach>
</foreach>
</insert>
</insert>
<update
id=
"editQuestionLogicsMationList"
parameterType=
"java.util.Map"
>
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
UPDATE dw_question_logic
<set>
title = #{item.title},
cg_qu_item_id = #{item.cgQuItemId},
ck_qu_id = #{item.ckQuId},
ge_le = #{item.geLe},
logic_type = #{item.logicType},
score_num = #{item.scoreNum},
sk_qu_id = #{item.skQuId},
</set>
WHERE id = #{item.id}
</foreach>
</update>
<insert
id=
"addQuestionScoreMationList"
parameterType=
"java.util.Map"
>
<insert
id=
"addQuestionScoreMationList"
parameterType=
"java.util.Map"
>
insert into dw_qu_score
insert into dw_qu_score
(id, qu_id, option_id, option_name, option_title, order_by_id, visibility, create_id, create_time)
(id, qu_id, option_id, option_name, option_title, order_by_id, visibility, create_id, create_time)
...
@@ -698,4 +714,59 @@
...
@@ -698,4 +714,59 @@
id = #{quItemId}
id = #{quItemId}
</delete>
</delete>
<update
id=
"editQuestionMationById"
parameterType=
"java.util.Map"
>
UPDATE dw_question
<set>
<if
test=
"answerInputRow != '' and answerInputRow != null"
>
answer_input_row = #{answerInputRow},
</if>
<if
test=
"answerInputWidth != '' and answerInputWidth != null"
>
answer_input_width = #{answerInputWidth},
</if>
<if
test=
"cellCount != '' and cellCount != null"
>
cell_count = #{cellCount},
</if>
<if
test=
"checkType != '' and checkType != null"
>
check_type = #{checkType},
</if>
<if
test=
"contactsAttr != '' and contactsAttr != null"
>
contacts_attr = #{contactsAttr},
</if>
<if
test=
"contactsField != '' and contactsField != null"
>
contacts_field = #{contactsField},
</if>
<if
test=
"hv != '' and hv != null"
>
hv = #{hv},
</if>
<if
test=
"isRequired != '' and isRequired != null"
>
is_required = #{isRequired},
</if>
<if
test=
"orderById != '' and orderById != null"
>
order_by_id = #{orderById},
</if>
<if
test=
"paramInt01 != '' and paramInt01 != null"
>
param_int01 = #{paramInt01},
</if>
<if
test=
"paramInt02 != '' and paramInt02 != null"
>
param_int02 = #{paramInt02},
</if>
<if
test=
"quName != '' and quName != null"
>
qu_name = #{quName},
</if>
<if
test=
"quNote != '' and quNote != null"
>
qu_note = #{quNote},
</if>
<if
test=
"quTag != '' and quTag != null"
>
qu_tag = #{quTag},
</if>
<if
test=
"quTitle != '' and quTitle != null"
>
qu_title = #{quTitle},
</if>
<if
test=
"randOrder != '' and randOrder != null"
>
rand_order = #{randOrder},
</if>
</set>
WHERE id = #{quId}
</update>
</mapper>
</mapper>
\ No newline at end of file
skyeye-promote/src/main/resources/template/js/dwsurveydesign/dwsurveydesign.js
浏览文件 @
3ff8831c
...
@@ -1723,7 +1723,7 @@ layui.config({
...
@@ -1723,7 +1723,7 @@ layui.config({
**/
**/
function
saveFillblank
(
quItemBody
,
callback
)
{
function
saveFillblank
(
quItemBody
,
callback
)
{
var
saveTag
=
quItemBody
.
find
(
"
input[name='saveTag']
"
).
val
();
var
saveTag
=
quItemBody
.
find
(
"
input[name='saveTag']
"
).
val
();
if
(
saveTag
==
0
&&
isNull
(
quItemBody
.
find
(
"
input[name='quId']
"
).
val
())
)
{
if
(
saveTag
==
0
)
{
var
data
=
{
var
data
=
{
belongId
:
parent
.
rowId
,
belongId
:
parent
.
rowId
,
orderById
:
quItemBody
.
find
(
"
input[name='orderById']
"
).
val
(),
orderById
:
quItemBody
.
find
(
"
input[name='orderById']
"
).
val
(),
...
@@ -1738,14 +1738,8 @@ layui.config({
...
@@ -1738,14 +1738,8 @@ layui.config({
contactsAttr
:
quItemBody
.
find
(
"
input[name='contactsAttr']
"
).
val
(),
contactsAttr
:
quItemBody
.
find
(
"
input[name='contactsAttr']
"
).
val
(),
contactsField
:
quItemBody
.
find
(
"
input[name='contactsField']
"
).
val
(),
contactsField
:
quItemBody
.
find
(
"
input[name='contactsField']
"
).
val
(),
checkType
:
quItemBody
.
find
(
"
input[name='checkType']
"
).
val
(),
checkType
:
quItemBody
.
find
(
"
input[name='checkType']
"
).
val
(),
quTitle
:
''
,
quTitle
:
encodeURI
(
quItemBody
.
find
(
"
.quCoTitleEdit
"
).
html
())
,
};
};
var
quTitleSaveTag
=
quItemBody
.
find
(
"
input[name='quTitleSaveTag']
"
).
val
();
if
(
quTitleSaveTag
==
0
)
{
var
quTitle
=
quItemBody
.
find
(
"
.quCoTitleEdit
"
).
html
();
data
.
quTitle
=
encodeURI
(
quTitle
);
}
//逻辑选项
//逻辑选项
var
quLogicItems
=
quItemBody
.
find
(
"
.quLogicItem
"
);
var
quLogicItems
=
quItemBody
.
find
(
"
.quLogicItem
"
);
var
list
=
[];
var
list
=
[];
...
@@ -1777,7 +1771,6 @@ layui.config({
...
@@ -1777,7 +1771,6 @@ layui.config({
logicItem
.
find
(
"
input[name='quLogicId']
"
).
val
(
item
.
id
);
logicItem
.
find
(
"
input[name='quLogicId']
"
).
val
(
item
.
id
);
logicItem
.
find
(
"
input[name='logicSaveTag']
"
).
val
(
1
);
logicItem
.
find
(
"
input[name='logicSaveTag']
"
).
val
(
1
);
});
});
//执行保存下一题
//执行保存下一题
saveQus
(
quItemBody
.
next
(),
callback
);
saveQus
(
quItemBody
.
next
(),
callback
);
//同步-更新题目排序号
//同步-更新题目排序号
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录