|
@@ -1,42 +1,27 @@
|
|
|
package org.jeecg.modules.projectChbWxf.controller;
|
|
|
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.stream.Collectors;
|
|
|
-import java.io.IOException;
|
|
|
-import java.io.UnsupportedEncodingException;
|
|
|
-import java.net.URLDecoder;
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-import org.jeecg.common.api.vo.Result;
|
|
|
-import org.jeecg.common.system.query.QueryGenerator;
|
|
|
-import org.jeecg.common.util.oConvertUtils;
|
|
|
-import org.jeecg.modules.projectChbWxf.entity.ProjectChbWxf;
|
|
|
-import org.jeecg.modules.projectChbWxf.service.IProjectChbWxfService;
|
|
|
-
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-
|
|
|
-import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
|
-import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
|
-import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
|
-import org.jeecgframework.poi.excel.entity.ImportParams;
|
|
|
-import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
|
+import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
+import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.modules.projectChbWxf.entity.ProjectChbWxf;
|
|
|
+import org.jeecg.modules.projectChbWxf.service.IProjectChbWxfService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
-import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
|
|
|
- /**
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
* @Description: 外协费
|
|
|
* @Author: jeecg-boot
|
|
|
* @Date: 2023-08-10
|
|
@@ -49,7 +34,15 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
public class ProjectChbWxfController extends JeecgController<ProjectChbWxf, IProjectChbWxfService> {
|
|
|
@Autowired
|
|
|
private IProjectChbWxfService projectChbWxfService;
|
|
|
-
|
|
|
+
|
|
|
+ /**项目成本——外协费详情——根据任务号查询*/
|
|
|
+ @ApiOperation("项目成本——外协费详情")
|
|
|
+ @GetMapping("/getWXFDetailList")
|
|
|
+ public List<ProjectChbWxf> getWXFDetailList(String taskno){
|
|
|
+ return projectChbWxfService.getWXFDetailList(taskno);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|
|
@@ -71,7 +64,7 @@ public class ProjectChbWxfController extends JeecgController<ProjectChbWxf, IPro
|
|
|
IPage<ProjectChbWxf> pageList = projectChbWxfService.page(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|
|
@@ -86,7 +79,7 @@ public class ProjectChbWxfController extends JeecgController<ProjectChbWxf, IPro
|
|
|
projectChbWxfService.save(projectChbWxf);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 编辑
|
|
|
*
|
|
@@ -101,7 +94,7 @@ public class ProjectChbWxfController extends JeecgController<ProjectChbWxf, IPro
|
|
|
projectChbWxfService.updateById(projectChbWxf);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id删除
|
|
|
*
|
|
@@ -116,7 +109,7 @@ public class ProjectChbWxfController extends JeecgController<ProjectChbWxf, IPro
|
|
|
projectChbWxfService.removeById(id);
|
|
|
return Result.OK("删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 批量删除
|
|
|
*
|
|
@@ -131,7 +124,7 @@ public class ProjectChbWxfController extends JeecgController<ProjectChbWxf, IPro
|
|
|
this.projectChbWxfService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id查询
|
|
|
*
|