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
a73f940b
Commit
a73f940b
authored
Aug 12, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
3ccefeda
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
107 deletions
+11
-107
src/main/java/cn/timer/api/bean/app/CheckAppVersion.java
+2
-2
src/main/java/cn/timer/api/controller/app/AppModuleController.java
+3
-1
src/main/resources/mapping/app/CheckAppVersionMapper.xml
+6
-104
No files found.
src/main/java/cn/timer/api/bean/app/CheckAppVersion.java
View file @
a73f940b
...
...
@@ -44,7 +44,7 @@ public class CheckAppVersion extends Model<CheckAppVersion> {
private
String
version
;
@ApiModelProperty
(
value
=
"最低限制 "
,
example
=
"最低限制"
)
private
String
limit
i
;
private
String
limit
Version
;
@ApiModelProperty
(
value
=
"下载地址 "
,
example
=
"下载地址"
)
private
String
url
;
...
...
@@ -56,7 +56,7 @@ public class CheckAppVersion extends Model<CheckAppVersion> {
private
String
remark
;
@ApiModelProperty
(
value
=
" "
,
example
=
"101"
)
private
Integer
forcei
;
private
Integer
must
;
@ApiModelProperty
(
value
=
"最后修改时间 "
,
example
=
"最后修改时间"
)
private
String
updateTime
;
...
...
src/main/java/cn/timer/api/controller/app/AppModuleController.java
View file @
a73f940b
...
...
@@ -28,7 +28,9 @@ public class AppModuleController {
throws
ParseException
{
// 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
,
"操作成功!"
);
}
...
...
src/main/resources/mapping/app/CheckAppVersionMapper.xml
View file @
a73f940b
...
...
@@ -7,11 +7,11 @@
<id
column=
"id"
property=
"id"
/>
<result
column=
"system"
property=
"system"
/>
<result
column=
"version"
property=
"version"
/>
<result
column=
"limit
i"
property=
"limiti
"
/>
<result
column=
"limit
_version"
property=
"limitVersion
"
/>
<result
column=
"url"
property=
"url"
/>
<result
column=
"download_url"
property=
"downloadUrl"
/>
<result
column=
"remark"
property=
"remark"
/>
<result
column=
"
forcei"
property=
"forcei
"
/>
<result
column=
"
must"
property=
"must
"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
...
...
@@ -19,11 +19,11 @@
id,
system,
version,
limit
i
,
limit
_version
,
url,
download_url,
remark,
forcei
,
must
,
update_time
</sql>
...
...
@@ -31,110 +31,13 @@
id CheckAppVersion_id,
system CheckAppVersion_system,
version CheckAppVersion_version,
limit
i CheckAppVersion_limiti
,
limit
_version CheckAppVersion_limit_version
,
url CheckAppVersion_url,
download_url CheckAppVersion_download_url,
remark CheckAppVersion_remark,
forcei CheckAppVersion_forcei
,
must CheckAppVersion_must
,
update_time CheckAppVersion_update_time
</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>
\ 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