Browse Source

group by issue

albertshaw 8 years ago
parent
commit
57ea46c3d2

+ 1 - 1
src/main/java/com/goafanti/common/mapper/CopyrightInfoMapper.xml

@@ -339,7 +339,7 @@
 	    and ci.authorized_date <![CDATA[ < ]]> #{authEndTime,jdbcType=TIMESTAMP}
 	</if>
 	<if test="principal != null">
-		group by ci.id
+		group by ci.id,oi.id
 	</if>
 	order by ci.serial_number desc
   	<if test="page_sql!=null">

+ 1 - 1
src/main/java/com/goafanti/common/mapper/OrgCognizanceMapper.xml

@@ -347,7 +347,7 @@
 		and i.licence_province = #{locationProvince, jdbcType=INTEGER}
 	</if>
 	<if test="principal != null">
-		group by c.id
+		group by c.id,i.id
 	</if>
      order by c.serial_number desc
 	<if test="page_sql!=null">

+ 1 - 1
src/main/java/com/goafanti/common/mapper/PatentCostMapper.xml

@@ -188,7 +188,7 @@
 			#{pEnd,jdbcType=TIMESTAMP}
 		</if>
 		<if test="principal != null">
-			group by p.id
+			group by p.id,o.id
 		</if>
 		order by p.serial_number DESC
 		<if test="page_sql!=null">

+ 1 - 1
src/main/java/com/goafanti/common/mapper/TechProjectMapper.xml

@@ -394,7 +394,7 @@
     	and i.unit_name like CONCAT('%', #{unitName,jdbcType=VARCHAR}, '%')  
     </if>
      <if test="principal != null">
-		group by p.id
+		group by p.id,i.id
 	</if>
     order by p.serial_number desc
    <if test="page_sql!=null">