fix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user