|
@@ -45,77 +45,19 @@ public class OverheadLineController extends BaseController {
|
|
private ItemService itemService;
|
|
private ItemService itemService;
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
- * 首页跳转
|
|
|
|
- */
|
|
|
|
- @RequestMapping("/index")
|
|
|
|
- public String toImport(){
|
|
|
|
- return "modules/sg/free/indexProject";
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- *数据导入
|
|
|
|
- */
|
|
|
|
-// @RequestMapping("/import")
|
|
|
|
-// public String importFile(MultipartFile file, RedirectAttributes redirectAttributes, HttpServletRequest request, Model model) {
|
|
|
|
-// String projectName = request.getParameter("name"); //项目名称
|
|
|
|
-// String projectId = request.getParameter("projectId"); //工程ID
|
|
|
|
-// String type = request.getParameter("type"); //工程类型
|
|
|
|
-// String id = getId();
|
|
|
|
-// try {
|
|
|
|
-// //保存数据到数据库
|
|
|
|
-// overheadLineService.saveJk(file,projectName,id,projectId,type);
|
|
|
|
-// } catch (RuntimeException e) {
|
|
|
|
-// addMessage(redirectAttributes, "导入失败,"+e.getMessage());
|
|
|
|
-// return "redirect:/a/project/list";
|
|
|
|
-// } catch (Exception e){
|
|
|
|
-// addMessage(redirectAttributes, "导入失败");
|
|
|
|
-// return "redirect:/a/project/list";
|
|
|
|
-// }
|
|
|
|
-// addMessage(redirectAttributes, "导入成功");
|
|
|
|
-// return "redirect:/a/jkxl/list?id="+id;
|
|
|
|
-// }
|
|
|
|
-
|
|
|
|
|
|
|
|
@RequestMapping("/list")
|
|
@RequestMapping("/list")
|
|
public String list(HttpServletRequest request,Model model){
|
|
public String list(HttpServletRequest request,Model model){
|
|
String id = request.getParameter("id");
|
|
String id = request.getParameter("id");
|
|
String type = request.getParameter("type");
|
|
String type = request.getParameter("type");
|
|
- WbsItem wbsItem = new WbsItem();
|
|
|
|
- JkxlAdjustFee jkxlAdjustFee = new JkxlAdjustFee();
|
|
|
|
- wbsItem.setId(id);
|
|
|
|
- wbsItem.setType(type);
|
|
|
|
- jkxlAdjustFee.setId(id);
|
|
|
|
- List<WbsItem> list1 = new ArrayList<>();
|
|
|
|
- list1.add(wbsItem);
|
|
|
|
- //查询费用明细
|
|
|
|
- List<JkxlDetailFee> list = overheadLineService.getList(id,type);
|
|
|
|
- //求和
|
|
|
|
- list.addAll(getTotal(list,type));
|
|
|
|
- //查询未识别数据
|
|
|
|
- List<JkxlAdjustFee> list2 = feeAdjustService.getTzFee(jkxlAdjustFee);
|
|
|
|
- //数据校验展示
|
|
|
|
- List<Settlement> list3 = settlementService.selectSettlementService(id,type);
|
|
|
|
- HashMap map = new HashMap();
|
|
|
|
- map.put("list1",list1);
|
|
|
|
- map.put("list",list);
|
|
|
|
- map.put("list2",list2);
|
|
|
|
- map.put("list3",list3);
|
|
|
|
- model.addAttribute("map",map);
|
|
|
|
- return "modules/sg/free/wbslist";
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @RequestMapping("/temlist")
|
|
|
|
- public String temlist(HttpServletRequest request,Model model){
|
|
|
|
- String id = request.getParameter("id");
|
|
|
|
- String type = request.getParameter("type");
|
|
|
|
String projectId = request.getParameter("projectId");
|
|
String projectId = request.getParameter("projectId");
|
|
WbsItem wbsItem = new WbsItem();
|
|
WbsItem wbsItem = new WbsItem();
|
|
JkxlAdjustFee jkxlAdjustFee = new JkxlAdjustFee();
|
|
JkxlAdjustFee jkxlAdjustFee = new JkxlAdjustFee();
|
|
wbsItem.setId(id);
|
|
wbsItem.setId(id);
|
|
wbsItem.setType(type);
|
|
wbsItem.setType(type);
|
|
- wbsItem.setProjectId(projectId);
|
|
|
|
|
|
+ if(projectId != null) {
|
|
|
|
+ wbsItem.setProjectId(projectId);
|
|
|
|
+ }
|
|
jkxlAdjustFee.setId(id);
|
|
jkxlAdjustFee.setId(id);
|
|
List<WbsItem> list1 = new ArrayList<>();
|
|
List<WbsItem> list1 = new ArrayList<>();
|
|
list1.add(wbsItem);
|
|
list1.add(wbsItem);
|
|
@@ -137,6 +79,7 @@ public class OverheadLineController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
*金额分摊调整
|
|
*金额分摊调整
|
|
*/
|
|
*/
|