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