提交 15c6c585 编写于 作者: doc_wei's avatar doc_wei

删除多余代码

上级 629c8ead
......@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -205,7 +206,8 @@ public class PageSequenceServiceImpl implements PageSequenceService{
@Override
public void queryDsFormISDraftDetailsById(InputObject inputObject, OutputObject outputObject) throws Exception {
Map<String, Object> map = inputObject.getParams();
List<Map<String, Object>> rows = dsFormPageSequenceDao.queryDsFormISDraftDetailsById(map);
String sequenceId = map.get("sequenceId").toString();
List<Map<String, Object>> rows = dsFormPageDataDao.queryDsFormPageDataListBySequenceId(Arrays.asList(sequenceId));
outputObject.setBeans(rows);
outputObject.settotal(rows.size());
}
......
......@@ -154,7 +154,7 @@
<property id="pageId" name="pageId" ref="required" var="页面id" />
</url>
<url id="pagesequence006" path="/post/PageSequenceController/queryDsFormISDraftDetailsById" val="表单详情" allUse="2">
<property id="rowId" name="id" ref="required" var="表单提交序列id" />
<property id="rowId" name="sequenceId" ref="required" var="表单提交序列id" />
</url>
<!-- 动态表单草稿操作结束 -->
......
......@@ -35,8 +35,6 @@ public interface DsFormPageSequenceDao {
List<Map<String, Object>> queryDsFormContentBySequenceId(Map<String, Object> map) throws Exception;
List<Map<String, Object>> queryDsFormISDraftDetailsById(Map<String, Object> map) throws Exception;
int insertDsFormPageSequence(List<Map<String, Object>> pageSequence) throws Exception;
List<Map<String, Object>> queryDsFormPageSequenceListByObjectId(@Param("objectId") String objectId) throws Exception;
......
......@@ -113,20 +113,6 @@
WHERE
a.sequence_id = #{id}
</select>
<select id="queryDsFormISDraftDetailsById" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.title `name`,
a.text,
a.show_type showType,
a.default_width proportion,
a.content_id rowId
FROM
ds_form_page_data a
WHERE
a.sequence_id = #{id}
ORDER BY a.order_by ASC
</select>
<insert id="insertDsFormPageSequence" parameterType="java.util.Map">
INSERT INTO ds_form_page_sequence
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册