| | |
| | | select * from lf.sys_report order by code |
| | | select * from lf.sys_layer |
| | | select * from lf.sys_meta; |
| | | select a.* from lf.sys_dir a where code not like '00%' order by code; |
| | | select a.* from lf.sys_dir a where pid = 0; |
| | | select a.* from lf.sys_dir a where code = '06' order by code; |
| | | |
| | | |
| | | select a.*, fn_get_fullname(a.code, 2) fullName from lf.sys_dir a where code = '01' |
| | | |
| | | |
| | | |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "请求打包") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirId", value = "目录ID", dataType = "Integer", paramType = "57"), |
| | | @ApiImplicitParam(name = "dirCode", value = "目录编码", dataType = "String", paramType = "01"), |
| | | @ApiImplicitParam(name = "major", value = "专业", dataType = "String", paramType = "穿跨越"), |
| | | @ApiImplicitParam(name = "isCut", value = "是否裁剪", dataType = "String", paramType = "NO") |
| | | }) |
| | | @GetMapping(value = "/uploadReqPackaging") |
| | | public ResponseMsg<Object> uploadReqPackaging(Integer dirId, String major, String isCut, HttpServletRequest req) { |
| | | public ResponseMsg<Object> uploadReqPackaging(String dirCode, String major, String isCut, HttpServletRequest req) { |
| | | try { |
| | | if (null == dirId || dirId < StaticData.TWO) { |
| | | return fail("目录ID不能为空且大于1"); |
| | | } |
| | | |
| | | boolean isMajor = StaticData.CROSSING.equals(major) || StaticData.ROUTE.equals(major); |
| | | if (!isMajor) { |
| | | return fail("专业只能是“穿跨越”或“线路”"); |
| | |
| | | return fail("是否裁剪只能是“YES”或“NO”"); |
| | | } |
| | | |
| | | DirEntity dir = dirService.selectDir(dirId); |
| | | if (StringHelper.isEmpty(dirCode)) { |
| | | return fail("目录编码不能为空"); |
| | | } |
| | | DirEntity dir = dirService.selectByCode(dirCode); |
| | | if (null == dir) { |
| | | return fail("目录(id = " + dirId + ")不存在"); |
| | | return fail("目录编码为" + dirCode + "的目录不存在"); |
| | | } |
| | | |
| | | String id = fmeService.crdsPackaging(dir.getFullName(), major, isCut, req); |
| | | String id = fmeService.crdsPackaging(dirCode, major, isCut, req); |
| | | |
| | | return success(id); |
| | | } catch (Exception ex) { |
| | |
| | | public DirEntity selectDir(int id); |
| | | |
| | | /** |
| | | * 根据Code查询目录 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public DirEntity selectByCode(String code); |
| | | |
| | | /** |
| | | * 查询多条数据 |
| | | * |
| | | * @return |
| | |
| | | } |
| | | |
| | | @Override |
| | | public DirEntity selectByCode(String code) { |
| | | return dirMapper.selectByCode(code); |
| | | } |
| | | |
| | | @Override |
| | | public List<DirEntity> selectDirAll() { |
| | | return dirMapper.selectDirAll(); |
| | | } |
| | |
| | | /** |
| | | * 14.CRDS平台交付 |
| | | */ |
| | | public String crdsPackaging(String dir, String major, String isCut, HttpServletRequest req) { |
| | | String url = getUrl("datax/task/run/CRDS平台交付_测试", req); |
| | | public String crdsPackaging(String dirCode, String major, String isCut, HttpServletRequest req) { |
| | | // datax/task/run/CRDS平台交付_测试 |
| | | String url = getUrl("datax/task/run/CRDS平台交付_code测试", req); |
| | | |
| | | List<NameValueEntity> list = getKeyValues("CRDS平台交付_测试"); |
| | | list.add(new NameValueEntity("S_FFXMMC", dir)); |
| | | List<NameValueEntity> list = getKeyValues("CRDS平台交付"); |
| | | list.add(new NameValueEntity("S_FFXMMC", dirCode)); |
| | | list.add(new NameValueEntity("MBZY", major)); |
| | | list.add(new NameValueEntity("P_WBFW", isCut)); |
| | | |
| | |
| | | <select id="selectDir" resultType="com.lf.server.entity.data.DirEntity"> |
| | | select a.*, fn_get_fullname(a.code, 2) fullName from lf.sys_dir a where id = #{id} |
| | | </select> |
| | | <select id="selectByCode" resultType="com.lf.server.entity.data.DirEntity"> |
| | | select a.*, fn_get_fullname(a.code, 2) fullName from lf.sys_dir a where code = #{code} |
| | | </select> |
| | | |
| | | <select id="selectDirAll" resultType="com.lf.server.entity.data.DirEntity"> |
| | | select a.*, fn_get_fullname(a.code, 2) fullName from lf.sys_dir a order by order_num; |