解决系统配置的bug

This commit is contained in:
季圣华
2019-08-04 23:58:35 +08:00
parent 1e4675a23c
commit 99be262aad
2 changed files with 3 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ public class SupplierController {
List<Supplier> supplierList = supplierService.findBySelectCus();
JSONArray dataArray = new JSONArray();
if (null != supplierList) {
boolean depotFlag = systemConfigService.getDepotFlag();
boolean customerFlag = systemConfigService.getCustomerFlag();
for (Supplier supplier : supplierList) {
JSONObject item = new JSONObject();
//勾选判断1
@@ -96,7 +96,7 @@ public class SupplierController {
} catch (DataAccessException e) {
logger.error(">>>>>>>>>>>>>>>>>查询用户对应的客户:存在异常!");
}
if (!depotFlag || flag) {
if (!customerFlag || flag) {
item.put("id", supplier.getId());
item.put("supplier", supplier.getSupplier()); //客户名称
dataArray.add(item);