Commit 99be262a authored by 季圣华's avatar 季圣华
Browse files

解决系统配置的bug

parent 1e4675a2
...@@ -392,7 +392,7 @@ ...@@ -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 { ...@@ -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 { ...@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment