anderx 5 years ago
parent
commit
715b32b974

+ 1 - 1
src/main/java/com/goafanti/common/dao/TTaskMidMapper.java

@@ -42,7 +42,7 @@ public interface TTaskMidMapper {
 	 * @mbg.generated  Fri Dec 25 14:38:43 CST 2020
 	 */
 
-	int updateCostAmount(@Param("tid")Integer tid, @Param("costAmount")BigDecimal costAmount);
+	int updateCostAmount(@Param("tid")Integer tid, @Param("count")BigDecimal costAmount);
 
 	int updatePaymentAmount(@Param("tid")Integer tid, @Param("paymentAmount")BigDecimal paymentAmount, @Param("type")Integer type);
 

+ 5 - 3
src/main/java/com/goafanti/common/mapper/OrganizationManagementMapper.xml

@@ -442,11 +442,13 @@
 	<select id="selectOrganizationCount" resultType="java.lang.Integer">
 		select
 			count(0)
-		from department om
+		from department om 
 		left join department dm on om.super_id = dm.id
 		left join admin x on om.manager_id = x.id
 		where
-			om.deleted_sign='0'
+			om.deleted_sign = '0'
+			and
+			om.name != '平台超管中心'
 		<if test="name !=null">
 			AND om.name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
 		</if>
@@ -458,7 +460,7 @@
 		</if>
 		<if test="depNo !=null">
 			AND om.dep_no=#{depNo,jdbcType=VARCHAR}
-		</if>	
+		</if>
 	</select>
 	<select id="selectSuperId"  resultType="com.goafanti.organization.bo.OrganizationListOut">
 		select

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

@@ -237,7 +237,7 @@
     </if>
     where tid = #{tid,jdbcType=INTEGER}
   </update>
-  <select id="selectByTid" resultType="com.goafanti.common.model.TTaskMid">
+  <select id="selectListByTid" resultType="com.goafanti.common.model.TTaskMid">
 	    select c.id,c.tid,c.cost_amount costAmount from t_order_task a left join t_order_task b on a.order_no=b.order_no
 	left join t_task_mid c on b.id=c.tid
 	where a.id= #{tid}