cjl
2023-10-19 ab061be50b7653531cbe134416c3ebdd876e4791
screen-api/src/main/java/com/moral/api/controller/AllocationController.java
@@ -18,6 +18,7 @@
import com.moral.constant.PageResult;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.*;
import java.lang.reflect.Field;
@@ -61,7 +62,6 @@
        return ResultMessage.ok(professions);
    }
    @ApiOperation(value = "责任单位", notes = "责任单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "token", value = "token", required = true, paramType = "header", dataType = "String")
@@ -71,6 +71,7 @@
        List<ResponsibilityUnit> responsibilityUnits = allocationService.seleteUnit();
        return ResultMessage.ok(responsibilityUnits);
    }
    /**
     * 添加交办单
@@ -84,15 +85,7 @@
    }
    /**
     * 查看交办单
     * @return
     */
   /* @GetMapping("check")
    public ResultMessage check(Integer id){
        allocationService.check(id);
        return ResultMessage.ok();
    }*/
    /**
     * 修改表单
@@ -121,15 +114,7 @@
        allocationService.checkAllocation(checkCond);
        return ResultMessage.ok();
    }
    /**
     * 根据条件查询
     * @return
     */
    @GetMapping("selectAll")
    public ResultMessage selectAll(Map<String,Object> map){
        allocationService.selectAll(map);
        return ResultMessage.ok();
    }
    @PostMapping("/page")
    @ApiOperation("分页")
@@ -180,7 +165,7 @@
    public ResultMessage selectUnitView(HttpServletRequest request){
        Map<String, Object> params = WebUtils.getParametersStartingWith(request, null);
        Map<String, Object> map1 = allocationService.selectUnitView(params);
        return ResultMessage.ok(map1);
        return ResultMessage.ok(ObjectUtils.isEmpty(map1)? "0":map1);
    }