Authored by LiQZ

列表数据

... ... @@ -14,6 +14,7 @@ import com.yoho.unions.dal.IChannelUserDAO;
import com.yoho.unions.dal.model.ChannelUser;
import com.yoho.unions.utils.MapUtil;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
... ... @@ -56,7 +57,7 @@ public class ChannelUserServiceImpl implements IChannelUserService, IBusinessExp
condition.put("endRegisterTime", request.getEndRegisterTime());
condition.put("beginSmsTime", request.getBeginSmsTime());
condition.put("endSmsTime", request.getEndSmsTime());
condition.put("ids", request.getIds());
condition.put("ids", StringUtils.isBlank(request.getIds())? null: request.getIds().split(","));
/** 删除 '' 条件 */
MapUtil.filterStringBlankMap(condition);
... ...
... ... @@ -321,7 +321,10 @@
<![CDATA[ AND sms_time <= #{condition.endSmsTime} ]]>
</if>
<if test="condition.ids != null">
and id in (#{condition.ids})
and id in
<foreach item="item" index="index" collection="condition.ids" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</trim>
</if>
... ...
... ... @@ -86,7 +86,7 @@
</form>
</div>
<div region="center">
<div style="margin-left: 30px;margin-top: 20px;height: 660px">
<div style="margin-left: 30px;margin-top: 20px; height: 500px;">
<table id="consultTable"></table>
</div>
</div>
... ... @@ -236,16 +236,11 @@
$("#exportButton").linkbutton({
onClick : function() {
var ids =[];
$("input[type='checkbox'][name='id']:checked").each(function () {
ids.push($(this).val());
});
console.log(ids);
if (ids.length == 0) {
if (checkedItems.length == 0) {
$.messager.alert('提示','请选择要导出的数据');
return;
}
var params = {"ids": ids.toString() };
var params = {"ids": checkedItems.toString() };
window.open(contextPath + "/batch/export.do?type=channelUserServiceImpl&queryConf=" + JSON.stringify(params));
}
});
... ...