This commit is contained in:
shuo.wang
2024-10-12 22:12:33 +08:00
parent 34c3818b39
commit f07bde0a6e
6 changed files with 153 additions and 100 deletions

View File

@@ -77,6 +77,13 @@ public class OperationLogDAO {
return operationLogMapper.getByShopSubStage(shopId,shopSubStageList,types);
}
public OperationLogDO getByCondition(Long shopId,Integer shopSubStageStatus) {
if (Objects.isNull(shopId)) {
return null;
}
return operationLogMapper.getByCondition(shopId,shopSubStageStatus);
}
public Integer updateByPrimaryKeySelective(OperationLogDO operationLogDO) {
if (Objects.isNull(operationLogDO) ) {
return null;

View File

@@ -25,6 +25,8 @@ public interface OperationLogMapper extends Mapper<OperationLogDO> {
Long batchAddOperationLog(@Param("list") List<OperationLogDO> operationLogDO) ;
List<OperationLogDO> getBySubStageStatusAndUser(@Param("userId") String userId, @Param("list") List<Integer> shopSubStageStatus );
OperationLogDO getByCondition(@Param("shopId") Long shopId,@Param("shopSubStageStatus") Integer shopSubStageStatus);
}

View File

@@ -89,4 +89,12 @@
and status = 0
order by create_time desc
</select>
<select id="getByCondition" resultType="com.cool.store.entity.OperationLogDO">
select *
from xfsg_operation_log
where shop_id = #{shopId}
and shop_sub_stage_status = #{shopSubStageStatus}
and audit_result_id is NOT null
order by create_time desc limit 1
</select>
</mapper>