feat:通过/失败原因

This commit is contained in:
guohb
2024-04-24 10:14:36 +08:00
parent b500a94d61
commit 1678ad3dbd
4 changed files with 36 additions and 8 deletions

View File

@@ -1,7 +1,9 @@
package com.cool.store.mapper;
import com.cool.store.entity.ShopAuditInfoDO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
public interface ShopAuditInfoMapper extends Mapper<ShopAuditInfoDO> {
ShopAuditInfoDO selectBykeyAndType(@Param("shopId") Long shopId);
}

View File

@@ -18,4 +18,11 @@
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="deleted" jdbcType="BIT" property="deleted" />
</resultMap>
<select id="selectBykeyAndType" resultType="com.cool.store.entity.ShopAuditInfoDO">
select *
from xfsg_shop_audit_info
where shop_id = #{shopId}
and audit_type = 4
and deleted = 0
</select>
</mapper>