Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
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
youjj
cloud-platform
Commits
56293328
Commit
56293328
authored
Aug 24, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-tiande' into dev-tiande
parents
a2322abd
d908168c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
183 additions
and
0 deletions
+183
-0
BranchCompanyApply.java
.../com/xxfc/platform/vehicle/entity/BranchCompanyApply.java
+54
-0
BranchCompanyApplyFindDTO.java
.../platform/vehicle/pojo/dto/BranchCompanyApplyFindDTO.java
+22
-0
BranchCompanyApplyBiz.java
.../com/xxfc/platform/vehicle/biz/BranchCompanyApplyBiz.java
+63
-0
BranchCompanyApplyMapper.java
...xfc/platform/vehicle/mapper/BranchCompanyApplyMapper.java
+9
-0
CompanyApplyController.java
...c/platform/vehicle/rest/admin/CompanyApplyController.java
+35
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/entity/BranchCompanyApply.java
0 → 100644
View file @
56293328
package
com
.
xxfc
.
platform
.
vehicle
.
entity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
@Data
@Table
(
name
=
"branch_company_apply"
)
public
class
BranchCompanyApply
{
@Id
@GeneratedValue
(
generator
=
"JDBC"
)
@ApiModelProperty
(
"主键id"
)
private
Long
id
;
@ApiModelProperty
(
"公司名称"
)
private
String
name
;
@ApiModelProperty
(
"联系人"
)
private
String
contact
;
@ApiModelProperty
(
"联系电话"
)
private
String
moblie
;
@ApiModelProperty
(
"入驻类型:1-公司入驻;2-个人入驻"
)
private
Integer
type
;
@ApiModelProperty
(
"状态:0-未读;1-已读"
)
private
Integer
status
;
@Column
(
name
=
"crt_time"
)
private
Long
crtTime
;
@Column
(
name
=
"upd_time"
)
private
Long
updTime
;
@Column
(
name
=
"is_del"
)
private
Integer
isDel
;
}
\ No newline at end of file
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/dto/BranchCompanyApplyFindDTO.java
0 → 100644
View file @
56293328
package
com
.
xxfc
.
platform
.
vehicle
.
pojo
.
dto
;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
lombok.Data
;
/**
* @author libin
* @version 1.0
* @description
* @data 2019/8/23 16:27
*/
@Data
public
class
BranchCompanyApplyFindDTO
extends
PageParam
{
private
Integer
status
;
private
Integer
type
;
private
Long
startTime
;
private
Long
endTime
;
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyApplyBiz.java
0 → 100644
View file @
56293328
package
com
.
xxfc
.
platform
.
vehicle
.
biz
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.vehicle.entity.*
;
import
com.xxfc.platform.vehicle.mapper.BranchCompanyApplyMapper
;
import
com.xxfc.platform.vehicle.pojo.dto.BranchCompanyApplyFindDTO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
tk.mybatis.mapper.entity.Example
;
import
java.util.List
;
@Service
@Slf4j
public
class
BranchCompanyApplyBiz
extends
BaseBiz
<
BranchCompanyApplyMapper
,
BranchCompanyApply
>{
public
ObjectRestResponse
addOrUpd
(
BranchCompanyApply
branchCompanyApply
){
Long
id
=
branchCompanyApply
.
getId
()
==
null
?
0L
:
branchCompanyApply
.
getId
();
if
(
id
>
0L
){
updateSelectiveById
(
branchCompanyApply
);
}
else
{
insertSelective
(
branchCompanyApply
);
}
return
ObjectRestResponse
.
succ
();
}
public
List
<
BranchCompanyApply
>
getList
(
BranchCompanyApplyFindDTO
applyFindDTO
){
Example
example
=
new
Example
(
BranchCompanyApply
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"isDel"
,
0
);
if
(
applyFindDTO
.
getStatus
()
!=
null
){
criteria
.
andEqualTo
(
"status"
,
applyFindDTO
.
getStatus
());
}
if
(
applyFindDTO
.
getType
()
!=
null
){
criteria
.
andEqualTo
(
"type"
,
applyFindDTO
.
getType
());
}
if
(
applyFindDTO
.
getStartTime
()
!=
null
&&
applyFindDTO
.
getStartTime
()
>
0
){
criteria
.
andGreaterThanOrEqualTo
(
"crtTime"
,
applyFindDTO
.
getStartTime
());
}
if
(
applyFindDTO
.
getEndTime
()
!=
null
&&
applyFindDTO
.
getEndTime
()
>
0
){
criteria
.
andLessThanOrEqualTo
(
"crtTime"
,
applyFindDTO
.
getEndTime
());
}
example
.
setOrderByClause
(
"crt_time desc "
);
return
selectByExample
(
example
);
}
public
ObjectRestResponse
selectList
(
BranchCompanyApplyFindDTO
applyFindDTO
){
PageHelper
.
startPage
(
applyFindDTO
.
getPage
(),
applyFindDTO
.
getLimit
());
PageInfo
<
BranchCompanyApply
>
pageInfo
=
new
PageInfo
<>(
getList
(
applyFindDTO
));
return
ObjectRestResponse
.
succ
(
PageDataVO
.
pageInfo
(
pageInfo
));
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/mapper/BranchCompanyApplyMapper.java
0 → 100644
View file @
56293328
package
com
.
xxfc
.
platform
.
vehicle
.
mapper
;
import
com.xxfc.platform.vehicle.entity.BranchCompanyApply
;
import
tk.mybatis.mapper.additional.idlist.SelectByIdListMapper
;
import
tk.mybatis.mapper.common.Mapper
;
public
interface
BranchCompanyApplyMapper
extends
Mapper
<
BranchCompanyApply
>,
SelectByIdListMapper
<
BranchCompanyApply
,
Long
>
{
}
\ No newline at end of file
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/CompanyApplyController.java
0 → 100644
View file @
56293328
package
com
.
xxfc
.
platform
.
vehicle
.
rest
.
admin
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.xxfc.platform.vehicle.biz.BranchCompanyApplyBiz
;
import
com.xxfc.platform.vehicle.common.BaseController
;
import
com.xxfc.platform.vehicle.entity.BranchCompanyApply
;
import
com.xxfc.platform.vehicle.pojo.dto.BranchCompanyApplyFindDTO
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"company/apply"
)
public
class
CompanyApplyController
extends
BaseController
<
BranchCompanyApplyBiz
>
{
@ApiOperation
(
"查询入驻公司列表"
)
@RequestMapping
(
value
=
"/selectList"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
getList
(
BranchCompanyApplyFindDTO
applyFindDTO
){
return
baseBiz
.
selectList
(
applyFindDTO
);
}
@ApiOperation
(
"更新入驻公司"
)
@RequestMapping
(
value
=
"/upd"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
updCompany
(
@RequestBody
BranchCompanyApply
branchCompanyApply
){
return
baseBiz
.
addOrUpd
(
branchCompanyApply
);
}
}
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