albertshaw 8 years ago
parent
commit
2db72f5fa6

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

@@ -349,7 +349,7 @@
     and oi.unit_name= #{unitName,jdbcType=VARCAHR}
   </if>
   <if test="principal != null">
-	group by c.id
+	group by c.id, oi.id
   </if>
 	order by c.serial_number DESC
   <if test="page_sql!=null">

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

@@ -677,7 +677,7 @@
 			#{locationProvince,jdbcType=INTEGER}
 		</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">