解决系统配置的bug
This commit is contained in:
@@ -392,7 +392,7 @@
|
|||||||
async: false,
|
async: false,
|
||||||
data: ({
|
data: ({
|
||||||
id: systemConfigId,
|
id: systemConfigId,
|
||||||
companyName: companyName
|
name: companyName
|
||||||
}),
|
}),
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if(res && res.code === 200) {
|
if(res && res.code === 200) {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public class SupplierController {
|
|||||||
List<Supplier> supplierList = supplierService.findBySelectCus();
|
List<Supplier> supplierList = supplierService.findBySelectCus();
|
||||||
JSONArray dataArray = new JSONArray();
|
JSONArray dataArray = new JSONArray();
|
||||||
if (null != supplierList) {
|
if (null != supplierList) {
|
||||||
boolean depotFlag = systemConfigService.getDepotFlag();
|
boolean customerFlag = systemConfigService.getCustomerFlag();
|
||||||
for (Supplier supplier : supplierList) {
|
for (Supplier supplier : supplierList) {
|
||||||
JSONObject item = new JSONObject();
|
JSONObject item = new JSONObject();
|
||||||
//勾选判断1
|
//勾选判断1
|
||||||
@@ -96,7 +96,7 @@ public class SupplierController {
|
|||||||
} catch (DataAccessException e) {
|
} catch (DataAccessException e) {
|
||||||
logger.error(">>>>>>>>>>>>>>>>>查询用户对应的客户:存在异常!");
|
logger.error(">>>>>>>>>>>>>>>>>查询用户对应的客户:存在异常!");
|
||||||
}
|
}
|
||||||
if (!depotFlag || flag) {
|
if (!customerFlag || flag) {
|
||||||
item.put("id", supplier.getId());
|
item.put("id", supplier.getId());
|
||||||
item.put("supplier", supplier.getSupplier()); //客户名称
|
item.put("supplier", supplier.getSupplier()); //客户名称
|
||||||
dataArray.add(item);
|
dataArray.add(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user