Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
huhu-partner
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guanchen
huhu-partner
Commits
46588105
Commit
46588105
authored
Jun 27, 2019
by
guanchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充
添加参数校验 添加查找上级合伙人
parent
3285f46b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
202 additions
and
0 deletions
+202
-0
UserAgentMapper.java
...ain/java/com/lanren/huhu/partner/dao/UserAgentMapper.java
+19
-0
UserAgent.java
src/main/java/com/lanren/huhu/partner/domain/UserAgent.java
+183
-0
No files found.
src/main/java/com/lanren/huhu/partner/dao/UserAgentMapper.java
0 → 100644
View file @
46588105
package
com
.
lanren
.
huhu
.
partner
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.lanren.huhu.partner.domain.UserAgent
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
UserAgentMapper
extends
BaseMapper
<
UserAgent
>
{
int
updateBatch
(
List
<
UserAgent
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
UserAgent
>
list
);
int
insertOrUpdate
(
UserAgent
record
);
int
insertOrUpdateSelective
(
UserAgent
record
);
}
\ No newline at end of file
src/main/java/com/lanren/huhu/partner/domain/UserAgent.java
0 → 100644
View file @
46588105
package
com
.
lanren
.
huhu
.
partner
.
domain
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
lombok.Data
;
@Data
@TableName
(
value
=
"user_agent"
)
public
class
UserAgent
implements
Serializable
{
@TableId
(
value
=
"agent_id"
,
type
=
IdType
.
AUTO
)
private
Integer
agentId
;
@TableField
(
value
=
"user_id"
)
private
Integer
userId
;
@TableField
(
value
=
"agent_name"
)
private
String
agentName
;
@TableField
(
value
=
"agent_phone"
)
private
String
agentPhone
;
@TableField
(
value
=
"agent_level"
)
private
Integer
agentLevel
;
@TableField
(
value
=
"node_agent_level_name"
)
private
String
nodeAgentLevelName
;
@TableField
(
value
=
"parent_agent_id"
)
private
Integer
parentAgentId
;
@TableField
(
value
=
"parent_agent_list"
)
private
String
parentAgentList
;
@TableField
(
value
=
"card_num"
)
private
Integer
cardNum
;
@TableField
(
value
=
"card_activate_num"
)
private
Integer
cardActivateNum
;
@TableField
(
value
=
"commission_rate"
)
private
BigDecimal
commissionRate
;
@TableField
(
value
=
"pid"
)
private
String
pid
;
@TableField
(
value
=
"jd_pid"
)
private
String
jdPid
;
@TableField
(
value
=
"identity"
)
private
String
identity
;
@TableField
(
value
=
"account_type"
)
private
Integer
accountType
;
@TableField
(
value
=
"account"
)
private
String
account
;
/**
* 默认 99 无卡 100 有卡
*/
@TableField
(
value
=
"have_card"
)
private
Integer
haveCard
;
@TableField
(
value
=
"remark"
)
private
String
remark
;
/**
* 默认1 后台添加 2代理商邀请
*/
@TableField
(
value
=
"register_from"
)
private
Integer
registerFrom
;
/**
* 邀请时间
*/
@TableField
(
value
=
"invite_time"
)
private
Integer
inviteTime
;
/**
* 激活时间
*/
@TableField
(
value
=
"active_time"
)
private
Integer
activeTime
;
@TableField
(
value
=
"agent_state"
)
private
Integer
agentState
;
@TableField
(
value
=
"created_at"
)
private
Integer
createdAt
;
@TableField
(
value
=
"updated_at"
)
private
Integer
updatedAt
;
@TableField
(
value
=
"deleted_at"
)
private
Integer
deletedAt
;
/**
* level1 id
*/
@TableField
(
value
=
"agent_level_one"
)
private
Integer
agentLevelOne
;
/**
* level2 id
*/
@TableField
(
value
=
"agent_level_two"
)
private
Integer
agentLevelTwo
;
/**
* level3 id
*/
@TableField
(
value
=
"agent_level_three"
)
private
Integer
agentLevelThree
;
/**
* level4 id
*/
@TableField
(
value
=
"agent_level_four"
)
private
Integer
agentLevelFour
;
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
COL_USER_ID
=
"user_id"
;
public
static
final
String
COL_AGENT_NAME
=
"agent_name"
;
public
static
final
String
COL_AGENT_PHONE
=
"agent_phone"
;
public
static
final
String
COL_AGENT_LEVEL
=
"agent_level"
;
public
static
final
String
COL_NODE_AGENT_LEVEL_NAME
=
"node_agent_level_name"
;
public
static
final
String
COL_PARENT_AGENT_ID
=
"parent_agent_id"
;
public
static
final
String
COL_PARENT_AGENT_LIST
=
"parent_agent_list"
;
public
static
final
String
COL_CARD_NUM
=
"card_num"
;
public
static
final
String
COL_CARD_ACTIVATE_NUM
=
"card_activate_num"
;
public
static
final
String
COL_COMMISSION_RATE
=
"commission_rate"
;
public
static
final
String
COL_PID
=
"pid"
;
public
static
final
String
COL_JD_PID
=
"jd_pid"
;
public
static
final
String
COL_IDENTITY
=
"identity"
;
public
static
final
String
COL_ACCOUNT_TYPE
=
"account_type"
;
public
static
final
String
COL_ACCOUNT
=
"account"
;
public
static
final
String
COL_HAVE_CARD
=
"have_card"
;
public
static
final
String
COL_REMARK
=
"remark"
;
public
static
final
String
COL_REGISTER_FROM
=
"register_from"
;
public
static
final
String
COL_INVITE_TIME
=
"invite_time"
;
public
static
final
String
COL_ACTIVE_TIME
=
"active_time"
;
public
static
final
String
COL_AGENT_STATE
=
"agent_state"
;
public
static
final
String
COL_CREATED_AT
=
"created_at"
;
public
static
final
String
COL_UPDATED_AT
=
"updated_at"
;
public
static
final
String
COL_DELETED_AT
=
"deleted_at"
;
public
static
final
String
COL_AGENT_LEVEL_ONE
=
"agent_level_one"
;
public
static
final
String
COL_AGENT_LEVEL_TWO
=
"agent_level_two"
;
public
static
final
String
COL_AGENT_LEVEL_THREE
=
"agent_level_three"
;
public
static
final
String
COL_AGENT_LEVEL_FOUR
=
"agent_level_four"
;
}
\ 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