Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
68a11027
提交
68a11027
authored
12月 03, 2019
作者:
luojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改版本控制
上级
5bc3b7d3
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
49 行增加
和
6 行删除
+49
-6
TbCfVersionEntity.java
.../src/main/java/com/platform/entity/TbCfVersionEntity.java
+17
-1
TbCfVersionDao.xml
...in/src/main/resources/com/platform/dao/TbCfVersionDao.xml
+10
-4
tbcfversion.html
...m-admin/src/main/webapp/WEB-INF/page/sys/tbcfversion.html
+7
-0
common.js
platform-admin/src/main/webapp/js/common.js
+13
-0
tbcfversion.js
platform-admin/src/main/webapp/js/sys/tbcfversion.js
+2
-1
没有找到文件。
platform-admin/src/main/java/com/platform/entity/TbCfVersionEntity.java
浏览文件 @
68a11027
...
...
@@ -29,7 +29,10 @@ public class TbCfVersionEntity implements Serializable {
* 版本更新内容
*/
private
String
versionDetail
;
/**
* 版本分类(0安卓,1苹果)
*/
private
Integer
versionSort
;
/**
* 设置:版本号Id
*/
...
...
@@ -82,4 +85,17 @@ public class TbCfVersionEntity implements Serializable {
public
String
getVersionDetail
()
{
return
versionDetail
;
}
/**
* 获取: 版本分类(0安卓,1苹果)
*/
public
Integer
getVersionSort
()
{
return
versionSort
;
}
/**
* 设置: 版本分类(0安卓,1苹果)
*/
public
void
setVersionSort
(
Integer
versionSort
)
{
this
.
versionSort
=
versionSort
;
}
}
platform-admin/src/main/resources/com/platform/dao/TbCfVersionDao.xml
浏览文件 @
68a11027
...
...
@@ -8,6 +8,7 @@
<result
property=
"versionCode"
column=
"version_code"
/>
<result
property=
"versionLike"
column=
"version_like"
/>
<result
property=
"versionDetail"
column=
"version_detail"
/>
<result
property=
"versionSort"
column=
"version_sort"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"com.platform.entity.TbCfVersionEntity"
>
...
...
@@ -15,7 +16,8 @@
`version_id`,
`version_code`,
`version_like`,
`version_detail`
`version_detail`,
`version_sort`
from tb_cf_version
where version_id = #{id}
</select>
...
...
@@ -25,7 +27,8 @@
`version_id`,
`version_code`,
`version_like`,
`version_detail`
`version_detail`,
`version_sort`
from tb_cf_version
WHERE 1=1
<if
test=
"name != null and name.trim() != ''"
>
...
...
@@ -57,18 +60,21 @@
`version_id`,
`version_code`,
`version_like`,
`version_detail`)
`version_detail`,
`version_sort`)
values(
#{versionId},
#{versionCode},
#{versionLike},
#{versionDetail})
#{versionDetail},
#{versionSort})
</insert>
<update
id=
"update"
parameterType=
"com.platform.entity.TbCfVersionEntity"
>
update tb_cf_version
<set>
<if
test=
"versionCode != null"
>
`version_code` = #{versionCode},
</if>
<if
test=
"versionSort != null"
>
`version_sort` = #{versionSort},
</if>
<if
test=
"versionLike != null"
>
`version_like` = #{versionLike},
</if>
<if
test=
"versionDetail != null"
>
`version_detail` = #{versionDetail}
</if>
</set>
...
...
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfversion.html
浏览文件 @
68a11027
...
...
@@ -41,9 +41,16 @@
<Form-item
label=
"版本code"
prop=
"versionCode"
>
<i-input
v-model=
"tbCfVersion.versionCode"
placeholder=
"版本code"
/>
</Form-item>
<Form-item
label=
"版本分类(0安卓,1苹果)"
prop=
"versionSort"
>
<i-select
placeholder=
"版本分类(0安卓,1苹果)"
v-model=
"tbCfVersion.versionSort"
>
<i-option
value=
"0"
>
安卓
</i-option>
<i-option
value=
"1"
>
苹果
</i-option>
</i-select>
</Form-item>
<Form-item
label=
"版本更新链接"
prop=
"versionLike"
>
<i-input
v-model=
"tbCfVersion.versionLike"
placeholder=
"版本更新链接"
/>
</Form-item>
<Form-item
label=
"版本更新内容"
prop=
"versionDetail"
>
<!-- <script id="Detail" name="tbCfVersion.versionDetail"type="text/plain">${pd.COLLSORT_DETAILS}</script>-->
<textarea
id=
"Detail"
style=
"width: 800px;height: 600px;"
></textarea>
...
...
platform-admin/src/main/webapp/js/common.js
浏览文件 @
68a11027
...
...
@@ -573,6 +573,19 @@ validFormat = function (cellvalue) {
}
return
returnStr
;
};
sortFormat
=
function
(
cellvalue
)
{
let
returnStr
=
"未知"
if
(
!!
cellvalue
||
cellvalue
==
'0'
)
{
if
(
cellvalue
==
'0'
)
{
returnStr
=
"安卓"
;
}
else
if
(
cellvalue
==
'1'
)
{
returnStr
=
"苹果"
;
}
}
return
returnStr
;
};
/**
* 是否为注册就送优惠券
* @param cellvalue
...
...
platform-admin/src/main/webapp/js/sys/tbcfversion.js
浏览文件 @
68a11027
...
...
@@ -5,7 +5,8 @@ $(function () {
{
label
:
'versionId'
,
name
:
'versionId'
,
index
:
'version_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'版本code'
,
name
:
'versionCode'
,
index
:
'version_code'
,
width
:
80
},
{
label
:
'版本更新链接'
,
name
:
'versionLike'
,
index
:
'version_like'
,
width
:
80
},
{
label
:
'版本更新内容'
,
name
:
'versionDetail'
,
index
:
'version_detail'
,
width
:
80
}]
{
label
:
'版本更新内容'
,
name
:
'versionDetail'
,
index
:
'version_detail'
,
width
:
80
},
{
label
:
'版本分类'
,
name
:
'versionSort'
,
index
:
'version_sort'
,
width
:
80
,
formatter
:
sortFormat
}]
});
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论