Commit 49ad6a2a authored by huyuchen's avatar huyuchen

优化修改

parent f43e7af5
......@@ -93,4 +93,6 @@ public interface TForecastLibraryMapper extends BaseMapper<TForecastLibrary> {
int updateForecastById(@Param("tForecastLibrary") TForecastLibrary tForecastLibrary);
int updateForecastStatusById(@Param("tForecastLibrary") TForecastLibrary tForecastLibrary);
}
......@@ -3324,7 +3324,7 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
library.setPaySettleFlag(viewVo.getPaySettleFlag());
library.setPayCollectFlag(viewVo.getPayCollectFlag());
}
tForecastLibraryMapper.updateById(library);
tForecastLibraryMapper.updateForecastStatusById(library);
}
}
}
......
......@@ -919,4 +919,26 @@
ID = #{tForecastLibrary.id}
</update>
<!-- 根据id更新 -->
<update id="updateForecastStatusById">
update
t_forecast_library
set
<if test="tForecastLibrary.incomeSettleFlag != null and tForecastLibrary.incomeSettleFlag.trim() != ''">
INCOME_SETTLE_FLAG = #{tForecastLibrary.incomeSettleFlag},
</if>
<if test="tForecastLibrary.incomeCollectFlag != null and tForecastLibrary.incomeCollectFlag.trim() != ''">
INCOME_COLLECT_FLAG = #{tForecastLibrary.incomeCollectFlag},
</if>
<if test="tForecastLibrary.paySettleFlag != null and tForecastLibrary.paySettleFlag.trim() != ''">
PAY_SETTLE_FLAG = #{tForecastLibrary.paySettleFlag},
</if>
<if test="tForecastLibrary.payCollectFlag != null and tForecastLibrary.payCollectFlag.trim() != ''">
PAY_COLLECT_FLAG = #{tForecastLibrary.payCollectFlag},
</if>
UPDATE_TIME = now()
where
ID = #{tForecastLibrary.id}
</update>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment