Toggle navigation
Toggle navigation
This project
Loading...
Sign in
YOHOBUY
/
yohobuy-union
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhengwen.ge
8 years ago
Commit
616c056ac02b6ae6691f1e8f0028ef21ba0393e2
1 parent
5d4ffd33
union_type扩字段
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
65 additions
and
6 deletions
dal/src/main/java/com/yoho/unions/dal/model/UnionDepartmentUrl.java
dal/src/main/java/com/yoho/unions/dal/model/UnionLogs.java
dal/src/main/resources/META-INF/mybatis/UnionDepartmentUrlMapper.xml
dal/src/main/resources/META-INF/mybatis/UnionLogsMapper.xml
server/src/main/java/com/yoho/unions/server/service/impl/GDTServiceImpl.java
server/src/main/java/com/yoho/unions/server/service/impl/UnionServiceImpl.java
web/src/main/resources/databases.yml
web/src/main/webapp/META-INF/autoconf/databases.yml
dal/src/main/java/com/yoho/unions/dal/model/UnionDepartmentUrl.java
View file @
616c056
...
...
@@ -5,6 +5,10 @@ public class UnionDepartmentUrl {
private
String
unionType
;
private
Integer
divisionCode
;
private
Integer
channelCode
;
private
String
deptId
;
private
String
createId
;
...
...
@@ -35,6 +39,22 @@ public class UnionDepartmentUrl {
this
.
unionType
=
unionType
==
null
?
null
:
unionType
.
trim
();
}
public
Integer
getDivisionCode
()
{
return
divisionCode
;
}
public
void
setDivisionCode
(
Integer
divisionCode
)
{
this
.
divisionCode
=
divisionCode
;
}
public
Integer
getChannelCode
()
{
return
channelCode
;
}
public
void
setChannelCode
(
Integer
channelCode
)
{
this
.
channelCode
=
channelCode
;
}
public
String
getDeptId
()
{
return
deptId
;
}
...
...
dal/src/main/java/com/yoho/unions/dal/model/UnionLogs.java
View file @
616c056
...
...
@@ -13,7 +13,7 @@ public class UnionLogs {
private
Byte
isActivate
;
private
Integer
unionType
;
private
String
unionType
;
private
String
addParams
;
...
...
@@ -75,11 +75,11 @@ public class UnionLogs {
this
.
isActivate
=
isActivate
;
}
public
Integer
getUnionType
()
{
public
String
getUnionType
()
{
return
unionType
;
}
public
void
setUnionType
(
Integer
unionType
)
{
public
void
setUnionType
(
String
unionType
)
{
this
.
unionType
=
unionType
;
}
...
...
dal/src/main/resources/META-INF/mybatis/UnionDepartmentUrlMapper.xml
0 → 100644
View file @
616c056
<?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.yoho.unions.dal.IUnionDepartmentUrlDAO"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yoho.unions.dal.model.UnionDepartmentUrl"
>
<id
column=
"id"
property=
"id"
jdbcType=
"INTEGER"
/>
<result
column=
"union_type"
property=
"unionType"
jdbcType=
"VARCHAR"
/>
<result
column=
"division_code"
property=
"divisionCode"
jdbcType=
"INTEGER"
/>
<result
column=
"channel_code"
property=
"channelCode"
jdbcType=
"INTEGER"
/>
<result
column=
"dept_id"
property=
"deptId"
jdbcType=
"VARCHAR"
/>
<result
column=
"create_id"
property=
"createId"
jdbcType=
"VARCHAR"
/>
<result
column=
"name"
property=
"name"
jdbcType=
"VARCHAR"
/>
<result
column=
"src_url"
property=
"srcUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"dest_url"
property=
"destUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"status"
property=
"status"
jdbcType=
"INTEGER"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"INTEGER"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, union_type, division_code, channel_code, dept_id, create_id, name, src_url, dest_url,
status, create_time
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.Integer"
>
select
<include
refid=
"Base_Column_List"
/>
from union_department_url
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByUnionType"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from union_department_url
where union_type = #{union_type}
</select>
</mapper>
\ No newline at end of file
...
...
dal/src/main/resources/META-INF/mybatis/UnionLogsMapper.xml
View file @
616c056
...
...
@@ -8,7 +8,7 @@
<result
column=
"idfa"
property=
"idfa"
jdbcType=
"VARCHAR"
/>
<result
column=
"imei"
property=
"imei"
jdbcType=
"VARCHAR"
/>
<result
column=
"is_activate"
property=
"isActivate"
jdbcType=
"TINYINT"
/>
<result
column=
"union_type"
property=
"unionType"
jdbcType=
"
INTEGE
R"
/>
<result
column=
"union_type"
property=
"unionType"
jdbcType=
"
VARCHA
R"
/>
<result
column=
"add_params"
property=
"addParams"
jdbcType=
"VARCHAR"
/>
<result
column=
"activate_params"
property=
"activateParams"
jdbcType=
"VARCHAR"
/>
...
...
server/src/main/java/com/yoho/unions/server/service/impl/GDTServiceImpl.java
View file @
616c056
...
...
@@ -195,7 +195,7 @@ public class GDTServiceImpl implements MainUnionService {
}
else
{
unionLogs
.
setImei
(
request
.
getImei
());
}
unionLogs
.
setUnionType
(
UnionTypeEnum
.
GUANGDIANTONG
.
getValue
(
));
unionLogs
.
setUnionType
(
String
.
valueOf
(
UnionTypeEnum
.
GUANGDIANTONG
.
getValue
()
));
unionLogs
.
setActivateParams
(
JSON
.
toJSONString
(
request
));
// 如果status是200,证明发送成功
if
(
pair
.
getLeft
()
==
HttpStatus
.
SC_OK
)
{
...
...
server/src/main/java/com/yoho/unions/server/service/impl/UnionServiceImpl.java
View file @
616c056
...
...
@@ -433,7 +433,7 @@ public class UnionServiceImpl implements IUnionService {
logs
.
setIsActivate
((
byte
)
1
);
logs
.
setCreateTime
(
DateUtil
.
getCurrentTimeSecond
());
logs
.
setUpdateTime
(
logs
.
getCreateTime
());
logs
.
setUnionType
(
Integer
.
valueOf
(
click
.
getUnion_type
()
));
logs
.
setUnionType
(
click
.
getUnion_type
(
));
logs
.
setAddParams
(
value
);
logs
.
setTd
(
request
.
getTd
());
logs
.
setAppKey
(
request
.
getAppkey
());
...
...
web/src/main/resources/databases.yml
View file @
616c056
...
...
@@ -35,4 +35,6 @@ datasources:
-
com.yoho.unions.dal.IUnionTypeDAO
-
com.yoho.unions.dal.IUnionTypeManageDAO
-
com.yoho.unions.dal.IUnionOrderPushDAO
-
com.yoho.unions.dal.IUnionDepartmentUrlDAO
readOnlyInSlave
:
true
\ No newline at end of file
...
...
web/src/main/webapp/META-INF/autoconf/databases.yml
View file @
616c056
...
...
@@ -36,4 +36,5 @@ datasources:
-
com.yoho.unions.dal.IUnionTypeDAO
-
com.yoho.unions.dal.IUnionTypeManageDAO
-
com.yoho.unions.dal.IUnionOrderPushDAO
-
com.yoho.unions.dal.IUnionDepartmentUrlDAO
readOnlyInSlave
:
true
\ No newline at end of file
...
...
Please
register
or
login
to post a comment