| | |
| | | select * from lf.sys_publish order by id desc |
| | | select * from lf.sys_meta_pub order by id desc |
| | | select * from lf.sys_layer order by id desc limit 10 |
| | | select * from lf.sys_meta where name='43_transparent_mosaic.tif' |
| | | select * from bs.u_sectionline |
| | | select * from lf.sys_meta where name='勘探点表.xlsx' |
| | | |
| | | select * from lf.sys_fme_log |
| | | --where tcdm='u_sectionline' |
| | | order by id desc; |
| | | |
| | | |
| | | |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "删除多条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "删除元数据") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteMetas") |
| | | public ResponseMsg<Integer> deleteMetas(@RequestParam List<Integer> ids) { |
| | |
| | | pids.add("'" + me.getEventid() + "'"); |
| | | } |
| | | } |
| | | |
| | | if (pids.size() > 0) { |
| | | list.add(String.format("delete from %s where parentid in (%s)", tab, StringHelper.join(pids, ","))); |
| | | } |
| | | |
| | | // 关联删除 |
| | | int i = 0, c = list.size(); |
| | | while (i < c) { |
| | | String str = list.get(i); |
| | | if (str.contains("bs.m_pipelinepoint")) { |
| | | list.add(str.replace("bs.m_pipelinepoint", "bs.m_pipesegment")); |
| | | list.add(str.replace("bs.m_pipelinepoint", "bs.m_pipeline")); |
| | | } |
| | | if (str.contains("bs.s_explorationpoint")) { |
| | | list.add(str.replace("bs.s_explorationpoint", "bs.s_surveyworksite")); |
| | | } |
| | | |
| | | i++; |
| | | } |
| | | |
| | | return StringHelper.join(list, ";"); |
| | | } |
| | | |
| | |
| | | </insert> |
| | | |
| | | <delete id="deletes"> |
| | | delete from lf.sys_meta where id in (${ids}); |
| | | <if test="sql != null"> |
| | | ${sql}; |
| | | </if> |
| | | delete from lf.sys_meta where id in (${ids}); |
| | | </delete> |
| | | |
| | | <delete id="deletes_old"> |
| | |
| | | </delete> |
| | | |
| | | <delete id="deletes"> |
| | | delete from lf.sys_publish where id in (${ids}); |
| | | delete from lf.sys_layer where pubid in (${ids}); |
| | | delete from lf.sys_meta_pub where pubid in (${ids}); |
| | | delete from lf.sys_publish where id in (${ids}); |
| | | </delete> |
| | | |
| | | <update id="update"> |