|
|
@@ -14,7 +14,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
import ${bussiPackage}.${entityPackage}.entity.${entityName};
|
|
|
import ${bussiPackage}.${entityPackage}.service.I${entityName}Service;
|
|
|
-import java.util.Date;
|
|
|
+
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
@@ -58,10 +58,10 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|
|
* @param request 请求
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
|
|
|
+ //@AutoLog(value = "${tableVo.ftlDescription}-分页列表查询")
|
|
|
@ApiOperation(value="${tableVo.ftlDescription}-分页列表查询", notes="${tableVo.ftlDescription}-分页列表查询")
|
|
|
@GetMapping(value = "/list")
|
|
|
- public Result<?> queryPageList(${entityName} ${entityName?uncap_first},
|
|
|
+ public Result<IPage<${entityName}>> queryPageList(${entityName} ${entityName?uncap_first},
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
|
|
HttpServletRequest request) {
|
|
|
@@ -124,7 +124,7 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids") String ids) {
|
|
|
this.${entityName?uncap_first}Service.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
- return Result.OK("批量删除成功!");
|
|
|
+ return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -133,10 +133,10 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|
|
* @param id 主键
|
|
|
* @return 数据
|
|
|
*/
|
|
|
- @AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
|
|
|
+ //@AutoLog(value = "${tableVo.ftlDescription}-通过id查询")
|
|
|
@ApiOperation(value="${tableVo.ftlDescription}-通过id查询", notes="${tableVo.ftlDescription}-通过id查询")
|
|
|
@GetMapping(value = "/queryById")
|
|
|
- public Result<?> queryById(@RequestParam(name="id") String id) {
|
|
|
+ public Result<${entityName}> queryById(@RequestParam(name="id") String id) {
|
|
|
${entityName} ${entityName?uncap_first} = ${entityName?uncap_first}Service.getById(id);
|
|
|
if(${entityName?uncap_first}==null) {
|
|
|
return Result.error("未找到对应数据");
|
|
|
@@ -147,8 +147,9 @@ public class ${entityName}Controller extends JeecgController<${entityName}, I${e
|
|
|
/**
|
|
|
* 导出excel
|
|
|
*
|
|
|
- * @param request
|
|
|
- * @param ${entityName?uncap_first}
|
|
|
+ * @param request 请求
|
|
|
+ * @param ${entityName?uncap_first} 对象
|
|
|
+ * @return excel文件
|
|
|
*/
|
|
|
@RequestMapping(value = "/exportXls")
|
|
|
public ModelAndView exportXls(HttpServletRequest request, ${entityName} ${entityName?uncap_first}) {
|