改造:app模块
This commit is contained in:
@@ -79,7 +79,12 @@ public class MybatisPlusConfig {
|
|||||||
"cms_domain",
|
"cms_domain",
|
||||||
"cms_website_field",
|
"cms_website_field",
|
||||||
"cms_navigation",
|
"cms_navigation",
|
||||||
"cms_design"
|
"cms_design",
|
||||||
|
"oa_app",
|
||||||
|
"oa_app_field",
|
||||||
|
"oa_app_renew",
|
||||||
|
"oa_app_url",
|
||||||
|
"oa_app_user"
|
||||||
).contains(tableName);
|
).contains(tableName);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -41,21 +41,15 @@ public class OaAppController extends BaseController {
|
|||||||
@ApiOperation("查询全部应用")
|
@ApiOperation("查询全部应用")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public ApiResult<List<OaApp>> list(OaAppParam param) {
|
public ApiResult<List<OaApp>> list(OaAppParam param) {
|
||||||
PageParam<OaApp, OaAppParam> page = new PageParam<>(param);
|
|
||||||
page.setDefaultOrder("create_time desc");
|
|
||||||
return success(oaAppService.list(page.getOrderWrapper()));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(oaAppService.listRel(param));
|
return success(oaAppService.listRel(param));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("hasAuthority('oa:oaApp:list')")
|
|
||||||
@OperationLog
|
|
||||||
@ApiOperation("根据id查询应用")
|
@ApiOperation("根据id查询应用")
|
||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ApiResult<OaApp> get(@PathVariable("id") Integer id) {
|
public ApiResult<OaApp> get(@PathVariable("id") Integer id) {
|
||||||
return success(oaAppService.getById(id));
|
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
//return success(oaAppService.getByIdRel(id));
|
return success(oaAppService.getByIdRel(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("添加应用")
|
@ApiOperation("添加应用")
|
||||||
|
|||||||
@@ -208,6 +208,13 @@
|
|||||||
<if test="param.createTimeEnd != null">
|
<if test="param.createTimeEnd != null">
|
||||||
AND a.create_time <= #{param.createTimeEnd}
|
AND a.create_time <= #{param.createTimeEnd}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.keywords != null">
|
||||||
|
AND (a.app_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
|
OR a.app_code LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
|
OR a.company_name LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
|
OR a.app_url LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
|
)
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user