Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
afc09cf7
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
Star
154
Fork
127
代码
文件
提交
分支
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看板
提交
afc09cf7
编写于
1月 05, 2019
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
多项填空题选项删除完成
上级
f9992be7
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
563 addition
and
16 deletion
+563
-16
logs/skyeye.log
logs/skyeye.log
+471
-0
skyeye-promote/src/main/java/com/skyeye/eve/controller/DwSurveyDirectoryController.java
...om/skyeye/eve/controller/DwSurveyDirectoryController.java
+16
-0
skyeye-promote/src/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
...rc/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
+6
-0
skyeye-promote/src/main/java/com/skyeye/eve/service/DwSurveyDirectoryService.java
...java/com/skyeye/eve/service/DwSurveyDirectoryService.java
+2
-0
skyeye-promote/src/main/java/com/skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
...skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
+23
-2
skyeye-promote/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
...e/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
+32
-0
skyeye-promote/src/main/resources/mapping/reqdwsurvey.xml
skyeye-promote/src/main/resources/mapping/reqdwsurvey.xml
+3
-0
skyeye-promote/src/main/resources/template/js/dwsurveydesign/dwsurveydesign.js
...in/resources/template/js/dwsurveydesign/dwsurveydesign.js
+10
-14
未找到文件。
logs/skyeye.log
浏览文件 @
afc09cf7
此差异已折叠。
点击以展开。
skyeye-promote/src/main/java/com/skyeye/eve/controller/DwSurveyDirectoryController.java
浏览文件 @
afc09cf7
...
...
@@ -352,4 +352,20 @@ public class DwSurveyDirectoryController {
dwSurveyDirectoryService
.
deleteQuestionOrderOptionMationById
(
inputObject
,
outputObject
);
}
/**
*
* @Title: deleteQuestionMultiFillblankOptionMationById
* @Description: 删除多项填空题选项
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/DwSurveyDirectoryController/deleteQuestionMultiFillblankOptionMationById"
)
@ResponseBody
public
void
deleteQuestionMultiFillblankOptionMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
dwSurveyDirectoryService
.
deleteQuestionMultiFillblankOptionMationById
(
inputObject
,
outputObject
);
}
}
skyeye-promote/src/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
浏览文件 @
afc09cf7
...
...
@@ -106,4 +106,10 @@ public interface DwSurveyDirectoryDao {
public
int
deleteLogicQuestionOrderOptionMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
Map
<
String
,
Object
>
queryQuestionMultiFillblankOptionById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
deleteQuestionMultiFillblankOptionMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
deleteLogicQuestionMultiFillblankOptionMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
}
skyeye-promote/src/main/java/com/skyeye/eve/service/DwSurveyDirectoryService.java
浏览文件 @
afc09cf7
...
...
@@ -47,4 +47,6 @@ public interface DwSurveyDirectoryService {
public
void
deleteQuestionOrderOptionMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
deleteQuestionMultiFillblankOptionMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-promote/src/main/java/com/skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
浏览文件 @
afc09cf7
...
...
@@ -962,7 +962,28 @@ public class DwSurveyDirectoryServiceImpl implements DwSurveyDirectoryService{
}
}
}
/**
*
* @Title: deleteQuestionMultiFillblankOptionMationById
* @Description: 删除多项填空题选项
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
deleteQuestionMultiFillblankOptionMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
Map
<
String
,
Object
>
option
=
dwSurveyDirectoryDao
.
queryQuestionMultiFillblankOptionById
(
map
);
if
(
option
!=
null
){
if
(
option
.
get
(
"surveyState"
).
toString
().
equals
(
"0"
)){
//设计状态
dwSurveyDirectoryDao
.
deleteQuestionMultiFillblankOptionMationById
(
map
);
//执行物理删除
}
else
{
//执行中或者结束
dwSurveyDirectoryDao
.
deleteLogicQuestionMultiFillblankOptionMationById
(
map
);
//执行逻辑删除问题
}
}
}
}
skyeye-promote/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
浏览文件 @
afc09cf7
...
...
@@ -666,4 +666,36 @@
id = #{quItemId}
</delete>
<select
id=
"queryQuestionMultiFillblankOptionById"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.id,
c.survey_state surveyState
FROM
dw_qu_multi_fillblank a,
dw_question b,
dw_survey_directory c
WHERE a.id = #{quItemId}
AND a.visibility = '1'
AND a.qu_id = b.id
AND b.visibility = '1'
AND c.visibility = '1'
AND b.belong_id = c.id
</select>
<update
id=
"deleteLogicQuestionMultiFillblankOptionMationById"
parameterType=
"java.util.Map"
>
UPDATE dw_qu_multi_fillblank
<set>
visibility = '0',
</set>
WHERE id = #{quItemId}
</update>
<delete
id=
"deleteQuestionMultiFillblankOptionMationById"
parameterType=
"java.util.Map"
>
DELETE
FROM
dw_qu_multi_fillblank
WHERE
id = #{quItemId}
</delete>
</mapper>
\ No newline at end of file
skyeye-promote/src/main/resources/mapping/reqdwsurvey.xml
浏览文件 @
afc09cf7
...
...
@@ -181,6 +181,9 @@
<url
id=
"dwsurveydirectory021"
path=
"/post/DwSurveyDirectoryController/deleteQuestionOrderOptionMationById"
val=
"删除排序选项"
allUse=
"1"
>
<property
id=
"quItemId"
name=
"quItemId"
ref=
"required"
var=
"选项id"
/>
</url>
<url
id=
"dwsurveydirectory022"
path=
"/post/DwSurveyDirectoryController/deleteQuestionMultiFillblankOptionMationById"
val=
"删除多项填空题选项"
allUse=
"1"
>
<property
id=
"quItemId"
name=
"quItemId"
ref=
"required"
var=
"选项id"
/>
</url>
<!-- 问卷调查结束 -->
</controller>
\ No newline at end of file
skyeye-promote/src/main/resources/template/js/dwsurveydesign/dwsurveydesign.js
浏览文件 @
afc09cf7
...
...
@@ -2325,25 +2325,21 @@ layui.config({
}
return
newEditObj
;
}
/** 删除多项填空题选项 **/
/**
* 删除多项填空题选项
*/
function
deleteMultiFillblankOption
()
{
var
optionParent
=
null
;
optionParent
=
$
(
curEditObj
).
parents
(
"
tr.mFillblankTableTr
"
);
var
quOptionId
=
$
(
optionParent
).
find
(
"
input[name='quItemId']
"
).
val
();
if
(
quOptionId
!=
""
&&
quOptionId
!=
"
0
"
)
{
var
url
=
reqBasePath
+
"
/design/qu-multi-fillblank!ajaxDelete.action
"
;
var
data
=
"
quItemId=
"
+
quOptionId
;
$
.
ajax
({
url
:
url
,
data
:
data
,
type
:
"
post
"
,
success
:
function
(
msg
)
{
if
(
msg
==
"
true
"
)
{
delQuOptionCallBack
(
optionParent
);
}
}
});
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
dwsurveydirectory022
"
,
params
:{
quItemId
:
quOptionId
},
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
delQuOptionCallBack
(
optionParent
);
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
else
{
delQuOptionCallBack
(
optionParent
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录