forked from gzzfw/backEnd/gz-dyh

liyj
2024-08-19 faf2ef5db9dec1d06bc1ecfef3af1a2522c03d65
dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java
@@ -23,7 +23,7 @@
 * @description: 客户组织信息表接口api
 * @company: hugeinfo
 * @author: liyj
 * @time: 2024-08-17 15:30:57
 * @time: 2024-08-19 20:04:19
 * @version: 1.0.0
 */
@Slf4j
@@ -276,19 +276,15 @@
    }
    /**
    * 根据主键单个/批量删除
    * @url {ctx}/api/web/ctUnit/deleteByIds
    * 根据主键单个
    * @url {ctx}/api/web/ctUnit/deleteById
    * @param ids 主键编号
    * @return Object
    */
    @GetMapping("/deleteByIds")
    public Object deleteByIds(@RequestParam(value = "ids") String ids) {
    @GetMapping("/deleteById")
    public Object deleteById(@RequestParam(value = "id") String id) {
        try {
            if (ids.indexOf(",") != -1) {
                service.removeByIds(Stream.of(ids.split(",")).collect(Collectors.toList()));
            }else{
                service.removeById(ids);
            }
            service.removeById(id);
            return ReturnSucUtils.getRepInfo();
        } catch (Exception e) {
            return ReturnFailUtils.getRepInfo();