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
d13b840e
Commit
d13b840e
authored
Dec 21, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加我的定制列表
parent
840134c2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
2 deletions
+67
-2
ImageInputLogMQHandler.java
...tform/rs/datacenter/mqhandler/ImageInputLogMQHandler.java
+3
-1
CustomForm.java
...ava/com/upyuns/platform/rs/website/entity/CustomForm.java
+35
-0
CustomFormWebController.java
...rm/rs/website/controller/web/CustomFormWebController.java
+29
-1
No files found.
rs-datacenter/rs-datacenter-server/src/main/java/com/upyuns/platform/rs/datacenter/mqhandler/ImageInputLogMQHandler.java
View file @
d13b840e
...
...
@@ -58,7 +58,9 @@ public class ImageInputLogMQHandler {
executorService2
.
execute
(()
->
{
try
{
//查询数据是否存在
//rscpImageDataTotalBiz.selectByQuery(new )
rscpImageDataTotalBiz
.
selectCount
(
new
RscpImageDataTotal
(){{
setName
(
ii
.
getName
());
}});
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
throw
e
;
...
...
rs-website/rs-website-api/src/main/java/com/upyuns/platform/rs/website/entity/CustomForm.java
View file @
d13b840e
...
...
@@ -195,4 +195,39 @@ public class CustomForm implements Serializable {
@ApiModelProperty
(
value
=
"几何json"
)
private
String
geojson
;
/**
* 创建时间
*/
@Column
(
name
=
"crt_time"
)
@ApiModelProperty
(
value
=
"创建时间"
,
hidden
=
true
)
private
Date
crtTime
;
/**
* 创建者id
*/
@Column
(
name
=
"crt_user"
)
@ApiModelProperty
(
value
=
"创建者id"
)
private
String
crtUser
;
/**
* 更新时间
*/
@Column
(
name
=
"upd_time"
)
@ApiModelProperty
(
value
=
"更新时间"
,
hidden
=
true
)
private
Date
updTime
;
/**
* 创建者id
*/
@Column
(
name
=
"upd_user"
)
@ApiModelProperty
(
value
=
"更新者id"
)
private
String
updUser
;
/**
* 用户id
*/
@Column
(
name
=
"user_id"
)
@ApiModelProperty
(
value
=
"用户id"
)
private
Integer
userId
;
}
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/web/CustomFormWebController.java
View file @
d13b840e
package
com
.
upyuns
.
platform
.
rs
.
website
.
controller
.
web
;
import
cn.hutool.core.util.StrUtil
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.util.AssertUtils
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
com.upyuns.platform.rs.datacenter.fegin.DatacenterFeign
;
import
com.upyuns.platform.rs.website.biz.CustomFormBiz
;
import
com.upyuns.platform.rs.website.entity.CustomForm
;
...
...
@@ -12,14 +16,23 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.
SYS_FALSE
;
@RestController
@RequestMapping
(
"customForm/web"
)
public
class
CustomFormWebController
extends
BaseController
<
CustomFormBiz
,
CustomForm
>
{
public
class
CustomFormWebController
extends
BaseController
<
CustomFormBiz
,
CustomForm
>
implements
UserRestInterface
{
@Autowired
UserFeign
userFeign
;
@Autowired
DatacenterFeign
datacenterFegin
;
@Override
public
UserFeign
getUserFeign
()
{
return
userFeign
;
}
@RequestMapping
(
value
=
"customIndustry"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
customIndustry
(
@RequestBody
CustomForm
entity
)
{
if
(
StrUtil
.
isNotBlank
(
entity
.
getProvinceCode
()))
{
...
...
@@ -31,6 +44,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
if
(
StrUtil
.
isNotBlank
(
entity
.
getAreaCode
()))
{
entity
.
setAreaName
(
datacenterFegin
.
queryByCode
(
entity
.
getAreaCode
()).
getData
().
getName
());
}
entity
.
setUserId
(
getAppUser
().
getUserid
());
baseBiz
.
insertSelective
(
entity
);
return
ObjectRestResponse
.
succ
();
}
...
...
@@ -46,6 +60,7 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
if
(
StrUtil
.
isNotBlank
(
entity
.
getAreaCode
()))
{
entity
.
setAreaName
(
datacenterFegin
.
queryByCode
(
entity
.
getAreaCode
()).
getData
().
getName
());
}
entity
.
setUserId
(
getAppUser
().
getUserid
());
baseBiz
.
insertSelective
(
entity
);
return
ObjectRestResponse
.
succ
();
}
...
...
@@ -61,7 +76,20 @@ public class CustomFormWebController extends BaseController<CustomFormBiz,Custom
if
(
StrUtil
.
isNotBlank
(
entity
.
getAreaCode
()))
{
entity
.
setAreaName
(
datacenterFegin
.
queryByCode
(
entity
.
getAreaCode
()).
getData
().
getName
());
}
entity
.
setUserId
(
getAppUser
().
getUserid
());
baseBiz
.
insertSelective
(
entity
);
return
ObjectRestResponse
.
succ
();
}
@RequestMapping
(
value
=
"myCustoms"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
PageDataVO
<
CustomForm
>>
myCustoms
(
PageParam
dto
)
{
return
ObjectRestResponse
.
succ
(
PageDataVO
.
pageInfo
(
dto
.
initQuery
(),
()
->
baseBiz
.
selectByWeekend
(
w
->
{
w
.
andEqualTo
(
CustomForm:
:
getUserId
,
getAppUser
().
getUserid
());
w
.
andEqualTo
(
CustomForm:
:
getIsDel
,
SYS_FALSE
);
return
w
;
},
" crt_time desc"
)));
}
}
\ 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