Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周健威
rs-cloud-platform
Commits
c341ced7
Commit
c341ced7
authored
Dec 10, 2020
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
0aab7837
6c68416e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
63 additions
and
3 deletions
+63
-3
NewsInfo.java
.../java/com/upyuns/platform/rs/website/entity/NewsInfo.java
+2
-0
ImageImgStorageBiz.java
...om/upyuns/platform/rs/website/biz/ImageImgStorageBiz.java
+12
-0
IndustryApplicationInfoBiz.java
...s/platform/rs/website/biz/IndustryApplicationInfoBiz.java
+1
-1
UserInvoiceBiz.java
...va/com/upyuns/platform/rs/website/biz/UserInvoiceBiz.java
+1
-1
ImageImgStorageWebController.java
.../website/controller/web/ImageImgStorageWebController.java
+23
-0
ImageInformationWebController.java
...website/controller/web/ImageInformationWebController.java
+23
-0
NewsInfoMapper.xml
...bsite-server/src/main/resources/mapper/NewsInfoMapper.xml
+1
-1
No files found.
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/entity/NewsInfo.java
View file @
c341ced7
...
...
@@ -109,6 +109,8 @@ public class NewsInfo implements Serializable {
*/
private
Integer
isHot
;
private
Integer
rank
;
@Transient
String
typeName
;
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/ImageImgStorageBiz.java
View file @
c341ced7
...
...
@@ -131,4 +131,16 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt
}
return
ObjectRestResponse
.
succ
(
imageImgStorage
);
}
public
ObjectRestResponse
getAll
(
Integer
type
)
{
Example
example
=
new
Example
(
ImageImgStorage
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
);
if
(
type
!=
null
)
{
criteria
.
andEqualTo
(
"type"
,
type
);
}
example
.
orderBy
(
"updTime"
).
desc
();
return
ObjectRestResponse
.
succ
(
mapper
.
selectByExample
(
example
));
}
}
\ No newline at end of file
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/IndustryApplicationInfoBiz.java
View file @
c341ced7
...
...
@@ -93,7 +93,7 @@ public class IndustryApplicationInfoBiz extends BaseBiz<IndustryApplicationInfoM
Map
<
Integer
,
List
<
IndustryApplicationType
>>
map
=
industryApplicationTypeList
.
stream
().
collect
(
Collectors
.
groupingBy
(
IndustryApplicationType:
:
getId
));
Example
example
=
new
Example
(
IndustryApplicationInfo
.
class
);
example
.
createCriteria
().
andEqualTo
(
"isDel"
,
0
).
andEqualTo
(
"status"
,
1
).
andEqualTo
(
"indexShow"
,
1
).
andIn
(
"firstTypeId"
,
map
.
keySet
());
example
.
orderBy
(
"
updTime"
).
desc
(
);
example
.
orderBy
(
"
rank"
);
List
<
IndustryApplicationInfo
>
industryApplicationInfoList
=
mapper
.
selectByExample
(
example
);
if
(
industryApplicationInfoList
!=
null
&&
industryApplicationInfoList
.
size
()
>
0
)
{
industryApplicationInfoList
.
parallelStream
().
forEach
(
industryApplicationInfo
->
{
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/UserInvoiceBiz.java
View file @
c341ced7
...
...
@@ -81,7 +81,7 @@ public class UserInvoiceBiz extends BaseBiz<UserInvoiceMapper,UserInvoice> {
criteria
.
andEqualTo
(
"taxCode"
,
"%"
+
userInvoiceDto
.
getTaxCode
()
+
"%"
);
}
criteria
.
andEqualTo
(
"isDel"
,
0
);
example
.
orderBy
(
"updTime"
);
example
.
orderBy
(
"updTime"
)
.
desc
()
;
Query
query
=
new
Query
(
userInvoiceDto
);
PageDataVO
<
UserInvoice
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
mapper
.
selectByExample
(
example
));
return
ObjectRestResponse
.
succ
(
pageDataVO
);
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/web/ImageImgStorageWebController.java
0 → 100644
View file @
c341ced7
package
com
.
upyuns
.
platform
.
rs
.
website
.
controller
.
web
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.upyuns.platform.rs.website.biz.ImageImgStorageBiz
;
import
com.upyuns.platform.rs.website.dto.ImageInformationStorageDto
;
import
com.upyuns.platform.rs.website.entity.ImageImgStorage
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"imageImgStorage/web"
)
public
class
ImageImgStorageWebController
extends
BaseController
<
ImageImgStorageBiz
,
ImageImgStorage
>
{
@GetMapping
(
value
=
"/app/unauth/getDetail/{id}"
)
public
ObjectRestResponse
getDetail
(
@PathVariable
Integer
id
)
{
return
baseBiz
.
getDetail
(
id
);
}
@GetMapping
(
value
=
"/app/unauth/getAll"
)
public
ObjectRestResponse
getAll
(
Integer
type
)
{
return
baseBiz
.
getAll
(
type
);
}
}
\ No newline at end of file
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/web/ImageInformationWebController.java
0 → 100644
View file @
c341ced7
package
com
.
upyuns
.
platform
.
rs
.
website
.
controller
.
web
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.upyuns.platform.rs.website.biz.ImageInformationBiz
;
import
com.upyuns.platform.rs.website.dto.ImageInformationDto
;
import
com.upyuns.platform.rs.website.entity.ImageInformation
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"imageInformation/web"
)
public
class
ImageInformationWebController
extends
BaseController
<
ImageInformationBiz
,
ImageInformation
>
{
@GetMapping
(
value
=
"/app/unauth/getAll"
)
public
ObjectRestResponse
getAll
(
ImageInformationDto
imageInformationDto
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
selectList
(
imageInformationDto
));
}
@GetMapping
(
value
=
"/app/unauth/getDetail/{id}"
)
public
ObjectRestResponse
getDetail
(
@PathVariable
Integer
id
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
selectById
(
id
));
}
}
\ No newline at end of file
rs-website/rs-website-server/src/main/resources/mapper/NewsInfoMapper.xml
View file @
c341ced7
...
...
@@ -11,7 +11,7 @@
and ni.type_id = #{typeId}
</if>
</where>
order by ni.
upd_time DESC
order by ni.
rank
</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