mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-07 20:57:45 +00:00
jeecgboot3.4.2版本发布
This commit is contained in:
@@ -18,7 +18,6 @@ import java.util.Map;
|
||||
|
||||
/**
|
||||
* vxe WebSocket,用于实现实时无痕刷新的功能
|
||||
* update: 【类名改了大小写】 date: 2022-04-18
|
||||
* @author: jeecg-boot
|
||||
*/
|
||||
@Slf4j
|
||||
|
@@ -4,6 +4,8 @@ import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.annotations.Api;
|
||||
@@ -455,5 +457,15 @@ public class JeecgDemoController extends JeecgController<JeecgDemo, IJeecgDemoSe
|
||||
return page;
|
||||
}
|
||||
// =====Vue3 Native 原生页面示例===============================================================================================
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取创建人
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/groupList")
|
||||
public Result<?> groupList() {
|
||||
return Result.ok(jeecgDemoService.getCreateByList());
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -47,4 +47,11 @@ public interface JeecgDemoMapper extends BaseMapper<JeecgDemo> {
|
||||
*/
|
||||
public List<String> queryUserAuth(@Param("userId")String userId,@Param("permsPrefix")String permsPrefix);
|
||||
|
||||
|
||||
/**
|
||||
* 获取创建人
|
||||
* @return
|
||||
*/
|
||||
List<String> getCreateByList();
|
||||
|
||||
}
|
||||
|
@@ -31,4 +31,10 @@
|
||||
and sur.user_id = #{userId}
|
||||
and sp.perms like concat(concat('%',#{permsPrefix}),'%')
|
||||
</select>
|
||||
|
||||
<!-- 获取创建人 -->
|
||||
<select id="getCreateByList" resultType="java.lang.String">
|
||||
select create_by from demo group by create_by
|
||||
</select>
|
||||
|
||||
</mapper>
|
@@ -5,6 +5,8 @@ import org.jeecg.modules.demo.test.entity.JeecgDemo;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: jeecg 测试demo
|
||||
* @Author: jeecg-boot
|
||||
@@ -38,4 +40,10 @@ public interface IJeecgDemoService extends JeecgService<JeecgDemo> {
|
||||
* @return
|
||||
*/
|
||||
String getExportFields();
|
||||
|
||||
/**
|
||||
* 获取创建人
|
||||
* @return
|
||||
*/
|
||||
List<String> getCreateByList();
|
||||
}
|
||||
|
@@ -108,4 +108,9 @@ public class JeecgDemoServiceImpl extends ServiceImpl<JeecgDemoMapper, JeecgDemo
|
||||
return exportFieldsList != null && exportFieldsList.size()>0 ? String.join(",", exportFieldsList) : "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getCreateByList() {
|
||||
return jeecgDemoMapper.getCreateByList();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user