Commit 22eba737 by 郑云飞

init

parent 42c06bec
......@@ -63,7 +63,7 @@ public class GroupAreaAppController {
item.setPageinfo(pinfo);
}
List<GroupBuy> list = groupAreaService.findPageList(item);
List<GroupArea> list = groupAreaService.findPageList(item);
// 3.将查询结果的 分页数据封装后返回
int totalRs = pinfo.getTotalRecords(); //总记录数
......
......@@ -66,7 +66,7 @@ public class GroupAreaController {
item.setPageinfo(pinfo);
}
List<GroupBuy> list = groupAreaService.findPageList(item);
List<GroupArea> list = groupAreaService.findPageList(item);
// 3.将查询结果的 分页数据封装后返回
int totalRs = pinfo.getTotalRecords(); //总记录数
......
......@@ -16,7 +16,7 @@ import java.util.List;
@Mapper
public interface GroupAreaDao extends BaseMapper<GroupArea> {
List<GroupBuy> findPageList(GroupArea item);
List<GroupArea> findPageList(GroupArea item);
@Update("udpate group_area set area_status = 1 where id = #{id}")
String deleteArea(Integer id);
......
......@@ -19,6 +19,12 @@ public class GroupArea {
private String areaName;
private String province;
private String city;
private String region;
private String areaAddress;
private String lngandlat;
......
......@@ -30,6 +30,8 @@ public class GroupBuyProduct {
private BigDecimal productPrice;
private String sunit;
private Integer status;
private Date createTime;
......
......@@ -14,7 +14,7 @@ import java.util.List;
public interface GroupAreaService {
List<GroupBuy> findPageList(GroupArea item);
List<GroupArea> findPageList(GroupArea item);
Result addOrEdit(GroupArea item);
......
......@@ -24,7 +24,7 @@ public class GroupAreaServiceimpl implements GroupAreaService {
@Autowired
private GroupAreaDao mapper;
@Override
public List<GroupBuy> findPageList(GroupArea item) {
public List<GroupArea> findPageList(GroupArea item) {
return mapper.findPageList(item);
}
......
......@@ -86,6 +86,10 @@ public class OrderMainServiceImpl {
if (item.getId() == null) {
if (item.getItype().equals(OrderMain.ITYPE_GROUP)){
}
// 单据日期
item.setSorderdate(DateTools.getDate("yyyy-MM-dd"));
// 提交订单时间
......@@ -115,11 +119,6 @@ public class OrderMainServiceImpl {
// 调用 子表批量保存方法
this.orderSubDao.insertBatch(item.getSubs());
}
if (item.getItype().equals(OrderMain.ITYPE_GROUP)){
}
}
return item;
......
......@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yunniu.farming.webadmin.dao.GroupAreaDao">
<select id="findPageList" resultType="com.yunniu.farming.webadmin.model.GroupBuy">
<select id="findPageList" resultType="com.yunniu.farming.webadmin.model.GroupArea">
select * from group_area
<where>
area_status = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment