Commit b55c46d4 authored by yaobaizheng's avatar yaobaizheng

开发区产业园提交时间倒叙

parent 6fa86cca
...@@ -261,6 +261,7 @@ ...@@ -261,6 +261,7 @@
<include refid="selectDevelopmentInfoVo"/> <include refid="selectDevelopmentInfoVo"/>
<include refid="where"></include> <include refid="where"></include>
<if test="status != null ">and status = #{status}</if> <if test="status != null ">and status = #{status}</if>
order by submit_time desc
</select> </select>
<select id="selectDevelopmentInfoById" parameterType="Long" resultMap="DevelopmentInfoResult"> <select id="selectDevelopmentInfoById" parameterType="Long" resultMap="DevelopmentInfoResult">
...@@ -271,6 +272,7 @@ ...@@ -271,6 +272,7 @@
<include refid="selectDevelopmentInfoVo"/> <include refid="selectDevelopmentInfoVo"/>
<include refid="where"></include> <include refid="where"></include>
<if test="status != null ">and status != #{status}</if> <if test="status != null ">and status != #{status}</if>
order by submit_time desc
</select> </select>
<insert id="insertDevelopmentInfo" parameterType="DevelopmentInfo" useGeneratedKeys="true" keyProperty="id"> <insert id="insertDevelopmentInfo" parameterType="DevelopmentInfo" useGeneratedKeys="true" keyProperty="id">
......
...@@ -228,6 +228,7 @@ ...@@ -228,6 +228,7 @@
<include refid="where"></include> <include refid="where"></include>
<if test="status != null ">and status = #{status}</if> <if test="status != null ">and status = #{status}</if>
and status != 9 and status != 9
order by submit_time desc
</select> </select>
<select id="selectParkInfoById" parameterType="Long" resultMap="ParkInfoResult"> <select id="selectParkInfoById" parameterType="Long" resultMap="ParkInfoResult">
...@@ -534,6 +535,7 @@ ...@@ -534,6 +535,7 @@
<include refid="selectParkInfoVo"/> <include refid="selectParkInfoVo"/>
<include refid="where"></include> <include refid="where"></include>
<if test="status != null ">and status != #{status}</if> <if test="status != null ">and status != #{status}</if>
order by submit_time desc
</select> </select>
......
...@@ -30,6 +30,14 @@ ...@@ -30,6 +30,14 @@
th:value="${dict.dictValue}"></option> th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li style="display: none">
<label>所属开发区id:</label>
<input type="text" id="zoneId" name="zoneId" />
</li>
<li>
<label>所属开发区:</label>
<input type="text" id="developmentName" name="developmentName" onclick="selectType()"/>
</li>
<li> <li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
class="fa fa-search"></i>&nbsp;搜索</a> class="fa fa-search"></i>&nbsp;搜索</a>
...@@ -441,6 +449,26 @@ ...@@ -441,6 +449,26 @@
} }
}); });
} }
function selectType(){
var options = {
title: '选择',
url: "carousel/info" + "/selectType?type=1",
callBack: doSubmit2
};
$.modal.openOptions(options);
}
function doSubmit2(index, layero){
var rows = layero.find("iframe")[0].contentWindow.getSelections();
if (rows.length == 0) {
$.modal.alertWarning("请至少选择一条记录");
return;
}
$('#developmentName').val(rows.name);
$('#zoneId').val(rows.id);
$.modal.close(index);
}
</script> </script>
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment