!41 全局修改物理删除为逻辑删除,同时修改查询语句过滤删除标识

Merge pull request !41 from 乾坤平台/master
This commit is contained in:
乾坤平台
2019-04-01 21:05:18 +08:00
committed by 季圣华
85 changed files with 1632 additions and 224 deletions

View File

@@ -225,8 +225,11 @@
var accountTotalInfo = accountInfo.split("AaBb");
$.ajax({
type: "post",
url: "/account/" + accountTotalInfo[0] + "/delete",
url: "/account/batchDeleteAccountByIds",
dataType: "json",
data: ({
ids: accountTotalInfo[0]
}),
success: function (res) {
if(res && res.code == 200) {
$("#searchBtn").click();
@@ -264,7 +267,7 @@
}
$.ajax({
type: "post",
url: "/account/batchDelete",
url: "/account/batchDeleteAccountByIds",
dataType: "json",
async: false,
data: ({

View File

@@ -270,8 +270,11 @@
if (r) {
$.ajax({
type: "post",
url: "/app/" + appID + "/delete",
url: "/app/batchDeleteAppByIds",
dataType: "json",
data: ({
ids: appID
}),
success: function (res) {
if(res && res.code == 200) {
$("#searchBtn").click();
@@ -309,7 +312,7 @@
}
$.ajax({
type: "post",
url: "/app/batchDelete",
url: "/app/batchDeleteAppByIds",
dataType: "json",
async: false,
data: ({

View File

@@ -255,8 +255,11 @@
if (r) {
$.ajax({
type: "post",
url: "/depot/" + depotID + "/delete",
url: "/depot/batchDeleteDepotByIds",
dataType: "json",
data: ({
ids: depotID
}),
success: function (res) {
if(res && res.code == 200) {
$("#searchBtn").click();
@@ -294,7 +297,7 @@
}
$.ajax({
type: "post",
url: "/depot/batchDelete",
url: "/depot/batchDeleteDepotByIds",
dataType: "json",
async: false,
data: ({

View File

@@ -268,8 +268,11 @@
if (r) {
$.ajax({
type: "post",
url: "/functions/" + functionsID + "/delete",
url: "/functions/batchDeleteFunctionsByIds",
dataType: "json",
data: ({
ids: functionsID
}),
success: function (res) {
if(res && res.code == 200) {
$("#searchBtn").click();
@@ -307,7 +310,7 @@
}
$.ajax({
type: "post",
url: "/functions/batchDelete",
url: "/functions/batchDeleteFunctionsByIds",
dataType: "json",
async: false,
data: ({

View File

@@ -225,8 +225,11 @@
var inOutItemTotalInfo = inOutItemInfo.split("AaBb");
$.ajax({
type: "post",
url: "/inOutItem/" + inOutItemTotalInfo[0] + "/delete",
url: "/inOutItem/batchDeleteInOutItemByIds",
dataType: "json",
data: ({
ids: inOutItemTotalInfo[0]
}),
success: function (res) {
if(res && res.code == 200) {
$("#searchBtn").click();
@@ -264,7 +267,7 @@
}
$.ajax({
type: "post",
url: "/inOutItem/batchDelete",
url: "/inOutItem/batchDeleteInOutItemByIds",
dataType: "json",
async: false,
data: ({

View File

@@ -203,8 +203,11 @@
if (r) {
$.ajax({
type: "post",
url: "/role/" + roleID + "/delete",
url: "/role/batchDeleteRoleByIds",
dataType: "json",
data: ({
ids: roleID,
}),
success: function (res) {
if(res && res.code == 200) {
$("#searchBtn").click();
@@ -242,7 +245,7 @@
}
$.ajax({
type: "post",
url: "/role/batchDelete",
url: "/role/batchDeleteRoleByIds",
dataType: "json",
async: false,
data: ({

View File

@@ -192,8 +192,11 @@
if (r) {
$.ajax({
type: "post",
url: "/systemConfig/" + systemConfigId + "/delete",
url: "/systemConfig/batchDeleteSystemConfigByIds",
dataType: "json",
data: ({
ids: systemConfigId
}),
success: function (res) {
if(res && res.code == 200) {
$("#searchBtn").click();
@@ -235,7 +238,7 @@
} else {
$.ajax({
type: "post",
url: "/systemConfig/batchDelete",
url: "/systemConfig/batchDeleteSystemConfigByIds",
dataType: "json",
async: false,
data: ({

View File

@@ -197,8 +197,11 @@
if (r) {
$.ajax({
type: "post",
url: "/unit/" + unitID + "/delete",
url: "/unit/batchDeleteUnitByIds",
dataType: "json",
data: ({
ids: unitID
}),
success: function (res) {
if(res && res.code == 200) {
$("#searchBtn").click();
@@ -237,7 +240,7 @@
}
$.ajax({
type: "post",
url: "/unit/batchDelete",
url: "/unit/batchDeleteUnitByIds",
dataType: "json",
async: false,
data: ({