Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
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
李伟
cust-api
Commits
a8efb741
Commit
a8efb741
authored
Dec 27, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了报名
parent
87f4fb0a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
67 deletions
+13
-67
CmsApplicationController.java
...s/cmsApplication/controller/CmsApplicationController.java
+1
-1
CmsApplication.java
...cisoft/business/cmsApplication/entity/CmsApplication.java
+0
-66
CmsApplicationServiceImpl.java
...msApplication/service/impl/CmsApplicationServiceImpl.java
+12
-0
No files found.
src/main/java/org/rcisoft/business/cmsApplication/controller/CmsApplicationController.java
View file @
a8efb741
...
@@ -40,7 +40,7 @@ public class CmsApplicationController extends CyPaginationController<CmsApplicat
...
@@ -40,7 +40,7 @@ public class CmsApplicationController extends CyPaginationController<CmsApplicat
@CyOpeLogAnno
(
title
=
"system-报名表管理-新增报名表"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@CyOpeLogAnno
(
title
=
"system-报名表管理-新增报名表"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@Operation
(
summary
=
"添加报名表"
,
description
=
"添加报名表"
)
@Operation
(
summary
=
"添加报名表"
,
description
=
"添加报名表"
)
@PostMapping
(
value
=
"/add"
)
@PostMapping
(
value
=
"/add"
)
public
CyResult
add
(
@Valid
CmsApplication
cmsApplication
,
BindingResult
bindingResult
)
{
public
CyResult
add
(
@Valid
@RequestBody
CmsApplication
cmsApplication
,
BindingResult
bindingResult
)
{
CyPersistModel
data
=
cmsApplicationServiceImpl
.
persist
(
cmsApplication
);
CyPersistModel
data
=
cmsApplicationServiceImpl
.
persist
(
cmsApplication
);
return
CyResultGenUtil
.
builder
(
data
,
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
...
...
src/main/java/org/rcisoft/business/cmsApplication/entity/CmsApplication.java
View file @
a8efb741
...
@@ -22,62 +22,6 @@ import java.util.Date;
...
@@ -22,62 +22,6 @@ import java.util.Date;
@TableName
(
"cms_application"
)
@TableName
(
"cms_application"
)
public
class
CmsApplication
extends
CyIdIncreEntity
<
CmsApplication
>
{
public
class
CmsApplication
extends
CyIdIncreEntity
<
CmsApplication
>
{
/**
* @desc 创建人
* @column create_by
* @default
*/
@Excel
(
name
=
"创建人"
)
@TableField
(
"create_by"
)
private
String
createBy
;
/**
* @desc 创建时间
* @column create_date
* @default
*/
@Excel
(
name
=
"创建时间"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@TableField
(
"create_date"
)
private
Date
createDate
;
/**
* @desc 更新人
* @column update_by
* @default
*/
@Excel
(
name
=
"更新人"
)
@TableField
(
"update_by"
)
private
String
updateBy
;
/**
* @desc 更新时间
* @column update_date
* @default
*/
@Excel
(
name
=
"更新时间"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@TableField
(
"update_date"
)
private
Date
updateDate
;
/**
* @desc 启动状态(0禁用、1启动)
* @column flag
* @default
*/
@Excel
(
name
=
"启动状态(0禁用、1启动)"
)
@TableField
(
"flag"
)
private
String
flag
;
/**
* @desc 删除标志(0删除,1已删除)
* @column del_flag
* @default
*/
@Excel
(
name
=
"删除标志(0删除,1已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
/**
/**
* @desc 用户id
* @desc 用户id
...
@@ -133,16 +77,6 @@ public class CmsApplication extends CyIdIncreEntity<CmsApplication> {
...
@@ -133,16 +77,6 @@ public class CmsApplication extends CyIdIncreEntity<CmsApplication> {
@TableField
(
"application_fee"
)
@TableField
(
"application_fee"
)
private
BigDecimal
applicationFee
;
private
BigDecimal
applicationFee
;
/**
* @desc 备注
* @column remarks
* @default
*/
@JsonIgnore
@Excel
(
name
=
"备注"
)
@TableField
(
"remarks"
)
private
String
remarks
;
}
}
...
...
src/main/java/org/rcisoft/business/cmsApplication/service/impl/CmsApplicationServiceImpl.java
View file @
a8efb741
...
@@ -10,6 +10,8 @@ import org.rcisoft.common.component.Global;
...
@@ -10,6 +10,8 @@ import org.rcisoft.common.component.Global;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.util.CyUserUtil
;
import
org.rcisoft.core.util.CyUserUtil
;
import
org.rcisoft.sys.wbac.user.dao.SysUserRepository
;
import
org.rcisoft.sys.wbac.user.entity.SysUser
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Isolation
;
import
org.springframework.transaction.annotation.Isolation
;
...
@@ -27,6 +29,9 @@ import java.util.List;
...
@@ -27,6 +29,9 @@ import java.util.List;
@Slf4j
@Slf4j
public
class
CmsApplicationServiceImpl
extends
ServiceImpl
<
CmsApplicationRepository
,
CmsApplication
>
implements
CmsApplicationService
{
public
class
CmsApplicationServiceImpl
extends
ServiceImpl
<
CmsApplicationRepository
,
CmsApplication
>
implements
CmsApplicationService
{
@Autowired
private
SysUserRepository
sysUserRepository
;
@Autowired
@Autowired
private
Global
global
;
private
Global
global
;
/**
/**
...
@@ -37,6 +42,13 @@ public class CmsApplicationServiceImpl extends ServiceImpl<CmsApplicationReposit
...
@@ -37,6 +42,13 @@ public class CmsApplicationServiceImpl extends ServiceImpl<CmsApplicationReposit
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Override
@Override
public
CyPersistModel
persist
(
CmsApplication
cmsApplication
)
{
public
CyPersistModel
persist
(
CmsApplication
cmsApplication
)
{
//获取当前登录人的id
String
userId
=
CyUserUtil
.
getAuthenBusinessId
();
cmsApplication
.
setUserId
(
Integer
.
valueOf
(
userId
));
//根据userId查询用户的name和phone
SysUser
sysUser
=
sysUserRepository
.
selectById
(
userId
);
cmsApplication
.
setName
(
sysUser
.
getName
());
cmsApplication
.
setPhone
(
sysUser
.
getPhone
());
int
line
=
baseMapper
.
insert
(
cmsApplication
);
int
line
=
baseMapper
.
insert
(
cmsApplication
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()+
"新增了ID为"
+
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()+
"新增了ID为"
+
cmsApplication
.
getBusinessId
()+
"的报名表信息"
);
cmsApplication
.
getBusinessId
()+
"的报名表信息"
);
...
...
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