指定唯一键
This commit is contained in:
parent
ddaf344907
commit
e79e530bcd
|
|
@ -613,6 +613,7 @@
|
|||
sortName: "createTime",
|
||||
sortOrder: "desc",
|
||||
modalName: "订单",
|
||||
uniqueId: 'id',
|
||||
columns: [
|
||||
{
|
||||
checkbox: true
|
||||
|
|
@ -976,7 +977,7 @@
|
|||
function mergePay() {
|
||||
table.set();
|
||||
var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
|
||||
if (rows.length === 0) {
|
||||
if (rows.length == 0) {
|
||||
$.modal.alertWarning("请至少选择一条记录");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -393,6 +393,7 @@
|
|||
function initOrderList() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
uniqueId: 'id',
|
||||
exportUrl: prefix + "/export",
|
||||
queryParams: queryParams,
|
||||
sortName: "createTime",
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
<select id="getCustomerAddressList" resultMap="CustomerAddressResult">
|
||||
<include refid="selectCustomerAddress" />
|
||||
<where>
|
||||
deleted = 0
|
||||
|
||||
<if test="customerId != null">
|
||||
AND customer_id = #{customerId}
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue