package com.example.demo.Dao; import com.example.demo.bean.Repayment; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; @Mapper public interface paymentMapper { @Select("select * from repayment where checkNum =#{checkNum}") public Repayment selectPepaymentBycheckNum(long checkNum); @Update("update repayment set repAmount = {#repAmount} ,repSum = {#repSum} where checkNum = #{checkNum}") public void updateRepayment(Repayment repayment); }