Merge remote-tracking branch 'origin/master'
| | |
| | | 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' |
| | | |
| | | |
| | | |
| | |
| | | DirService dirService; |
| | | |
| | | @Autowired |
| | | protected FmeService fmeService; |
| | | FmeService fmeService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询项目") |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "请求打包") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirId", value = "目录ID", dataType = "Integer", paramType = "57"), |
| | | @ApiImplicitParam(name = "major", value = "专业", dataType = "String", paramType = "穿跨越") |
| | | @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, 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 (StringHelper.isEmpty(major) || !isMajor) { |
| | | if (!isMajor) { |
| | | return fail("专业只能是“穿跨越”或“线路”"); |
| | | } |
| | | |
| | | List<DirEntity> list = dirService.selectDirsForPrj(); |
| | | boolean bCut = StaticData.YES.equals(isCut) || StaticData.NO.equals(isCut); |
| | | if (!bCut) { |
| | | return fail("是否裁剪只能是“YES”或“NO”"); |
| | | } |
| | | |
| | | return success(list); |
| | | if (StringHelper.isEmpty(dirCode)) { |
| | | return fail("目录编码不能为空"); |
| | | } |
| | | DirEntity dir = dirService.selectByCode(dirCode); |
| | | if (null == dir) { |
| | | return fail("目录编码为" + dirCode + "的目录不存在"); |
| | | } |
| | | |
| | | String id = fmeService.crdsPackaging(dirCode, major, isCut, req); |
| | | |
| | | return success(id); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | |
| | | public final static String DRUID_COOKIE_KEY = "JSESSIONID"; |
| | | |
| | | /** |
| | | * YES |
| | | */ |
| | | public final static String YES = "YES"; |
| | | |
| | | /** |
| | | * NO |
| | | */ |
| | | public final static String NO = "NO"; |
| | | |
| | | /** |
| | | * 线路 |
| | | */ |
| | | public final static String ROUTE = "线路"; |
| | |
| | | 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 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", dirCode)); |
| | | list.add(new NameValueEntity("MBZY", major)); |
| | | list.add(new NameValueEntity("P_WBFW", isCut)); |
| | | |
| | | return RestHelper.postForRest(url, list); |
| | | } |
| | | |
| | | /** |
| | | * 获取Url |
| | | */ |
| | | public String getUrl(String subUrl, HttpServletRequest req) { |
| | |
| | | <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; |