Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
0676b6f2
Commit
0676b6f2
authored
Aug 12, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
bc69d4fc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
108 deletions
+12
-108
src/main/java/cn/timer/api/bean/app/CheckAppVersion.java
+2
-2
src/main/java/cn/timer/api/controller/app/AppModuleController.java
+4
-2
src/main/resources/mapping/app/CheckAppVersionMapper.xml
+6
-104
No files found.
src/main/java/cn/timer/api/bean/app/CheckAppVersion.java
View file @
0676b6f2
...
@@ -44,7 +44,7 @@ public class CheckAppVersion extends Model<CheckAppVersion> {
...
@@ -44,7 +44,7 @@ public class CheckAppVersion extends Model<CheckAppVersion> {
private
String
version
;
private
String
version
;
@ApiModelProperty
(
value
=
"最低限制 "
,
example
=
"最低限制"
)
@ApiModelProperty
(
value
=
"最低限制 "
,
example
=
"最低限制"
)
private
String
limit
i
;
private
String
limit
Version
;
@ApiModelProperty
(
value
=
"下载地址 "
,
example
=
"下载地址"
)
@ApiModelProperty
(
value
=
"下载地址 "
,
example
=
"下载地址"
)
private
String
url
;
private
String
url
;
...
@@ -56,7 +56,7 @@ public class CheckAppVersion extends Model<CheckAppVersion> {
...
@@ -56,7 +56,7 @@ public class CheckAppVersion extends Model<CheckAppVersion> {
private
String
remark
;
private
String
remark
;
@ApiModelProperty
(
value
=
" "
,
example
=
"101"
)
@ApiModelProperty
(
value
=
" "
,
example
=
"101"
)
private
Integer
forcei
;
private
Integer
must
;
@ApiModelProperty
(
value
=
"最后修改时间 "
,
example
=
"最后修改时间"
)
@ApiModelProperty
(
value
=
"最后修改时间 "
,
example
=
"最后修改时间"
)
private
String
updateTime
;
private
String
updateTime
;
...
...
src/main/java/cn/timer/api/controller/app/AppModuleController.java
View file @
0676b6f2
...
@@ -27,8 +27,10 @@ public class AppModuleController {
...
@@ -27,8 +27,10 @@ public class AppModuleController {
public
Result
<
Object
>
CheckAppVersion
(
@PathVariable
(
"typename"
)
String
typename
)
public
Result
<
Object
>
CheckAppVersion
(
@PathVariable
(
"typename"
)
String
typename
)
throws
ParseException
{
throws
ParseException
{
// 1:android 2:ios
// 1:android 2:ios
CheckAppVersion
ver
=
CheckAppVersion
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
CheckAppVersion
>().
lambda
().
eq
(
CheckAppVersion:
:
getSystem
,
typename
));
CheckAppVersion
ver
=
CheckAppVersion
.
builder
().
url
(
""
).
downloadUrl
(
""
).
remark
(
""
).
build
();
ver
=
CheckAppVersion
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
CheckAppVersion
>().
lambda
().
eq
(
CheckAppVersion:
:
getSystem
,
typename
));
return
ResultUtil
.
data
(
ver
,
"操作成功!"
);
return
ResultUtil
.
data
(
ver
,
"操作成功!"
);
}
}
...
...
src/main/resources/mapping/app/CheckAppVersionMapper.xml
View file @
0676b6f2
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
<id
column=
"id"
property=
"id"
/>
<id
column=
"id"
property=
"id"
/>
<result
column=
"system"
property=
"system"
/>
<result
column=
"system"
property=
"system"
/>
<result
column=
"version"
property=
"version"
/>
<result
column=
"version"
property=
"version"
/>
<result
column=
"limit
i"
property=
"limiti
"
/>
<result
column=
"limit
_version"
property=
"limitVersion
"
/>
<result
column=
"url"
property=
"url"
/>
<result
column=
"url"
property=
"url"
/>
<result
column=
"download_url"
property=
"downloadUrl"
/>
<result
column=
"download_url"
property=
"downloadUrl"
/>
<result
column=
"remark"
property=
"remark"
/>
<result
column=
"remark"
property=
"remark"
/>
<result
column=
"
forcei"
property=
"forcei
"
/>
<result
column=
"
must"
property=
"must
"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
</resultMap>
...
@@ -19,11 +19,11 @@
...
@@ -19,11 +19,11 @@
id,
id,
system,
system,
version,
version,
limit
i
,
limit
_version
,
url,
url,
download_url,
download_url,
remark,
remark,
forcei
,
must
,
update_time
update_time
</sql>
</sql>
...
@@ -31,110 +31,13 @@
...
@@ -31,110 +31,13 @@
id CheckAppVersion_id,
id CheckAppVersion_id,
system CheckAppVersion_system,
system CheckAppVersion_system,
version CheckAppVersion_version,
version CheckAppVersion_version,
limit
i CheckAppVersion_limiti
,
limit
_version CheckAppVersion_limit_version
,
url CheckAppVersion_url,
url CheckAppVersion_url,
download_url CheckAppVersion_download_url,
download_url CheckAppVersion_download_url,
remark CheckAppVersion_remark,
remark CheckAppVersion_remark,
forcei CheckAppVersion_forcei
,
must CheckAppVersion_must
,
update_time CheckAppVersion_update_time
update_time CheckAppVersion_update_time
</sql>
</sql>
<!--
<insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.app.CheckAppVersion">
INSERT INTO check_app_version
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test ='null != system'>
system,
</if>
<if test ='null != version'>
version,
</if>
<if test ='null != limiti'>
limiti,
</if>
<if test ='null != url'>
url,
</if>
<if test ='null != downloadUrl'>
download_url,
</if>
<if test ='null != remark'>
remark,
</if>
<if test ='null != forcei'>
forcei,
</if>
<if test ='null != updateTime'>
update_time
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test ='null != system'>
#{system},
</if>
<if test ='null != version'>
#{version},
</if>
<if test ='null != limiti'>
#{limiti},
</if>
<if test ='null != url'>
#{url},
</if>
<if test ='null != downloadUrl'>
#{downloadUrl},
</if>
<if test ='null != remark'>
#{remark},
</if>
<if test ='null != forcei'>
#{forcei},
</if>
<if test ='null != updateTime'>
#{updateTime}
</if>
</trim>
</insert>
<delete id="delete" >
DELETE FROM check_app_version
WHERE id = #{id}
</delete>
<update id="update" parameterType="cn.timer.api.bean.app.CheckAppVersion">
UPDATE check_app_version
<set>
<if test ='null != system'>system = #{system},</if>
<if test ='null != version'>version = #{version},</if>
<if test ='null != limiti'>limiti = #{limiti},</if>
<if test ='null != url'>url = #{url},</if>
<if test ='null != downloadUrl'>download_url = #{downloadUrl},</if>
<if test ='null != remark'>remark = #{remark},</if>
<if test ='null != forcei'>forcei = #{forcei},</if>
<if test ='null != updateTime'>update_time = #{updateTime}</if>
</set>
WHERE id = #{id}
</update>
<select id="load" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM check_app_version
WHERE id = #{id}
</select>
<select id="pageList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM check_app_version
LIMIT #{offset}, #{pageSize}
</select>
<select id="pageListCount" resultType="java.lang.Integer">
SELECT count(1)
FROM check_app_version
</select>
-->
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
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