提交 de737b12 编写于 作者: ibizdev's avatar ibizdev

generator before deploy...

generator before deploy registry.cn-shanghai.aliyuncs.com/ibizsys/samplesolution-demosys-api-demoapi:2022.12.07.001
上级 f6f47df9
......@@ -12,4 +12,4 @@
**.iml
*.jar
*.log
.DS_Store
.DS_Store
\ No newline at end of file
......@@ -51,4 +51,4 @@ public class BootApplication extends WebMvcConfigurerAdapter {
super.addArgumentResolvers(argumentResolvers);
argumentResolvers.add(resolver);
}
}
}
\ No newline at end of file
......@@ -10,8 +10,8 @@
</parent>
<artifactId>demo-core</artifactId>
<name>后台服务 Core</name>
<description>后台服务 Core</description>
<name>Demo Core</name>
<description>后台服务 Core,模板生成代码,再次发布会覆盖,建议不要直接修改,修改请在demo-boot项目中继承或覆盖重写</description>
<dependencies>
......@@ -20,6 +20,14 @@
<artifactId>ibizlab-boot-starter-data</artifactId>
<version>2.4.0-SNAPSHOT</version>
</dependency>
<!-- MySQL驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
<properties>
......@@ -93,4 +101,4 @@
</profile>
</profiles>
</project>
</project>
\ No newline at end of file
......@@ -84,6 +84,10 @@ public interface IBIZBOOKService extends IService<IBIZBOOK> {
return dto;
}
default IBIZBOOK getRandom(String key) {
return null;
}
default IBIZBOOK init(IBIZBOOK dto) {
return dto;
}
......
......@@ -160,6 +160,11 @@ public class IBIZBOOKServiceBase extends ServiceImpl<IBIZBOOKMapper,IBIZBOOK> im
return dto;
}
@Transactional
public IBIZBOOK getRandom(String key) {
return null;
}
@Transactional
public IBIZBOOK init(IBIZBOOK dto) {
return dto;
......
......@@ -108,6 +108,15 @@ public class IBIZBOOKResource {
return ResponseEntity.status(HttpStatus.OK).body(ibizbookdtoMapping.toDto(rt));
}
@ApiOperation(value = "GetRandom", tags = {"图书" }, notes = "IBIZBOOK-GetRandom")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-IBIZBOOK-GetRandom-all') or hasPermission(this.ibizbookService.get(#ibizbookid),'DemoSys-IBIZBOOK-GetRandom')")
@RequestMapping(method = RequestMethod.GET, value = "ibizbooks/{ibizbookid}/getrandom")
public ResponseEntity<IBIZBOOKDTO> getRandomByIbizbookid
(@PathVariable("ibizbookid") String ibizbookid) {
IBIZBOOK rt = ibizbookService.getRandom(ibizbookid);
return ResponseEntity.status(HttpStatus.OK).body(ibizbookdtoMapping.toDto(rt));
}
@ApiOperation(value = "保存Save", tags = {"图书" }, notes = "IBIZBOOK-Save")
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-IBIZBOOK-Save-all') or hasPermission(this.ibizbookdtoMapping.toDomain(#dto),'DemoSys-IBIZBOOK-Save')")
@RequestMapping(method = RequestMethod.POST, value = "ibizbooks/save")
......
......@@ -84,6 +84,26 @@
"menuitem": [
]
},
{
"menuid": "Usr1207222915Menu",
"menuname": "appindexview2",
"menuitem": [
{
"id": "menuitem3",
"name": "右对齐菜单",
"item": [
{
"id": "menuitem2",
"name": "树视图" },
{
"id": "menuitem1",
"name": "分页导航" }
]
}
]
},
{
"menuid": "MainMenu",
......@@ -891,7 +911,77 @@
"name": "视图样式插件" },
{
"id": "menuitem237",
"name": "表格模板插件(透视表)" }
"name": "表格模板插件(透视表)" },
{
"id": "menuitem239",
"name": "界面样式表" }
]
},
{
"id": "menuitem240",
"name": "测试菜单项" },
{
"id": "menuitem241",
"name": "vue3插件测试",
"item": [
{
"id": "menuitem242",
"name": "视图插件",
"item": [
{
"id": "menuitem243",
"name": "应用首页" },
{
"id": "menuitem244",
"name": "编辑视图" },
{
"id": "menuitem245",
"name": "表格视图" },
{
"id": "menuitem246",
"name": "向导视图" },
{
"id": "menuitem247",
"name": "选项操作视图" },
{
"id": "menuitem248",
"name": "列表视图" },
{
"id": "menuitem249",
"name": "选择类视图" },
{
"id": "menuitem250",
"name": "树视图" }
]
},
{
"id": "menuitem251",
"name": "部件插件",
"item": [
{
"id": "menuitem252",
"name": "表单" },
{
"id": "menuitem253",
"name": "表格" }
]
},
{
"id": "menuitem254",
"name": "部件项插件",
"item": [
{
"id": "menuitem255",
"name": "表格列" }
]
},
{
"id": "menuitem259",
"name": "其他插件" }
]
}
......@@ -1317,6 +1407,11 @@
"name": "完成借书流程",
"type": "DELOGIC"
},
{
"id": "GetRandom",
"name": "获取随机数",
"type": "USERCUSTOM"
},
{
"id": "Init",
"name": "初始化",
......
[
{
"name":"年度",
"code":"Years",
"group":"",
"memo":"",
"enable":"",
}
]
[
{
"name": "年度",
"code": "Years",
"group": "",
"memo": "",
}
]
\ No newline at end of file
......@@ -6,8 +6,8 @@
<artifactId>demo</artifactId>
<groupId>cn.ibizlab</groupId>
<version>1.0.0.0</version>
<name>后台服务</name>
<description></description>
<name>Demo</name>
<description>后台服务</description>
<packaging>pom</packaging>
<parent>
......@@ -105,7 +105,7 @@
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
<plugin>
<plugin>
<groupId>cn.ibizlab</groupId>
<artifactId>ibizlab-generator-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
......@@ -137,4 +137,4 @@
</plugins>
</build>
</project>
</project>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册