|
|
@@ -10,10 +10,7 @@ import com.dk.common.model.vo.mst.StaffVO;
|
|
|
import com.dk.common.response.ResponseCodeEnum;
|
|
|
import com.dk.common.response.ResponseResultUtil;
|
|
|
import com.dk.common.response.ResponseResultVO;
|
|
|
-import com.dk.oauth.entity.Company;
|
|
|
-import com.dk.oauth.entity.CompanyResponse;
|
|
|
-import com.dk.oauth.entity.MenuFrequency;
|
|
|
-import com.dk.oauth.entity.UserLogin;
|
|
|
+import com.dk.oauth.entity.*;
|
|
|
import com.dk.oauth.feign.service.OrgFeign;
|
|
|
import com.dk.oauth.feign.service.StaffFeign;
|
|
|
import com.dk.oauth.mapper.*;
|
|
|
@@ -60,6 +57,8 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
SaleChannelMapper saleChannelMapper;
|
|
|
@Resource
|
|
|
WarehouseMapper warehouseMapper;
|
|
|
+ @Resource
|
|
|
+ MoneyAccountMapper moneyAccountMapper;
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -248,8 +247,6 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
m.put("roleCode",roleResponses.get(i).getRoleCode());
|
|
|
m.put("roleName",roleResponses.get(i).getRoleName());
|
|
|
m.put("displayNo",roleResponses.get(i).getDisplayNo());
|
|
|
- m.put("cpId",cpId);
|
|
|
- m.put("opCreateUserId",staffId);
|
|
|
listRoles.add(m);
|
|
|
}
|
|
|
map.put("roles",listRoles);
|
|
|
@@ -262,8 +259,6 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
m.put("whName",warehouseResponses.get(i).getWhName());
|
|
|
m.put("displayNo",warehouseResponses.get(i).getDisplayNo());
|
|
|
m.put("flgDefault",warehouseResponses.get(i).getFlgDefault());
|
|
|
- m.put("cpId",cpId);
|
|
|
- m.put("opCreateUserId",staffId);
|
|
|
listWarehouses.add(m);
|
|
|
}
|
|
|
map.put("warehouses",listWarehouses);
|
|
|
@@ -276,8 +271,6 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
m.put("channelName",saleChannelResponses.get(i).getChannelName());
|
|
|
m.put("displayNo",saleChannelResponses.get(i).getDisplayNo());
|
|
|
m.put("flgDefault",saleChannelResponses.get(i).getFlgDefault());
|
|
|
- m.put("cpId",cpId);
|
|
|
- m.put("opCreateUserId",staffId);
|
|
|
listSaleChannels.add(m);
|
|
|
}
|
|
|
map.put("saleChannels",listSaleChannels);
|
|
|
@@ -291,11 +284,23 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
m.put("dataValue",dictionaryDataResponses.get(i).getDataValue());
|
|
|
m.put("displayNo",dictionaryDataResponses.get(i).getDisplayNo());
|
|
|
m.put("flgDefault",dictionaryDataResponses.get(i).getFlgDefault());
|
|
|
- m.put("cpId",cpId);
|
|
|
- m.put("opCreateUserId",staffId);
|
|
|
listDictionaryDatas.add(m);
|
|
|
}
|
|
|
map.put("dictionaryDatas",listDictionaryDatas);
|
|
|
+ // 资金账户
|
|
|
+ List<MoneyAccountResponse> moneyAccountResponses = moneyAccountMapper.selectByCond(new MoneyAccountQuery());
|
|
|
+ List<Map<String, Object>> listMoneyAccounts = new ArrayList<>();
|
|
|
+ for (int i = 0; i < moneyAccountResponses.size(); i++) {
|
|
|
+ m = new HashMap<>();
|
|
|
+ m.put("macCode",moneyAccountResponses.get(i).getMacCode());
|
|
|
+ m.put("macName",moneyAccountResponses.get(i).getMacName());
|
|
|
+ m.put("macType",moneyAccountResponses.get(i).getMacType());
|
|
|
+ m.put("balance",moneyAccountResponses.get(i).getBalance());
|
|
|
+ m.put("displayNo",moneyAccountResponses.get(i).getDisplayNo());
|
|
|
+ m.put("flgDefault",moneyAccountResponses.get(i).getFlgDefault());
|
|
|
+ listMoneyAccounts.add(m);
|
|
|
+ }
|
|
|
+ map.put("moneyAccounts",listMoneyAccounts);
|
|
|
// 计量单位
|
|
|
List<UnitResponse> unitResponses = unitMapper.selectByCond(new UnitQuery());
|
|
|
List<Map<String, Object>> listUnits = new ArrayList<>();
|
|
|
@@ -305,8 +310,6 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
m.put("unitName",unitResponses.get(i).getUnitName());
|
|
|
m.put("decimalPlaces",unitResponses.get(i).getDecimalPlaces());
|
|
|
m.put("displayNo",unitResponses.get(i).getDisplayNo());
|
|
|
- m.put("cpId",cpId);
|
|
|
- m.put("opCreateUserId",staffId);
|
|
|
listUnits.add(m);
|
|
|
}
|
|
|
map.put("units",listUnits);
|
|
|
@@ -326,8 +329,6 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
m.put("levelCode",goodsCategoryResponses.get(i).getLevelCode());
|
|
|
m.put("levelName",goodsCategoryResponses.get(i).getLevelName());
|
|
|
m.put("displayNo",goodsCategoryResponses.get(i).getDisplayNo());
|
|
|
- m.put("cpId",cpId);
|
|
|
- m.put("opCreateUserId",staffId);
|
|
|
listGoodsCategorys.add(m);
|
|
|
}
|
|
|
map.put("goodsCategorys",listGoodsCategorys);
|