This commit is contained in:
guohb
2024-05-17 18:03:15 +08:00
parent 2ee3c9cdbd
commit c2f33a735c
3 changed files with 11 additions and 1 deletions

View File

@@ -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>