| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.util.stream.Stream; |
| | | |
| | | /** |
| | | * @title: 客户组织信息表接口api |
| | | * @description: 客户组织信息表接口api |
| | | * @title: 客户组织信息表接口api-web端 |
| | | * @description: 客户组织信息表接口api-web端 |
| | | * @company: hugeinfo |
| | | * @author: liyj |
| | | * @time: 2024-08-19 20:04:19 |
| | |
| | | if (StringUtils.isNotBlank(dispStatus)){ |
| | | terms.put("dispStatus", dispStatus); |
| | | } |
| | | // 删除状态,0:已删除,1:未删除 |
| | | // 删除状态,0:未删除,1:已删除 |
| | | String deleteStatus = request.getParameter("deleteStatus"); |
| | | if (StringUtils.isNotBlank(deleteStatus)){ |
| | | terms.put("deleteStatus", deleteStatus); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 批量新增-数据迁移 |
| | | * @url {ctx}/api/web/ctUnit/saveCtUnitList |
| | | * @param targetCtUnitList 实体对象 |
| | | * @return Object |
| | | */ |
| | | @PostMapping("/saveCtUnitList") |
| | | public Object saveCtUnitList(@RequestBody List<CtUnit> targetCtUnitList) { |
| | | try { |
| | | service.saveBatch(targetCtUnitList); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取所有组织(包含所有下级子组织)树形结构 |
| | | * @url {ctx}/api/v1/ctUnit/listUnitTree |
| | | * @param userId 登录用户标识称 |
| | |
| | | return ReturnFailUtils.getRepInfo( "查询失败", null); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据主键编号删除单位 |
| | | * @url {ctx}/api/v1/ctUnit/removeByIds |
| | | * @param ids 主键编号 |
| | | * @return Object |
| | | * @throws Exception |
| | | */ |
| | | @GetMapping("/removeByIds") |
| | | public Object removeByIds(@RequestParam(value = "ids") String ids) { |
| | | try { |
| | | service.removeById(ids); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | log.error("Controller接口[CtUnitController.removeByIds]请求异常:"+e, e); |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | } |