提交 31e62fbb authored 作者: 林海冰's avatar 林海冰

初始化项目

上级 0d9f2d0c
<<<<<<< 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
<<<<<<< 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
<<<<<<< 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
}
<<<<<<< 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
}
<<<<<<< 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
<<<<<<< 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论