|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
package com.example.demo.Dao;
|
|
|
|
|
|
|
|
|
|
import com.example.demo.bean.audio;
|
|
|
|
|
import com.example.demo.bean.Audit;
|
|
|
|
|
import org.apache.ibatis.annotations.Delete;
|
|
|
|
|
import org.apache.ibatis.annotations.Insert;
|
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
@ -11,25 +11,25 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Mapper
|
|
|
|
|
public interface auditMapper {
|
|
|
|
|
@Select("select * from audio where checkNum = #{checkNum}")
|
|
|
|
|
public audio selectAudioByCheckNum(String checkNum);
|
|
|
|
|
@Select("select * from audit where checkNum = #{checkNum}")
|
|
|
|
|
public Audit selectAudioByCheckNum(String checkNum);
|
|
|
|
|
|
|
|
|
|
@Select("select * from audio")
|
|
|
|
|
public List<audio> select();
|
|
|
|
|
@Select("select * from audit")
|
|
|
|
|
public List<Audit> select();
|
|
|
|
|
|
|
|
|
|
@Insert("insert into audio(checkNum, userNum, productNum, " +
|
|
|
|
|
@Insert("insert into audit(checkNum, userNum, productNum, " +
|
|
|
|
|
"bankAccount, checkState, contractNum, " +
|
|
|
|
|
"isSignContract, year, amount, applyTime)" +
|
|
|
|
|
" values (#{checkNum},#{userNum},#{productNum},#{bankAccount},#{checkState}," +
|
|
|
|
|
"#{contractNum},#{isSignContract},#{year},#{amount},#{applyTime})")
|
|
|
|
|
public void addAudio(audio Audios);
|
|
|
|
|
public void addAudit(Audit audits);
|
|
|
|
|
|
|
|
|
|
@Update("update audio set checkNum=#{checkNum},userNum=#{userNum}" +
|
|
|
|
|
@Update("update audit set checkNum=#{checkNum},userNum=#{userNum}" +
|
|
|
|
|
",productNum=#{productNum},checkState=#{checkState},contractNum=#{contractNum}," +
|
|
|
|
|
"isSignContract=#{isSignContract},year=#{year},amount=#{amount}," +
|
|
|
|
|
"applyTime=#{applyTime}where checkNum=#{checkNum}")
|
|
|
|
|
public void updateAudio(audio Audios);
|
|
|
|
|
public void updateAudit(Audit audits);
|
|
|
|
|
|
|
|
|
|
@Delete("delete from audio where checkNum=#{checkNum}")
|
|
|
|
|
public void deleteAudio(String checkNum);
|
|
|
|
|
@Delete("delete from audit where checkNum=#{checkNum}")
|
|
|
|
|
public void deleteAudit(String checkNum);
|
|
|
|
|
}
|
|
|
|
|