提交 384ab521 authored 作者: lvwei's avatar lvwei

--no commit message

上级 6876cc23
......@@ -171,7 +171,7 @@ public class PhyResourceController {
@ApiOperation("获取关联资源类型")
@GetMapping(ResourceRequestPath.MAP_TYPES)
public CallBack<Map<String,String>> map(@ApiParam("获取哪种列表的标志 职业培训、技工教育:1|教参:2|习题册:3") Integer sign){
public CallBack<Map<String,String>> map(@ApiParam("获取哪种列表的标志 职业培训、技工教育:1|教参:2|习题册:3") @RequestParam Integer sign){
return CallBack.success(GoodsTypeEnum.getRelationResourceTypeMap(sign));
}
}
......@@ -93,7 +93,20 @@ public interface PhyResourceMapper extends BaseMapper<PhyResource> {
// 实体表
+ " <if test = '(query.typeSign) != 2'> "
+ " SELECT id, name, author, type, createTime, status FROM res_physical_resource "
+ " WHERE (type = '1-3' or type = '1-4') "
+ " WHERE 1 = 1 "
+ " <if test = '1 == (query.sign)'> "
+ " AND (type = '1-3' or type = '1-4') "
+ " </if> "
+ " <if test = '2 == (query.sign)'> "
+ " AND type = '1-3' "
+ " </if> "
+ " <if test = '3 == (query.sign)'> "
+ " AND type = '1-4' "
+ " </if> "
+ " <if test = '" + NOTBLANK + "(query.type)'> "
+ " AND type = #{query.type} "
+ " </if> "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论