【删除】注释掉以前拉过来的无用代码:文档库、文档库阶段分析、旧收藏、旧搜索中心、旧的状态自动更新日志
【修改】对外报告注释整体修改为资料中心
This commit is contained in:
+429
-430
@@ -7,7 +7,7 @@ import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||
//import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||
import com.jero.modules.document.entity.OSSFileForDocumentLibrary;
|
||||
import com.jero.modules.document.service.IBussDocumentLibraryEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
@@ -36,134 +36,135 @@ import java.util.Map;
|
||||
@RestController
|
||||
@RequestMapping("/document/bussDocumentLibraryEO")
|
||||
@Slf4j
|
||||
public class BussDocumentLibraryEOController extends JeroController<BussDocumentLibraryEO, IBussDocumentLibraryEOService> {
|
||||
@Deprecated
|
||||
public class BussDocumentLibraryEOController extends JeroController<Object, IBussDocumentLibraryEOService> {
|
||||
@Autowired
|
||||
private IBussDocumentLibraryEOService bussDocumentLibraryEOService;
|
||||
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
* @param parameter
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分页查询")
|
||||
@ApiOperation(value="分页查询", notes="分页查询")
|
||||
@PostMapping(value = "/queryPageInfo")
|
||||
@ResponseBody
|
||||
@RequiresPermissions("document:queryPageInfo")
|
||||
public JSONObject queryPageInfo(@RequestBody Map<String,Object> parameter) {
|
||||
IPage infoPage = bussDocumentLibraryEOService.getInfoPage(parameter);
|
||||
Result<IPage> ok = Result.OK(infoPage);
|
||||
JSONObject jsonResult = JSONObject.fromObject(ok);
|
||||
return jsonResult;
|
||||
}
|
||||
// /**
|
||||
// * 分页列表查询
|
||||
// * @param parameter
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "分页查询")
|
||||
// @ApiOperation(value="分页查询", notes="分页查询")
|
||||
// @PostMapping(value = "/queryPageInfo")
|
||||
// @ResponseBody
|
||||
// @RequiresPermissions("document:queryPageInfo")
|
||||
// public JSONObject queryPageInfo(@RequestBody Map<String,Object> parameter) {
|
||||
// IPage infoPage = bussDocumentLibraryEOService.getInfoPage(parameter);
|
||||
// Result<IPage> ok = Result.OK(infoPage);
|
||||
// JSONObject jsonResult = JSONObject.fromObject(ok);
|
||||
// return jsonResult;
|
||||
// }
|
||||
|
||||
/**
|
||||
* 代替标准分页列表查询
|
||||
* @param parameter
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "代替标准分页列表查询")
|
||||
@ApiOperation(value="代替标准分页列表查询", notes="代替标准分页列表查询")
|
||||
@PostMapping(value = "/replacePageInfo")
|
||||
@ResponseBody
|
||||
@RequiresPermissions("document:getInfoById")
|
||||
public Result<IPage> replacePageInfo(@RequestBody Map<String,Object> parameter) {
|
||||
IPage infoPage = bussDocumentLibraryEOService.replacePageInfo(parameter);
|
||||
return Result.OK(infoPage);
|
||||
}
|
||||
// /**
|
||||
// * 代替标准分页列表查询
|
||||
// * @param parameter
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "代替标准分页列表查询")
|
||||
// @ApiOperation(value="代替标准分页列表查询", notes="代替标准分页列表查询")
|
||||
// @PostMapping(value = "/replacePageInfo")
|
||||
// @ResponseBody
|
||||
// @RequiresPermissions("document:getInfoById")
|
||||
// public Result<IPage> replacePageInfo(@RequestBody Map<String,Object> parameter) {
|
||||
// IPage infoPage = bussDocumentLibraryEOService.replacePageInfo(parameter);
|
||||
// return Result.OK(infoPage);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * ocr识别调取已入库文件
|
||||
// * @param parameter
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "ocr识别调取已入库文件分页")
|
||||
// @ApiOperation(value="ocr识别调取已入库文件", notes="ocr识别调取已入库文件")
|
||||
// @PostMapping(value = "/ocrPageInfo")
|
||||
// @ResponseBody
|
||||
// @RequiresPermissions("document:ocrPageInfo")
|
||||
// public Result<IPage<Map<String,Object>>> ocrPageInfo(@RequestBody Map<String,Object> parameter) {
|
||||
// IPage<Map<String,Object>> infoPage = bussDocumentLibraryEOService.ocrPageInfo(parameter);
|
||||
// return Result.OK(infoPage);
|
||||
// }
|
||||
|
||||
/**
|
||||
* ocr识别调取已入库文件
|
||||
* @param parameter
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "ocr识别调取已入库文件分页")
|
||||
@ApiOperation(value="ocr识别调取已入库文件", notes="ocr识别调取已入库文件")
|
||||
@PostMapping(value = "/ocrPageInfo")
|
||||
@ResponseBody
|
||||
@RequiresPermissions("document:ocrPageInfo")
|
||||
public Result<IPage<Map<String,Object>>> ocrPageInfo(@RequestBody Map<String,Object> parameter) {
|
||||
IPage<Map<String,Object>> infoPage = bussDocumentLibraryEOService.ocrPageInfo(parameter);
|
||||
return Result.OK(infoPage);
|
||||
}
|
||||
// /**
|
||||
// * 文档翻译调取已入库文件
|
||||
// * @param parameter
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档翻译调取已入库文件")
|
||||
// @ApiOperation(value="文档翻译调取已入库文件", notes="文档翻译调取已入库文件")
|
||||
// @PostMapping(value = "/transPageInfo")
|
||||
// @ResponseBody
|
||||
// @RequiresPermissions("documentTranslation:retrieval")
|
||||
// public Result<IPage<Map<String,Object>>> transPageInfo(@RequestBody Map<String,Object> parameter) {
|
||||
// IPage<Map<String,Object>> infoPage = bussDocumentLibraryEOService.ocrPageInfo(parameter);
|
||||
// return Result.OK(infoPage);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 文档翻译调取已入库文件
|
||||
* @param parameter
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档翻译调取已入库文件")
|
||||
@ApiOperation(value="文档翻译调取已入库文件", notes="文档翻译调取已入库文件")
|
||||
@PostMapping(value = "/transPageInfo")
|
||||
@ResponseBody
|
||||
@RequiresPermissions("documentTranslation:retrieval")
|
||||
public Result<IPage<Map<String,Object>>> transPageInfo(@RequestBody Map<String,Object> parameter) {
|
||||
IPage<Map<String,Object>> infoPage = bussDocumentLibraryEOService.ocrPageInfo(parameter);
|
||||
return Result.OK(infoPage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-列表查询")
|
||||
@ApiOperation(value="文档库信息表-列表查询", notes="文档库信息表-列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<List<BussDocumentLibraryEO>> queryList() {
|
||||
List<BussDocumentLibraryEO> list = bussDocumentLibraryEOService.queryList();
|
||||
return Result.OK(list);
|
||||
}
|
||||
// /**
|
||||
// * 列表查询
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库信息表-列表查询")
|
||||
// @ApiOperation(value="文档库信息表-列表查询", notes="文档库信息表-列表查询")
|
||||
// @GetMapping(value = "/list")
|
||||
// public Result<List<BussDocumentLibraryEO>> queryList() {
|
||||
// List<BussDocumentLibraryEO> list = bussDocumentLibraryEOService.queryList();
|
||||
// return Result.OK(list);
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-通过id删除")
|
||||
@ApiOperation(value="文档库信息表-通过id删除", notes="文档库信息表-通过id删除")
|
||||
@GetMapping(value = "/delete")
|
||||
@RequiresPermissions("document:deleteBatch")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
bussDocumentLibraryEOService.deleteById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库信息表-通过id删除")
|
||||
// @ApiOperation(value="文档库信息表-通过id删除", notes="文档库信息表-通过id删除")
|
||||
// @GetMapping(value = "/delete")
|
||||
// @RequiresPermissions("document:deleteBatch")
|
||||
// public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
// bussDocumentLibraryEOService.deleteById(id);
|
||||
// return Result.OK("删除成功!");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-批量删除")
|
||||
@ApiOperation(value="文档库信息表-批量删除", notes="文档库信息表-批量删除")
|
||||
@GetMapping(value = "/deleteBatch")
|
||||
@RequiresPermissions("document:deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids, String cut) {
|
||||
this.bussDocumentLibraryEOService.deleteByIds(Arrays.asList(ids.split(",")),cut);
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库信息表-批量删除")
|
||||
// @ApiOperation(value="文档库信息表-批量删除", notes="文档库信息表-批量删除")
|
||||
// @GetMapping(value = "/deleteBatch")
|
||||
// @RequiresPermissions("document:deleteBatch")
|
||||
// public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids, String cut) {
|
||||
// this.bussDocumentLibraryEOService.deleteByIds(Arrays.asList(ids.split(",")),cut);
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-通过id查询")
|
||||
@ApiOperation(value="文档库信息表-通过id查询", notes="文档库信息表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
@RequiresPermissions("document:queryById")
|
||||
public Result<BussDocumentLibraryEO> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(id);
|
||||
if(bussDocumentLibraryEO==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(bussDocumentLibraryEO);
|
||||
}
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库信息表-通过id查询")
|
||||
// @ApiOperation(value="文档库信息表-通过id查询", notes="文档库信息表-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// @RequiresPermissions("document:queryById")
|
||||
// public Result<BussDocumentLibraryEO> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
// BussDocumentLibraryEO bussDocumentLibraryEO = bussDocumentLibraryEOService.queryById(id);
|
||||
// if(bussDocumentLibraryEO==null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(bussDocumentLibraryEO);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
@@ -182,343 +183,341 @@ public class BussDocumentLibraryEOController extends JeroController<BussDocument
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表表头
|
||||
* @param flag 标识传 1-->用于查询文档库字段属性
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-列表表头")
|
||||
@ApiOperation(value="文档库信息表-列表表头", notes="文档库信息表-列表表头")
|
||||
@GetMapping(value = "/getHeader")
|
||||
@RequiresPermissions("document:queryPageInfo")
|
||||
public Result<List<Map<String,Object>>> getHeader(@RequestParam(name="flag",required=true) String flag,
|
||||
@RequestParam(name="cut",required=true) String cut) {
|
||||
List<Map<String,Object>> list = bussDocumentLibraryEOService.getHeader(flag,cut,null);
|
||||
return Result.OK(list);
|
||||
}
|
||||
// /**
|
||||
// * 列表表头
|
||||
// * @param flag 标识传 1-->用于查询文档库字段属性
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库信息表-列表表头")
|
||||
// @ApiOperation(value="文档库信息表-列表表头", notes="文档库信息表-列表表头")
|
||||
// @GetMapping(value = "/getHeader")
|
||||
// @RequiresPermissions("document:queryPageInfo")
|
||||
// public Result<List<Map<String,Object>>> getHeader(@RequestParam(name="flag",required=true) String flag,
|
||||
// @RequestParam(name="cut",required=true) String cut) {
|
||||
// List<Map<String,Object>> list = bussDocumentLibraryEOService.getHeader(flag,cut,null);
|
||||
// return Result.OK(list);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 新增表单
|
||||
* @param flag 标识传 1-->用于查询文档库字段属性
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-新增表单")
|
||||
@ApiOperation(value="文档库信息表-新增表单", notes="文档库信息表-新增表单")
|
||||
@GetMapping(value = "/getAddForm")
|
||||
@RequiresPermissions("document:queryPageInfo")
|
||||
public Result<List<Map<String,Object>>> getAddForm(@RequestParam(name="flag",required=true) String flag,
|
||||
@RequestParam(name="cut",required=true) String cut,
|
||||
@RequestParam(name="type",required=true) String type) {
|
||||
List<Map<String, Object>> list = bussDocumentLibraryEOService.getAddForm(flag,cut,type);
|
||||
return Result.OK(list);
|
||||
}
|
||||
// /**
|
||||
// * 新增表单
|
||||
// * @param flag 标识传 1-->用于查询文档库字段属性
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库信息表-新增表单")
|
||||
// @ApiOperation(value="文档库信息表-新增表单", notes="文档库信息表-新增表单")
|
||||
// @GetMapping(value = "/getAddForm")
|
||||
// @RequiresPermissions("document:queryPageInfo")
|
||||
// public Result<List<Map<String,Object>>> getAddForm(@RequestParam(name="flag",required=true) String flag,
|
||||
// @RequestParam(name="cut",required=true) String cut,
|
||||
// @RequestParam(name="type",required=true) String type) {
|
||||
// List<Map<String, Object>> list = bussDocumentLibraryEOService.getAddForm(flag,cut,type);
|
||||
// return Result.OK(list);
|
||||
// }
|
||||
|
||||
/**
|
||||
* ocr识别调取已入库文件-中英文切换
|
||||
* @param flag 标识传 1-->用于查询文档库字段属性
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-ocr表头和查询条件")
|
||||
@ApiOperation(value="文档库信息表-ocr表头和查询条件", notes="文档库信息表-ocr表头和查询条件")
|
||||
@GetMapping(value = "/getHeaderOrConditionForOcr")
|
||||
@RequiresPermissions("document:ocrPageInfo")
|
||||
public Result<List<Map<String,Object>>> getHeaderOrConditionForOcr(@RequestParam(name="flag",required=true) String flag,
|
||||
@RequestParam(name="cut",required=true) String cut) {
|
||||
List<Map<String, Object>> list = bussDocumentLibraryEOService.getHeaderOrConditionForOcr(flag,cut);
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
// @AutoLog(value = "文档库信息表-ocr表头和查询条件")
|
||||
// @ApiOperation(value="文档库信息表-ocr表头和查询条件", notes="文档库信息表-ocr表头和查询条件")
|
||||
// @GetMapping(value = "/getHeaderOrConditionForOcr")
|
||||
// @RequiresPermissions("document:ocrPageInfo")
|
||||
// public Result<List<Map<String,Object>>> getHeaderOrConditionForOcr(@RequestParam(name="flag",required=true) String flag,
|
||||
// @RequestParam(name="cut",required=true) String cut) {
|
||||
// List<Map<String, Object>> list = bussDocumentLibraryEOService.getHeaderOrConditionForOcr(flag,cut);
|
||||
// return Result.OK(list);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * @param flag 标识传 1-->用于查询文档库字段属性
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库信息表-文档拆分表头和查询条件")
|
||||
// @ApiOperation(value="文档库信息表-文档拆分表头和查询条件", notes="文档库信息表-文档拆分表头和查询条件")
|
||||
// @GetMapping(value = "/getHeaderOrConditionForSplitFile")
|
||||
// @RequiresPermissions("split:sarFileSplitInfo:splitFile")
|
||||
// public Result<List<Map<String,Object>>> getHeaderOrConditionForSplitFile(@RequestParam(name="flag",required=true) String flag,
|
||||
// @RequestParam(name="cut",required=true) String cut) {
|
||||
// List<Map<String, Object>> list = bussDocumentLibraryEOService.getHeaderOrConditionForSplit(flag,cut);
|
||||
// return Result.OK(list);
|
||||
// }
|
||||
//
|
||||
/**
|
||||
* @param flag 标识传 1-->用于查询文档库字段属性
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-文档拆分表头和查询条件")
|
||||
@ApiOperation(value="文档库信息表-文档拆分表头和查询条件", notes="文档库信息表-文档拆分表头和查询条件")
|
||||
@GetMapping(value = "/getHeaderOrConditionForSplitFile")
|
||||
@RequiresPermissions("split:sarFileSplitInfo:splitFile")
|
||||
public Result<List<Map<String,Object>>> getHeaderOrConditionForSplitFile(@RequestParam(name="flag",required=true) String flag,
|
||||
@RequestParam(name="cut",required=true) String cut) {
|
||||
List<Map<String, Object>> list = bussDocumentLibraryEOService.getHeaderOrConditionForSplit(flag,cut);
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* ocr识别调取已入库文件-中英文切换
|
||||
* @param flag 标识传 1-->用于查询文档库字段属性
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库信息表-文档拆分表头和查询条件")
|
||||
@ApiOperation(value="文档库信息表-文档拆分表头和查询条件", notes="文档库信息表-文档拆分表头和查询条件")
|
||||
@GetMapping(value = "/getHeaderOrConditionForSplitResult")
|
||||
@RequiresPermissions("split:sarFileSplitInfo:splitResult")
|
||||
public Result<List<Map<String,Object>>> getHeaderOrConditionForSplitResult(@RequestParam(name="flag",required=true) String flag,
|
||||
@RequestParam(name="cut",required=true) String cut) {
|
||||
List<Map<String, Object>> list = bussDocumentLibraryEOService.getHeaderOrConditionForSplit(flag,cut);
|
||||
return Result.OK(list);
|
||||
}
|
||||
//
|
||||
// /**
|
||||
// * 编辑数据查询
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
//// @AutoLog(value = "编辑数据查询")
|
||||
//// @ApiOperation(value="编辑数据查询", notes="编辑数据查询")
|
||||
//// @GetMapping(value = "/getDocumentInfoById")
|
||||
//// @RequiresPermissions("document:updateInfo")
|
||||
//// public Result<List<Map<String,Object>>> getDocumentInfoById(@RequestParam(name="id",required=true) String id,
|
||||
//// @RequestParam(name="cut",required=true) String cut) {
|
||||
//// List<Map<String, Object>> list = bussDocumentLibraryEOService.getDocumentInfoById(id,cut);
|
||||
//// return Result.OK(list);
|
||||
//// }
|
||||
// /**
|
||||
// * 详情数据查询
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
//// @AutoLog(value = "详情数据查询")
|
||||
//// @ApiOperation(value="详情数据查询", notes="详情数据查询")
|
||||
//// @GetMapping(value = "/getInfoById")
|
||||
//// @RequiresPermissions("document:queryPageInfo")
|
||||
//// public Result<List<Map<String,Object>>> getInfoById(@RequestParam(name="id",required=true) String id,
|
||||
//// @RequestParam(name="cut",required=true) String cut) {
|
||||
//// List<Map<String, Object>> list = bussDocumentLibraryEOService.getInfoById(id,cut);
|
||||
//// return Result.OK(list);
|
||||
//// }
|
||||
//
|
||||
//// @ApiOperation(value="详情目录查询", notes="详情目录查询")
|
||||
//// @GetMapping(value = "/getMenuList")
|
||||
//// public Result<List<Map<String,Object>>> getMenuList(@RequestParam(name="id",required=true) String id,
|
||||
//// @RequestParam(name="cut",required=true) String cut) {
|
||||
//// List<Map<String, Object>> list = bussDocumentLibraryEOService.getMenuList(id,cut);
|
||||
//// return Result.OK(list);
|
||||
//// }
|
||||
//
|
||||
//// /**
|
||||
//// * 新增数据
|
||||
//// * @param map
|
||||
//// * @return
|
||||
//// */
|
||||
//// @AutoLog(value = "新增数据")
|
||||
//// @ApiOperation(value="新增数据", notes="新增数据")
|
||||
//// @PostMapping(value = "/addInfo")
|
||||
//// @RequiresPermissions("document:getInfoById")
|
||||
//// public Result<String> getInfoById(@RequestBody Map<String,Object> map) {
|
||||
//// try {
|
||||
//// bussDocumentLibraryEOService.addInfo(map);
|
||||
//// } catch (Exception e) {
|
||||
//// return Result.error(e.getMessage());
|
||||
//// }
|
||||
//// return Result.OK("新增成功");
|
||||
//// }
|
||||
//// /**
|
||||
//// * 编辑数据
|
||||
//// * @param map
|
||||
//// * @return
|
||||
//// */
|
||||
//// @AutoLog(value = "编辑数据")
|
||||
//// @ApiOperation(value="编辑数据", notes="编辑数据")
|
||||
//// @PostMapping(value = "/updateInfo")
|
||||
//// @RequiresPermissions("document:updateInfo")
|
||||
//// public Result<String> updateInfo(@RequestBody Map<String,Object> map) {
|
||||
//// try {
|
||||
//// bussDocumentLibraryEOService.updateInfo(map);
|
||||
//// } catch (Exception e) {
|
||||
//// return Result.error(e.getMessage());
|
||||
//// }
|
||||
//// return Result.OK("编辑成功");
|
||||
//// }
|
||||
//
|
||||
//
|
||||
//// /**
|
||||
//// * 添加收藏
|
||||
//// * @param id
|
||||
//// * @return
|
||||
//// */
|
||||
//// @AutoLog(value = "添加收藏")
|
||||
//// @ApiOperation(value="添加收藏", notes="添加收藏")
|
||||
//// @GetMapping(value = "/addCollect")
|
||||
//// @RequiresPermissions("document:addCollect")
|
||||
//// public Result<String> addCollect(String id) {
|
||||
//// try {
|
||||
//// bussDocumentLibraryEOService.addCollect(id);
|
||||
//// } catch (Exception e) {
|
||||
//// return Result.error("收藏失败");
|
||||
//// }
|
||||
//// return Result.OK("收藏成功");
|
||||
//// }
|
||||
//
|
||||
//// /**
|
||||
//// * 取消收藏
|
||||
//// * @param id
|
||||
//// * @return
|
||||
//// */
|
||||
//// @AutoLog(value = "取消收藏")
|
||||
//// @ApiOperation(value="取消收藏", notes="取消收藏")
|
||||
//// @GetMapping(value = "/cancelCollect")
|
||||
//// @RequiresPermissions("document:addCollect")
|
||||
//// public Result<String> cancelCollect(String id) {
|
||||
//// try {
|
||||
//// bussDocumentLibraryEOService.cancelCollect(id);
|
||||
//// } catch (Exception e) {
|
||||
//// return Result.error("取消收藏失败");
|
||||
//// }
|
||||
//// return Result.OK("取消收藏成功");
|
||||
//// }
|
||||
//
|
||||
//// /**
|
||||
//// * 添加订阅
|
||||
//// * @param id
|
||||
//// * @return
|
||||
//// */
|
||||
//// @AutoLog(value = "添加订阅")
|
||||
//// @ApiOperation(value="添加订阅", notes="添加订阅")
|
||||
//// @GetMapping(value = "/addSubscribe")
|
||||
//// @RequiresPermissions("document:addSubscribe")
|
||||
//// public Result<String> addSubscribe(String id) {
|
||||
//// try {
|
||||
//// bussDocumentLibraryEOService.addSubscribe(id);
|
||||
//// } catch (Exception e) {
|
||||
//// return Result.error("订阅失败");
|
||||
//// }
|
||||
//// return Result.OK("订阅成功");
|
||||
//// }
|
||||
////
|
||||
//// /**
|
||||
//// * 取消订阅
|
||||
//// * @param id
|
||||
//// * @return
|
||||
//// */
|
||||
//// @AutoLog(value = "取消订阅")
|
||||
//// @ApiOperation(value="取消订阅", notes="取消订阅")
|
||||
//// @GetMapping(value = "/cancelSubscribe")
|
||||
//// @RequiresPermissions("document:addSubscribe")
|
||||
//// public Result<String> cancelSubscribe(String id) {
|
||||
//// try {
|
||||
//// bussDocumentLibraryEOService.cancelSubscribe(id);
|
||||
//// } catch (Exception e) {
|
||||
//// return Result.error("取消订阅失败");
|
||||
//// }
|
||||
//// return Result.OK("取消订阅成功");
|
||||
//// }
|
||||
//
|
||||
//
|
||||
// @ApiOperation(value = "导出excel")
|
||||
// @GetMapping(value = "/exportExcel")
|
||||
// @RequiresPermissions("document:exportExcel")
|
||||
// public void exportExcel(@RequestParam Map<String,Object> map,
|
||||
// HttpServletResponse response,
|
||||
// HttpServletRequest request){
|
||||
// bussDocumentLibraryEOService.exportExcel(map,response,request);
|
||||
// }
|
||||
//
|
||||
// @ApiOperation(value = "带文件导出")
|
||||
// @GetMapping(value = "/exportZip")
|
||||
// @RequiresPermissions("document:exportZip")
|
||||
// public void exportZip(@RequestParam Map<String,Object> map,
|
||||
// HttpServletResponse response,
|
||||
// HttpServletRequest request) throws Exception {
|
||||
// bussDocumentLibraryEOService.exportZip(map,response,request);
|
||||
// }
|
||||
//
|
||||
//
|
||||
// @ApiOperation(value = "模板下载")
|
||||
// @GetMapping(value = "/exportTemplate")
|
||||
// @RequiresPermissions("document:exportTemplate")
|
||||
// public void exportTemplate(@RequestParam Map<String,Object> map, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
// bussDocumentLibraryEOService.exportTemplate(map,response,request);
|
||||
// }
|
||||
//
|
||||
//
|
||||
// @ApiOperation(value = "导入.zip")
|
||||
// @PostMapping(value = "/importZip")
|
||||
// @RequiresPermissions("document:importZip")
|
||||
// public Result<String> importZip(@RequestParam(value = "file", required = false) MultipartFile file,
|
||||
// @RequestParam(value = "cut",required = false) String cut) {
|
||||
// try {
|
||||
// bussDocumentLibraryEOService.importZip(file,cut);
|
||||
// } catch (Exception e) {
|
||||
// log.error(null,e);
|
||||
// return Result.error(e.getMessage());
|
||||
// }
|
||||
// return Result.OK("导入成功");
|
||||
// }
|
||||
|
||||
/**
|
||||
* 编辑数据查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "编辑数据查询")
|
||||
@ApiOperation(value="编辑数据查询", notes="编辑数据查询")
|
||||
@GetMapping(value = "/getDocumentInfoById")
|
||||
@RequiresPermissions("document:updateInfo")
|
||||
public Result<List<Map<String,Object>>> getDocumentInfoById(@RequestParam(name="id",required=true) String id,
|
||||
@RequestParam(name="cut",required=true) String cut) {
|
||||
List<Map<String, Object>> list = bussDocumentLibraryEOService.getDocumentInfoById(id,cut);
|
||||
return Result.OK(list);
|
||||
}
|
||||
/**
|
||||
* 详情数据查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "详情数据查询")
|
||||
@ApiOperation(value="详情数据查询", notes="详情数据查询")
|
||||
@GetMapping(value = "/getInfoById")
|
||||
@RequiresPermissions("document:queryPageInfo")
|
||||
public Result<List<Map<String,Object>>> getInfoById(@RequestParam(name="id",required=true) String id,
|
||||
@RequestParam(name="cut",required=true) String cut) {
|
||||
List<Map<String, Object>> list = bussDocumentLibraryEOService.getInfoById(id,cut);
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value="详情目录查询", notes="详情目录查询")
|
||||
@GetMapping(value = "/getMenuList")
|
||||
public Result<List<Map<String,Object>>> getMenuList(@RequestParam(name="id",required=true) String id,
|
||||
@RequestParam(name="cut",required=true) String cut) {
|
||||
List<Map<String, Object>> list = bussDocumentLibraryEOService.getMenuList(id,cut);
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增数据
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "新增数据")
|
||||
@ApiOperation(value="新增数据", notes="新增数据")
|
||||
@PostMapping(value = "/addInfo")
|
||||
@RequiresPermissions("document:getInfoById")
|
||||
public Result<String> getInfoById(@RequestBody Map<String,Object> map) {
|
||||
try {
|
||||
bussDocumentLibraryEOService.addInfo(map);
|
||||
} catch (Exception e) {
|
||||
return Result.error(e.getMessage());
|
||||
}
|
||||
return Result.OK("新增成功");
|
||||
}
|
||||
/**
|
||||
* 编辑数据
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "编辑数据")
|
||||
@ApiOperation(value="编辑数据", notes="编辑数据")
|
||||
@PostMapping(value = "/updateInfo")
|
||||
@RequiresPermissions("document:updateInfo")
|
||||
public Result<String> updateInfo(@RequestBody Map<String,Object> map) {
|
||||
try {
|
||||
bussDocumentLibraryEOService.updateInfo(map);
|
||||
} catch (Exception e) {
|
||||
return Result.error(e.getMessage());
|
||||
}
|
||||
return Result.OK("编辑成功");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 添加收藏
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "添加收藏")
|
||||
@ApiOperation(value="添加收藏", notes="添加收藏")
|
||||
@GetMapping(value = "/addCollect")
|
||||
@RequiresPermissions("document:addCollect")
|
||||
public Result<String> addCollect(String id) {
|
||||
try {
|
||||
bussDocumentLibraryEOService.addCollect(id);
|
||||
} catch (Exception e) {
|
||||
return Result.error("收藏失败");
|
||||
}
|
||||
return Result.OK("收藏成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消收藏
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "取消收藏")
|
||||
@ApiOperation(value="取消收藏", notes="取消收藏")
|
||||
@GetMapping(value = "/cancelCollect")
|
||||
@RequiresPermissions("document:addCollect")
|
||||
public Result<String> cancelCollect(String id) {
|
||||
try {
|
||||
bussDocumentLibraryEOService.cancelCollect(id);
|
||||
} catch (Exception e) {
|
||||
return Result.error("取消收藏失败");
|
||||
}
|
||||
return Result.OK("取消收藏成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加订阅
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "添加订阅")
|
||||
@ApiOperation(value="添加订阅", notes="添加订阅")
|
||||
@GetMapping(value = "/addSubscribe")
|
||||
@RequiresPermissions("document:addSubscribe")
|
||||
public Result<String> addSubscribe(String id) {
|
||||
try {
|
||||
bussDocumentLibraryEOService.addSubscribe(id);
|
||||
} catch (Exception e) {
|
||||
return Result.error("订阅失败");
|
||||
}
|
||||
return Result.OK("订阅成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消订阅
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "取消订阅")
|
||||
@ApiOperation(value="取消订阅", notes="取消订阅")
|
||||
@GetMapping(value = "/cancelSubscribe")
|
||||
@RequiresPermissions("document:addSubscribe")
|
||||
public Result<String> cancelSubscribe(String id) {
|
||||
try {
|
||||
bussDocumentLibraryEOService.cancelSubscribe(id);
|
||||
} catch (Exception e) {
|
||||
return Result.error("取消订阅失败");
|
||||
}
|
||||
return Result.OK("取消订阅成功");
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "导出excel")
|
||||
@GetMapping(value = "/exportExcel")
|
||||
@RequiresPermissions("document:exportExcel")
|
||||
public void exportExcel(@RequestParam Map<String,Object> map,
|
||||
HttpServletResponse response,
|
||||
HttpServletRequest request){
|
||||
bussDocumentLibraryEOService.exportExcel(map,response,request);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "带文件导出")
|
||||
@GetMapping(value = "/exportZip")
|
||||
@RequiresPermissions("document:exportZip")
|
||||
public void exportZip(@RequestParam Map<String,Object> map,
|
||||
HttpServletResponse response,
|
||||
HttpServletRequest request) throws Exception {
|
||||
bussDocumentLibraryEOService.exportZip(map,response,request);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "模板下载")
|
||||
@GetMapping(value = "/exportTemplate")
|
||||
@RequiresPermissions("document:exportTemplate")
|
||||
public void exportTemplate(@RequestParam Map<String,Object> map, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
bussDocumentLibraryEOService.exportTemplate(map,response,request);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "导入.zip")
|
||||
@PostMapping(value = "/importZip")
|
||||
@RequiresPermissions("document:importZip")
|
||||
public Result<String> importZip(@RequestParam(value = "file", required = false) MultipartFile file,
|
||||
@RequestParam(value = "cut",required = false) String cut) {
|
||||
try {
|
||||
bussDocumentLibraryEOService.importZip(file,cut);
|
||||
} catch (Exception e) {
|
||||
log.error(null,e);
|
||||
return Result.error(e.getMessage());
|
||||
}
|
||||
return Result.OK("导入成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "推送")
|
||||
@GetMapping(value = "/pullMessage")
|
||||
@RequiresPermissions("document:pullMessage")
|
||||
public Result<String> pullMessage(String departIds, String userIds, String documentIds) {
|
||||
|
||||
bussDocumentLibraryEOService.pullMessage(departIds,userIds,documentIds);
|
||||
|
||||
return Result.OK("推送成功");
|
||||
}
|
||||
// @ApiOperation(value = "推送")
|
||||
// @GetMapping(value = "/pullMessage")
|
||||
// @RequiresPermissions("document:pullMessage")
|
||||
// public Result<String> pullMessage(String departIds, String userIds, String documentIds) {
|
||||
//
|
||||
// bussDocumentLibraryEOService.pullMessage(departIds,userIds,documentIds);
|
||||
//
|
||||
// return Result.OK("推送成功");
|
||||
// }
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 验证文档是否被其他的文档绑定
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "验证文档是否被其他的文档绑定")
|
||||
@ApiOperation(value="验证文档是否被其他的文档绑定", notes="验证文档是否被其他的文档绑定")
|
||||
@GetMapping(value = "/verifyBind")
|
||||
public Result<String> verifyBind(@RequestParam(name="ids",required=true) String ids) {
|
||||
String msg = bussDocumentLibraryEOService.verifyBind(Arrays.asList(ids.split(",")));
|
||||
return Result.OK(msg);
|
||||
}
|
||||
// /**
|
||||
// * 验证文档是否被其他的文档绑定
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "验证文档是否被其他的文档绑定")
|
||||
// @ApiOperation(value="验证文档是否被其他的文档绑定", notes="验证文档是否被其他的文档绑定")
|
||||
// @GetMapping(value = "/verifyBind")
|
||||
// public Result<String> verifyBind(@RequestParam(name="ids",required=true) String ids) {
|
||||
// String msg = bussDocumentLibraryEOService.verifyBind(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK(msg);
|
||||
// }
|
||||
|
||||
@AutoLog(value = "虚拟中心添加调用文档库数据--分页")
|
||||
@ApiOperation(value="虚拟中心添加调用文档库数据--分页", notes="虚拟中心添加调用文档库数据--分页")
|
||||
@PostMapping(value = "/queryPageInfoDummy")
|
||||
public Result<IPage<BussDocumentLibraryEO>> queryPageInfoDummy(@RequestBody BussDocumentLibraryEO bussDocumentLibraryEO,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<BussDocumentLibraryEO> queryWrapper = QueryGenerator.initQueryWrapper(bussDocumentLibraryEO, req.getParameterMap());
|
||||
Page<BussDocumentLibraryEO> page = new Page<BussDocumentLibraryEO>(bussDocumentLibraryEO.getPageNo(), bussDocumentLibraryEO.getPageSize());
|
||||
IPage<BussDocumentLibraryEO> pageList = bussDocumentLibraryEOService.queryPageInfoDummy(page, queryWrapper,bussDocumentLibraryEO);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
// @AutoLog(value = "虚拟中心添加调用文档库数据--分页")
|
||||
// @ApiOperation(value="虚拟中心添加调用文档库数据--分页", notes="虚拟中心添加调用文档库数据--分页")
|
||||
// @PostMapping(value = "/queryPageInfoDummy")
|
||||
// public Result<IPage<BussDocumentLibraryEO>> queryPageInfoDummy(@RequestBody BussDocumentLibraryEO bussDocumentLibraryEO,
|
||||
// HttpServletRequest req) {
|
||||
// QueryWrapper<BussDocumentLibraryEO> queryWrapper = QueryGenerator.initQueryWrapper(bussDocumentLibraryEO, req.getParameterMap());
|
||||
// Page<BussDocumentLibraryEO> page = new Page<BussDocumentLibraryEO>(bussDocumentLibraryEO.getPageNo(), bussDocumentLibraryEO.getPageSize());
|
||||
// IPage<BussDocumentLibraryEO> pageList = bussDocumentLibraryEOService.queryPageInfoDummy(page, queryWrapper,bussDocumentLibraryEO);
|
||||
// return Result.OK(pageList);
|
||||
// }
|
||||
|
||||
|
||||
@ApiOperation(value="虚拟中心添加调用文档库数据--分页", notes="虚拟中心添加调用文档库数据--分页")
|
||||
@PostMapping(value = "/queryPageDummy")
|
||||
@ResponseBody
|
||||
public JSONObject queryPageDummy(@RequestBody Map<String,Object> parameter) {
|
||||
IPage infoPage = bussDocumentLibraryEOService.getPageDummy(parameter);
|
||||
Result<IPage> ok = Result.OK(infoPage);
|
||||
JSONObject jsonResult = JSONObject.fromObject(ok);
|
||||
return jsonResult;
|
||||
}
|
||||
// @ApiOperation(value="虚拟中心添加调用文档库数据--分页", notes="虚拟中心添加调用文档库数据--分页")
|
||||
// @PostMapping(value = "/queryPageDummy")
|
||||
// @ResponseBody
|
||||
// public JSONObject queryPageDummy(@RequestBody Map<String,Object> parameter) {
|
||||
// IPage infoPage = bussDocumentLibraryEOService.getPageDummy(parameter);
|
||||
// Result<IPage> ok = Result.OK(infoPage);
|
||||
// JSONObject jsonResult = JSONObject.fromObject(ok);
|
||||
// return jsonResult;
|
||||
// }
|
||||
|
||||
/**
|
||||
* 查看已上传的文件
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value="查看已上传的文件", notes="查看已上传的文件")
|
||||
@GetMapping(value = "/getFileInfos")
|
||||
@RequiresPermissions("document:queryPageInfo")
|
||||
public Result<List<OSSFileForDocumentLibrary>> getFileInfos(String id) {
|
||||
List<OSSFileForDocumentLibrary> fileInfos = bussDocumentLibraryEOService.getFileInfos(id);
|
||||
return Result.OK(fileInfos);
|
||||
}
|
||||
/**
|
||||
* 根据id查询编号和标题
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value="查看已上传的文件", notes="查看已上传的文件")
|
||||
@GetMapping(value = "/getTitle")
|
||||
public Result<String> getTitle(String id, String cut) {
|
||||
String title = bussDocumentLibraryEOService.getTitle(id, cut);
|
||||
return Result.OK(title);
|
||||
}
|
||||
@ApiOperation(value="编辑ES数据(添加module_type_flag)", notes="编辑ES数据(添加module_type_flag)")
|
||||
@GetMapping(value = "/updateES")
|
||||
public Result<Integer> getTitle() {
|
||||
int count = bussDocumentLibraryEOService.updateES();
|
||||
return Result.OK(count);
|
||||
}
|
||||
// /**
|
||||
// * 查看已上传的文件
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @ApiOperation(value="查看已上传的文件", notes="查看已上传的文件")
|
||||
// @GetMapping(value = "/getFileInfos")
|
||||
// @RequiresPermissions("document:queryPageInfo")
|
||||
// public Result<List<OSSFileForDocumentLibrary>> getFileInfos(String id) {
|
||||
// List<OSSFileForDocumentLibrary> fileInfos = bussDocumentLibraryEOService.getFileInfos(id);
|
||||
// return Result.OK(fileInfos);
|
||||
// }
|
||||
// /**
|
||||
// * 根据id查询编号和标题
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @ApiOperation(value="查看已上传的文件", notes="查看已上传的文件")
|
||||
// @GetMapping(value = "/getTitle")
|
||||
// public Result<String> getTitle(String id, String cut) {
|
||||
// String title = bussDocumentLibraryEOService.getTitle(id, cut);
|
||||
// return Result.OK(title);
|
||||
// }
|
||||
// @ApiOperation(value="编辑ES数据(添加module_type_flag)", notes="编辑ES数据(添加module_type_flag)")
|
||||
// @GetMapping(value = "/updateES")
|
||||
// public Result<Integer> getTitle() {
|
||||
// int count = bussDocumentLibraryEOService.updateES();
|
||||
// return Result.OK(count);
|
||||
// }
|
||||
}
|
||||
|
||||
+173
-173
@@ -1,173 +1,173 @@
|
||||
package com.jero.modules.document.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
import com.jero.modules.document.service.IPhasedImplementationDetailsEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 文档库-分阶段实施详情表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-02-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="文档库-分阶段实施详情表")
|
||||
@RestController
|
||||
@RequestMapping("/document/phasedImplementationDetailsEO")
|
||||
@Slf4j
|
||||
public class PhasedImplementationDetailsEOController extends JeroController<PhasedImplementationDetailsEO, IPhasedImplementationDetailsEOService> {
|
||||
@Autowired
|
||||
private IPhasedImplementationDetailsEOService phasedImplementationDetailsEOService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-分页列表查询")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-分页列表查询", notes="文档库-分阶段实施详情表-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
public Result<?> queryPageList(PhasedImplementationDetailsEO phasedImplementationDetailsEO,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
@RequestParam(name="cut", defaultValue="cn") String cut,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<PhasedImplementationDetailsEO> queryWrapper = QueryGenerator.initQueryWrapper(phasedImplementationDetailsEO, req.getParameterMap());
|
||||
Page<PhasedImplementationDetailsEO> page = new Page<PhasedImplementationDetailsEO>(pageNo, pageSize);
|
||||
IPage<PhasedImplementationDetailsEO> pageList = phasedImplementationDetailsEOService.page(page, queryWrapper);
|
||||
this.phasedImplementationDetailsEOService.disposeData(pageList.getRecords(),cut);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-列表查询")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-列表查询", notes="文档库-分阶段实施详情表-列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<List<PhasedImplementationDetailsEO>> queryList() {
|
||||
List<PhasedImplementationDetailsEO> list = phasedImplementationDetailsEOService.queryList();
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-添加")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-添加", notes="文档库-分阶段实施详情表-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<?> add(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
phasedImplementationDetailsEOService.add(phasedImplementationDetailsEO);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-编辑")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-编辑", notes="文档库-分阶段实施详情表-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<?> edit(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
phasedImplementationDetailsEOService.editById(phasedImplementationDetailsEO);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-通过id删除")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-通过id删除", notes="文档库-分阶段实施详情表-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
||||
phasedImplementationDetailsEOService.deleteById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-批量删除")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-批量删除", notes="文档库-分阶段实施详情表-批量删除")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.phasedImplementationDetailsEOService.deleteByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-通过id查询")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-通过id查询", notes="文档库-分阶段实施详情表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
PhasedImplementationDetailsEO phasedImplementationDetailsEO = phasedImplementationDetailsEOService.queryById(id);
|
||||
if(phasedImplementationDetailsEO==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(phasedImplementationDetailsEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param phasedImplementationDetailsEO
|
||||
*/
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
return super.exportXls(request, phasedImplementationDetailsEO, PhasedImplementationDetailsEO.class, "文档库-分阶段实施详情表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, PhasedImplementationDetailsEO.class);
|
||||
}
|
||||
|
||||
}
|
||||
//package com.jero.modules.document.controller;
|
||||
//
|
||||
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
//import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
//import com.jero.common.api.vo.Result;
|
||||
//import com.jero.common.aspect.annotation.AutoLog;
|
||||
//import com.jero.common.system.base.controller.JeroController;
|
||||
//import com.jero.common.system.query.QueryGenerator;
|
||||
//import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
//import com.jero.modules.document.service.IPhasedImplementationDetailsEOService;
|
||||
//import io.swagger.annotations.Api;
|
||||
//import io.swagger.annotations.ApiOperation;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.validation.annotation.Validated;
|
||||
//import org.springframework.web.bind.annotation.*;
|
||||
//import org.springframework.web.servlet.ModelAndView;
|
||||
//
|
||||
//import javax.servlet.http.HttpServletRequest;
|
||||
//import javax.servlet.http.HttpServletResponse;
|
||||
//import java.util.Arrays;
|
||||
//import java.util.List;
|
||||
//
|
||||
//
|
||||
// /**
|
||||
// * @Description: 文档库-分阶段实施详情表
|
||||
// * @Author: jero-boot
|
||||
// * @Date: 2023-02-22
|
||||
// * @Version: V1.0
|
||||
// */
|
||||
//@Api(tags="文档库-分阶段实施详情表")
|
||||
//@RestController
|
||||
//@RequestMapping("/document/phasedImplementationDetailsEO")
|
||||
//@Slf4j
|
||||
//public class PhasedImplementationDetailsEOController extends JeroController<PhasedImplementationDetailsEO, IPhasedImplementationDetailsEOService> {
|
||||
// @Autowired
|
||||
// private IPhasedImplementationDetailsEOService phasedImplementationDetailsEOService;
|
||||
//
|
||||
// /**
|
||||
// * 分页列表查询
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @param pageNo
|
||||
// * @param pageSize
|
||||
// * @param req
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-分页列表查询")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-分页列表查询", notes="文档库-分阶段实施详情表-分页列表查询")
|
||||
// @GetMapping(value = "/page")
|
||||
// public Result<?> queryPageList(PhasedImplementationDetailsEO phasedImplementationDetailsEO,
|
||||
// @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
// @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
// @RequestParam(name="cut", defaultValue="cn") String cut,
|
||||
// HttpServletRequest req) {
|
||||
// QueryWrapper<PhasedImplementationDetailsEO> queryWrapper = QueryGenerator.initQueryWrapper(phasedImplementationDetailsEO, req.getParameterMap());
|
||||
// Page<PhasedImplementationDetailsEO> page = new Page<PhasedImplementationDetailsEO>(pageNo, pageSize);
|
||||
// IPage<PhasedImplementationDetailsEO> pageList = phasedImplementationDetailsEOService.page(page, queryWrapper);
|
||||
// this.phasedImplementationDetailsEOService.disposeData(pageList.getRecords(),cut);
|
||||
// return Result.OK(pageList);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 列表查询
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-列表查询")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-列表查询", notes="文档库-分阶段实施详情表-列表查询")
|
||||
// @GetMapping(value = "/list")
|
||||
// public Result<List<PhasedImplementationDetailsEO>> queryList() {
|
||||
// List<PhasedImplementationDetailsEO> list = phasedImplementationDetailsEOService.queryList();
|
||||
// return Result.OK(list);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 添加
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-添加")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-添加", notes="文档库-分阶段实施详情表-添加")
|
||||
// @PostMapping(value = "/add")
|
||||
// public Result<?> add(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
// phasedImplementationDetailsEOService.add(phasedImplementationDetailsEO);
|
||||
// return Result.OK("添加成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 编辑
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-编辑")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-编辑", notes="文档库-分阶段实施详情表-编辑")
|
||||
// @PostMapping(value = "/edit")
|
||||
// public Result<?> edit(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
// phasedImplementationDetailsEOService.editById(phasedImplementationDetailsEO);
|
||||
// return Result.OK("编辑成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-通过id删除")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-通过id删除", notes="文档库-分阶段实施详情表-通过id删除")
|
||||
// @PostMapping(value = "/delete")
|
||||
// public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
||||
// phasedImplementationDetailsEOService.deleteById(id);
|
||||
// return Result.OK("删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-批量删除")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-批量删除", notes="文档库-分阶段实施详情表-批量删除")
|
||||
// @PostMapping(value = "/deleteBatch")
|
||||
// public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
// this.phasedImplementationDetailsEOService.deleteByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-通过id查询")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-通过id查询", notes="文档库-分阶段实施详情表-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
// PhasedImplementationDetailsEO phasedImplementationDetailsEO = phasedImplementationDetailsEOService.queryById(id);
|
||||
// if(phasedImplementationDetailsEO==null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(phasedImplementationDetailsEO);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 导出excel
|
||||
// *
|
||||
// * @param request
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// */
|
||||
// @RequestMapping(value = "/exportXls")
|
||||
// public ModelAndView exportXls(HttpServletRequest request, PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
// return super.exportXls(request, phasedImplementationDetailsEO, PhasedImplementationDetailsEO.class, "文档库-分阶段实施详情表");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, PhasedImplementationDetailsEO.class);
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
||||
+524
-524
File diff suppressed because it is too large
Load Diff
+173
-173
@@ -1,173 +1,173 @@
|
||||
package com.jero.modules.document.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
import com.jero.modules.document.service.IPhasedImplementationDetailsEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 文档库-分阶段实施详情表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-02-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="文档库-分阶段实施详情表")
|
||||
@RestController
|
||||
@RequestMapping("/phone/document/phasedImplementationDetailsEO")
|
||||
@Slf4j
|
||||
public class PhonePhasedImplementationDetailsEOController extends JeroController<PhasedImplementationDetailsEO, IPhasedImplementationDetailsEOService> {
|
||||
@Autowired
|
||||
private IPhasedImplementationDetailsEOService phasedImplementationDetailsEOService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-分页列表查询")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-分页列表查询", notes="文档库-分阶段实施详情表-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
public Result<?> queryPageList(PhasedImplementationDetailsEO phasedImplementationDetailsEO,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
@RequestParam(name="cut", defaultValue="cn") String cut,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<PhasedImplementationDetailsEO> queryWrapper = QueryGenerator.initQueryWrapper(phasedImplementationDetailsEO, req.getParameterMap());
|
||||
Page<PhasedImplementationDetailsEO> page = new Page<PhasedImplementationDetailsEO>(pageNo, pageSize);
|
||||
IPage<PhasedImplementationDetailsEO> pageList = phasedImplementationDetailsEOService.page(page, queryWrapper);
|
||||
this.phasedImplementationDetailsEOService.disposeData(pageList.getRecords(),cut);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-列表查询")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-列表查询", notes="文档库-分阶段实施详情表-列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<List<PhasedImplementationDetailsEO>> queryList() {
|
||||
List<PhasedImplementationDetailsEO> list = phasedImplementationDetailsEOService.queryList();
|
||||
return Result.OK(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-添加")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-添加", notes="文档库-分阶段实施详情表-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<?> add(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
phasedImplementationDetailsEOService.add(phasedImplementationDetailsEO);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-编辑")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-编辑", notes="文档库-分阶段实施详情表-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<?> edit(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
phasedImplementationDetailsEOService.editById(phasedImplementationDetailsEO);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-通过id删除")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-通过id删除", notes="文档库-分阶段实施详情表-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
||||
phasedImplementationDetailsEOService.deleteById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-批量删除")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-批量删除", notes="文档库-分阶段实施详情表-批量删除")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.phasedImplementationDetailsEOService.deleteByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "文档库-分阶段实施详情表-通过id查询")
|
||||
@ApiOperation(value="文档库-分阶段实施详情表-通过id查询", notes="文档库-分阶段实施详情表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
PhasedImplementationDetailsEO phasedImplementationDetailsEO = phasedImplementationDetailsEOService.queryById(id);
|
||||
if(phasedImplementationDetailsEO==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(phasedImplementationDetailsEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param phasedImplementationDetailsEO
|
||||
*/
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
return super.exportXls(request, phasedImplementationDetailsEO, PhasedImplementationDetailsEO.class, "文档库-分阶段实施详情表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, PhasedImplementationDetailsEO.class);
|
||||
}
|
||||
|
||||
}
|
||||
//package com.jero.modules.document.controller;
|
||||
//
|
||||
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
//import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
//import com.jero.common.api.vo.Result;
|
||||
//import com.jero.common.aspect.annotation.AutoLog;
|
||||
//import com.jero.common.system.base.controller.JeroController;
|
||||
//import com.jero.common.system.query.QueryGenerator;
|
||||
////import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
////import com.jero.modules.document.service.IPhasedImplementationDetailsEOService;
|
||||
//import io.swagger.annotations.Api;
|
||||
//import io.swagger.annotations.ApiOperation;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.validation.annotation.Validated;
|
||||
//import org.springframework.web.bind.annotation.*;
|
||||
//import org.springframework.web.servlet.ModelAndView;
|
||||
//
|
||||
//import javax.servlet.http.HttpServletRequest;
|
||||
//import javax.servlet.http.HttpServletResponse;
|
||||
//import java.util.Arrays;
|
||||
//import java.util.List;
|
||||
//
|
||||
//
|
||||
///**
|
||||
//* @Description: 文档库-分阶段实施详情表
|
||||
//* @Author: jero-boot
|
||||
//* @Date: 2023-02-22
|
||||
//* @Version: V1.0
|
||||
//*/
|
||||
//@Api(tags="文档库-分阶段实施详情表")
|
||||
//@RestController
|
||||
//@RequestMapping("/phone/document/phasedImplementationDetailsEO")
|
||||
//@Slf4j
|
||||
//public class PhonePhasedImplementationDetailsEOController extends JeroController<PhasedImplementationDetailsEO, IPhasedImplementationDetailsEOService> {
|
||||
// @Autowired
|
||||
// private IPhasedImplementationDetailsEOService phasedImplementationDetailsEOService;
|
||||
//
|
||||
// /**
|
||||
// * 分页列表查询
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @param pageNo
|
||||
// * @param pageSize
|
||||
// * @param req
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-分页列表查询")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-分页列表查询", notes="文档库-分阶段实施详情表-分页列表查询")
|
||||
// @GetMapping(value = "/page")
|
||||
// public Result<?> queryPageList(PhasedImplementationDetailsEO phasedImplementationDetailsEO,
|
||||
// @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
// @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
// @RequestParam(name="cut", defaultValue="cn") String cut,
|
||||
// HttpServletRequest req) {
|
||||
// QueryWrapper<PhasedImplementationDetailsEO> queryWrapper = QueryGenerator.initQueryWrapper(phasedImplementationDetailsEO, req.getParameterMap());
|
||||
// Page<PhasedImplementationDetailsEO> page = new Page<PhasedImplementationDetailsEO>(pageNo, pageSize);
|
||||
// IPage<PhasedImplementationDetailsEO> pageList = phasedImplementationDetailsEOService.page(page, queryWrapper);
|
||||
// this.phasedImplementationDetailsEOService.disposeData(pageList.getRecords(),cut);
|
||||
// return Result.OK(pageList);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 列表查询
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-列表查询")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-列表查询", notes="文档库-分阶段实施详情表-列表查询")
|
||||
// @GetMapping(value = "/list")
|
||||
// public Result<List<PhasedImplementationDetailsEO>> queryList() {
|
||||
// List<PhasedImplementationDetailsEO> list = phasedImplementationDetailsEOService.queryList();
|
||||
// return Result.OK(list);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 添加
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-添加")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-添加", notes="文档库-分阶段实施详情表-添加")
|
||||
// @PostMapping(value = "/add")
|
||||
// public Result<?> add(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
// phasedImplementationDetailsEOService.add(phasedImplementationDetailsEO);
|
||||
// return Result.OK("添加成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 编辑
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-编辑")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-编辑", notes="文档库-分阶段实施详情表-编辑")
|
||||
// @PostMapping(value = "/edit")
|
||||
// public Result<?> edit(@Validated @RequestBody PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
// phasedImplementationDetailsEOService.editById(phasedImplementationDetailsEO);
|
||||
// return Result.OK("编辑成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-通过id删除")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-通过id删除", notes="文档库-分阶段实施详情表-通过id删除")
|
||||
// @PostMapping(value = "/delete")
|
||||
// public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
||||
// phasedImplementationDetailsEOService.deleteById(id);
|
||||
// return Result.OK("删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-批量删除")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-批量删除", notes="文档库-分阶段实施详情表-批量删除")
|
||||
// @PostMapping(value = "/deleteBatch")
|
||||
// public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
// this.phasedImplementationDetailsEOService.deleteByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "文档库-分阶段实施详情表-通过id查询")
|
||||
// @ApiOperation(value="文档库-分阶段实施详情表-通过id查询", notes="文档库-分阶段实施详情表-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
// PhasedImplementationDetailsEO phasedImplementationDetailsEO = phasedImplementationDetailsEOService.queryById(id);
|
||||
// if(phasedImplementationDetailsEO==null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(phasedImplementationDetailsEO);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 导出excel
|
||||
// *
|
||||
// * @param request
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// */
|
||||
// @RequestMapping(value = "/exportXls")
|
||||
// public ModelAndView exportXls(HttpServletRequest request, PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
// return super.exportXls(request, phasedImplementationDetailsEO, PhasedImplementationDetailsEO.class, "文档库-分阶段实施详情表");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, PhasedImplementationDetailsEO.class);
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
||||
+107
-107
@@ -1,107 +1,107 @@
|
||||
package com.jero.modules.document.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jero.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 文档库信息表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2022-01-21
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("buss_document_library")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="buss_document_library对象", description="文档库信息表")
|
||||
public class BussDocumentLibraryEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
|
||||
/**编号*/
|
||||
@ApiModelProperty(value = "编号")
|
||||
private String serialNumber;
|
||||
|
||||
/**标题*/
|
||||
@ApiModelProperty(value = "标题")
|
||||
private String title;
|
||||
|
||||
private String titleEn;
|
||||
|
||||
/**适用范围*/
|
||||
@ApiModelProperty(value = "适用范围")
|
||||
private String shi4Yong4Fan4Wei2;
|
||||
|
||||
/**适用地区*/
|
||||
@ApiModelProperty(value = "适用地区")
|
||||
private String region;
|
||||
/**适用地区*/
|
||||
@ApiModelProperty(value = "类别")
|
||||
private String lei4Bie2;
|
||||
|
||||
/**状态*/
|
||||
@ApiModelProperty(value = "状态")
|
||||
@Dict(dicCode ="state")
|
||||
private String state;
|
||||
|
||||
/**技术领域*/
|
||||
@ApiModelProperty(value = "技术领域")
|
||||
@Dict(dicCode ="technology_territory")
|
||||
private String technologyTerritory;
|
||||
|
||||
/**新车型实施日期*/
|
||||
@ApiModelProperty(value = "新车型实施日期")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
private java.util.Date xin1Che1Xing2Shi2Shi1Ri4Qi1;
|
||||
|
||||
/**在产车实施日期*/
|
||||
@ApiModelProperty(value = "在产车实施日期")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
private java.util.Date implementTime;
|
||||
|
||||
/**对应标准*/
|
||||
@ApiModelProperty(value = "对应标准")
|
||||
private String correspondingStandard;
|
||||
|
||||
|
||||
/**代替标准*/
|
||||
@ApiModelProperty(value = "代替标准")
|
||||
@Dict(dicCode ="replace_standard")
|
||||
private String replaceStandard;
|
||||
|
||||
|
||||
/**被代替标准*/
|
||||
@ApiModelProperty(value = "被代替标准")
|
||||
@Dict(dicCode ="replaced_standard")
|
||||
private String replacedStandard;
|
||||
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private String cut;
|
||||
|
||||
@TableField(exist = false)
|
||||
private Integer pageNo;
|
||||
@TableField(exist = false)
|
||||
private Integer pageSize;
|
||||
|
||||
}
|
||||
//package com.jero.modules.document.entity;
|
||||
//
|
||||
//import com.baomidou.mybatisplus.annotation.IdType;
|
||||
//import com.baomidou.mybatisplus.annotation.TableField;
|
||||
//import com.baomidou.mybatisplus.annotation.TableId;
|
||||
//import com.baomidou.mybatisplus.annotation.TableName;
|
||||
//import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
//import com.jero.common.aspect.annotation.Dict;
|
||||
//import io.swagger.annotations.ApiModel;
|
||||
//import io.swagger.annotations.ApiModelProperty;
|
||||
//import lombok.Data;
|
||||
//import lombok.EqualsAndHashCode;
|
||||
//import lombok.experimental.Accessors;
|
||||
//import org.springframework.format.annotation.DateTimeFormat;
|
||||
//
|
||||
//import java.io.Serializable;
|
||||
//
|
||||
//
|
||||
///**
|
||||
// * @Description: 文档库信息表
|
||||
// * @Author: jero-boot
|
||||
// * @Date: 2022-01-21
|
||||
// * @Version: V1.0
|
||||
// */
|
||||
//@Data
|
||||
//@TableName("buss_document_library")
|
||||
//@Accessors(chain = true)
|
||||
//@EqualsAndHashCode(callSuper = false)
|
||||
//@ApiModel(value="buss_document_library对象", description="文档库信息表")
|
||||
//public class BussDocumentLibraryEO implements Serializable {
|
||||
// private static final long serialVersionUID = 1L;
|
||||
//
|
||||
// /**主键*/
|
||||
// @TableId(type = IdType.ASSIGN_ID)
|
||||
// @ApiModelProperty(value = "主键")
|
||||
// private String id;
|
||||
//
|
||||
// /**编号*/
|
||||
// @ApiModelProperty(value = "编号")
|
||||
// private String serialNumber;
|
||||
//
|
||||
// /**标题*/
|
||||
// @ApiModelProperty(value = "标题")
|
||||
// private String title;
|
||||
//
|
||||
// private String titleEn;
|
||||
//
|
||||
// /**适用范围*/
|
||||
// @ApiModelProperty(value = "适用范围")
|
||||
// private String shi4Yong4Fan4Wei2;
|
||||
//
|
||||
// /**适用地区*/
|
||||
// @ApiModelProperty(value = "适用地区")
|
||||
// private String region;
|
||||
// /**适用地区*/
|
||||
// @ApiModelProperty(value = "类别")
|
||||
// private String lei4Bie2;
|
||||
//
|
||||
// /**状态*/
|
||||
// @ApiModelProperty(value = "状态")
|
||||
// @Dict(dicCode ="state")
|
||||
// private String state;
|
||||
//
|
||||
// /**技术领域*/
|
||||
// @ApiModelProperty(value = "技术领域")
|
||||
// @Dict(dicCode ="technology_territory")
|
||||
// private String technologyTerritory;
|
||||
//
|
||||
// /**新车型实施日期*/
|
||||
// @ApiModelProperty(value = "新车型实施日期")
|
||||
// @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
// @DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
// private java.util.Date xin1Che1Xing2Shi2Shi1Ri4Qi1;
|
||||
//
|
||||
// /**在产车实施日期*/
|
||||
// @ApiModelProperty(value = "在产车实施日期")
|
||||
// @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
// @DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
// private java.util.Date implementTime;
|
||||
//
|
||||
// /**对应标准*/
|
||||
// @ApiModelProperty(value = "对应标准")
|
||||
// private String correspondingStandard;
|
||||
//
|
||||
//
|
||||
// /**代替标准*/
|
||||
// @ApiModelProperty(value = "代替标准")
|
||||
// @Dict(dicCode ="replace_standard")
|
||||
// private String replaceStandard;
|
||||
//
|
||||
//
|
||||
// /**被代替标准*/
|
||||
// @ApiModelProperty(value = "被代替标准")
|
||||
// @Dict(dicCode ="replaced_standard")
|
||||
// private String replacedStandard;
|
||||
//
|
||||
//
|
||||
//
|
||||
// @TableField(exist = false)
|
||||
// private String cut;
|
||||
//
|
||||
// @TableField(exist = false)
|
||||
// private Integer pageNo;
|
||||
// @TableField(exist = false)
|
||||
// private Integer pageSize;
|
||||
//
|
||||
//}
|
||||
|
||||
+98
-98
@@ -1,98 +1,98 @@
|
||||
package com.jero.modules.document.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 文档库-分阶段实施详情表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-02-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("phased_implementation_details")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="phased_implementation_details对象", description="文档库-分阶段实施详情表")
|
||||
public class PhasedImplementationDetailsEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "创建日期")
|
||||
private Date createTime;
|
||||
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private String updateBy;
|
||||
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "更新日期")
|
||||
private Date updateTime;
|
||||
|
||||
/**所属部门*/
|
||||
@ApiModelProperty(value = "所属部门")
|
||||
private String sysOrgCode;
|
||||
|
||||
/**文档库id*/
|
||||
@Excel(name = "文档库id", width = 15)
|
||||
@ApiModelProperty(value = "文档库id")
|
||||
private String bussDocumentLibraryId;
|
||||
|
||||
/**法规编号/条款*/
|
||||
@Excel(name = "法规编号/条款", width = 15)
|
||||
@ApiModelProperty(value = "法规编号/条款")
|
||||
private String standNumberOrClause;
|
||||
|
||||
/**实施类型*/
|
||||
@Excel(name = "实施类型", width = 15)
|
||||
@ApiModelProperty(value = "实施类型")
|
||||
private String implementationType;
|
||||
|
||||
/**实施类型展示文本**/
|
||||
@TableField(exist = false)
|
||||
private String implementationTypeText;
|
||||
|
||||
/**实施日期*/
|
||||
@Excel(name = "实施日期", width = 15, format = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "实施日期")
|
||||
private Date implementationDate;
|
||||
|
||||
/**备注*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
|
||||
/**排序号*/
|
||||
@Excel(name = "排序号", width = 15)
|
||||
@ApiModelProperty(value = "排序号")
|
||||
private Integer orderNum;
|
||||
}
|
||||
//package com.jero.modules.document.entity;
|
||||
//
|
||||
//import com.baomidou.mybatisplus.annotation.IdType;
|
||||
//import com.baomidou.mybatisplus.annotation.TableField;
|
||||
//import com.baomidou.mybatisplus.annotation.TableId;
|
||||
//import com.baomidou.mybatisplus.annotation.TableName;
|
||||
//import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
//import io.swagger.annotations.ApiModel;
|
||||
//import io.swagger.annotations.ApiModelProperty;
|
||||
//import lombok.Data;
|
||||
//import lombok.EqualsAndHashCode;
|
||||
//import lombok.experimental.Accessors;
|
||||
//import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
//import org.springframework.format.annotation.DateTimeFormat;
|
||||
//
|
||||
//import java.io.Serializable;
|
||||
//import java.util.Date;
|
||||
//
|
||||
//
|
||||
///**
|
||||
// * @Description: 文档库-分阶段实施详情表
|
||||
// * @Author: jero-boot
|
||||
// * @Date: 2023-02-22
|
||||
// * @Version: V1.0
|
||||
// */
|
||||
//@Data
|
||||
//@TableName("phased_implementation_details")
|
||||
//@Accessors(chain = true)
|
||||
//@EqualsAndHashCode(callSuper = false)
|
||||
//@ApiModel(value="phased_implementation_details对象", description="文档库-分阶段实施详情表")
|
||||
//public class PhasedImplementationDetailsEO implements Serializable {
|
||||
// private static final long serialVersionUID = 1L;
|
||||
//
|
||||
// /**主键*/
|
||||
// @TableId(type = IdType.ASSIGN_ID)
|
||||
// @ApiModelProperty(value = "主键")
|
||||
// private String id;
|
||||
//
|
||||
// /**创建人*/
|
||||
// @ApiModelProperty(value = "创建人")
|
||||
// private String createBy;
|
||||
//
|
||||
// /**创建日期*/
|
||||
// @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
// @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
// @ApiModelProperty(value = "创建日期")
|
||||
// private Date createTime;
|
||||
//
|
||||
// /**更新人*/
|
||||
// @ApiModelProperty(value = "更新人")
|
||||
// private String updateBy;
|
||||
//
|
||||
// /**更新日期*/
|
||||
// @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
// @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
// @ApiModelProperty(value = "更新日期")
|
||||
// private Date updateTime;
|
||||
//
|
||||
// /**所属部门*/
|
||||
// @ApiModelProperty(value = "所属部门")
|
||||
// private String sysOrgCode;
|
||||
//
|
||||
// /**文档库id*/
|
||||
// @Excel(name = "文档库id", width = 15)
|
||||
// @ApiModelProperty(value = "文档库id")
|
||||
// private String bussDocumentLibraryId;
|
||||
//
|
||||
// /**法规编号/条款*/
|
||||
// @Excel(name = "法规编号/条款", width = 15)
|
||||
// @ApiModelProperty(value = "法规编号/条款")
|
||||
// private String standNumberOrClause;
|
||||
//
|
||||
// /**实施类型*/
|
||||
// @Excel(name = "实施类型", width = 15)
|
||||
// @ApiModelProperty(value = "实施类型")
|
||||
// private String implementationType;
|
||||
//
|
||||
// /**实施类型展示文本**/
|
||||
// @TableField(exist = false)
|
||||
// private String implementationTypeText;
|
||||
//
|
||||
// /**实施日期*/
|
||||
// @Excel(name = "实施日期", width = 15, format = "yyyy-MM-dd")
|
||||
// @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
// @DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
// @ApiModelProperty(value = "实施日期")
|
||||
// private Date implementationDate;
|
||||
//
|
||||
// /**备注*/
|
||||
// @Excel(name = "备注", width = 15)
|
||||
// @ApiModelProperty(value = "备注")
|
||||
// private String remarks;
|
||||
//
|
||||
// /**排序号*/
|
||||
// @Excel(name = "排序号", width = 15)
|
||||
// @ApiModelProperty(value = "排序号")
|
||||
// private Integer orderNum;
|
||||
//}
|
||||
|
||||
+79
-78
@@ -2,7 +2,7 @@ package com.jero.modules.document.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||
//import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
@@ -14,89 +14,90 @@ import java.util.Map;
|
||||
* @Date: 2022-01-21
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface BussDocumentLibraryEOMapper extends BaseMapper<BussDocumentLibraryEO> {
|
||||
|
||||
int insertInfo(@Param("insertField") String insertField,
|
||||
@Param("insertValue") String insertValue);
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
*
|
||||
* @param page
|
||||
* @param field
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
IPage<Map<String,Object>> getInfoPage(@Param("page") IPage<Map<String,Object>> page,
|
||||
@Param("field") String field,
|
||||
@Param("condition") String condition);
|
||||
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @param
|
||||
* @param field
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getInfoList(@Param("field") String field,
|
||||
@Param("condition") String condition);
|
||||
|
||||
/**
|
||||
* 代替标准分页
|
||||
*
|
||||
* @param page
|
||||
* @param field
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
IPage<Map<String, Object>> replacePageInfo(@Param("page") IPage page,
|
||||
@Param("field") String field,
|
||||
@Param("condition") String condition);
|
||||
|
||||
/**
|
||||
* ocr识别调取已入库文件分页
|
||||
*
|
||||
* @param page
|
||||
* @param field
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> ocrPageInfo(
|
||||
@Param("field") String field,
|
||||
@Param("condition") String condition);
|
||||
|
||||
|
||||
/**
|
||||
* 根据代替标准列表查询
|
||||
*
|
||||
* @param
|
||||
* @param replaceStandard
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getInfoListByReplaceStandard(@Param("replaceStandard") String replaceStandard);
|
||||
|
||||
@Deprecated
|
||||
public interface BussDocumentLibraryEOMapper extends BaseMapper<Object> {
|
||||
|
||||
// int insertInfo(@Param("insertField") String insertField,
|
||||
// @Param("insertValue") String insertValue);
|
||||
//
|
||||
// /**
|
||||
// * 分页查询
|
||||
// *
|
||||
// * @param page
|
||||
// * @param field
|
||||
// * @param condition
|
||||
// * @return
|
||||
// */
|
||||
// IPage<Map<String,Object>> getInfoPage(@Param("page") IPage<Map<String,Object>> page,
|
||||
// @Param("field") String field,
|
||||
// @Param("condition") String condition);
|
||||
//
|
||||
//
|
||||
// /**
|
||||
// * 列表查询
|
||||
// *
|
||||
// * @param
|
||||
// * @param field
|
||||
// * @param condition
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> getInfoList(@Param("field") String field,
|
||||
// @Param("condition") String condition);
|
||||
//
|
||||
// /**
|
||||
// * 代替标准分页
|
||||
// *
|
||||
// * @param page
|
||||
// * @param field
|
||||
// * @param condition
|
||||
// * @return
|
||||
// */
|
||||
// IPage<Map<String, Object>> replacePageInfo(@Param("page") IPage page,
|
||||
// @Param("field") String field,
|
||||
// @Param("condition") String condition);
|
||||
//
|
||||
// /**
|
||||
// * ocr识别调取已入库文件分页
|
||||
// *
|
||||
// * @param page
|
||||
// * @param field
|
||||
// * @param condition
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> ocrPageInfo(
|
||||
// @Param("field") String field,
|
||||
// @Param("condition") String condition);
|
||||
//
|
||||
//
|
||||
// /**
|
||||
// * 根据代替标准列表查询
|
||||
// *
|
||||
// * @param
|
||||
// * @param replaceStandard
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> getInfoListByReplaceStandard(@Param("replaceStandard") String replaceStandard);
|
||||
//
|
||||
//
|
||||
List<Map<String,Object>> getListBySerialNumber(@Param("serialNumbers") String serialNumbers);
|
||||
|
||||
List<String> getListBySerialNumberFuzzy(@Param("serialNumber") String serialNumber);
|
||||
|
||||
|
||||
List<Map<String,Object>> selectMapsAll(@Param("ids") String ids);
|
||||
|
||||
List<Map<String,Object>> selectMapsAllBySerialNumber(@Param("serialNumberList") String serialNumberList);
|
||||
|
||||
List<Map<String,Object>> getListInfo(@Param("condition") String condition);
|
||||
|
||||
List<Map<String,Object>> selectMapsByDeleteIds(@Param("id") String id);
|
||||
|
||||
void updateByDeleteId(@Param("correspondingStandardStr") String correspondingStandardStr,
|
||||
@Param("replaceStandardStr") String replaceStandardStr,
|
||||
@Param("id") String id );
|
||||
List<Map<String, Object>> queryListByIds(@Param("ids") String ids);
|
||||
|
||||
BussDocumentLibraryEO getBySerialNumber(@Param("serialNumber") String serialNumber);
|
||||
// List<Map<String,Object>> selectMapsAll(@Param("ids") String ids);
|
||||
//
|
||||
// List<Map<String,Object>> selectMapsAllBySerialNumber(@Param("serialNumberList") String serialNumberList);
|
||||
//
|
||||
// List<Map<String,Object>> getListInfo(@Param("condition") String condition);
|
||||
//
|
||||
// List<Map<String,Object>> selectMapsByDeleteIds(@Param("id") String id);
|
||||
//
|
||||
// void updateByDeleteId(@Param("correspondingStandardStr") String correspondingStandardStr,
|
||||
// @Param("replaceStandardStr") String replaceStandardStr,
|
||||
// @Param("id") String id );
|
||||
// List<Map<String, Object>> queryListByIds(@Param("ids") String ids);
|
||||
//
|
||||
// BussDocumentLibraryEO getBySerialNumber(@Param("serialNumber") String serialNumber);
|
||||
|
||||
|
||||
}
|
||||
|
||||
+14
-14
@@ -1,14 +1,14 @@
|
||||
package com.jero.modules.document.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
|
||||
/**
|
||||
* @Description: 文档库-分阶段实施详情表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-02-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface PhasedImplementationDetailsEOMapper extends BaseMapper<PhasedImplementationDetailsEO> {
|
||||
|
||||
}
|
||||
//package com.jero.modules.document.mapper;
|
||||
//
|
||||
//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
//import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
//
|
||||
///**
|
||||
// * @Description: 文档库-分阶段实施详情表
|
||||
// * @Author: jero-boot
|
||||
// * @Date: 2023-02-22
|
||||
// * @Version: V1.0
|
||||
// */
|
||||
//public interface PhasedImplementationDetailsEOMapper extends BaseMapper<PhasedImplementationDetailsEO> {
|
||||
//
|
||||
//}
|
||||
|
||||
+109
-109
@@ -1,123 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.document.mapper.BussDocumentLibraryEOMapper">
|
||||
<resultMap id="BussDocumentLibraryEOResultMap" type="com.jero.modules.document.entity.BussDocumentLibraryEO">
|
||||
<id column="id" property="id" />
|
||||
<id column="serial_number" property="serialNumber" />
|
||||
<id column="title" property="title" />
|
||||
<id column="title_en" property="titleEn" />
|
||||
<id column="shi4_yong4_fan4_wei2" property="shi4Yong4Fan4Wei2" />
|
||||
<id column="state" property="state" />
|
||||
<id column="technology_territory" property="technologyTerritory" />
|
||||
<id column="xin1_che1_xing2_shi2_shi1_ri4_qi1" property="xin1Che1Xing2Shi2Shi1Ri4Qi1" />
|
||||
<id column="implement_time" property="implementTime" />
|
||||
<id column="corresponding_standard" property="correspondingStandard" />
|
||||
<id column="lei4_bie2" property="lei4Bie2" />
|
||||
</resultMap>
|
||||
<!-- <resultMap id="BussDocumentLibraryEOResultMap" type="com.jero.modules.document.entity.BussDocumentLibraryEO">-->
|
||||
<!-- <id column="id" property="id" />-->
|
||||
<!-- <id column="serial_number" property="serialNumber" />-->
|
||||
<!-- <id column="title" property="title" />-->
|
||||
<!-- <id column="title_en" property="titleEn" />-->
|
||||
<!-- <id column="shi4_yong4_fan4_wei2" property="shi4Yong4Fan4Wei2" />-->
|
||||
<!-- <id column="state" property="state" />-->
|
||||
<!-- <id column="technology_territory" property="technologyTerritory" />-->
|
||||
<!-- <id column="xin1_che1_xing2_shi2_shi1_ri4_qi1" property="xin1Che1Xing2Shi2Shi1Ri4Qi1" />-->
|
||||
<!-- <id column="implement_time" property="implementTime" />-->
|
||||
<!-- <id column="corresponding_standard" property="correspondingStandard" />-->
|
||||
<!-- <id column="lei4_bie2" property="lei4Bie2" />-->
|
||||
<!-- </resultMap>-->
|
||||
|
||||
<insert id="insertInfo">
|
||||
insert into buss_document_library(${insertField})
|
||||
values (${insertValue})
|
||||
</insert>
|
||||
<!-- <insert id="insertInfo">-->
|
||||
<!-- insert into buss_document_library(${insertField})-->
|
||||
<!-- values (${insertValue})-->
|
||||
<!-- </insert>-->
|
||||
|
||||
<!--分页-->
|
||||
<select id="getInfoPage" resultType="java.util.LinkedHashMap">
|
||||
select ${field} from buss_document_library
|
||||
${condition}
|
||||
</select>
|
||||
<!--列表-->
|
||||
<select id="getInfoList" resultType="java.util.LinkedHashMap">
|
||||
select ${field} from buss_document_library
|
||||
${condition}
|
||||
</select>
|
||||
<!--代替标准分页-->
|
||||
<select id="replacePageInfo" resultType="java.util.LinkedHashMap">
|
||||
select ${field} from buss_document_library
|
||||
${condition}
|
||||
</select>
|
||||
<!--ocr识别调取已入库文件分页-->
|
||||
<select id="ocrPageInfo" resultType="java.util.LinkedHashMap">
|
||||
select ${field}
|
||||
${condition}
|
||||
</select>
|
||||
<!--根据代替标准列表查询-->
|
||||
<select id="getInfoListByReplaceStandard" resultType="java.util.LinkedHashMap">
|
||||
select * from buss_document_library
|
||||
where 1=1
|
||||
<if test="replaceStandard != null" >
|
||||
and replace_standard in
|
||||
<foreach collection="replaceStandard.split(',')" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<!--根据编码列表查询-->
|
||||
<select id="getListBySerialNumber" resultType="java.util.LinkedHashMap">
|
||||
select * from buss_document_library
|
||||
where 1=1
|
||||
<if test="serialNumbers != null" >
|
||||
and serial_number in
|
||||
<foreach collection="serialNumbers.split(',')" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<!-- <!–分页–>-->
|
||||
<!-- <select id="getInfoPage" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select ${field} from buss_document_library-->
|
||||
<!-- ${condition}-->
|
||||
<!-- </select>-->
|
||||
<!-- <!–列表–>-->
|
||||
<!-- <select id="getInfoList" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select ${field} from buss_document_library-->
|
||||
<!-- ${condition}-->
|
||||
<!-- </select>-->
|
||||
<!-- <!–代替标准分页–>-->
|
||||
<!-- <select id="replacePageInfo" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select ${field} from buss_document_library-->
|
||||
<!-- ${condition}-->
|
||||
<!-- </select>-->
|
||||
<!-- <!–ocr识别调取已入库文件分页–>-->
|
||||
<!-- <select id="ocrPageInfo" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select ${field}-->
|
||||
<!-- ${condition}-->
|
||||
<!-- </select>-->
|
||||
<!-- <!–根据代替标准列表查询–>-->
|
||||
<!-- <select id="getInfoListByReplaceStandard" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select * from buss_document_library-->
|
||||
<!-- where 1=1-->
|
||||
<!-- <if test="replaceStandard != null" >-->
|
||||
<!-- and replace_standard in-->
|
||||
<!-- <foreach collection="replaceStandard.split(',')" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!-- #{item}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- </if>-->
|
||||
<!-- </select>-->
|
||||
<!-- <!–根据编码列表查询–>-->
|
||||
<!-- <select id="getListBySerialNumber" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select * from buss_document_library-->
|
||||
<!-- where 1=1-->
|
||||
<!-- <if test="serialNumbers != null" >-->
|
||||
<!-- and serial_number in-->
|
||||
<!-- <foreach collection="serialNumbers.split(',')" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!-- #{item}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- </if>-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select id="getListBySerialNumberFuzzy" resultType="java.lang.String">
|
||||
select id from buss_document_library
|
||||
where serial_number like concat(concat('%',#{serialNumber}),'%')
|
||||
</select>
|
||||
<!-- <select id="getListBySerialNumberFuzzy" resultType="java.lang.String">-->
|
||||
<!-- select id from buss_document_library-->
|
||||
<!-- where serial_number like concat(concat('%',#{serialNumber}),'%')-->
|
||||
<!-- </select>-->
|
||||
|
||||
<!--分页-->
|
||||
<select id="selectMapsAll" resultType="java.util.LinkedHashMap">
|
||||
select * from buss_document_library
|
||||
where 1=1
|
||||
<if test="ids != null" >
|
||||
and id in
|
||||
<foreach collection="ids.split(',')" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<!-- <!–分页–>-->
|
||||
<!-- <select id="selectMapsAll" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select * from buss_document_library-->
|
||||
<!-- where 1=1-->
|
||||
<!-- <if test="ids != null" >-->
|
||||
<!-- and id in-->
|
||||
<!-- <foreach collection="ids.split(',')" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!-- #{item}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- </if>-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select id="selectMapsAllBySerialNumber" resultType="java.util.LinkedHashMap">
|
||||
select * from buss_document_library
|
||||
where 1=1
|
||||
<if test="serialNumberList != null" >
|
||||
and serial_number in
|
||||
<foreach collection="serialNumberList.split(',')" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<!-- <select id="selectMapsAllBySerialNumber" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select * from buss_document_library-->
|
||||
<!-- where 1=1-->
|
||||
<!-- <if test="serialNumberList != null" >-->
|
||||
<!-- and serial_number in-->
|
||||
<!-- <foreach collection="serialNumberList.split(',')" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!-- #{item}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- </if>-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select id="getListInfo" resultType="java.util.LinkedHashMap">
|
||||
select * from buss_document_library
|
||||
where ${condition}
|
||||
</select>
|
||||
<!-- <select id="getListInfo" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select * from buss_document_library-->
|
||||
<!-- where ${condition}-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select id="selectMapsByDeleteIds" resultType="java.util.LinkedHashMap">
|
||||
select * from buss_document_library
|
||||
where corresponding_standard like concat(concat('%',#{id}),'%')
|
||||
or replace_standard like concat(concat('%',#{id}),'%')
|
||||
</select>
|
||||
<!-- <select id="selectMapsByDeleteIds" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select * from buss_document_library-->
|
||||
<!-- where corresponding_standard like concat(concat('%',#{id}),'%')-->
|
||||
<!-- or replace_standard like concat(concat('%',#{id}),'%')-->
|
||||
<!-- </select>-->
|
||||
|
||||
<update id="updateByDeleteId">
|
||||
update buss_document_library set
|
||||
corresponding_standard =#{correspondingStandardStr},replace_standard=#{replaceStandardStr}
|
||||
where id=#{id}
|
||||
</update>
|
||||
<!-- <update id="updateByDeleteId">-->
|
||||
<!-- update buss_document_library set-->
|
||||
<!-- corresponding_standard =#{correspondingStandardStr},replace_standard=#{replaceStandardStr}-->
|
||||
<!-- where id=#{id}-->
|
||||
<!-- </update>-->
|
||||
|
||||
<select id="queryListByIds" resultType="java.util.LinkedHashMap">
|
||||
select * from buss_document_library
|
||||
where id in
|
||||
<foreach collection="ids.split(',')" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
<!-- <select id="queryListByIds" resultType="java.util.LinkedHashMap">-->
|
||||
<!-- select * from buss_document_library-->
|
||||
<!-- where id in-->
|
||||
<!-- <foreach collection="ids.split(',')" index="index" item="item" open="(" separator="," close=")">-->
|
||||
<!-- #{item}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select id="getBySerialNumber" resultType="com.jero.modules.document.entity.BussDocumentLibraryEO">
|
||||
select * from buss_document_library
|
||||
where serial_number =#{serialNumber}
|
||||
</select>
|
||||
<!-- <select id="getBySerialNumber" resultType="com.jero.modules.document.entity.BussDocumentLibraryEO">-->
|
||||
<!-- select * from buss_document_library-->
|
||||
<!-- where serial_number =#{serialNumber}-->
|
||||
<!-- </select>-->
|
||||
</mapper>
|
||||
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.document.mapper.PhasedImplementationDetailsEOMapper">
|
||||
|
||||
</mapper>
|
||||
+191
-190
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||
//import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||
import com.jero.modules.document.entity.OSSFileForDocumentLibrary;
|
||||
import com.jero.modules.document.vo.QueryConditionVO;
|
||||
import com.jero.modules.oss.entity.OSSFile;
|
||||
@@ -21,38 +21,39 @@ import java.util.Map;
|
||||
* @Date: 2022-01-21
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IBussDocumentLibraryEOService extends IService<BussDocumentLibraryEO> {
|
||||
@Deprecated
|
||||
public interface IBussDocumentLibraryEOService extends IService<Object> {
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
void deleteById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
void deleteByIds(List<String> ids,String cut);
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
BussDocumentLibraryEO queryById(String id);
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<BussDocumentLibraryEO> queryList();
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// void deleteById(String id);
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// void deleteByIds(List<String> ids,String cut);
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// BussDocumentLibraryEO queryById(String id);
|
||||
//
|
||||
// /**
|
||||
// * 列表查询
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// List<BussDocumentLibraryEO> queryList();
|
||||
|
||||
/**
|
||||
* 查询条件
|
||||
@@ -61,176 +62,176 @@ public interface IBussDocumentLibraryEOService extends IService<BussDocumentLibr
|
||||
*/
|
||||
List<Map<String, Object>> queryCondition(String flag, String cut,String searchFlag);
|
||||
|
||||
/**
|
||||
* 查询条件(法规清单或虚拟清单高级搜索需要的数据)
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> queryConditionInventory(String flag, String cut);
|
||||
// /**
|
||||
// * 查询条件(法规清单或虚拟清单高级搜索需要的数据)
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> queryConditionInventory(String flag, String cut);
|
||||
|
||||
/**
|
||||
* 列表表头
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getHeader(String flag, String cut,String searchFlag);
|
||||
// /**
|
||||
// * 列表表头
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> getHeader(String flag, String cut,String searchFlag);
|
||||
//
|
||||
// /**
|
||||
// * 新增表单
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> getAddForm(String flag, String cut, String type);
|
||||
//
|
||||
// /**
|
||||
// * 编辑数据查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> getDocumentInfoById(String id, String cut);
|
||||
|
||||
/**
|
||||
* 新增表单
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getAddForm(String flag, String cut, String type);
|
||||
// /**
|
||||
// * 详情数据查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> getInfoById(String id, String cut);
|
||||
//
|
||||
// List<Map<String, Object>> getMenuList(String id, String cut);
|
||||
// /**
|
||||
// * 新增数据
|
||||
// *
|
||||
// * @param map
|
||||
// */
|
||||
// void addInfo(Map<String, Object> map);
|
||||
//
|
||||
// /**
|
||||
// * 编辑数据
|
||||
// *
|
||||
// * @param map
|
||||
// */
|
||||
// void updateInfo(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* 编辑数据查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getDocumentInfoById(String id, String cut);
|
||||
// /**
|
||||
// * 分页
|
||||
// *
|
||||
// * @param parameter
|
||||
// * @return
|
||||
// */
|
||||
// IPage getInfoPage(Map<String, Object> parameter);
|
||||
//
|
||||
// /**
|
||||
// * 代替标准分页
|
||||
// *
|
||||
// * @param parameter
|
||||
// * @return
|
||||
// */
|
||||
// IPage replacePageInfo(Map<String, Object> parameter);
|
||||
|
||||
/**
|
||||
* 详情数据查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getInfoById(String id, String cut);
|
||||
// /**
|
||||
// * ocr识别调取已入库文件分页
|
||||
// *
|
||||
// * @param parameter
|
||||
// * @return
|
||||
// */
|
||||
// IPage<Map<String, Object>> ocrPageInfo(Map<String,Object> parameter);
|
||||
|
||||
List<Map<String, Object>> getMenuList(String id, String cut);
|
||||
/**
|
||||
* 新增数据
|
||||
*
|
||||
* @param map
|
||||
*/
|
||||
void addInfo(Map<String, Object> map);
|
||||
// /**
|
||||
// * 添加收藏
|
||||
// *
|
||||
// * @param id
|
||||
// */
|
||||
// void addCollect(String id);
|
||||
//
|
||||
// /**
|
||||
// * 取消收藏
|
||||
// *
|
||||
// * @param id
|
||||
// */
|
||||
// void cancelCollect(String id);
|
||||
//
|
||||
// /**
|
||||
// * 添加订阅
|
||||
// *
|
||||
// * @param id
|
||||
// */
|
||||
// void addSubscribe(String id);
|
||||
//
|
||||
// /**
|
||||
// * 取消订阅
|
||||
// *
|
||||
// * @param id
|
||||
// */
|
||||
// void cancelSubscribe(String id);
|
||||
//
|
||||
//
|
||||
// /**
|
||||
// * 导出excel
|
||||
// *
|
||||
// * @param map
|
||||
// * @param response
|
||||
// * @param request
|
||||
// */
|
||||
// void exportExcel(Map<String, Object> map,
|
||||
// HttpServletResponse response,
|
||||
// HttpServletRequest request);
|
||||
//
|
||||
// void exportZip(Map<String, Object> map,
|
||||
// HttpServletResponse response,
|
||||
// HttpServletRequest request);
|
||||
|
||||
/**
|
||||
* 编辑数据
|
||||
*
|
||||
* @param map
|
||||
*/
|
||||
void updateInfo(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param parameter
|
||||
* @return
|
||||
*/
|
||||
IPage getInfoPage(Map<String, Object> parameter);
|
||||
|
||||
/**
|
||||
* 代替标准分页
|
||||
*
|
||||
* @param parameter
|
||||
* @return
|
||||
*/
|
||||
IPage replacePageInfo(Map<String, Object> parameter);
|
||||
|
||||
/**
|
||||
* ocr识别调取已入库文件分页
|
||||
*
|
||||
* @param parameter
|
||||
* @return
|
||||
*/
|
||||
IPage<Map<String, Object>> ocrPageInfo(Map<String,Object> parameter);
|
||||
|
||||
/**
|
||||
* 添加收藏
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
void addCollect(String id);
|
||||
|
||||
/**
|
||||
* 取消收藏
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
void cancelCollect(String id);
|
||||
|
||||
/**
|
||||
* 添加订阅
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
void addSubscribe(String id);
|
||||
|
||||
/**
|
||||
* 取消订阅
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
void cancelSubscribe(String id);
|
||||
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param map
|
||||
* @param response
|
||||
* @param request
|
||||
*/
|
||||
void exportExcel(Map<String, Object> map,
|
||||
HttpServletResponse response,
|
||||
HttpServletRequest request);
|
||||
|
||||
void exportZip(Map<String, Object> map,
|
||||
HttpServletResponse response,
|
||||
HttpServletRequest request);
|
||||
|
||||
/**
|
||||
* 模板下载
|
||||
*
|
||||
* @param response
|
||||
* @param request
|
||||
*/
|
||||
void exportTemplate(Map<String, Object> map, HttpServletResponse response, HttpServletRequest request);
|
||||
|
||||
/**
|
||||
* ocr识别调取已入库文件-中英文切换
|
||||
*
|
||||
* @param flag
|
||||
* @param cut
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getHeaderOrConditionForOcr(String flag, String cut);
|
||||
// /**
|
||||
// * 模板下载
|
||||
// *
|
||||
// * @param response
|
||||
// * @param request
|
||||
// */
|
||||
// void exportTemplate(Map<String, Object> map, HttpServletResponse response, HttpServletRequest request);
|
||||
//
|
||||
// /**
|
||||
// * ocr识别调取已入库文件-中英文切换
|
||||
// *
|
||||
// * @param flag
|
||||
// * @param cut
|
||||
// * @return
|
||||
// */
|
||||
// List<Map<String, Object>> getHeaderOrConditionForOcr(String flag, String cut);
|
||||
|
||||
List<Map<String, Object>> getHeaderOrConditionForSplit(String flag, String cut);
|
||||
|
||||
String pullMessage(String departIds, String ids, String documentIds);
|
||||
|
||||
void importZip(MultipartFile file,String cut);
|
||||
|
||||
String verifyBind(List<String> ids);
|
||||
|
||||
List<Map<String,Object>> queryListByIds(String ids);
|
||||
// String pullMessage(String departIds, String ids, String documentIds);
|
||||
//
|
||||
// void importZip(MultipartFile file,String cut);
|
||||
//
|
||||
// String verifyBind(List<String> ids);
|
||||
//
|
||||
// List<Map<String,Object>> queryListByIds(String ids);
|
||||
|
||||
List<Map<String, Object>> getListBySerialNumber(String serialNumbers);
|
||||
|
||||
List<String> getListBySerialNumberFuzzy(String serialNumber);
|
||||
|
||||
List<OSSFileForDocumentLibrary> getFileInfos(String id);
|
||||
|
||||
|
||||
IPage<BussDocumentLibraryEO> queryPageInfoDummy(Page<BussDocumentLibraryEO> page, QueryWrapper<BussDocumentLibraryEO> queryWrapper,BussDocumentLibraryEO bussDocumentLibraryEO);
|
||||
|
||||
IPage getPageDummy(Map<String, Object> parameter);
|
||||
|
||||
void isModifyForOcrAndSplit(Map<String, Object> parameter);
|
||||
|
||||
String getTitle(String id,String cut);
|
||||
|
||||
String sqlJoint(List<QueryConditionVO> queryConditionVOList);
|
||||
|
||||
int updateES();
|
||||
|
||||
/**
|
||||
* 根据serialNumber获取BussDumentLibrar对象
|
||||
* @param serialNumber
|
||||
* @return
|
||||
*/
|
||||
BussDocumentLibraryEO getBySerialNumber(String serialNumber);
|
||||
// List<OSSFileForDocumentLibrary> getFileInfos(String id);
|
||||
//
|
||||
//
|
||||
// IPage<BussDocumentLibraryEO> queryPageInfoDummy(Page<BussDocumentLibraryEO> page, QueryWrapper<BussDocumentLibraryEO> queryWrapper,BussDocumentLibraryEO bussDocumentLibraryEO);
|
||||
//
|
||||
// IPage getPageDummy(Map<String, Object> parameter);
|
||||
//
|
||||
// void isModifyForOcrAndSplit(Map<String, Object> parameter);
|
||||
//
|
||||
// String getTitle(String id,String cut);
|
||||
//
|
||||
// String sqlJoint(List<QueryConditionVO> queryConditionVOList);
|
||||
//
|
||||
// int updateES();
|
||||
//
|
||||
// /**
|
||||
// * 根据serialNumber获取BussDumentLibrar对象
|
||||
// * @param serialNumber
|
||||
// * @return
|
||||
// */
|
||||
// BussDocumentLibraryEO getBySerialNumber(String serialNumber);
|
||||
}
|
||||
|
||||
+66
-66
@@ -1,66 +1,66 @@
|
||||
package com.jero.modules.document.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: 文档库-分阶段实施详情表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-02-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IPhasedImplementationDetailsEOService extends IService<PhasedImplementationDetailsEO> {
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @return
|
||||
*/
|
||||
void add(PhasedImplementationDetailsEO phasedImplementationDetailsEO);
|
||||
|
||||
/**
|
||||
* 更新
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @return
|
||||
*/
|
||||
void editById(PhasedImplementationDetailsEO phasedImplementationDetailsEO);
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
void deleteById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
void deleteByIds(List<String> ids);
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
PhasedImplementationDetailsEO queryById(String id);
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<PhasedImplementationDetailsEO> queryList();
|
||||
|
||||
boolean insertBatch(List<PhasedImplementationDetailsEO> phasedImplDetailsEOList);
|
||||
|
||||
void disposeData(List<PhasedImplementationDetailsEO> datas, String cut);
|
||||
}
|
||||
//package com.jero.modules.document.service;
|
||||
//
|
||||
//import com.baomidou.mybatisplus.extension.service.IService;
|
||||
//import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
//
|
||||
//import java.util.List;
|
||||
//
|
||||
///**
|
||||
// * @Description: 文档库-分阶段实施详情表
|
||||
// * @Author: jero-boot
|
||||
// * @Date: 2023-02-22
|
||||
// * @Version: V1.0
|
||||
// */
|
||||
//public interface IPhasedImplementationDetailsEOService extends IService<PhasedImplementationDetailsEO> {
|
||||
//
|
||||
// /**
|
||||
// * 保存
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @return
|
||||
// */
|
||||
// void add(PhasedImplementationDetailsEO phasedImplementationDetailsEO);
|
||||
//
|
||||
// /**
|
||||
// * 更新
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @return
|
||||
// */
|
||||
// void editById(PhasedImplementationDetailsEO phasedImplementationDetailsEO);
|
||||
//
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// void deleteById(String id);
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// void deleteByIds(List<String> ids);
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// PhasedImplementationDetailsEO queryById(String id);
|
||||
//
|
||||
// /**
|
||||
// * 列表查询
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// List<PhasedImplementationDetailsEO> queryList();
|
||||
//
|
||||
// boolean insertBatch(List<PhasedImplementationDetailsEO> phasedImplDetailsEOList);
|
||||
//
|
||||
// void disposeData(List<PhasedImplementationDetailsEO> datas, String cut);
|
||||
//}
|
||||
|
||||
+5476
-5479
File diff suppressed because it is too large
Load Diff
+148
-148
@@ -1,148 +1,148 @@
|
||||
package com.jero.modules.document.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.common.constant.enums.LanguageEnum;
|
||||
import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
import com.jero.modules.document.enums.ImplementationTypeEnum;
|
||||
import com.jero.modules.document.mapper.PhasedImplementationDetailsEOMapper;
|
||||
import com.jero.modules.document.service.IPhasedImplementationDetailsEOService;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @Description: 文档库-分阶段实施详情表
|
||||
* @Author: jero-boot
|
||||
* @Date: 2023-02-22
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class PhasedImplementationDetailsEOServiceImpl extends ServiceImpl<PhasedImplementationDetailsEOMapper, PhasedImplementationDetailsEO> implements IPhasedImplementationDetailsEOService {
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public void add(PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
Date now = new Date();
|
||||
phasedImplementationDetailsEO.setCreateTime(now);
|
||||
phasedImplementationDetailsEO.setUpdateTime(now);
|
||||
save(phasedImplementationDetailsEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新
|
||||
*
|
||||
* @param phasedImplementationDetailsEO
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public void editById(PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
Date now = new Date();
|
||||
phasedImplementationDetailsEO.setUpdateTime(now);
|
||||
saveOrUpdate(phasedImplementationDetailsEO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public void deleteById(String id) {
|
||||
removeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public void deleteByIds(List<String> ids) {
|
||||
removeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PhasedImplementationDetailsEO queryById(String id) {
|
||||
return getById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表查询
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<PhasedImplementationDetailsEO> queryList() {
|
||||
return list();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean insertBatch(List<PhasedImplementationDetailsEO> phasedImplDetailsEOList) {
|
||||
boolean flag = true;
|
||||
if(CollectionUtils.isNotEmpty(phasedImplDetailsEOList)){
|
||||
try {
|
||||
this.saveBatch(phasedImplDetailsEOList);
|
||||
}catch (Exception ex){
|
||||
flag = false;
|
||||
ex.printStackTrace();
|
||||
log.error("批量添加分阶段实施详情信息失败:" + ex.getMessage());
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disposeData(List<PhasedImplementationDetailsEO> datas, String cut) {
|
||||
if(CollectionUtils.isNotEmpty(datas)){
|
||||
for (PhasedImplementationDetailsEO data : datas) {
|
||||
String implementationType = data.getImplementationType();
|
||||
if(StringUtils.isNotEmpty(implementationType)){
|
||||
String[] implementationTypeArr = implementationType.split(",");
|
||||
ImplementationTypeEnum[] implementationTypeEnums = ImplementationTypeEnum.values();
|
||||
|
||||
String implementationTypeText = "";
|
||||
if(StringUtils.equals(cut, LanguageEnum.CN.getValue())){
|
||||
implementationTypeText = Arrays.stream(implementationTypeEnums).filter(implementationTypeEnum -> {
|
||||
boolean flag = false;
|
||||
for (String type : implementationTypeArr) {
|
||||
if (org.apache.commons.lang3.StringUtils.equals(type, implementationTypeEnum.getItemValue())) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
}).map(ImplementationTypeEnum::getNameCn).collect(Collectors.joining(","));
|
||||
}else {
|
||||
implementationTypeText = Arrays.stream(implementationTypeEnums).filter(implementationTypeEnum -> {
|
||||
boolean flag = false;
|
||||
for (String type : implementationTypeArr) {
|
||||
if (org.apache.commons.lang3.StringUtils.equals(type, implementationTypeEnum.getItemValue())) {
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
}).map(ImplementationTypeEnum::getNameEn).collect(Collectors.joining(","));
|
||||
}
|
||||
data.setImplementationTypeText(implementationTypeText);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//package com.jero.modules.document.service.impl;
|
||||
//
|
||||
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
//import com.jero.common.constant.enums.LanguageEnum;
|
||||
//import com.jero.modules.document.entity.PhasedImplementationDetailsEO;
|
||||
//import com.jero.modules.document.enums.ImplementationTypeEnum;
|
||||
//import com.jero.modules.document.mapper.PhasedImplementationDetailsEOMapper;
|
||||
//import com.jero.modules.document.service.IPhasedImplementationDetailsEOService;
|
||||
//import org.apache.commons.collections4.CollectionUtils;
|
||||
//import org.apache.commons.lang3.StringUtils;
|
||||
//import org.springframework.stereotype.Service;
|
||||
//
|
||||
//import java.util.Arrays;
|
||||
//import java.util.Date;
|
||||
//import java.util.List;
|
||||
//import java.util.stream.Collectors;
|
||||
//
|
||||
///**
|
||||
// * @Description: 文档库-分阶段实施详情表
|
||||
// * @Author: jero-boot
|
||||
// * @Date: 2023-02-22
|
||||
// * @Version: V1.0
|
||||
// */
|
||||
//@Service
|
||||
//public class PhasedImplementationDetailsEOServiceImpl extends ServiceImpl<PhasedImplementationDetailsEOMapper, PhasedImplementationDetailsEO> implements IPhasedImplementationDetailsEOService {
|
||||
//
|
||||
// /**
|
||||
// * 保存
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @return
|
||||
// */
|
||||
// @Override
|
||||
// public void add(PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
// Date now = new Date();
|
||||
// phasedImplementationDetailsEO.setCreateTime(now);
|
||||
// phasedImplementationDetailsEO.setUpdateTime(now);
|
||||
// save(phasedImplementationDetailsEO);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 更新
|
||||
// *
|
||||
// * @param phasedImplementationDetailsEO
|
||||
// * @return
|
||||
// */
|
||||
// @Override
|
||||
// public void editById(PhasedImplementationDetailsEO phasedImplementationDetailsEO) {
|
||||
// Date now = new Date();
|
||||
// phasedImplementationDetailsEO.setUpdateTime(now);
|
||||
// saveOrUpdate(phasedImplementationDetailsEO);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id删除
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @Override
|
||||
// public void deleteById(String id) {
|
||||
// removeById(id);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @Override
|
||||
// public void deleteByIds(List<String> ids) {
|
||||
// removeByIds(ids);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @Override
|
||||
// public PhasedImplementationDetailsEO queryById(String id) {
|
||||
// return getById(id);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 列表查询
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// @Override
|
||||
// public List<PhasedImplementationDetailsEO> queryList() {
|
||||
// return list();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean insertBatch(List<PhasedImplementationDetailsEO> phasedImplDetailsEOList) {
|
||||
// boolean flag = true;
|
||||
// if(CollectionUtils.isNotEmpty(phasedImplDetailsEOList)){
|
||||
// try {
|
||||
// this.saveBatch(phasedImplDetailsEOList);
|
||||
// }catch (Exception ex){
|
||||
// flag = false;
|
||||
// ex.printStackTrace();
|
||||
// log.error("批量添加分阶段实施详情信息失败:" + ex.getMessage());
|
||||
// }
|
||||
// }
|
||||
// return flag;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void disposeData(List<PhasedImplementationDetailsEO> datas, String cut) {
|
||||
// if(CollectionUtils.isNotEmpty(datas)){
|
||||
// for (PhasedImplementationDetailsEO data : datas) {
|
||||
// String implementationType = data.getImplementationType();
|
||||
// if(StringUtils.isNotEmpty(implementationType)){
|
||||
// String[] implementationTypeArr = implementationType.split(",");
|
||||
// ImplementationTypeEnum[] implementationTypeEnums = ImplementationTypeEnum.values();
|
||||
//
|
||||
// String implementationTypeText = "";
|
||||
// if(StringUtils.equals(cut, LanguageEnum.CN.getValue())){
|
||||
// implementationTypeText = Arrays.stream(implementationTypeEnums).filter(implementationTypeEnum -> {
|
||||
// boolean flag = false;
|
||||
// for (String type : implementationTypeArr) {
|
||||
// if (org.apache.commons.lang3.StringUtils.equals(type, implementationTypeEnum.getItemValue())) {
|
||||
// flag = true;
|
||||
// }
|
||||
// }
|
||||
// return flag;
|
||||
// }).map(ImplementationTypeEnum::getNameCn).collect(Collectors.joining(","));
|
||||
// }else {
|
||||
// implementationTypeText = Arrays.stream(implementationTypeEnums).filter(implementationTypeEnum -> {
|
||||
// boolean flag = false;
|
||||
// for (String type : implementationTypeArr) {
|
||||
// if (org.apache.commons.lang3.StringUtils.equals(type, implementationTypeEnum.getItemValue())) {
|
||||
// flag = true;
|
||||
// }
|
||||
// }
|
||||
// return flag;
|
||||
// }).map(ImplementationTypeEnum::getNameEn).collect(Collectors.joining(","));
|
||||
// }
|
||||
// data.setImplementationTypeText(implementationTypeText);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
+63
-63
@@ -1,63 +1,63 @@
|
||||
package com.jero.modules.document.service.impl;
|
||||
|
||||
import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||
import com.jero.modules.document.enums.LawsStateEnum;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description
|
||||
* @date 2022/9/25 10:03
|
||||
* @auth zhn
|
||||
*/
|
||||
public class TimedTaskLaws implements Job {
|
||||
@Autowired
|
||||
private BussDocumentLibraryEOServiceImpl bussDocumentLibraryEOService;
|
||||
|
||||
/**
|
||||
* 法规状态为即将实施的法规,根据新车型实施日期和在产车实施日期, 到期后自动更新状态为现行
|
||||
* @param jobExecutionContext
|
||||
* @throws JobExecutionException
|
||||
*/
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
String currentTime = sdf.format(new Date());
|
||||
//获取所有的法规
|
||||
List<BussDocumentLibraryEO> bussDocumentLibraryEOList = bussDocumentLibraryEOService.list();
|
||||
if(bussDocumentLibraryEOList.size() != 0){
|
||||
for (BussDocumentLibraryEO bussDocumentLibraryEO : bussDocumentLibraryEOList) {
|
||||
String xin1Che1Xing2Shi2Shi1Ri4Qi1Str = "";
|
||||
String implementTimestr = "";
|
||||
|
||||
String state = bussDocumentLibraryEO.getState();//状态
|
||||
//新车型实施日期
|
||||
Date xin1Che1Xing2Shi2Shi1Ri4Qi1 = bussDocumentLibraryEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1();
|
||||
//在产车实施日期
|
||||
Date implementTime = bussDocumentLibraryEO.getImplementTime();
|
||||
if(ObjectUtils.isNotEmpty(xin1Che1Xing2Shi2Shi1Ri4Qi1)){
|
||||
xin1Che1Xing2Shi2Shi1Ri4Qi1Str = sdf.format(xin1Che1Xing2Shi2Shi1Ri4Qi1);
|
||||
}
|
||||
if(ObjectUtils.isNotEmpty(implementTime)){
|
||||
implementTimestr = sdf.format(implementTime);
|
||||
}
|
||||
//法规状态为即将实施的法规,根据新车型实施日期和在产车实施日期, 到期后自动更新状态为现行
|
||||
if(StringUtils.isNotBlank(state) && LawsStateEnum.THE_UPCOMING.getValue().equals(state)
|
||||
&& (currentTime.equals(xin1Che1Xing2Shi2Shi1Ri4Qi1Str) || currentTime.equals(implementTimestr))){
|
||||
BussDocumentLibraryEO bussDocumentLibraryEOTemp = new BussDocumentLibraryEO();
|
||||
bussDocumentLibraryEOTemp.setId(bussDocumentLibraryEO.getId());
|
||||
bussDocumentLibraryEOTemp.setState(LawsStateEnum.ACTIVE.getValue());
|
||||
bussDocumentLibraryEOService.updateById(bussDocumentLibraryEOTemp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//package com.jero.modules.document.service.impl;
|
||||
//
|
||||
//import com.jero.modules.document.entity.BussDocumentLibraryEO;
|
||||
//import com.jero.modules.document.enums.LawsStateEnum;
|
||||
//import org.apache.commons.lang3.ObjectUtils;
|
||||
//import org.apache.commons.lang3.StringUtils;
|
||||
//import org.quartz.Job;
|
||||
//import org.quartz.JobExecutionContext;
|
||||
//import org.quartz.JobExecutionException;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//
|
||||
//import java.text.SimpleDateFormat;
|
||||
//import java.util.Date;
|
||||
//import java.util.List;
|
||||
//
|
||||
///**
|
||||
// * @description TODO 更新法规实施状态,需要更新国标/海外标准,目前仅处理了文档库是不对的
|
||||
// * @date 2022/9/25 10:03
|
||||
// * @auth zhn
|
||||
// */
|
||||
//public class TimedTaskLaws implements Job {
|
||||
// @Autowired
|
||||
// private BussDocumentLibraryEOServiceImpl bussDocumentLibraryEOService;
|
||||
//
|
||||
// /**
|
||||
// * 法规状态为即将实施的法规,根据新车型实施日期和在产车实施日期, 到期后自动更新状态为现行
|
||||
// * @param jobExecutionContext
|
||||
// * @throws JobExecutionException
|
||||
// */
|
||||
// @Override
|
||||
// public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
// String currentTime = sdf.format(new Date());
|
||||
// //获取所有的法规
|
||||
// List<BussDocumentLibraryEO> bussDocumentLibraryEOList = bussDocumentLibraryEOService.list();
|
||||
// if(bussDocumentLibraryEOList.size() != 0){
|
||||
// for (BussDocumentLibraryEO bussDocumentLibraryEO : bussDocumentLibraryEOList) {
|
||||
// String xin1Che1Xing2Shi2Shi1Ri4Qi1Str = "";
|
||||
// String implementTimestr = "";
|
||||
//
|
||||
// String state = bussDocumentLibraryEO.getState();//状态
|
||||
// //新车型实施日期
|
||||
// Date xin1Che1Xing2Shi2Shi1Ri4Qi1 = bussDocumentLibraryEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1();
|
||||
// //在产车实施日期
|
||||
// Date implementTime = bussDocumentLibraryEO.getImplementTime();
|
||||
// if(ObjectUtils.isNotEmpty(xin1Che1Xing2Shi2Shi1Ri4Qi1)){
|
||||
// xin1Che1Xing2Shi2Shi1Ri4Qi1Str = sdf.format(xin1Che1Xing2Shi2Shi1Ri4Qi1);
|
||||
// }
|
||||
// if(ObjectUtils.isNotEmpty(implementTime)){
|
||||
// implementTimestr = sdf.format(implementTime);
|
||||
// }
|
||||
// //法规状态为即将实施的法规,根据新车型实施日期和在产车实施日期, 到期后自动更新状态为现行
|
||||
// if(StringUtils.isNotBlank(state) && LawsStateEnum.THE_UPCOMING.getValue().equals(state)
|
||||
// && (currentTime.equals(xin1Che1Xing2Shi2Shi1Ri4Qi1Str) || currentTime.equals(implementTimestr))){
|
||||
// BussDocumentLibraryEO bussDocumentLibraryEOTemp = new BussDocumentLibraryEO();
|
||||
// bussDocumentLibraryEOTemp.setId(bussDocumentLibraryEO.getId());
|
||||
// bussDocumentLibraryEOTemp.setState(LawsStateEnum.ACTIVE.getValue());
|
||||
// bussDocumentLibraryEOService.updateById(bussDocumentLibraryEOTemp);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user