Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloudV3.0
Commits
d3957b01
Commit
d3957b01
authored
Jan 08, 2019
by
Sun
Browse files
no commit message
parent
5f4be475
Changes
6
Show whitespace changes
Inline
Side-by-side
JeeSpringCloud/src/main/resources/application.yml
View file @
d3957b01
JeeSpringVersion
:
3.2.2
demoMode
:
false
demoModeDescription
:
演示版启用,为系统能正常演示,暂时不允许操作!系统配置可开启正式版!功能全开源!每周周一再更新!
server
:
port
:
9999
tomcat
:
...
...
@@ -169,8 +172,6 @@ job:
#run: 0 0 10,14,16 * * ? 每天上午10点,下午2点,4点
#run: 0 0 12 * * ?" 每天中午12点触发
demoMode
:
false
demoModeDescription
:
演示版启用,为系统能正常演示,暂时不允许操作!系统配置可开启正式版!功能全开源!每周周一再更新!
# Shiro权限配置
shiro
:
redis
:
false
#启动shiro redis缓存,单点登录,##单点登录性能有带提升##
...
...
JeeSpringCloud/src/main/resources/templates/modules/gen/config.xml
View file @
d3957b01
...
...
@@ -19,6 +19,7 @@
<template>
curd/viewListJS.xml
</template>
<template>
curd/viewListVue.xml
</template>
<template>
curd/viewSelect.xml
</template>
<template>
curd/viewTotal.xml
</template>
<template>
curd/viewTotalCSS.xml
</template>
<template>
curd/viewTotalJS.xml
</template>
<template>
curd/viewTotalMap.xml
</template>
...
...
JeeSpringCloud/src/main/resources/templates/modules/gen/curd/controller.xml
View file @
d3957b01
...
...
@@ -105,10 +105,10 @@ public class ${ClassName}Controller extends AbstractBaseController {
countList.add(Double.valueOf(${className}Item.getTotalCount()));
<
#list table.columnList as c>
<
#if c.jdbcType??
&&
(c.jdbcType == "int(11)" || c.jdbcType == "decimal(10,3)")
&&
table.tableType!="2"
&&
c.name?index_of("_id") == -1
&&
c.name?index_of("_type") == -1>
if(${className}Item.getSum${c.javaField?cap_first}()!=null)
if(${className}Item.getSum${c.javaField?cap_first}()!=null)
{
sum${c.javaField?cap_first}List.add(Double.valueOf(${className}Item.getSum${c.javaField?cap_first}()));
else
${className}Item.setSum${c.javaField?cap_first}(0D);
}
else
{
${className}Item.setSum${c.javaField?cap_first}(0D);
}
<
/#if>
<
/#list>
}
...
...
@@ -313,6 +313,7 @@ public class ${ClassName}Controller extends AbstractBaseController {
for (${ClassName} ${className} : list){
${className}Service.save(${className});
}
successNum=list.size();
addMessage(redirectAttributes, "已成功导入 "+successNum+" 条${functionNameSimple}记录");
} catch (Exception e) {
addMessage(redirectAttributes, "导入${functionNameSimple}失败!失败信息:"+e.getMessage());
...
...
JeeSpringCloud/src/main/resources/templates/modules/gen/curd/viewFormJS.xml
View file @
d3957b01
...
...
@@ -42,6 +42,7 @@ $(document).ready(function() {
laydate({
elem: '#${c.javaFieldId}', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
//,type: 'datetime' //日期时间
});
<
/#if>
<
/#if>
...
...
JeeSpringCloud/src/main/resources/templates/modules/gen/curd/viewListJS.xml
View file @
d3957b01
...
...
@@ -11,10 +11,12 @@ $(document).ready(function() {
laydate({
elem: '#begin${c.simpleJavaField?cap_first}', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
//,type: 'datetime' //日期时间
});
laydate({
elem: '#end${c.simpleJavaField?cap_first}', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
//,type: 'datetime' //日期时间
});
...
...
@@ -22,6 +24,7 @@ $(document).ready(function() {
laydate({
elem: '#${c.javaFieldId}', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
//,type: 'datetime' //日期时间
});
<
/#if>
<
/#if>
...
...
JeeSpringCloud/src/main/resources/templates/modules/gen/rest/restController.xml
View file @
d3957b01
...
...
@@ -55,6 +55,8 @@ import org.springframework.web.bind.annotation.*;
@Api(value="${functionNameSimple}接口", description="${functionNameSimple}接口")
public class ${ClassName}RestController extends AbstractBaseController {
//调用dubbo服务器是,要去Reference注解,注解Autowired
//@Reference(version = "1.0.0")
@Autowired
private I${ClassName}Service ${className}Service;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment