Authored by 周少峰

'filters'

... ... @@ -29,6 +29,8 @@ public class BidStoragePrice extends PageRequestBO {
private Integer bidTotal;
private Integer sizeId;
public Integer getId() {
return id;
}
... ... @@ -124,4 +126,12 @@ public class BidStoragePrice extends PageRequestBO {
public void setBidTotal(Integer bidTotal) {
this.bidTotal = bidTotal;
}
public Integer getSizeId() {
return sizeId;
}
public void setSizeId(Integer sizeId) {
this.sizeId = sizeId;
}
}
\ No newline at end of file
... ...
... ... @@ -195,22 +195,36 @@
where skup = #{skup,jdbcType=INTEGER}
</update>
<sql id="selectCondition">
<if test="status != null">
and sp.status = #{status,jdbcType=INTEGER}
</if>
<if test="skup != null">
and sp.skup = #{skup,jdbcType=INTEGER}
</if>
<if test="attribute != null">
and sp.attribute = #{attribute,jdbcType=INTEGER}
</if>
<if test="bidUid != null">
and sp.bid_uid = #{bidUid,jdbcType=INTEGER}
</if>
<if test="productId != null">
and product_id = #{productId,jdbcType=INTEGER}
and sp.product_id = #{productId,jdbcType=INTEGER}
</if>
<if test="sizeId != null">
and s.size_id = #{sizeId,jdbcType=INTEGER}
</if>
</sql>
<select id="selectCount" resultType="java.lang.Integer">
select count(1)
from bid_storage_price
where 1=1
from bid_storage_price as sp, storage as s
where sp.storage_id = s.id
<include refid="selectCondition"/>
</select>
<select id="selectList" parameterType="com.yoho.ufo.dal.model.BidStoragePrice" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from bid_storage_price
where 1=1
select sp.id, sp.skup, sp.product_id, sp.goods_id, sp.storage_id, sp.bid_uid, sp.price, sp.status, sp.attribute, sp.update_time, sp.create_time, s.size_id
from bid_storage_price as sp, storage as s
where sp.storage_id = s.id
<include refid="selectCondition"/>
limit #{start,jdbcType=INTEGER}, #{rows,jdbcType=INTEGER}
</select>
... ...
... ... @@ -20,9 +20,8 @@
<div style="margin-left: 30px;" class="div_search">
<input id="status" type="text"/>
<input id="SKUP" type="text">
<input id="preSaleFlag" type="text">
<input id="region" type="text">
<input id="sellerUid" type="text">
<input id="attribute" type="text">
<input id="bidUid" type="text">
<input id="storageId" type="text">
<input id="sizeId" type="text">
... ... @@ -85,31 +84,24 @@
$("#status").myCombobox({
prompt: "状态",
width: 200,
data: [{id: '0',text: '待付保证金'}, {id: '2',text: '卖家取消支付'}, {id: '3',text: '卖家支付超时'}, {id: '1',text: '出售中'},
{id: '4',text: '卖家取消出售'}, {id: '200',text: '平台取消出售'}, {id: '100',text: '已出售'}, {id: '10',text: '待审核'},
{id: '11',text: '审核不通过'}, /*{id: '201',text: '鉴定失败'}*/],
data: [{id: '10',text: '求购中'}, {id: '60',text: '求购成功'}, {id: '71',text: '求购关闭(买家取消求购)'}, {id: '72',text: '求购关闭(买家求购超时)'},
{id: '73',text: '求购关闭(平台取消求购)'}],
valueField: "id",
textField: "text"
});
$("#preSaleFlag").myCombobox({
$("#attribute").myCombobox({
prompt: "SKU_P类型",
width: 200,
data: [{id: '0',text: '现货'}, {id: '1',text: '预售'}, {id: '5',text: '全新瑕疵'}, {id: '6',text: '二手'}, {id: '3',text: '闪购'}, {id: '9',text: '极速'}],
valueField: "id",
textField: "text"
});
$("#region").myCombobox({
prompt: "地域",
width: 200,
data: [{id: '-1',text: '全部'}, {id: '0',text: '大陆'}, {id: '1',text: '香港'}],
data: [{id: '1',text: '现货'}],
valueField: "id",
textField: "text"
});
$("#SKUP").textbox({
prompt: "SKU_P"
});
$("#sellerUid").textbox({
$("#bidUid").textbox({
prompt: "卖家UID"
});
... ... @@ -241,11 +233,10 @@
onClick: function () {
$('#status').combobox('clear');
$('#SKUP').textbox('clear');
$('#preSaleFlag').combobox('clear');
$('#sellerUid').textbox('clear');
$('#attribute').combobox('clear');
$('#bidUid').textbox('clear');
$('#storageId').textbox('clear');
$('#sizeId').combobox('clear');
$('#region').textbox('clear');
var param = {};
$("#skupTable").myDatagrid("load", param);
}
... ... @@ -255,32 +246,29 @@
* 提取出搜索参数
* <input id="status" type="text"/>
<input id="SKUP" type="text">
<input id="sellerUid" type="text">
<input id="bidUid" type="text">
<input id="storageId" type="text">
*/
function getParams() {
var status = $('#status').combobox('getValue');
var skup = $('#SKUP').textbox('getValue');
var preSaleFlag = $('#preSaleFlag').combobox('getValue');
var sellerUid = $('#sellerUid').textbox('getValue');
var attribute = $('#attribute').combobox('getValue');
var bidUid = $('#bidUid').textbox('getValue');
var storageId = $('#storageId').textbox('getValue');
var sizeId = $('#sizeId').combobox('getValue');
var region = $('#region').textbox('getValue');
var param = {'id': productId};
if (undefined !== region && null !== region && "-1" !== region) {
param.region = region;
}
var param = {'productId': productId};
if (undefined !== status && null !== status && "" !== status) {
param.status = status;
}
if (undefined !== skup && null !== skup && "" !== skup) {
param.skup = skup;
}
if (undefined !== preSaleFlag && null !== preSaleFlag && "" !== preSaleFlag) {
param.preSaleFlag = preSaleFlag;
if (undefined !== attribute && null !== attribute && "" !== attribute) {
param.attribute = attribute;
}
if (undefined !== sellerUid && null !== sellerUid && "" !== sellerUid) {
param.sellerUid = sellerUid;
if (undefined !== bidUid && null !== bidUid && "" !== bidUid) {
param.bidUid = bidUid;
}
if (undefined !== storageId && null !== storageId && "" !== storageId) {
param.storageId = storageId;
... ...