Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
tongmeng-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
林海冰
tongmeng-app
Commits
31e62fbb
提交
31e62fbb
authored
1月 16, 2019
作者:
林海冰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
初始化项目
上级
0d9f2d0c
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
6 行增加
和
642 行删除
+6
-642
BannerManager.java
.../java/com/mall/service/mengbeng/banner/BannerManager.java
+1
-134
BannerService.java
.../com/mall/service/mengbeng/banner/impl/BannerService.java
+0
-183
OneClassfyManager.java
...m/mall/service/mengbeng/oneclassfy/OneClassfyManager.java
+1
-65
OneClassfyService.java
...l/service/mengbeng/oneclassfy/impl/OneClassfyService.java
+2
-95
StoreManager.java
...in/java/com/mall/service/mengbeng/store/StoreManager.java
+1
-68
StoreService.java
...va/com/mall/service/mengbeng/store/impl/StoreService.java
+1
-97
没有找到文件。
src/main/java/com/mall/service/mengbeng/banner/BannerManager.java
浏览文件 @
31e62fbb
<<<<<<<
HEAD
package
com
.
mall
.
service
.
mengbeng
.
banner
;
import
java.util.List
;
import
com.mall.entity.Page
;
import
com.mall.util.PageData
;
/**
* 说明: 论坛信息接口
* 创建时间:2018-07-24
* @version
*/
public
interface
BannerManager
{
/**新增
* @param pd
* @throws Exception
*/
public
void
save
(
PageData
pd
)
throws
Exception
;
/**删除
* @param pd
* @return
* @throws Exception
*/
public
int
delete
(
PageData
pd
)
throws
Exception
;
/**修改
* @param pd
* @throws Exception
*/
public
void
edit
(
PageData
pd
)
throws
Exception
;
/**列表
* @param page
* @throws Exception
*/
public
List
<
PageData
>
list
(
Page
page
)
throws
Exception
;
/**列表(全部)
* @param pd
* @throws Exception
*/
public
List
<
PageData
>
listAll
(
PageData
pd
)
throws
Exception
;
/**通过id获取数据
* @param pd
* @throws Exception
*/
public
PageData
findById
(
PageData
pd
)
throws
Exception
;
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
;
/**
* 前端接口获取分页数据
*
* @author lhb
* @param pd
* @return
* @since JDK 1.8
*/
public
List
<
PageData
>
pagingForuminfo
(
PageData
pd
)
throws
Exception
;
/**
* 查询条件满足的总条数
*
* @author lhb
* @param pd
* @return
* @since JDK 1.8
*/
public
PageData
pagingPageSum
(
PageData
pd
)
throws
Exception
;
// public PageData signFindById(PageData forumPd)throws Exception;
/**
* 轮播图
* @param page
* @return
* @throws Exception
*/
public
List
<
PageData
>
bannerList
(
Page
page
)
throws
Exception
;
/**
* banner 获取排序吗
* @param
* @throws Exception
*/
public
List
<
PageData
>
getAllOrderCode
(
PageData
pd
)
throws
Exception
;
/**
* 获取最大的ORDER_CODE
* @return
*/
public
PageData
getMaxOrderCode
()
throws
Exception
;
/**
* 获取最小的ORDER_CODE
* @return
*/
public
PageData
getMinOrderCode
()
throws
Exception
;
/**
* 获取操作的上一条code
* @param orderPd
* @return
*/
public
PageData
getOneTopOrderCode
(
PageData
orderPd
)
throws
Exception
;
/**
* 获取操作的下一条code
* @param orderPd
* @return
*/
public
PageData
getOneFooterOrderCode
(
PageData
orderPd
)
throws
Exception
;
/*public int findByShowIdCount(PageData pd)throws Exception;*/
/**
* 监控banner下架
*/
// public void supervisoryBanner()throws Exception;
}
=======
package
com
.
mall
.
service
.
mengbeng
.
banner
;
import
java.util.List
;
import
com.mall.entity.Page
;
...
...
@@ -238,14 +113,6 @@ public interface BannerManager{
*/
public
PageData
getOneFooterOrderCode
(
PageData
orderPd
)
throws
Exception
;
/*public int findByShowIdCount(PageData pd)throws Exception;*/
/**
* 监控banner下架
*/
// public void supervisoryBanner()throws Exception;
}
>>>>>>>
branch
'
master
'
of
http:
//code.diaosaas.com/linhaibing/tongmeng-app.git
src/main/java/com/mall/service/mengbeng/banner/impl/BannerService.java
浏览文件 @
31e62fbb
<<<<<<<
HEAD
package
com
.
mall
.
service
.
mengbeng
.
banner
.
impl
;
import
java.util.List
;
...
...
@@ -10,187 +9,6 @@ import org.springframework.stereotype.Service;
import
com.mall.dao.DaoSupport
;
import
com.mall.entity.Page
;
import
com.mall.service.mengbeng.banner.BannerManager
;
import
com.mall.util.PageData
;
/**
* 说明: 论坛信息
* 创建时间:2018-07-24
* @version
*/
@Service
(
"bannerService"
)
public
class
BannerService
implements
BannerManager
{
@Resource
(
name
=
"daoSupport"
)
private
DaoSupport
dao
;
/**新增
* @param pd
* @throws Exception
*/
public
void
save
(
PageData
pd
)
throws
Exception
{
dao
.
save
(
"BannerMapper.save"
,
pd
);
}
/**删除
* @param pd
* @throws Exception
*/
public
int
delete
(
PageData
pd
)
throws
Exception
{
return
(
int
)
dao
.
delete
(
"BannerMapper.delete"
,
pd
);
}
/**修改
* @param pd
* @throws Exception
*/
public
void
edit
(
PageData
pd
)
throws
Exception
{
dao
.
update
(
"BannerMapper.edit"
,
pd
);
}
/**列表
* @param page
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
PageData
>
list
(
Page
page
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"BannerMapper.datalistPage"
,
page
);
}
/**列表(全部)
* @param pd
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
PageData
>
listAll
(
PageData
pd
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"BannerMapper.listAll"
,
pd
);
}
/**通过id获取数据
* @param pd
* @throws Exception
*/
public
PageData
findById
(
PageData
pd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"BannerMapper.findById"
,
pd
);
}
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
{
dao
.
delete
(
"BannerMapper.deleteAll"
,
ArrayDATA_IDS
);
}
/**
* 前端接口获取分页数据
*
* @author lhb
* @param pd
* @return
*/
@Override
public
List
<
PageData
>
pagingForuminfo
(
PageData
pd
)
throws
Exception
{
int
pageSize
=
Integer
.
valueOf
(
pd
.
get
(
"pageSize"
).
toString
());
pd
.
put
(
"pageSize"
,
pageSize
);
pd
.
put
(
"pageIndex"
,
(
Integer
.
valueOf
(
pd
.
get
(
"pageIndex"
).
toString
())-
1
)*
pageSize
);
return
(
List
<
PageData
>)
dao
.
findForList
(
"BannerMapper.pagingForuminfo"
,
pd
);
}
/**
* 查询条件满足的总条数
*
* @author lhb
* @param pd
* @return
* @throws Exception
*/
@Override
public
PageData
pagingPageSum
(
PageData
pd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"BannerMapper.pagingPageSum"
,
pd
);
}
/* @Override
public PageData signFindById(PageData forumPd) throws Exception {
return (PageData)dao.findForObject("BannerMapper.signFindById", forumPd);
}*/
@Override
public
List
<
PageData
>
bannerList
(
Page
page
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"BannerMapper.bannerDatalistPage"
,
page
);
}
@Override
public
List
<
PageData
>
getAllOrderCode
(
PageData
pd
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"BannerMapper.getAllOrderCode"
,
pd
);
}
@Override
public
PageData
getMaxOrderCode
()
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"BannerMapper.getMaxOrderCode"
,
null
);
}
/**
* 获取最小的ORDER_CODE
* @return
*/
@Override
public
PageData
getMinOrderCode
()
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"BannerMapper.getMinOrderCode"
,
null
);
}
@Override
public
PageData
getOneTopOrderCode
(
PageData
orderPd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"BannerMapper.getOneTopOrderCode"
,
orderPd
);
}
@Override
public
PageData
getOneFooterOrderCode
(
PageData
orderPd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"BannerMapper.getOneFooterOrderCode"
,
orderPd
);
}
/* @Override
public int findByShowIdCount(PageData pd) throws Exception {
return (int) dao.findForObject("BannerMapper.findByShowIdCount", pd);
}
*/
/*@Override
public void supervisoryBanner() throws Exception {
//获取全部上架的banner
List<PageData> startUpBanner = (List<PageData>) dao.findForList("BannerMapper.getStartUpBanner", null);
List<Map> list = new ArrayList<>();
//对比时间
for(int i=0;i<startUpBanner.size();i++){
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
long endTime = sf.parse(startUpBanner.get(i).get("end_time").toString()).getTime(); //单位毫秒
if(endTime<System.currentTimeMillis()){ //毫秒
Map map = new HashMap<>();
map.put("banner_id", startUpBanner.get(i).get("banner_id"));
map.put("is_satart_up", 0);
list.add(map);
}
}
//改变banner 下架状态
dao.batchUpdate("BannerMapper.batchUpdateStartUp", list);
}*/
}
=======
package
com
.
mall
.
service
.
mengbeng
.
banner
.
impl
;
import
java.util.List
;
import
javax.annotation.Resource
;
import
org.springframework.stereotype.Service
;
import
com.mall.dao.DaoSupport
;
import
com.mall.entity.Page
;
import
com.mall.service.mengbeng.banner.BannerManager
;
import
com.mall.util.PageData
;
/**
...
...
@@ -360,4 +178,3 @@ public class BannerService implements BannerManager{
}
>>>>>>>
branch
'
master
'
of
http:
//code.diaosaas.com/linhaibing/tongmeng-app.git
src/main/java/com/mall/service/mengbeng/oneclassfy/OneClassfyManager.java
浏览文件 @
31e62fbb
<<<<<<<
HEAD
package
com
.
mall
.
service
.
mengbeng
.
oneclassfy
;
import
java.util.List
;
import
com.mall.entity.Page
;
import
com.mall.util.PageData
;
/**
* 说明: 一级菜单接口
* 创建时间:2018-12-05
* @version
*/
public
interface
OneClassfyManager
{
/**新增
* @param pd
* @throws Exception
*/
public
void
save
(
PageData
pd
)
throws
Exception
;
/**删除
* @param pd
* @throws Exception
*/
public
void
delete
(
PageData
pd
)
throws
Exception
;
/**修改
* @param pd
* @throws Exception
*/
public
void
edit
(
PageData
pd
)
throws
Exception
;
/**列表
* @param page
* @throws Exception
*/
public
List
<
PageData
>
list
(
Page
page
)
throws
Exception
;
/**列表(全部)
* @throws Exception
*/
public
List
<
PageData
>
listAll
()
throws
Exception
;
/**通过id获取数据
* @param pd
* @throws Exception
*/
public
PageData
findById
(
PageData
pd
)
throws
Exception
;
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
;
}
=======
package
com
.
mall
.
service
.
mengbeng
.
oneclassfy
;
import
java.util.List
;
import
com.mall.entity.Page
;
...
...
@@ -113,9 +53,5 @@ public interface OneClassfyManager{
* @throws Exception
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
;
public
List
<
PageData
>
findTwoData
()
throws
Exception
;
}
>>>>>>>
branch
'
master
'
of
http:
//code.diaosaas.com/linhaibing/tongmeng-app.git
}
src/main/java/com/mall/service/mengbeng/oneclassfy/impl/OneClassfyService.java
浏览文件 @
31e62fbb
<<<<<<<
HEAD
package
com
.
mall
.
service
.
mengbeng
.
oneclassfy
.
impl
;
import
java.util.List
;
import
javax.annotation.Resource
;
import
org.springframework.stereotype.Service
;
import
com.mall.dao.DaoSupport
;
import
com.mall.entity.Page
;
import
com.mall.service.mengbeng.oneclassfy.OneClassfyManager
;
import
com.mall.util.PageData
;
/**
* 说明: 一级菜单
* 创建时间:2018-12-05
* @version
*/
@Service
(
"oneclassfyService"
)
public
class
OneClassfyService
implements
OneClassfyManager
{
@Resource
(
name
=
"daoSupport"
)
private
DaoSupport
dao
;
/**新增
* @param pd
* @throws Exception
*/
public
void
save
(
PageData
pd
)
throws
Exception
{
dao
.
save
(
"OneClassfyMapper.save"
,
pd
);
}
/**删除
* @param pd
* @throws Exception
*/
public
void
delete
(
PageData
pd
)
throws
Exception
{
dao
.
delete
(
"OneClassfyMapper.delete"
,
pd
);
}
/**修改
* @param pd
* @throws Exception
*/
public
void
edit
(
PageData
pd
)
throws
Exception
{
dao
.
update
(
"OneClassfyMapper.edit"
,
pd
);
}
/**列表
* @param page
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
PageData
>
list
(
Page
page
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"OneClassfyMapper.datalistPage"
,
page
);
}
/**列表(全部)
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
PageData
>
listAll
()
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"OneClassfyMapper.listAll"
,
null
);
}
/**通过id获取数据
* @param pd
* @throws Exception
*/
public
PageData
findById
(
PageData
pd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"OneClassfyMapper.findById"
,
pd
);
}
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
{
dao
.
delete
(
"OneClassfyMapper.deleteAll"
,
ArrayDATA_IDS
);
}
}
=======
package
com
.
mall
.
service
.
mengbeng
.
oneclassfy
.
impl
;
import
java.util.List
;
import
javax.annotation.Resource
;
...
...
@@ -169,11 +82,5 @@ public class OneClassfyService implements OneClassfyManager{
dao
.
delete
(
"OneClassfyMapper.deleteAll"
,
ArrayDATA_IDS
);
}
@Override
public
List
<
PageData
>
findTwoData
()
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"OneClassfyMapper.findTwoData"
,
null
);
}
}
>>>>>>>
branch
'
master
'
of
http:
//code.diaosaas.com/linhaibing/tongmeng-app.git
}
src/main/java/com/mall/service/mengbeng/store/StoreManager.java
浏览文件 @
31e62fbb
<<<<<<<
HEAD
package
com
.
mall
.
service
.
mengbeng
.
store
;
import
java.util.List
;
import
com.mall.entity.Page
;
import
com.mall.util.PageData
;
/**
* 说明: 小程序用户接口
* 创建时间:2018-12-04
* @version
*/
public
interface
StoreManager
{
/**新增
* @param pd
* @throws Exception
*/
public
int
save
(
PageData
pd
)
throws
Exception
;
/**删除
* @param pd
* @throws Exception
*/
public
void
delete
(
PageData
pd
)
throws
Exception
;
/**修改
* @param pd
* @throws Exception
*/
public
void
edit
(
PageData
pd
)
throws
Exception
;
/**列表
* @param page
* @throws Exception
*/
public
List
<
PageData
>
list
(
Page
page
)
throws
Exception
;
/**列表(全部)
* @param pd
* @throws Exception
*/
public
List
<
PageData
>
listAll
(
PageData
pd
)
throws
Exception
;
/**通过id获取数据
* @param pd
* @throws Exception
*/
public
PageData
findById
(
PageData
pd
)
throws
Exception
;
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
;
/**
* 查询是否存在该手机该的数据
* @param pd
* @return
*/
public
int
findByPhone
(
PageData
pd
)
throws
Exception
;
}
=======
package
com
.
mall
.
service
.
mengbeng
.
store
;
import
java.util.List
;
import
com.mall.entity.Page
;
...
...
@@ -130,4 +64,3 @@ public interface StoreManager{
}
>>>>>>>
branch
'
master
'
of
http:
//code.diaosaas.com/linhaibing/tongmeng-app.git
src/main/java/com/mall/service/mengbeng/store/impl/StoreService.java
浏览文件 @
31e62fbb
<<<<<<<
HEAD
package
com
.
mall
.
service
.
mengbeng
.
store
.
impl
;
import
java.util.List
;
import
javax.annotation.Resource
;
import
org.springframework.stereotype.Service
;
import
com.mall.dao.DaoSupport
;
import
com.mall.entity.Page
;
import
com.mall.service.mengbeng.store.StoreManager
;
import
com.mall.util.PageData
;
/**
* 说明: 小程序用户
* 创建时间:2018-12-04
* @version
*/
@Service
(
"storeService"
)
public
class
StoreService
implements
StoreManager
{
@Resource
(
name
=
"daoSupport"
)
private
DaoSupport
dao
;
/**新增
* @param pd
* @throws Exception
*/
public
int
save
(
PageData
pd
)
throws
Exception
{
return
(
int
)
dao
.
save
(
"StoreManager.save"
,
pd
);
}
/**删除
* @param pd
* @throws Exception
*/
public
void
delete
(
PageData
pd
)
throws
Exception
{
dao
.
delete
(
"StoreManager.delete"
,
pd
);
}
/**修改
* @param pd
* @throws Exception
*/
public
void
edit
(
PageData
pd
)
throws
Exception
{
dao
.
update
(
"StoreManager.edit"
,
pd
);
}
/**列表
* @param page
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
PageData
>
list
(
Page
page
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"StoreManager.datalistPage"
,
page
);
}
/**列表(全部)
* @param pd
* @throws Exception
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
PageData
>
listAll
(
PageData
pd
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"StoreManager.listAll"
,
pd
);
}
/**通过id获取数据
* @param pd
* @throws Exception
*/
public
PageData
findById
(
PageData
pd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"StoreManager.findById"
,
pd
);
}
/**批量删除
* @param ArrayDATA_IDS
* @throws Exception
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
{
dao
.
delete
(
"StoreManager.deleteAll"
,
ArrayDATA_IDS
);
}
/**
* 查询是否存在该手机该的数据
* @param pd
* @return
*/
@Override
public
int
findByPhone
(
PageData
pd
)
throws
Exception
{
return
(
int
)
dao
.
findForObject
(
"StoreManager.findByPhone"
,
pd
);
}
}
=======
package
com
.
mall
.
service
.
mengbeng
.
store
.
impl
;
import
java.util.List
;
import
javax.annotation.Resource
;
...
...
@@ -188,4 +93,3 @@ public class StoreService implements StoreManager{
}
>>>>>>>
branch
'
master
'
of
http:
//code.diaosaas.com/linhaibing/tongmeng-app.git
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论