fix
This commit is contained in:
@@ -7,4 +7,7 @@ import tk.mybatis.mapper.common.Mapper;
|
||||
public interface SignFranchiseMapper extends Mapper<SignFranchiseDO> {
|
||||
|
||||
SignFranchiseDO selectByShopId(@Param("shopId") Long shopId);
|
||||
|
||||
void updateAuditByShopId(@Param("auditId") Long auditId,
|
||||
@Param("shopId") Long shopId);
|
||||
}
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
<?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="com.cool.store.mapper.SignFranchiseMapper">
|
||||
<update id="updateAuditByShopId">
|
||||
update xfsg_sign_franchise
|
||||
set audit_id = #{auditId}
|
||||
where shop_id = #{shopId}
|
||||
</update>
|
||||
<select id="selectByShopId" resultType="com.cool.store.entity.SignFranchiseDO">
|
||||
select *
|
||||
from xfsg_sign_franchise
|
||||
where shop_id = #{shopId}
|
||||
order by create_time desc
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user