|
|
@@ -14,10 +14,12 @@ import com.dk.mdm.feign.CompanyFeign;
|
|
|
import com.dk.mdm.infrastructure.convert.mst.StaffConvert;
|
|
|
import com.dk.mdm.infrastructure.util.AuthUtils;
|
|
|
import com.dk.mdm.mapper.common.CommonMapper;
|
|
|
+import com.dk.mdm.mapper.mst.ComMenuMapper;
|
|
|
import com.dk.mdm.model.pojo.mst.*;
|
|
|
import com.dk.mdm.mapper.mst.StaffMapper;
|
|
|
import com.dk.common.service.BaseService;
|
|
|
import com.dk.common.mapper.BaseMapper;
|
|
|
+import com.dk.mdm.model.query.mst.ComMenuQuery;
|
|
|
import com.dk.mdm.model.query.mst.StaffQuery;
|
|
|
import com.dk.common.model.response.mst.StaffResponse;
|
|
|
import com.dk.common.model.vo.mst.StaffVO;
|
|
|
@@ -75,6 +77,9 @@ public class StaffService extends BaseService<Staff> {
|
|
|
private CommonMapper commonMapper;
|
|
|
|
|
|
@Autowired
|
|
|
+ private ComMenuService comMenuService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
private AuthUtils authUtils;
|
|
|
|
|
|
/**
|
|
|
@@ -259,7 +264,6 @@ public class StaffService extends BaseService<Staff> {
|
|
|
return ResponseResultUtil.error(ResponseCodeEnum.INSERT_FAIL);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
return ResponseResultUtil.success();
|
|
|
}
|
|
|
|
|
|
@@ -290,8 +294,15 @@ public class StaffService extends BaseService<Staff> {
|
|
|
|
|
|
// 获取菜单
|
|
|
List menuList = commonMapper.getMenuByUser(param);
|
|
|
+ // 获取常用菜单
|
|
|
+ ResponseResultVO<?> comMenuList = comMenuService.selectMenu(new ComMenuQuery().setStaffId(staff.getStaffId())
|
|
|
+ .setAppCode(param.get("appCode").toString()));
|
|
|
+ // 获取所有参数
|
|
|
+ Map<String, Object> allSettingValue = commonMapper.getAllSettingValue();
|
|
|
Dictionary<String,Object> dic = new Hashtable<>();
|
|
|
dic.put("menuList", menuList);
|
|
|
+ dic.put("comMenuList", comMenuList.getData());
|
|
|
+ dic.put("settingValue", allSettingValue);
|
|
|
dic.put("staff",staff);
|
|
|
return ResponseResultUtil.success(dic);
|
|
|
}
|