Skip to content

Commit

Permalink
商品列表查询
Browse files Browse the repository at this point in the history
增加了商品列表查询,加入了pageHelper分页
  • Loading branch information
sdksdk0 committed Sep 30, 2016
1 parent 9d298ee commit 2b19599
Show file tree
Hide file tree
Showing 883 changed files with 110,088 additions and 25 deletions.
8 changes: 4 additions & 4 deletions taotao-common/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
Expand Down
6 changes: 3 additions & 3 deletions taotao-common/.project
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package cn.tf.taotao.common.pojo;

import java.util.List;



public class EUDResult {

private long total;
private List<?> rows;
public long getTotal() {
return total;
}
public void setTotal(long total) {
this.total = total;
}
public List<?> getRows() {
return rows;
}
public void setRows(List<?> rows) {
this.rows = rows;
}
public EUDResult(long total, List<?> rows) {
super();
this.total = total;
this.rows = rows;
}
public EUDResult() {
super();
}



}
34 changes: 25 additions & 9 deletions taotao-manager/taotao-manager-mapper/pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.tf.taotao</groupId>
<artifactId>taotao-manager</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>taotao-manager-mapper</artifactId>
<!-- 依赖管理 -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.tf.taotao</groupId>
<artifactId>taotao-manager</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>taotao-manager-mapper</artifactId>
<!-- 依赖管理 -->
<dependencies>
<dependency>
<groupId>cn.tf.taotao</groupId>
Expand Down Expand Up @@ -41,4 +42,19 @@
<artifactId>druid</artifactId>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>



</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package cn.tf.taotao.mapper;

import cn.tf.taotao.po.TbContentCategory;
import cn.tf.taotao.po.TbContentCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbContentCategoryMapper {
int countByExample(TbContentCategoryExample example);

int deleteByExample(TbContentCategoryExample example);

int deleteByPrimaryKey(Long id);

int insert(TbContentCategory record);

int insertSelective(TbContentCategory record);

List<TbContentCategory> selectByExample(TbContentCategoryExample example);

TbContentCategory selectByPrimaryKey(Long id);

int updateByExampleSelective(@Param("record") TbContentCategory record, @Param("example") TbContentCategoryExample example);

int updateByExample(@Param("record") TbContentCategory record, @Param("example") TbContentCategoryExample example);

int updateByPrimaryKeySelective(TbContentCategory record);

int updateByPrimaryKey(TbContentCategory record);
}
Loading

0 comments on commit 2b19599

Please sign in to comment.