Sfoglia il codice sorgente

1.收付款单添加字段

heqinwei 7 anni fa
parent
commit
fd98caedf3

+ 0 - 1
applications/money/money-server/src/main/resources/mapper/PaybalanceMapper.xml

@@ -141,7 +141,6 @@
   <update id="updateByAmount">
     update paybalance set pb_amount = (select sum(ifnull(pd_amount,0.0)) from paybalancedet where pd_pbid = pb_id )
  where  pb_id = #{id,jdbcType=INTEGER} and companyId =#{companyId}
-  exists (select 1 from  paybalancedet where pd_pbid = pb_id );
   </update>
 
   <insert id="insert" parameterType="com.usoftchina.saas.money.po.Paybalance">

+ 0 - 6
applications/money/money-server/src/main/resources/mapper/PaybalancedetMapper.xml

@@ -44,12 +44,6 @@
     where pd_pbid = #{id,jdbcType=INTEGER}
   </delete>
 
-  <update id="updateByAmount">
-    update recbalance set rb_amount = (select sum(ifnull(rd_amount,0.0)) from recbalancedet where rd_rbid = rb_id )
- where  rb_id = #{id,jdbcType=INTEGER} and companyId =#{companyId}
-  exists (select 1 from  recbalancedet where rd_rbid = rb_id );
-  </update>
-
   <!--<insert id="insert" parameterType="com.usoftchina.saas.money.po.Paybalancedet" >-->
   <insert id="insert" parameterType="com.usoftchina.saas.money.po.Paybalancedet" >
     insert into paybalancedet (pd_id, pd_pbid, pd_detno,

+ 6 - 0
applications/money/money-server/src/main/resources/mapper/RecbalanceMapper.xml

@@ -130,6 +130,12 @@
       order by ${orderByClause}
     </if>
   </select>
+
+  <update id="updateByAmount">
+    update recbalance set rb_amount = (select sum(ifnull(rd_amount,0.0)) from recbalancedet where rd_rbid = rb_id )
+ where  rb_id = #{id,jdbcType=INTEGER} and companyId =#{companyId}
+  </update>
+
   <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
     select 
     <include refid="Base_Column_List" />,