|
@@ -14,6 +14,7 @@ import com.steerinfo.dil.service.IDilBatchService;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.lang3.AnnotationUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -86,6 +87,35 @@ public class DilBatchController extends BaseRESTfulController {
|
|
|
return success(data);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value="查询批次列表", notes="分页查询")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "489", required = false, dataType = "Integer")
|
|
|
+ })
|
|
|
+ @PostMapping("/getBatchIdByForeign")
|
|
|
+ public RESTfulResult getBatchIdByForeign(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
+ Integer pageNum,
|
|
|
+ Integer pageSize,
|
|
|
+ Integer apiId,
|
|
|
+ String con) {
|
|
|
+ if (mapValue==null){
|
|
|
+ mapValue=new HashMap<>();
|
|
|
+ }
|
|
|
+ if (con!=null&&!"null".equals(con)){
|
|
|
+ mapValue.put("con",con);
|
|
|
+ }
|
|
|
+ List<Map<String, Object>> listTotal = dilBatchService.getBatchIdByForeign(mapValue);
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
+ //分页查询数据
|
|
|
+ List<Map<String, Object>> columnList = dilBatchService.getBatchIdByForeign(mapValue);
|
|
|
+ PageListAdd data = columnDataUtil.tableColumnData(apiId, listTotal, columnList);
|
|
|
+ return success(data);
|
|
|
+ }
|
|
|
+
|
|
|
// 根据索引模糊查询外轮船名
|
|
|
@ApiOperation(value="根据用户输入输出船名", notes="模糊查询")
|
|
|
@ApiImplicitParams({
|