| | |
| | | delete from lf.sys_meta_file where metaid > 150; |
| | | |
| | | select * from lf.sys_dir; |
| | | |
| | | select * from lf.sys_meta_new; |
| | | insert into lf.sys_meta_new (name,dirid) value ('项目WBS导出.xlsx',57,'file'); |
| | | insert into lf.sys_meta_new (name,dirid) value ('项目WBS导出.xlsx',57); |
| | | insert into lf.sys_meta_new (name,dirid) value ('00116BT02-CR001#ESV-DW-0001 封面.pdf',63); |
| | | insert into lf.sys_meta_new (name,dirid) value ('00116BT02-CR001#ESV-DW-0001(大河沿河穿越地形图).pdf',63); |
| | | insert into lf.sys_meta_new (name,dirid) value ('00116BT02-CR001#ESV-IN-0001(资料图纸目录).pdf',63); |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询入库质检总") |
| | | @ApiOperation(value = "查询元数据检查") |
| | | @GetMapping(value = "/selectCheckMeta") |
| | | public ResponseMsg<Object> selectCheckMeta(HttpServletRequest req) { |
| | | try { |
| | | FmeReqEntity fme = new FmeReqEntity(); |
| | | fme.name = StringHelper.getGuid(); |
| | | fme.xmmc = "西气东输四线天然气管道工程(吐鲁番-中卫)(00116BT02)"; |
| | | fme.sjzy = "测量专业"; |
| | | fme.zipPath = "D:\\Project\\Data\\LF\\temp\\20230106135746\\元数据检查.zip"; |
| | | |
| | | String rs = fmeService.checkMeta(fme, req); |
| | | if (StringHelper.isEmpty(rs)) { |
| | | return fail("检查失败"); |
| | | } |
| | | |
| | | return success(rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询总质检") |
| | | @GetMapping(value = "/selectCheckMain") |
| | | public ResponseMsg<Object> selectCheckMain(HttpServletRequest req) { |
| | | try { |
| | |
| | | /** |
| | | * 11.元数据检查:*元数据*.xls/.xlsx |
| | | */ |
| | | public void checkMeta() { |
| | | |
| | | public String checkMeta(FmeReqEntity fme, HttpServletRequest req) { |
| | | String url = getUrl("datax/task/run/B5入库质检_元数据检查", req); |
| | | |
| | | List<NameValueEntity> list = getKeyValues(fme.name); |
| | | list.add(new NameValueEntity("XMMC", fme.xmmc)); |
| | | list.add(new NameValueEntity("SJZY", fme.sjzy)); |
| | | list.add(new NameValueEntity("GCXMYSB", fme.zipPath)); |
| | | |
| | | return RestHelper.postForRest(url, list); |
| | | } |
| | | |
| | | /** |
| | | * 12.入库质检总:.zip/.7z + .xls/.xlsx |
| | | * 12.总质检:.zip/.7z + .xls/.xlsx |
| | | */ |
| | | public String checkMain(FmeReqEntity fme, HttpServletRequest req) { |
| | | String url = getUrl("datax/task/run/B0入库质检__总", req); |