parent
073df7b0ee
commit
d19bc70a16
@ -0,0 +1,13 @@
|
||||
package au.com.royalpay.payment.manage.mappers.log;
|
||||
|
||||
import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* Create by davep at 2020-02-04 11:40
|
||||
*/
|
||||
@AutoMapper(tablename = "log_presettle_task",pkName = "task_id")
|
||||
public interface PreSettleTaskMapper {
|
||||
|
||||
void resetClearStatus(@Param("clearing_id") int clearingId);
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="au.com.royalpay.payment.manage.mappers.log.PreSettleTaskMapper">
|
||||
<update id="resetClearStatus">
|
||||
update log_presettle_task p
|
||||
inner join log_clearing_detail cd on cd.clear_detail_id = p.clear_detail_id
|
||||
set p.clear_detail_id=null,
|
||||
p.finish_flag=0
|
||||
where cd.clearing_id = #{clearing_id}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in new issue