Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
6d435e5c
Commit
6d435e5c
authored
Feb 20, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
bb336d33
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
302 additions
and
0 deletions
+302
-0
WxApplicationMapper.java
...haoban/manage/service/dao/mapper/WxApplicationMapper.java
+18
-0
TabHaobanWxApplication.java
.../haoban/manage/service/entity/TabHaobanWxApplication.java
+119
-0
WxApplicationMapper.xml
...service/src/main/resources/mapper/WxApplicationMapper.xml
+165
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxApplicationMapper.java
0 → 100644
View file @
6d435e5c
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxApplication
;
public
interface
WxApplicationMapper
{
int
deleteByPrimaryKey
(
String
wxApplicationId
);
int
insert
(
TabHaobanWxApplication
record
);
int
insertSelective
(
TabHaobanWxApplication
record
);
TabHaobanWxApplication
selectByPrimaryKey
(
String
wxApplicationId
);
int
updateByPrimaryKeySelective
(
TabHaobanWxApplication
record
);
int
updateByPrimaryKey
(
TabHaobanWxApplication
record
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabHaobanWxApplication.java
0 → 100644
View file @
6d435e5c
package
com
.
gic
.
haoban
.
manage
.
service
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
TabHaobanWxApplication
implements
Serializable
{
private
String
wxApplicationId
;
private
String
siteId
;
private
String
name
;
private
String
permanentCode
;
private
String
agentName
;
private
String
agentId
;
private
Integer
applicationType
;
private
String
wxEnterpriseId
;
private
Integer
statusFlag
;
private
Date
createTime
;
private
Date
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getWxApplicationId
()
{
return
wxApplicationId
;
}
public
void
setWxApplicationId
(
String
wxApplicationId
)
{
this
.
wxApplicationId
=
wxApplicationId
==
null
?
null
:
wxApplicationId
.
trim
();
}
public
String
getSiteId
()
{
return
siteId
;
}
public
void
setSiteId
(
String
siteId
)
{
this
.
siteId
=
siteId
==
null
?
null
:
siteId
.
trim
();
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
==
null
?
null
:
name
.
trim
();
}
public
String
getPermanentCode
()
{
return
permanentCode
;
}
public
void
setPermanentCode
(
String
permanentCode
)
{
this
.
permanentCode
=
permanentCode
==
null
?
null
:
permanentCode
.
trim
();
}
public
String
getAgentName
()
{
return
agentName
;
}
public
void
setAgentName
(
String
agentName
)
{
this
.
agentName
=
agentName
==
null
?
null
:
agentName
.
trim
();
}
public
String
getAgentId
()
{
return
agentId
;
}
public
void
setAgentId
(
String
agentId
)
{
this
.
agentId
=
agentId
==
null
?
null
:
agentId
.
trim
();
}
public
Integer
getApplicationType
()
{
return
applicationType
;
}
public
void
setApplicationType
(
Integer
applicationType
)
{
this
.
applicationType
=
applicationType
;
}
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
==
null
?
null
:
wxEnterpriseId
.
trim
();
}
public
Integer
getStatusFlag
()
{
return
statusFlag
;
}
public
void
setStatusFlag
(
Integer
statusFlag
)
{
this
.
statusFlag
=
statusFlag
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
\ No newline at end of file
haoban-manage3-service/src/main/resources/mapper/WxApplicationMapper.xml
0 → 100644
View file @
6d435e5c
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.gic.haoban.manage.service.dao.mapper.WxApplicationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.haoban.manage.service.entity.TabHaobanWxApplication"
>
<id
column=
"wx_application_id"
property=
"wxApplicationId"
jdbcType=
"VARCHAR"
/>
<result
column=
"site_id"
property=
"siteId"
jdbcType=
"VARCHAR"
/>
<result
column=
"name"
property=
"name"
jdbcType=
"VARCHAR"
/>
<result
column=
"permanent_code"
property=
"permanentCode"
jdbcType=
"VARCHAR"
/>
<result
column=
"agent_name"
property=
"agentName"
jdbcType=
"VARCHAR"
/>
<result
column=
"agent_id"
property=
"agentId"
jdbcType=
"VARCHAR"
/>
<result
column=
"application_type"
property=
"applicationType"
jdbcType=
"INTEGER"
/>
<result
column=
"wx_enterprise_id"
property=
"wxEnterpriseId"
jdbcType=
"VARCHAR"
/>
<result
column=
"status_flag"
property=
"statusFlag"
jdbcType=
"INTEGER"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
wx_application_id, site_id, name, permanent_code, agent_name, agent_id, application_type,
wx_enterprise_id, status_flag, create_time, update_time
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_wx_application
where wx_application_id = #{wxApplicationId,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
delete from tab_haoban_wx_application
where wx_application_id = #{wxApplicationId,jdbcType=VARCHAR}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanWxApplication"
>
insert into tab_haoban_wx_application (wx_application_id, site_id, name,
permanent_code, agent_name, agent_id,
application_type, wx_enterprise_id, status_flag,
create_time, update_time)
values (#{wxApplicationId,jdbcType=VARCHAR}, #{siteId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{permanentCode,jdbcType=VARCHAR}, #{agentName,jdbcType=VARCHAR}, #{agentId,jdbcType=VARCHAR},
#{applicationType,jdbcType=INTEGER}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanWxApplication"
>
insert into tab_haoban_wx_application
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"wxApplicationId != null"
>
wx_application_id,
</if>
<if
test=
"siteId != null"
>
site_id,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"permanentCode != null"
>
permanent_code,
</if>
<if
test=
"agentName != null"
>
agent_name,
</if>
<if
test=
"agentId != null"
>
agent_id,
</if>
<if
test=
"applicationType != null"
>
application_type,
</if>
<if
test=
"wxEnterpriseId != null"
>
wx_enterprise_id,
</if>
<if
test=
"statusFlag != null"
>
status_flag,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"wxApplicationId != null"
>
#{wxApplicationId,jdbcType=VARCHAR},
</if>
<if
test=
"siteId != null"
>
#{siteId,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"permanentCode != null"
>
#{permanentCode,jdbcType=VARCHAR},
</if>
<if
test=
"agentName != null"
>
#{agentName,jdbcType=VARCHAR},
</if>
<if
test=
"agentId != null"
>
#{agentId,jdbcType=VARCHAR},
</if>
<if
test=
"applicationType != null"
>
#{applicationType,jdbcType=INTEGER},
</if>
<if
test=
"wxEnterpriseId != null"
>
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if
test=
"statusFlag != null"
>
#{statusFlag,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanWxApplication"
>
update tab_haoban_wx_application
<set
>
<if
test=
"siteId != null"
>
site_id = #{siteId,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"permanentCode != null"
>
permanent_code = #{permanentCode,jdbcType=VARCHAR},
</if>
<if
test=
"agentName != null"
>
agent_name = #{agentName,jdbcType=VARCHAR},
</if>
<if
test=
"agentId != null"
>
agent_id = #{agentId,jdbcType=VARCHAR},
</if>
<if
test=
"applicationType != null"
>
application_type = #{applicationType,jdbcType=INTEGER},
</if>
<if
test=
"wxEnterpriseId != null"
>
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if
test=
"statusFlag != null"
>
status_flag = #{statusFlag,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where wx_application_id = #{wxApplicationId,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanWxApplication"
>
update tab_haoban_wx_application
set site_id = #{siteId,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
permanent_code = #{permanentCode,jdbcType=VARCHAR},
agent_name = #{agentName,jdbcType=VARCHAR},
agent_id = #{agentId,jdbcType=VARCHAR},
application_type = #{applicationType,jdbcType=INTEGER},
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
status_flag = #{statusFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where wx_application_id = #{wxApplicationId,jdbcType=VARCHAR}
</update>
</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